Skip to content

five-on-it / apps/client/src/ui/AdminPage

apps/client/src/ui/AdminPage ​

The admins' page (?admin, one of the game pages), a dashboard in sections an index at its top jumps between. The overview: the model's budget (the month spent of its cap, today's budget spent and held by creations running, the days left, whether briefs are taken and when again once it is spent) and the creations under way; Make me unlimited (the signed-in admin's own account without limits, for testing; again to take it back). The platform's settings (AdminSettings.tsx: every spending limit and cap, each with its default and an overridden mark with its reset, saved with a note). Accounts: one found by its id or its name (#admin-search; any id typed in whole, even one the platform has not seen), its limits a day beside the defaults and what it used today, the form that sets its override (Unlimited: no quota, the budget skipped, the most a creation may spend and build; or builds, rooms and creations a day, an empty field keeping the default, 0 blocking; what one creation may spend in dollars and the builds it may run; exempt from the day's budget; until a date; a note) with Save and Reset, and its conduct (RespectParts.tsx' AdminConduct); every override set. The platform's creations (every one waiting or running, whoever's, with its owner, its model, its state and what it spent, Cancel for any after a confirmation; the last ones over), asked again while one is under way. The audit log of the changes of limits and of the settings (who, when, the account or the platform, what changed, the note). Anyone but an admin (/me says admin) is told the page is for admins. The ids are the end-to-end tests' contract.

Interfaces ​

Functions ​