From 9902de39a4bb85c212abf72848be695304d69df0 Mon Sep 17 00:00:00 2001 From: Devin Zuczek Date: Wed, 14 Oct 2026 10:42:36 -0400 Subject: [PATCH] [www] reset dorm button for 2023 --- apps/www/src/client/App.tsx | 44 ++++++++++++ apps/www/src/staff.ts | 20 ++++++ apps/www/src/test/integration/api.test.ts | 84 ++++++++++++++++++++++- apps/www/src/www.app.ts | 3 + packages/domain/src/rooms-db.ts | 58 ++++++++++++++++ 5 files changed, 208 insertions(+), 1 deletion(-) diff --git a/apps/www/src/client/App.tsx b/apps/www/src/client/App.tsx index 146bdba..96a0526 100644 --- a/apps/www/src/client/App.tsx +++ b/apps/www/src/client/App.tsx @@ -1397,6 +1397,7 @@ function StaffPlayerActions({ account, navigate }: { account: PublicAccount; nav // One message for every box sent from this card; it stays put between sends. const [message, setMessage] = useState('') const [confirmingClear, setConfirmingClear] = useState(false) + const [confirmingDorm, setConfirmingDorm] = useState(false) const [itemId, setItemId] = useState('') const [xp, setXp] = useState('') const gift = useAction() @@ -1404,6 +1405,7 @@ function StaffPlayerActions({ account, navigate }: { account: PublicAccount; nav const itemGift = useAction() const usernameChange = useAction() const clearPassword = useAction() + const clearDorm = useAction() const grantPlus = useAction() const base = `/api/staff/players/${account.accountId}` @@ -1626,6 +1628,41 @@ function StaffPlayerActions({ account, navigate }: { account: PublicAccount; nav Clear password )} + {confirmingDorm ? ( + <> + + + + ) : ( + + )}