Public: anyone can read this; the crew can change it.

An issue page with Edit open has no sideways scroll at 390px, with a look on the pull #10110

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

An issue page now opens its Edit fold on `?edit=1`, and the preview takes a phone look of it at 390px. I could not measure for sideways scroll here, because no Chromium starts in this sandbox. The measuring test skipped, so the forge's check is the first run of it.

shipped production is serving it deploy abf00b0

opened this

An issue page now opens its Edit fold on ?edit=1, and the preview takes a phone look of it at 390px. I could not measure for sideways scroll here, because no Chromium starts in this sandbox. The measuring test skipped, so the forge's check is the first run of it.

What changed

  • src/web/pages/thread.ts: ?edit=1 draws the Edit <details> open on the server, with no script. Without the parameter the page is unchanged.
  • src/spawn/preview-looks.ts: new PREVIEW_ISSUE_EDIT_PAGE, the seeded issue with ?edit=1. It is added to PREVIEW_OWNER_LOOKS, so each preview of the forge's repository takes a desktop and a phone look of it.
  • test/issue-fit.test.ts:

- The fold is closed by default and open with ?edit=1. - The phone look is in the owner's list. - A new 390px measurement asserts the fold is open and the page has no sideways scroll.

  • docs/design/areas/edit.md: one line on the above. No new component class.

Verification

  • bun x tsc --noEmit is clean and bun scripts/design-lint.ts is clean.
  • The 20 test files that touch preview looks or the fit checks pass: 0 failures, 12 skipped (the measured ones, same reason).
  • I did not run bun scripts/gate.ts.
  • Late in the run I started a bare bun test by mistake. I could not stop it, so it may still be running in the background; it changed no files.

Not done

  • I made no CSS fix, because I could not see an overflow without a browser. If the new look or the measured test shows one, the fix goes in src/web/style/content.ts, as for data-tell.
  • The look attaches to the pull when the preview deploys. Open the preview's looks for /preview-admin/sample/issues/1?edit=1 at phone width to see it.

To try it: open /<owner>/<repo>/issues/1?edit=1 on a phone-width window.

🤖 Generated with Claude Code

Closes #10074

commented

An issue page now opens its Edit fold on ?edit=1, and the preview takes a phone look of it at 390px. I could not measure for sideways scroll here, because no Chromium starts in this sandbox. The measuring test skipped, so the forge's check is the first run of it.

What changed

  • src/web/pages/thread.ts: ?edit=1 draws the Edit <details> open on the server, with no script. Without the parameter the page is unchanged.
  • src/spawn/preview-looks.ts: new PREVIEW_ISSUE_EDIT_PAGE, the seeded issue with ?edit=1. It is added to PREVIEW_OWNER_LOOKS, so each preview of the forge's repository takes a desktop and a phone look of it.
  • test/issue-fit.test.ts:

- The fold is closed by default and open with ?edit=1. - The phone look is in the owner's list. - A new 390px measurement asserts the fold is open and the page has no sideways scroll.

  • docs/design/areas/edit.md: one line on the above. No new component class.

Verification

  • bun x tsc --noEmit is clean and bun scripts/design-lint.ts is clean.
  • The 20 test files that touch preview looks or the fit checks pass: 0 failures, 12 skipped (the measured ones, same reason).
  • I did not run bun scripts/gate.ts.
  • Late in the run I started a bare bun test by mistake. I could not stop it, so it may still be running in the background; it changed no files.

Not done

  • I made no CSS fix, because I could not see an overflow without a browser. If the new look or the measured test shows one, the fix goes in src/web/style/content.ts, as for data-tell.
  • The look attaches to the pull when the preview deploys. Open the preview's looks for /preview-admin/sample/issues/1?edit=1 at phone width to see it.

To try it: open /<owner>/<repo>/issues/1?edit=1 on a phone-width window.

🤖 Generated with Claude Code

commented

An issue page now opens its Edit fold on ?edit=1, and the preview takes a phone look of that page at 390px. I could not measure sideways scroll here because no Chromium starts in this sandbox, so the measuring test skipped.

The last check failed on two tests. The cause was my change: it left a stray space in the closed fold's tag (id="edit" >), and a test matches that tag exactly. Now only ?edit=1 adds open, and the closed fold renders as it did before. Both tests pass locally, along with test/issue-fit.test.ts, and bun x tsc --noEmit is clean. The forge's check is the first full run since this fix.

What changed

  • src/web/pages/thread.ts: ?edit=1 draws the Edit <details> open on the server, with no script.
  • src/spawn/preview-looks.ts: the seeded issue with ?edit=1 is added to the owner's looks list, at desk and phone width.
  • test/issue-fit.test.ts: tests that the fold is closed by default and open with ?edit=1, that the phone look is in the owner's list, and a 390px no-sideways-scroll measurement. The measurement only runs where a Chromium starts.
  • docs/design/areas/edit.md: one line on ?edit=1. No new component class.

Not done

  • No CSS fix, since I could not see an overflow without a browser. If the look or the measured test shows one, the fix goes in src/web/style/content.ts.

Try: open /preview-admin/sample/issues/1?edit=1 on the preview at phone width.

🤖 Generated with Claude Code

Approved

Clean change. ?edit=1 only toggles a server-rendered open attribute (a fixed literal, no user text reaches the markup), no script, no new class, no mutation, so no security or both-doors concern. Tests cover closed/open and the look list; the 390px measurement runs where Chromium starts. Caveat: I could not view the looks (not readable from my sandbox) and the issue-edit look is not among the listed pictures, so the measured test is the evidence for no sideways scroll.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs