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

A waiting person has one button, Let in, and a person stopped by a page can Ask for Host or Build #18578

opened this

Its check is running, 13m so far

People now has one Let in button for anyone who waits, and a person stopped for lack of Host or Build can ask for it. I ran the touched tests and the repository's gate rules. They pass, and the gate was clean when I pushed.

Notes · 22 files · +670 −19

opened this

People now has one Let in button for anyone who waits, and a person stopped for lack of Host or Build can ask for it. I ran the touched tests and the repository's gate rules. They pass, and the gate was clean when I pushed. I did not run the whole suite, so the forge's full check is still to come.

What changed

  • Let in (src/actions/let_in.ts): it appears on the Waiting card and on the row of anyone whose request waits or whose email is unproven. Beside it is a select for the bundle: Use, Build, or Host when the forge offers a machine.
    • It proves the account, lets in anyone who asked, and applies the bundle. It sends no mail, so it works with mail off.
    • The admin check is may("forge.administer"), as in takeAway.
    • Let in replaces Allow on the Waiting card. Decline stays there.
    • The Host choice is the first online machine with 3 containers and 2048 MB, not something you type in.
  • Ask for Build / Ask for Host: I added two new asks, build and host, to the existing ask list (WANTS in src/actions/blocked_words.ts).
    • The guest "make it yours" page now offers Ask for Build, replacing the old membership ask there.
    • Guests with no Host grant see Ask for Host on /settings, but only when the forge offers a machine.
  • Asks on People (src/web/let_in_card.ts): each ask is one row under Asks with Approve and Decline.
    • Approve applies the bundle and is audited as ask.approved. For Host it uses the same default machine and caps as Let in.
    • Decline deletes the row and is audited as ask.declined.
    • Let in is audited as account.let_in.
    • An ask grants nothing, and only an administrator can answer it.
  • Terminal: on the People screen, l lets someone in, a approves an ask and d declines one. A line above the list names who is asking.

Tests

  • test/let-in.test.ts and test/people-let-in-door.test.ts cover each case, including Let in working with mail off.
  • test/guest-contribute.test.ts changed. The assertion value="membership is now value="build , because that page's ask is renamed.
  • The gate flags overlap between my new test setup and other tests' helpers, which I left as is.

Reused: allowRequest, markVerified, setMember, parseHost, hostMachines, askAdmin, waitingAdminAsks, answerAdminAsk, the People page's flashOrJson redraw, and the invite form's select field.

Not done

  • Host is not picked per person at Approve. It always uses the defaults above.
  • Declining does not tell the asker. Their ask is simply gone.
  • I added no new screen or doc file. The commit carries a No door: line explaining that I extended src/tui/screens/people.ts and docs/features/people.md instead.

Try it as an admin on /settings/people with a waiting or unproven person. As a guest, press Ask for Build on an app's make-it-yours page, then Approve it on People.

🤖 Generated with Claude Code

Closes #18477

commented

People now has one Let in button for anyone who waits, and a person stopped for lack of Host or Build can ask for it. I ran the touched tests and the repository's gate rules. They pass, and the gate was clean when I pushed. I did not run the whole suite, so the forge's full check is still to come.

What changed

  • Let in (src/actions/let_in.ts): it appears on the Waiting card and on the row of anyone whose request waits or whose email is unproven. Beside it is a select for the bundle: Use, Build, or Host when the forge offers a machine.
    • It proves the account, lets in anyone who asked, and applies the bundle. It sends no mail, so it works with mail off.
    • The admin check is may("forge.administer"), as in takeAway.
    • Let in replaces Allow on the Waiting card. Decline stays there.
    • The Host choice is the first online machine with 3 containers and 2048 MB, not something you type in.
  • Ask for Build / Ask for Host: I added two new asks, build and host, to the existing ask list (WANTS in src/actions/blocked_words.ts).
    • The guest "make it yours" page now offers Ask for Build, replacing the old membership ask there.
    • Guests with no Host grant see Ask for Host on /settings, but only when the forge offers a machine.
  • Asks on People (src/web/let_in_card.ts): each ask is one row under Asks with Approve and Decline.
    • Approve applies the bundle and is audited as ask.approved. For Host it uses the same default machine and caps as Let in.
    • Decline deletes the row and is audited as ask.declined.
    • Let in is audited as account.let_in.
    • An ask grants nothing, and only an administrator can answer it.
  • Terminal: on the People screen, l lets someone in, a approves an ask and d declines one. A line above the list names who is asking.

Tests

  • test/let-in.test.ts and test/people-let-in-door.test.ts cover each case, including Let in working with mail off.
  • test/guest-contribute.test.ts changed. The assertion value="membership is now value="build , because that page's ask is renamed.
  • The gate flags overlap between my new test setup and other tests' helpers, which I left as is.

Reused: allowRequest, markVerified, setMember, parseHost, hostMachines, askAdmin, waitingAdminAsks, answerAdminAsk, the People page's flashOrJson redraw, and the invite form's select field.

Not done

  • Host is not picked per person at Approve. It always uses the defaults above.
  • Declining does not tell the asker. Their ask is simply gone.
  • I added no new screen or doc file. The commit carries a No door: line explaining that I extended src/tui/screens/people.ts and docs/features/people.md instead.

Try it as an admin on /settings/people with a waiting or unproven person. As a guest, press Ask for Build on an app's make-it-yours page, then Approve it on People.

🤖 Generated with Claude Code

Sign in to join this conversation.

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

Keyboard shortcuts

Docs