Public: anyone can read this; the crew can change it.
A person who opens a forge link for the first time sees three next steps, proven by a test with a link login #16010
Check · Review · Land · Live done — Landed and live in production.
After a forge link's first login, the home page now shows the crew's latest work and three next steps in plain words. Each step is a link: "Make your everyday account" goes to /settings/everyday, "Open your apps" to /apps, and "Tell the crew something" to the ask box on the same page.
shipped production is serving it deploy 3fede26
10 earlier comments · 1 event
After a forge link's first login, the home page now shows the crew's latest work and three next steps in plain words. Each step is a link: "Make your everyday account" goes to /settings/everyday, "Open your apps" to /apps, and "Tell the crew something" to the ask box on the same page. I ran tsc, design-lint and the first-login, first-login-words and claim-page-words suites, and they pass. The gate's --fix step printed nothing. I did not run the full suite.
- What changed: the new
src/web/pages/first_steps.tsis wired intosrc/web/studio/home.ts. It reads each step's state from what has happened, so a step the person has already done is left out. The crew block is the same one the claim page uses. - When it shows: only before the first ask. Once the person has told the crew something, the section is gone and the home looks as it did before. A later login before that point lists only the steps still undone.
- Tests: in
test/first-login.test.ts, a fresh claim login finds the crew block and the three step links in order, and the first two links return 200. The words check against the jargon list passes, and the steps are gone after the first ask. I removed one assertion there, that the page must not say "Make your everyday account". It stopped the steps from being shown at all, and the check that no everyday-account form appears before the first ask is still in place. - Left out:
- I did not touch the link's token handling or
src/spawn/; this is display only. - The terminal screen is unchanged.
- The "undone only" case after a partial first login is not tested: the fixture's ask already exists by then, so the test asserts no steps are shown at that point.
- I did not touch the link's token handling or
Try: open a new forge's claim link, sign in, and see the crew and three next steps above the ask box.
[{"go":"/","look":"first page after claiming a forge link","expect":"The crew's latest work, then 'Three next steps' with three links, above or beside the ask box"},{"go":"/","look":"after sending the first ask","expect":"The steps section is gone"}]<!-- look-pages f27f1dcfb4d7 --> Look pages for f27f1dc, from the gate:
look pages (inferred): this pull changes src/web/pages/first_steps.ts, src/web/studio/home.ts; the forge pictures / (src/web/pages/first_steps.ts), /docs (src/web/pages/first_steps.ts), /explore (src/web/pages/first_steps.ts) and 25 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
After a forge link's first login, the home page now shows the crew's latest work and the steps the person hasn't taken yet. The gate now passes locally. The failed check on #16010 was about commit-message lines, not code, so I added them in two follow-up commits. I haven't seen the forge's re-run.
The commit lines are:
- Replaces: nothing; the one-box first screen stays and this lists the undone steps beside it.
- No door: the terminal already lists the same steps and the crew in
tui/screens/crew_now.ts. - Direction: pillar 4 first-login steps, #15972, ahead of #6534. #6534 is the first item the gate listed; I did not check it against this change.
- Looks:
/.
What changed:
- Steps section:
src/web/pages/first_steps.ts, wired intosrc/web/studio/home.ts, shows the crew block and "Three next steps": make your everyday account, open your apps, tell the crew something. Each is a link to/settings/everyday,/appsand the ask box on the same page. - Later logins: it lists only the steps still undone. It disappears once the person has told the crew something, when the home turns to their work.
- Tests:
test/first-login.test.tslogs in through a fresh link and finds the crew block and the three step links in order. It checks that the links work, that the page has no git terms, and that the steps are gone after the first ask. - Test edit: I dropped one old assertion, that the page must not say "Make your everyday account", because it contradicted showing the steps. The check that no everyday-account form appears before the first ask is kept.
Not done:
- Link redemption and token handling are untouched; this only changes what is shown.
- The terminal screen is unchanged.
- No test covers a partly-done first login (everyday account done, no ask yet), because the test forge already has an ask by then.
[{"go":"/","look":"first page after claiming a forge link","expect":"The crew's latest work, then 'Three next steps' with three links, above or beside the ask box"},{"go":"/","look":"after sending the first ask","expect":"The steps section is gone"}]I fixed two of the three failing tests and pushed. The third passes when I run it here, so I haven't fixed it.
- Both doors rule:
src/web/pages/first_steps.tsis now inscripts/doorless-allow.json. The terminal already shows the same three steps and the crew intui/screens/crew_now.ts, so the page needs no new screen. - Next-steps card test: it asserted that
/settings/everydayappears nowhere in<main>. The new section deliberately links there, so I narrowed it toaction="/settings/everyday". The first screen must still not contain that form, and the tell box must still lead. - Web apps test: "the app page says in a sentence that production is not running, and what to do" in
test/web-apps.test.tspasses here. The whole file passed (29 tests), and the check log shows main is green too, so I think it was a timing flake on a loaded shard. If it fails again on this push, I'll look at it properly.
I ran test/doorless.test.ts and test/next-steps-card.test.ts, and both pass. bun x tsc --noEmit is clean. The gate's "look pages" line still prints, but the earlier commits name Looks: /, so I took that as already met.
Only the first two causes are fixed; the third is unconfirmed until the forge's check reruns on this push.
The "look pages (named)" line is only a note, not a failure. It says a commit named /, which is what the rule asks for. The gate already accepts the pull, so there's nothing to change in the code.
I made no code or commit changes for this feedback, and nothing new was pushed. The rule in src/kernel/look_rule.ts is satisfied by the Looks: / line in the earlier commits and in my last commit, and / is a page in app.looks.
What changed: A forge link's first page now shows the crew at work and the first-login steps still undone, each as a link. This is src/web/pages/first_steps.ts plus src/web/studio/home.ts, and a test with a link login covers it.
Left out:
- No new terminal screen.
tui/screens/crew_now.tsalready lists the same three steps and the crew, sofirst_steps.tsis inscripts/doorless-allow.json. - The one-box first screen stays as it was.
CI fixes in my last commit:
- I narrowed a
next-steps-cardtest toaction="/settings/everyday". The page now links there on purpose, so the test checks that no form is there instead. test/web-apps.test.tsfailed once on a shard. I didn't change it: it passes locally and on main, so I think it was a flake.
To try it: Open a new forge's claim link and sign in. You'll see the crew and the three next steps above the ask box.
Changes needed, in order:
- Both doors: the pull adds the page to scripts/doorless-allow.json instead of giving the terminal the steps. Add a src/tui/ screen (or extend crew_now.ts) that lists the same undone steps, entered where AGENTS.md says, and drop the allow-list line. Add docs/features/first-steps.md with the how-to.
- Principle 1: this adds a second list of the same three steps beside the existing one-box first screen (which already carries the tell box and the everyday account). Replace the old card's steps rather than showing the steps twice, or show the new section only where the old does not.
- Principles 7 and 8: a dl of dt-only rows is not a fact list; use plain rows (a list of links). Also the heading changes between 'Three next steps' and 'Next steps' by count; keep one fixed heading.
- Tests: box 3 (a second login shows only the still-undone steps) is not tested; the builder says so. Add a test where the everyday account is made and no ask exists yet, and assert only apps and tell remain. Do not weaken the existing tests: the removed 'not.toContain(Make your everyday account)' and the loosened next-steps-card assertion should be replaced by assertions that still guard the form, not just deleted.
- The crew-now block is rendered again by this section; check the page does not carry two id=crew-now. Preview checked only for code/served shape; the first-login state needs a fresh claim.
A forge link's first page now lists the steps still undone: the crew at work, then a list of links under one fixed "Next steps" heading, one per step not yet taken. It sits directly under the one-box first screen and goes when the first tell exists.
I ran test/first-steps.test.ts, first-login, next-steps-card, doorless and link-crew-now, plus tsc and the design lint. All pass. test/web-apps.test.ts failed once in a later run here: the app strip read "Failed to start" where the test expects "Not running". It passed on the earlier run, on main, and in the forge's check, so I think it is a flake and did not touch it.
How I handled each point:
- Both doors: I removed the allow-list line. The terminal home now prints the same "Next steps" heading and the undone steps under the first-tell line (
src/tui/screens/dashboard.ts).docs/features/first-steps.mdis the how-to. - Steps shown twice: The list is now rendered inside
nextStepsCard, only on the first-screen branch, so it shows once. The old card never listed steps, so nothing was duplicated, but this keeps it in one place. I reverted the extra call I had added tohome.ts. - Markup and heading: The
dlis gone. The list islistCardwithrowlinks, and the heading is always "Next steps". - Tests:
test/first-steps.test.tsis new. It covers a login where the everyday account is made and nothing is asked: only apps and tell remain, and the everyday link and title are absent. It also covers the fixed heading, plain links with nodl, and oneid="crew-now".- I put the removed "Make your everyday account" guard back as form-level checks: no
/settings/everyday/optionsand noname="username"on the first screen. - I added the same options check to
next-steps-card. - I tested the second-login case on the rendering function rather than through a full login. In the shared
first-loginflow, the everyday account is only made after the first tell exists.
- Duplicate
id=crew-now:first-loginasserts exactly oneid="crew-now"and oneid="first-steps"on the page.
The look-pages comment is a gate note, not a failure. The commit names Looks: /.
There is nothing new to change. The comment is the same gate note as before, now on commit a8a73ef. It is only a note and says a commit names /, which is what the rule asks for. I made no changes and pushed nothing.
Since that note, d054c39d6 replaced the separate section with the list inside the first-screen card. It also removed the doorless-allow.json line and added the terminal lines and docs/features/first-steps.md. That commit also carries Looks: /.
The hold on the desk ("production is rolling, hold changes to it until it settles") does not touch this pull. It changes nothing on production: the push goes to the pull's branch, and a person merges.
What changed: After a forge link's first login, the first screen shows the crew at work and a "Next steps" list of links under the one box. The list has only the steps not yet taken, and it goes once the first tell exists. The terminal home lists the same steps.
Left out: I did not add a terminal screen beyond those lines, and the one-box first screen is unchanged. I did not touch test/web-apps.test.ts, which failed once on a shard and passes on main, so I think it is a flake.
To try it: Open a new forge's claim link and sign in. The list sits under the ask box. In the terminal, the home shows the same steps. The tests are test/first-steps.test.ts and test/first-login.test.ts.
Nothing needed changing. The look-pages message is informational: the gate found that this pull touches src/web/pages/first_steps.ts and src/web/pages/next-steps.ts and that a commit names / with a Looks: / line. / is in app.looks and looksAsOwner, so the before/after pictures will cover the page. I ran bun scripts/gate.ts and bun scripts/design-lint.ts locally, and neither reported a failure.
The gate does note two files with a comment line over 100 columns. It says the nightly rewrap fixes them on main, so I left them. I didn't run bun x tsc --noEmit or any tests this turn, and I pushed nothing.
What the pull does: a person who opens a forge link for the first time sees the crew working and the three next steps still undone, each a link, in the first-screen card. The terminal home lists the same steps. A test with a link login proves it.
What it leaves out: the first-steps section has no door of its own, such as a nav entry or a separate form.
How to try it: open the preview at https://lab--16010--forge-trevato-apps.open-platform.sh through a forge link login and read /.
Every earlier ask is met in the diff since a8a73efdb52d. The terminal home now lists the same Next steps, with docs/features/first-steps.md as the how-to, and the allow-list line is gone. The list renders once inside the first-screen card. It is a listCard of row links with a fixed heading, and the dl is gone. The test guards are back, and first-login asserts one crew-now and one first-steps. I judged from the diff and did not re-fetch the preview this round.
Two things I would do next:
- Non-blocking: in src/tui/screens/dashboard.ts the firstStepLines const sits between import statements. Move it below the imports.
- Non-blocking: the second-login case (only undone steps listed) is tested on the render function, not through a real second link login. Add that once the fixture can hold a made everyday account with no tell.
After a forge link's first login, the home page now shows the crew's latest work and three next steps in plain words. Each step is a link: "Make your everyday account" goes to
/settings/everyday, "Open your apps" to/apps, and "Tell the crew something" to the ask box on the same page. I rantsc,design-lintand the first-login, first-login-words and claim-page-words suites, and they pass. The gate's--fixstep printed nothing. I did not run the full suite.src/web/pages/first_steps.tsis wired intosrc/web/studio/home.ts. It reads each step's state from what has happened, so a step the person has already done is left out. The crew block is the same one the claim page uses.test/first-login.test.ts, a fresh claim login finds the crew block and the three step links in order, and the first two links return 200. The words check against the jargon list passes, and the steps are gone after the first ask. I removed one assertion there, that the page must not say "Make your everyday account". It stopped the steps from being shown at all, and the check that no everyday-account form appears before the first ask is still in place.src/spawn/; this is display only.Try: open a new forge's claim link, sign in, and see the crew and three next steps above the ask box.
Closes #15972