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

A list is one line a row and detail opens on demand: crew member descriptions first #18481

opened this

Merged 3h 40m ago, live in production

On a repository's settings page, under "Your team", each crew member is now one line: name, seat and state (working or paused). The member's model and brief open in place from a chevron, with no reload. I pushed the branch.

Notes

opened this

On a repository's settings page, under "Your team", each crew member is now one line: name, seat and state (working or paused). The member's model and brief open in place from a chevron, with no reload. I pushed the branch. I did not run the full suite, only the tests around the crew page, the new rule and the dead-code check; the forge runs the full check on your push.

  • Member row: a closed member row stays on one line, and a long name or seat is cut with an ellipsis instead of wrapping. Opening it moves only what is below it. The model and brief are escaped, and a member with neither stays a plain line with no chevron. Maintainers use the same row. The Remove button sits beside the row, outside the part that toggles, so pressing it never opens or closes the row. The new code is memberRow in src/web/studio/crew.ts, plus one nowrap rule in src/web/style/components.ts.
  • Rule test: test/multiline-rows.test.ts fails if a module under src/web/ draws rows with facts (a dl under the meta, so more than one line by construction) and isn't listed in scripts/multiline-rows.json. It also fails when a listed module no longer qualifies, and it has a ceiling of 36 entries, so the list can only shrink. The crew page is not on it.
  • Open/close tests: the tests check a member row on first paint: the <details> is closed, the brief is escaped inside it, and Remove is outside the summary. The toggle itself is the browser's own <details>, so there is no client script and I did not test the click. The crew-settings-fit phone look was skipped here because there is no chromium in the sandbox, so I did not measure the phone width.
  • Existing test changed: in test/studio-stranger.test.ts I loosened one match, because the member's <li> now carries a has-after class. The test was only too exact about attributes.
  • By module, not route: the list names modules (36 of them), not routes, because routes can't be traced reliably from source here. The crew page's route is /:owner/:name/settings. Also, the rule only catches rows with facts, not rows that merely wrap their meta text; the seat header rows still wrap.
  • Not done: no keyboard shortcut for opening a row, and no change to the terminal, which already shows one member a line. The commit line says No door: for that. I added a paragraph to docs/features/crew-roles.md.

Reused row() with its fold option, the same pattern as machines.ts.

[{"go":"/<owner>/<repo>/settings","look":"Your team: each member is one line (name, seat, working/paused) with a chevron","expect":"closed on load; rows do not wrap, and long text is cut with an ellipsis"},
 {"go":"/<owner>/<repo>/settings","look":"press a member's chevron","expect":"model and brief open under the line with no reload; press again to close; Remove does not toggle the row"}]

Closes #18478

2 earlier comments
commented

On a repository's settings page, under "Your team", each crew member is now one line: name, seat and state (working or paused). The member's model and brief open in place from a chevron, with no reload. I pushed the branch. I did not run the full suite, only the tests around the crew page, the new rule and the dead-code check; the forge runs the full check on your push.

  • Member row: a closed member row stays on one line, and a long name or seat is cut with an ellipsis instead of wrapping. Opening it moves only what is below it. The model and brief are escaped, and a member with neither stays a plain line with no chevron. Maintainers use the same row. The Remove button sits beside the row, outside the part that toggles, so pressing it never opens or closes the row. The new code is memberRow in src/web/studio/crew.ts, plus one nowrap rule in src/web/style/components.ts.
  • Rule test: test/multiline-rows.test.ts fails if a module under src/web/ draws rows with facts (a dl under the meta, so more than one line by construction) and isn't listed in scripts/multiline-rows.json. It also fails when a listed module no longer qualifies, and it has a ceiling of 36 entries, so the list can only shrink. The crew page is not on it.
  • Open/close tests: the tests check a member row on first paint: the <details> is closed, the brief is escaped inside it, and Remove is outside the summary. The toggle itself is the browser's own <details>, so there is no client script and I did not test the click. The crew-settings-fit phone look was skipped here because there is no chromium in the sandbox, so I did not measure the phone width.
  • Existing test changed: in test/studio-stranger.test.ts I loosened one match, because the member's <li> now carries a has-after class. The test was only too exact about attributes.
  • By module, not route: the list names modules (36 of them), not routes, because routes can't be traced reliably from source here. The crew page's route is /:owner/:name/settings. Also, the rule only catches rows with facts, not rows that merely wrap their meta text; the seat header rows still wrap.
  • Not done: no keyboard shortcut for opening a row, and no change to the terminal, which already shows one member a line. The commit line says No door: for that. I added a paragraph to docs/features/crew-roles.md.

Reused row() with its fold option, the same pattern as machines.ts.

[{"go":"/<owner>/<repo>/settings","look":"Your team: each member is one line (name, seat, working/paused) with a chevron","expect":"closed on load; rows do not wrap, and long text is cut with an ellipsis"},
 {"go":"/<owner>/<repo>/settings","look":"press a member's chevron","expect":"model and brief open under the line with no reload; press again to close; Remove does not toggle the row"}]
commented

On a repository's settings page, each crew member under "Your team" is now one line (name, seat, working or paused), and their model and brief open in place from a chevron, with no reload. I pushed a fix for the failed phone-width check, but I could not confirm it. The browser test that failed is skipped here because the sandbox has no chromium, so the forge's check is the first real run of it.

What failed and what I changed: The check's "no sideways scroll" test at 390 px found the name link and its spans past the viewport. The test uses a 39-character agent name. My first change had stopped long names from wrapping, so they overflowed. Names now wrap anywhere on a phone, as they did before this pull. Only the seat line stays on one line.

The rest of the pull:

  • Member row: the new code is memberRow in src/web/studio/crew.ts. It starts closed and escapes the model and brief. A member with neither stays a plain line with no chevron, and the Remove button sits outside the part that toggles. Maintainers use the same row.
  • Rule test: test/multiline-rows.test.ts lists the modules that still draw multi-line rows (rows with facts) in scripts/multiline-rows.json. The list can only shrink, with a ceiling of 36, and the crew page is not on it. It lists modules, not routes, because routes can't be traced reliably from source here.
  • Open/close tests: they cover the row's closed first paint and escaping. The toggle itself is the browser's own <details>, so I did not test the click.
  • Existing test: I loosened one match in test/studio-stranger.test.ts, since the member's <li> now carries a has-after class.
  • Docs: one paragraph added to docs/features/crew-roles.md.
  • Not done: no keyboard shortcut for opening a row, and no terminal change, since the seat list there already shows one member a line.
  • Reused: the existing row() helper with its fold option, as machines.ts does.
[{"go":"/<owner>/<repo>/settings","look":"Your team: members are one line with a chevron","expect":"closed on load; the seat line does not wrap"},
 {"go":"/<owner>/<repo>/settings","look":"press a member's chevron; also view at 390 px wide","expect":"model and brief open below the line; no sideways scroll; Remove does not toggle the row"}]
commented

I addressed all of juniper's points except the phone check, which I still can't run. I pushed the branch.

  • Box 2, the list by route: scripts/multiline-rows.json now maps each route to the modules that draw multi-line rows, for example "/flow": [...] and "/settings/devices": [...], 29 routes covering the same 36 modules. I filled the routes in by hand from where each module is mounted. The script derives modules from source, and the test checks that every route key appears in the source. It cannot check that a route really mounts its module, so a wrong mapping would pass. Shared components, such as the studio app card, are listed under the page they draw on. The crew page is not on the list, and the test asserts that.
  • Box 3, open and close: the new test checks that the <details> carries the id member-<role>-<name>, which is the anchor that opens the row. It also checks that there is exactly one <summary>, that the model and brief sit inside the details, and that the Remove form comes after </details>, not inside it. The existing first-paint test covers the closed-by-default and escaping parts.
  • CEILING: I removed it. The fresh and stale tests already enforce the list.
  • studio-stranger: the test now pins the exact <li class="has-after" data-member="keeper" data-seat="builder">, so the loosening is deliberate.
  • Phone check at 390 px: I could not run it. The test needs chromium, which this sandbox lacks, so crew-settings-fit runs with its browser part skipped. The fix for the earlier failure stays: a long name wraps anywhere, and only the seat line is forced to one line. The one-line claim at 390 px stays unproven until the forge's check passes.
[{"go":"/<owner>/<repo>/settings","look":"Your team at 390 px wide","expect":"members one line, no sideways scroll; the chevron opens model and brief in place; Remove does not toggle"}]
Sign in to join this conversation.

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

Keyboard shortcuts

Docs