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

small: the '+ New forge' page has one primary next action, with phone and desktop looks on the pull #17818

opened this

Merged 4h 53m ago, live in production

The "+ New forge" page now has one primary action: pick a recipe and Spawn. Everything else on it is secondary. The branch was already pushed with this work, so there was nothing new to push.

Notes

opened this

The "+ New forge" page now has one primary action: pick a recipe and Spawn. Everything else on it is secondary. The branch was already pushed with this work, so there was nothing new to push. I changed no code this round.

  • What changed: Spawn on the first saved recipe is the only primary button. The other recipes' Spawn buttons and "See the plan" are quiet. The change is in src/web/pages/new-forge.ts, with a test in test/new-forge-refresh.test.ts that fails without it. It also removes one entry from docs/design/quiet-debt.json.
  • Checks: I ran bun x tsc --noEmit, bun test test/new-forge-refresh.test.ts (5 pass), bun scripts/design-lint.ts and bun scripts/gate.ts --explain. All are clean: 31 rules are satisfied, 0 fail, and there is 1 note. I did not run the full suite. The forge runs it on push.
  • The four refusals you listed:
    • "Both doors": satisfied by the No door: line in the commit.
    • "Name the issue": the commit subject carries (#13374).
    • "Real input, not as never": the test adds none.
    • "Dead code": the change adds no exports.
  • Comment width note: the gate noted one comment line over 100 columns in new-forge.ts. bun scripts/gate.ts --fix changed nothing. The note says the nightly rewrap handles it on main.
  • Not done: the pictures at 390 and 1280 px, light and dark, are not attached. /forges/new is not in app.looks, and it needs a signed-in person with saved recipes, which the look runner doesn't set up. Those pictures have to be added to the pull by hand. The commit "No look: …" says the same.
  • How to try it: sign in with at least one saved recipe and open /forges/new.
[
  {"go":"/forges/new","look":"the first recipe's Spawn button","expect":"it is the only filled, primary button on the page"},
  {"go":"/forges/new","look":"the other recipes' Spawn buttons and See the plan","expect":"they are visibly quiet, secondary buttons"}
]

Closes #13374

2 earlier comments
commented

The "+ New forge" page now has one primary action: pick a recipe and Spawn. Everything else on it is secondary. The branch was already pushed with this work, so there was nothing new to push. I changed no code this round.

  • What changed: Spawn on the first saved recipe is the only primary button. The other recipes' Spawn buttons and "See the plan" are quiet. The change is in src/web/pages/new-forge.ts, with a test in test/new-forge-refresh.test.ts that fails without it. It also removes one entry from docs/design/quiet-debt.json.
  • Checks: I ran bun x tsc --noEmit, bun test test/new-forge-refresh.test.ts (5 pass), bun scripts/design-lint.ts and bun scripts/gate.ts --explain. All are clean: 31 rules are satisfied, 0 fail, and there is 1 note. I did not run the full suite. The forge runs it on push.
  • The four refusals you listed:
    • "Both doors": satisfied by the No door: line in the commit.
    • "Name the issue": the commit subject carries (#13374).
    • "Real input, not as never": the test adds none.
    • "Dead code": the change adds no exports.
  • Comment width note: the gate noted one comment line over 100 columns in new-forge.ts. bun scripts/gate.ts --fix changed nothing. The note says the nightly rewrap handles it on main.
  • Not done: the pictures at 390 and 1280 px, light and dark, are not attached. /forges/new is not in app.looks, and it needs a signed-in person with saved recipes, which the look runner doesn't set up. Those pictures have to be added to the pull by hand. The commit "No look: …" says the same.
  • How to try it: sign in with at least one saved recipe and open /forges/new.
[
  {"go":"/forges/new","look":"the first recipe's Spawn button","expect":"it is the only filled, primary button on the page"},
  {"go":"/forges/new","look":"the other recipes' Spawn buttons and See the plan","expect":"they are visibly quiet, secondary buttons"}
]
commented

I fixed the button markup, but the four pictures are still not on the pull, and I couldn't take them from this sandbox.

What changed: with saved recipes and no plan, the first recipe's Spawn is the only primary button. The form's Spawn and every See the plan are quiet.

This round: both "See the plan" buttons now go through btn("See the plan", { name: "do", value: "plan", variant: "outline" }), as you asked. The two hand-written <button> elements in src/web/pages/new-forge.ts are gone, and the rendered button is the same. The tests for the page pass, tsc is clean and design-lint is clean. The gate's only note is the one over-wide comment line, which is left for the nightly rewrap.

Not done:

  • Pictures: the pictures at 390 and 1280 px, light and dark, are not attached. I have no browser here, and /forges/new needs a signed-in person with saved recipes, so I'm not claiming it was seen on a phone. They need attaching by hand, or the page added to app.looks with a seeded recipe.
  • Phone check: I couldn't check how the form's own Spawn reads at 390 px, where a person may reach the form before the recipes. That needs the same pictures. If it reads badly, the fix is to make the form's Spawn primary again whenever the recipes are off screen. I didn't make that change blind.

Doors: the terminal needs no change, since only button markup moved. The commit says No door:.

[
  {"go":"/forges/new","look":"the first recipe's Spawn button, at 390 px","expect":"it is the only filled, primary button on the page"},
  {"go":"/forges/new","look":"the form's Spawn and both See the plan buttons at 390 px","expect":"they are quiet, with See the plan outlined, and a person reaching the form first still knows what to press"}
]
commented

Left #13374 open: 1 unticked item remain (Pictures of the page with a recipe, at 390 and 1280 px, light and dark, are on the pull.).

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs