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
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.
-
Reviews
No review yet.
-
Checks
working checking now deploy 91226c3
Check running · Check of 91226c3checked against main at e9eb675fast tier: running · full gate runs on land
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 intakeAway. - 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,
buildandhost, to the existing ask list (WANTSinsrc/actions/blocked_words.ts).- The guest "make it yours" page now offers Ask for Build, replacing the old
membershipask there. - Guests with no Host grant see Ask for Host on
/settings, but only when the forge offers a machine.
- The guest "make it yours" page now offers Ask for Build, replacing the old
- 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.
- Approve applies the bundle and is audited as
- Terminal: on the People screen,
llets someone in,aapproves an ask andddeclines one. A line above the list names who is asking.
Tests
test/let-in.test.tsandtest/people-let-in-door.test.tscover each case, including Let in working with mail off.test/guest-contribute.test.tschanged. The assertionvalue="membershipis nowvalue="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 extendedsrc/tui/screens/people.tsanddocs/features/people.mdinstead.
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
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
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.may("forge.administer"), as intakeAway.buildandhost, to the existing ask list (WANTSinsrc/actions/blocked_words.ts).membershipask there./settings, but only when the forge offers a machine.src/web/let_in_card.ts): each ask is one row under Asks with Approve and Decline.ask.approved. For Host it uses the same default machine and caps as Let in.ask.declined.account.let_in.llets someone in,aapproves an ask andddeclines one. A line above the list names who is asking.Tests
test/let-in.test.tsandtest/people-let-in-door.test.tscover each case, including Let in working with mail off.test/guest-contribute.test.tschanged. The assertionvalue="membershipis nowvalue="build, because that page's ask is renamed.Reused:
allowRequest,markVerified,setMember,parseHost,hostMachines,askAdmin,waitingAdminAsks,answerAdminAsk, the People page'sflashOrJsonredraw, and the invite form's select field.Not done
No door:line explaining that I extendedsrc/tui/screens/people.tsanddocs/features/people.mdinstead.Try it as an admin on
/settings/peoplewith 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