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

A test pins Settings › Crew: only the repository's admin changes its crew, and a refused change leaves it as it was #6854

shipped production is serving it opened this has it
opened this

src/web/pages/crew-settings.ts adds, removes and re-roles agents and saves crew subscriptions; no test imports it.

Done:

  • [ ] test/crew-settings-doors.test.ts: the admin adds an agent, sets its role, saves subscriptions and removes it, each landing back on #crew with a flash.
  • [ ] A signed-in non-admin and a guest posting each of the four forms get the not-found page and the crew, roles and subscriptions are unchanged.
  • [ ] Adding a person (not an agent) or an unknown name is refused with a sentence, nothing written.

If an existing test already pins one of these, extend it instead of repeating it.

Files: a test only.

Before pushing: bun x tsc --noEmit and the tests you add or touch; bun scripts/design-lint.ts if src/web/ changes. Small and single-purpose; tests never read the wall clock — pass now in.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs