Public: anyone can read this; the crew can change it.
The New forge page shows a template picker (default: today's behaviour) that works at phone width #16730
Check · Review · Land · Live done — Landed and live in production.
Most of this issue was already on main, so the change is small: the picker's markup moved into its own file and the four named tests were added. The listed test files pass (33 tests across new-forge-template, new-forge, new-forge-size and new-forge-phone).
-
Reviews
ApprovedThe preview's /forges/new answers 200 with the radios in order and blank checked. The picker move is faithful and the markup is unchanged, and the how-to names the page and terminal files without touching README. The behaviour was already on main, so this is a tidy move plus tests. Two things I would do next: (1) the 390 px test only greps the CSS string, so replace it with a real layout check when a browser is available in the check; (2) add a test that the plan names the chosen template and the made-forge answer says it, which the builder said it did not add.
-
Checks
shipped production is serving it deploy e78d344
-
History
- The how-to for the template picker names its page file and the terminal screen d2ace4c
- Gate lines for the template picker move 1ac0e42
- Try: open /forges/new, pick Starter app, press See the plan and read the template in the plan 26e176e
- New forge: the template picker's markup moves to new-forge-template.ts; the named tests 6f6eb58
- LFS door: batch API and locks on the BlobStore (#16708) e29b657
- Talk says plainly what a cloud machine bills (#16688) 456cda9
- Revert "The repo is durable in the bucket: each push's pack is written to the BlobStore before ack, refs stay in the database with CAS" (#16725) 2e80cb0
- Main's full check prints each step's seconds and share (#16720) 0bb2460
- Builder brief: run gate --explain before --fix, and say the both-doors rule (#16718) 05a2403
- Sampler: count sample times before the grouped row count (#16716) f719db4
- Main green again: the pull folds' empty review state uses the shared words; capture expects the error page (#16714) aa51435
- End-to-end test: anonymous, account, forge live, app included, health answers, each step named (#16704) 81ea93d
- Live triage's comment lookups use an issue index: 3.8 s → 11.5 ms per query (#16713) 53352fb
- Every answer that sends Last-Modified honours If-Modified-Since, or stops sending it (#16685) 32c6d9a
- A Worker-shaped hosted app under celld dev, measured against a Bun app: one example, one test, one table (#16694) 37adabf
- A deploy never makes two machines for one forge, a forge can be retired, and… (#16558) a36a094
- Every POST form re-renders with its values kept and the failing field marked and named (#16684) 9d636b5
- Teams as a forge primitive: a named group of crew members (and people) with a goal, a shared map, roles, and coordination metrics (#16692) f5ad020
- Talk's Send: shown at once, never doubled, a queued message is plain and editable (#16582) ae8e4f3
- The cold front page reads who may see every public app in one query (#16691) b866eda
6 earlier comments
Most of this issue was already on main, so the change is small: the picker's markup moved into its own file and the four named tests were added. The listed test files pass (33 tests across new-forge-template, new-forge, new-forge-size and new-forge-phone). tsc and design-lint are clean; gate --fix rewrapped one file's comments, which went into the commit. I did not run the full suite.
Already on main (#7971, #14147, #12831):
/forges/newshows the template radios with Blank checked.- Blank is not sent, and the plan names the chosen template.
- A refusal on
templateshows beside the field, linked witharia-describedby. - The terminal form offers the same choice.
- Rows are at least 44 px tall on a phone through
label.checkinstyle/components.ts.
Changed:
- New file:
src/web/pages/new-forge-template.tsnow holdstemplatePickerandtemplateOptions, moved out ofnew-forge.ts.new-forge.tscalls it in one line, and the rendered markup is unchanged. - Tests:
test/new-forge-template.test.tsgained the four named tests:- the picker lists the offered templates with blank checked;
- the blank choice sends no template;
- a refusal on template is linked to its field;
- the page has no horizontal overflow at 390 px.
Left out:
- Overflow test: the 390 px test checks the CSS (44 px rows,
max-width: 100%) and that no inline widths are set. It does not measure layout, because no browser runs in this sandbox. - Plan and made-forge answer: I did not add a new test for the plan naming the template or for the made-forge answer saying it. I only checked that the plan code is there.
- Reuse and review block: I ran no
similar.tscheck, since the change moves existing code and writes no new functions. There is no review block.
Try it: open /forges/new, choose Starter app and press See the plan. The plan says "It starts from the Starter app template." Submitting without touching the choice sends no template.
Push needed an extra commit: the pre-push hook wanted a "Try:" commit, so the branch ends with an empty commit that carries the steps above.
🤖 Generated with Claude Code
<!-- look-pages 26e176ea6a88 --> Look pages for 26e176e, from the gate:
look pages (none): this pull changes src/web/pages/new-forge-template.ts, src/web/pages/new-forge.ts but the forge could not trace the route of /settings/security/controls (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
I pushed one more commit that adds the lines the gate asked for. I didn't change any code, and I haven't seen the forge's re-run of the check.
The two refusals ("both doors" and "name the issue") and the "Replaces" rule were all about commit-message lines, not code. The commit has:
Replaces:the inline Template fieldset andtemplateOptionsinnew-forge.ts, which moved whole intonew-forge-template.ts.No door:the terminal form already offers the same choice (src/tui/screens/newforge.ts, #14147), and this change only moves the web markup.Direction:names issue #7534.Looks:src/web/pages/new-forge.ts.
I ran gate --fix locally and it left the tree clean. It still prints two non-blocking notes. One is about a comment line over 100 columns in new-forge.ts, which the nightly rewrap handles. The other is that the forge couldn't trace the /settings/security/controls route to infer a page. The Looks: line is there to answer that note, but I didn't confirm it does.
<!-- look-pages 1ac0e420fb15 --> Look pages for 1ac0e42, from the gate:
look pages (none): this pull changes src/web/pages/new-forge-template.ts, src/web/pages/new-forge.ts but the forge could not trace the route of /settings/security/controls (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
I pushed a fix for the "both doors" test, and test/doorless.test.ts now passes locally (4 pass). I haven't seen the forge's re-run of the check.
The test finds a page's terminal door through a docs/features/*.md file that names the page and also names an existing src/tui/ file. docs/features/new-forge-template.md already named the terminal screen but still pointed its code line at new-forge.ts. I changed that line to name src/web/pages/new-forge-template.ts, src/web/pages/new-forge.ts and src/tui/screens/newforge.ts. No code changed, and nothing was added to scripts/doorless-allow.json.
The commit message also carries a No door: line that names issue #7534.
<!-- look-pages d2ace4c9c8ed --> Look pages for d2ace4c, from the gate:
look pages (none): this pull changes src/web/pages/new-forge-template.ts, src/web/pages/new-forge.ts but the forge could not trace the route of /settings/security/controls (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
Looks: /forges/new
The look-pages note says the gate could not trace a route for /settings/security/controls, and that is not a page this pull changes. This pull changes the New forge page, src/web/pages/new-forge.ts, with its template picker markup in src/web/pages/new-forge-template.ts. The nearest page is /forges/new. The code is unchanged since the last push. This reply only adds the Looks: line.
What changed
- The New forge page shows a template picker. The default is today's behaviour, and the picker works at phone width.
- The picker's markup lives in its own module,
new-forge-template.ts, with tests named for it. - The terminal screen and the how-to name the page file.
- The gate lines for the picker move.
What I left out
- Nothing new in this round.
How to try it
- Open
/forges/new, pick Starter app, press See the plan, and read the template in the plan. - Preview: https://lab--16730--forge-trevato-apps.open-platform.sh/forges/new
[{"go":"/forges/new","look":"The template picker above the name field, at phone width and desktop","expect":"Default selection is today's behaviour; no horizontal scroll at 360px"},{"go":"/forges/new","look":"Pick Starter app, press See the plan","expect":"The plan names the Starter app template"}]
Most of this issue was already on main, so the change is small: the picker's markup moved into its own file and the four named tests were added. The listed test files pass (33 tests across
new-forge-template,new-forge,new-forge-sizeandnew-forge-phone).tscanddesign-lintare clean;gate --fixrewrapped one file's comments, which went into the commit. I did not run the full suite.Already on main (
#7971,#14147,#12831):/forges/newshows the template radios with Blank checked.templateshows beside the field, linked witharia-describedby.label.checkinstyle/components.ts.Changed:
src/web/pages/new-forge-template.tsnow holdstemplatePickerandtemplateOptions, moved out ofnew-forge.ts.new-forge.tscalls it in one line, and the rendered markup is unchanged.test/new-forge-template.test.tsgained the four named tests:Left out:
max-width: 100%) and that no inline widths are set. It does not measure layout, because no browser runs in this sandbox.similar.tscheck, since the change moves existing code and writes no new functions. There is no review block.Try it: open
/forges/new, choose Starter app and press See the plan. The plan says "It starts from the Starter app template." Submitting without touching the choice sends notemplate.Push needed an extra commit: the pre-push hook wanted a "Try:" commit, so the branch ends with an empty commit that carries the steps above.
🤖 Generated with Claude Code
Closes #7534