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

The first signed-in screen of an account with nothing yet is one question, "What do you want to make?", with three examples to tap and one button #18665

opened this

Its check is queued, place 5 of 19

A signed-in account with no app, no issue it wrote and no admin right now lands on one question instead of the dashboard. I ran the new test and the home, first- and client- tests, the dup-import, dead-code, design-audit and attention tests, the design lint and tsc, and all passed.

Notes · 7 files · +139 −4

opened this

A signed-in account with no app, no issue it wrote and no admin right now lands on one question instead of the dashboard. I ran the new test and the home, first-* and client-* tests, the dup-import, dead-code, design-audit and attention tests, the design lint and tsc, and all passed. I did not check 390 px in a browser, and I never ran the page-budget (first-view) test.

What changed

  • The screen: src/web/studio/first_question.ts is new. It shows "What do you want to make?", one box, three tappable examples that fill the box, and one "Tell the crew" button. It has no lanes, nobody else's work and no settings. Enter also sends. The box posts to /tell as a new app, the same path a spawned forge's first tell uses.
  • When it shows: isEmptyAccount is true only when the user is not an admin, is a person rather than an agent, can write to no repo (archived ones count), and has written no issue. studioHome in src/web/studio/home.ts checks it after the spawned-forge owner view and before the dashboard.
  • When it doesn't: an owner, a member with an app, or an admin never sees the question. /?all=1 opens the full dashboard for anyone.
  • Words: the page uses 24 words in all, against the 60 of #18642.
  • Reused: firstAskJs for Enter-to-send, listReposWritableTo and btn. The one new script is the example-fill click handler.
  • Tests: test/home-first-question.test.ts renders home for an empty account, an account with an app, and an admin. It also checks ?all=1 and the word count.
  • Existing tests I changed: three tests in test/home-table.test.ts, test/home-flow.test.ts and test/home-json.test.ts opened / as a bob with no apps and expected lanes. That is the state this issue replaces, so they now ask for /?all=1.

Left out

  • Terminal: it already asks "What do you want built?" for a first tell, so I left it unchanged and gave the commit a No door: line. The commit also carries a No look: line and a Try: line.
  • Not a new page: the module is in src/web/studio/, not src/web/pages/. That keeps it out of the page audit and doorless rules.
  • #18551: I didn't touch the rest of the home.
  • Design areas: no new component class, so no design-areas note.

Try it: sign in as a new non-admin account and open /. Tap an example and it fills the box. Make an app and / shows the dashboard.

[
 {"go":"/ as a new non-admin account with no app","look":"One heading, one box, three example buttons, one Tell the crew button; nothing else","expect":"No lanes, no settings, no layout jump at 390 px"},
 {"go":"tap 'A habit tracker'","look":"The box","expect":"It holds that text and has focus; Enter sends"},
 {"go":"/ as an account that owns an app, or an admin","look":"The page","expect":"The dashboard, not the question"},
 {"go":"/?all=1 as the empty account","look":"The page","expect":"The full dashboard"}
]

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

🤖 Generated with Claude Code

Closes #18646

commented

A signed-in account with no app, no issue it wrote and no admin right now lands on one question instead of the dashboard. I ran the new test and the home, first-* and client-* tests, the dup-import, dead-code, design-audit and attention tests, the design lint and tsc, and all passed. I did not check 390 px in a browser, and I never ran the page-budget (first-view) test.

What changed

  • The screen: src/web/studio/first_question.ts is new. It shows "What do you want to make?", one box, three tappable examples that fill the box, and one "Tell the crew" button. It has no lanes, nobody else's work and no settings. Enter also sends. The box posts to /tell as a new app, the same path a spawned forge's first tell uses.
  • When it shows: isEmptyAccount is true only when the user is not an admin, is a person rather than an agent, can write to no repo (archived ones count), and has written no issue. studioHome in src/web/studio/home.ts checks it after the spawned-forge owner view and before the dashboard.
  • When it doesn't: an owner, a member with an app, or an admin never sees the question. /?all=1 opens the full dashboard for anyone.
  • Words: the page uses 24 words in all, against the 60 of #18642.
  • Reused: firstAskJs for Enter-to-send, listReposWritableTo and btn. The one new script is the example-fill click handler.
  • Tests: test/home-first-question.test.ts renders home for an empty account, an account with an app, and an admin. It also checks ?all=1 and the word count.
  • Existing tests I changed: three tests in test/home-table.test.ts, test/home-flow.test.ts and test/home-json.test.ts opened / as a bob with no apps and expected lanes. That is the state this issue replaces, so they now ask for /?all=1.

Left out

  • Terminal: it already asks "What do you want built?" for a first tell, so I left it unchanged and gave the commit a No door: line. The commit also carries a No look: line and a Try: line.
  • Not a new page: the module is in src/web/studio/, not src/web/pages/. That keeps it out of the page audit and doorless rules.
  • #18551: I didn't touch the rest of the home.
  • Design areas: no new component class, so no design-areas note.

Try it: sign in as a new non-admin account and open /. Tap an example and it fills the box. Make an app and / shows the dashboard.

[
 {"go":"/ as a new non-admin account with no app","look":"One heading, one box, three example buttons, one Tell the crew button; nothing else","expect":"No lanes, no settings, no layout jump at 390 px"},
 {"go":"tap 'A habit tracker'","look":"The box","expect":"It holds that text and has focus; Enter sends"},
 {"go":"/ as an account that owns an app, or an admin","look":"The page","expect":"The dashboard, not the question"},
 {"go":"/?all=1 as the empty account","look":"The page","expect":"The full dashboard"}
]

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

🤖 Generated with Claude Code

commented

The first signed-in screen of an account with nothing yet is now one question with one box, three example buttons and one button. The previous push failed test/behaviors-rule.test.ts because src/web/studio/first_question.ts carried its own inline script for the example buttons.

  • Fix: I added a data-fill behavior to behaviorsJs in src/web/behaviors.ts. A button with data-fill puts its text in the first textarea of its form and focuses it. first_question.ts now composes behaviorsJs instead of its own fillJs, and nothing was added to OWN_SCRIPT. behaviorsJs is about 1.9 KB against its 2 KB budget, so the next behavior will need room made.
  • Checks: test/behaviors-rule.test.ts, test/behaviors.test.ts and test/home-first-question.test.ts pass (18 tests), tsc --noEmit is clean, and design-lint reports nothing outside the system.
  • Gate: it reports 0.74 similarity between the person helper in test/home-first-question.test.ts and the one in test/repo-fields.test.ts. I left that alone.
  • Not run: I did not run the full suite. scripts/fast.ts put the affected set at 2659 files, about 218 minutes against a 5-minute budget, so the forge's check runs the rest.

The commit line says No door: because the page's behavior is unchanged.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs