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

On a repository's crew page, adding a member to a slot redraws in place without losing the scroll, and a member is one line with its description on demand #18627

opened this

Its check is queued, place 5 of 7

The crew page's remaining forms now act in place, and their seven entries are gone from test/in-place-offenders.json. The two crew-page tests (test/crew-in-place.test.ts and test/in-place-rule.test.ts) pass.

Notes · 11 files · +80 −38

opened this

The crew page's remaining forms now act in place, and their seven entries are gone from test/in-place-offenders.json. The two crew-page tests (test/crew-in-place.test.ts and test/in-place-rule.test.ts) pass. So do the first-view budget, duplicate-import, doorless, route-marks and unused-exports checks, and tsc --noEmit is clean. I did not run the full suite or bun scripts/fast.ts; it named 4374 files and I stopped it at the time limit.

What changed

  • About (/settings) and On its own (/settings/autonomy) save in place. The autonomy answer also redraws the crew line.
  • Budgets and the model key save in place, and the key field is wiped after a save.
  • The metered-fallback switch, the cap and Undo save in place. They redraw the whole fallback card through a new admin-only GET /settings/crew/fallback/card, so the switch label and the cap meter stay true.
  • A JSON ask gets {ok, flash, redraw}, or a 422 with the words. Without script the same POST still redirects, and the same-origin checks are unchanged.
  • The new tests in test/crew-in-place.test.ts cover About and autonomy answering JSON, the 422, the redirect without script, a cross-origin refusal and the markup. They also cover the forge-wide budgets, cap and key forms refusing a bad value with JSON, and the fallback card being refused to non-admins.

Also changed

  • The offender list was already red on main, because people.ts, people_cards.ts and others had moved. I renamed those entries (three removed, six added) so in-place-rule.test.ts passes.
  • The commit says No door: because the forms and routes are the same and only JSON asks answer differently.

Not done

  • The key save still leaves the page's surrounding key text as drawn until a reload. I did not add a fragment for it.
  • The gate notes fallbackFragment looks like originReachFragment. It is the same small admin-fragment pattern, so I left both as they are.

Try it: sign in as an admin, open /settings/crew and a repository's /settings. Change the autonomy mode, the budgets or the fallback switch. The page should stay at the same scroll position and say the result next to the form.

[
 {"go":"/alice/yard/settings","look":"About and On its own cards","expect":"Saving either shows its words beside the form with no page jump; the crew line above updates after autonomy."},
 {"go":"/settings/crew","look":"Budgets, Metered fallback","expect":"Turning the fallback on or off, setting the cap, and Undo redraw the fallback card in place; a bad cap is said beside the form."}
]

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

🤖 Generated with Claude Code

Closes #18541

5 earlier comments
commented

The crew page's remaining forms now act in place, and their seven entries are gone from test/in-place-offenders.json. The two crew-page tests (test/crew-in-place.test.ts and test/in-place-rule.test.ts) pass. So do the first-view budget, duplicate-import, doorless, route-marks and unused-exports checks, and tsc --noEmit is clean. I did not run the full suite or bun scripts/fast.ts; it named 4374 files and I stopped it at the time limit.

What changed

  • About (/settings) and On its own (/settings/autonomy) save in place. The autonomy answer also redraws the crew line.
  • Budgets and the model key save in place, and the key field is wiped after a save.
  • The metered-fallback switch, the cap and Undo save in place. They redraw the whole fallback card through a new admin-only GET /settings/crew/fallback/card, so the switch label and the cap meter stay true.
  • A JSON ask gets {ok, flash, redraw}, or a 422 with the words. Without script the same POST still redirects, and the same-origin checks are unchanged.
  • The new tests in test/crew-in-place.test.ts cover About and autonomy answering JSON, the 422, the redirect without script, a cross-origin refusal and the markup. They also cover the forge-wide budgets, cap and key forms refusing a bad value with JSON, and the fallback card being refused to non-admins.

Also changed

  • The offender list was already red on main, because people.ts, people_cards.ts and others had moved. I renamed those entries (three removed, six added) so in-place-rule.test.ts passes.
  • The commit says No door: because the forms and routes are the same and only JSON asks answer differently.

Not done

  • The key save still leaves the page's surrounding key text as drawn until a reload. I did not add a fragment for it.
  • The gate notes fallbackFragment looks like originReachFragment. It is the same small admin-fragment pattern, so I left both as they are.

Try it: sign in as an admin, open /settings/crew and a repository's /settings. Change the autonomy mode, the budgets or the fallback switch. The page should stay at the same scroll position and say the result next to the form.

[
 {"go":"/alice/yard/settings","look":"About and On its own cards","expect":"Saving either shows its words beside the form with no page jump; the crew line above updates after autonomy."},
 {"go":"/settings/crew","look":"Budgets, Metered fallback","expect":"Turning the fallback on or off, setting the cap, and Undo redraw the fallback card in place; a bad cap is said beside the form."}
]

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

🤖 Generated with Claude Code

commented

<!-- look-pages 931906979ef2 --> Look pages for 9319069, from the gate:

  • look pages (named): this pull changes src/web/pages/settings.ts, src/web/studio/crew.ts, src/web/studio/crew_budgets.ts; a commit names /settings/crew
commented

Both failing tests now pass locally, and I've pushed the fix.

  • Lazy route list: src/http/lazy_lists.ts was stale because the new GET /settings/crew/fallback/card route wasn't in it. I regenerated it with bun scripts/lazy-lists.ts and committed it.
  • Design audit: The same route is a fragment the metered-fallback form fetches, not a page. The audit test counted it as a page with no entry. I added it to the non-page list in test/design-audit.test.ts. The audit doc is unchanged, and the test was wrong on this point, not the code.

I merged the current origin/main before pushing. bun x tsc --noEmit is clean. I ran only test/design-audit.test.ts and the lazy-list generator, not the full suite. The lazy_lists.ts staleness test wasn't re-run on its own; I only regenerated the file. The forge's check will run the rest.

commented

I merged main into the branch and pushed. The one conflict was in src/web/pages/settings.ts, in the autonomy save. I kept this branch's version, which answers JSON and redraws the crew line. The main side's version only differed in a typing detail.

One test fails in my sandbox, and I haven't confirmed it also fails in the forge check. In test/crew-in-place.test.ts, the "forge-wide crew forms … fallback card is an admin's fragment" test expects a signed-in non-admin to get 404 on /settings/crew/fallback/card. In the sandbox that user gets a 403 on every /settings/crew… page, and the card handler is never reached. It fails the same way on my last commit from before the merge, which the forge check passed. So the merge didn't cause it. I'd treat it as a sandbox difference (my guess), but I haven't confirmed that, so watch what the forge check says on this push.

What I ran:

  • bun x tsc --noEmit is clean.
  • bun scripts/lazy-lists.ts regenerated nothing new.
  • test/design-audit.test.ts, test/in-place-rule.test.ts, test/in-place-fragments.test.ts and test/boot-lazy.test.ts pass (31 tests).
  • I did not run the broader set scripts/fast.ts picks. It named 4381 files, far too many here.
  • bun scripts/gate.ts --fix ran without rewrapping anything. It flagged fallbackFragment as the same shape as originReachFragment; I left that.
commented

<!-- look-pages 1aa0432ccba3 --> Look pages for 1aa0432, from the gate:

  • look pages (named): this pull changes src/web/pages/settings.ts, src/web/studio/crew.ts, src/web/studio/crew_budgets.ts; a commit names /settings/crew
commented

I fixed the one failing check, the missing route mark, and pushed. I haven't seen the forge's check verdict on the new push. I ran tsc and a few suites locally, but not the whole suite.

  • Route mark: GET /settings/crew/fallback/card had no admin or open mark, so "every route is marked admin or open" failed. I marked it admin in src/http/marks/settings.json, next to its sibling routes.
  • Test change: with the mark, a non-admin now gets the mark's kind 403 on that card instead of a bare 404. The test in test/crew-in-place.test.ts that expected 404 was out of date, so I changed it to 403.
  • The four named tests: the audit-entry, duplicate-import and first-view-budget tests, including the stamped-release one, all pass locally. I ran the audit and budget tests directly and the duplicate-import rule through the gate.
  • Look page: the commits now carry Looks: /settings/crew.
  • Duplicate-function note: the gate says fallbackFragment matches originReachFragment. I left both as they are, because each asks a different access question (admin vs. signed-in) and renders a different block. The gate lists this as a note, not a failure.

Locally, bun x tsc --noEmit printed nothing. The route-marks, crew-in-place, design-audit and duplicate-import suites pass. bun scripts/fast.ts said the change reaches too many files to name, so I didn't run those.

The comment-width note is untouched. The gate says the nightly rewrap handles those lines on main.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs