From 6167925ee03be0dafcd14cc9d8dc1592f0075598 Mon Sep 17 00:00:00 2001 From: Devin Zuczek Date: Fri, 2 Oct 2026 13:38:13 -0400 Subject: [PATCH] [www] enable plus for a user --- apps/www/src/client/App.tsx | 23 ++++++++++++++ apps/www/src/staff.ts | 26 ++++++++++++++++ apps/www/src/test/integration/api.test.ts | 37 +++++++++++++++++++++-- apps/www/src/www.app.ts | 3 ++ 4 files changed, 87 insertions(+), 2 deletions(-) diff --git a/apps/www/src/client/App.tsx b/apps/www/src/client/App.tsx index 9df26bd..521d9f8 100644 --- a/apps/www/src/client/App.tsx +++ b/apps/www/src/client/App.tsx @@ -1291,6 +1291,7 @@ function StaffPlayerActions({ account, navigate }: { account: PublicAccount; nav const itemGift = useAction() const usernameChange = useAction() const clearPassword = useAction() + const grantPlus = useAction() const base = `/api/staff/players/${account.accountId}` return ( @@ -1458,6 +1459,26 @@ function StaffPlayerActions({ account, navigate }: { account: PublicAccount; nav > {usernameChange.pending ? 'Adding…' : 'Add username change'} + {/* Developer-only, like the gifts; www refuses it to moderators. */} + {isDeveloper() && ( + + )} {confirmingClear ? ( <>