Repository navigation
Description
🤖 Kit for jatmn
Problem
Admin → Database Usage (prod, 2026-11-12) is a wall of text. Each database card (Core, Shared guild) is a long vertical list of 20+ label/value rows (Database ID, Role, Availability, Allocated, Pages, Reusable free pages, Limit used, Headroom, Application thresholds, Operating state, Measured, Last successful sample, Measurement source, Measurement capability, Provider reported bytes, API growth guard, API startup, Bot growth guard, Capture, Snapshot budget, Snapshot footprint estimate, …). Dustin can't tell at a glance whether anything is wrong.
Example values from the screenshot: Core 0.48 MB allocated (118 × 4096 pages, 20 reusable), 0.05% of 1,000 MB; Shared guild 9.63 MB (2351 pages, 24 reusable), 0.96% of 1,000 MB, snapshot footprint 0.38 MB of a 400 MB budget. Thresholds: pressure 700 MB · capture pause 800 MB · growth stop 900 MB · hard limit 1,000 MB.
Wanted
Consolidate the page and use graphs and other visuals so the state reads at a glance:
- One summary row/card per database with a single health badge (OK / pressure / paused / stopped) derived from the operating state.
- A usage bar or gauge per database from 0 to 1,000 MB with the pressure (700), capture pause (800), growth stop (900) and hard limit (1,000) marks drawn on it, and allocated usage filled in.
- A small bar or gauge for snapshot footprint against the snapshot budget (shared guild).
- Page composition visual (used vs reusable free pages).
- If usage history is available, a small trend sparkline per database; otherwise leave room for it.
- Collapse the diagnostic/provenance fields (measurement source, capability, provider reported bytes, growth guards, API startup, capture, database ID) into an expandable "Details" section per database, with unknowns shown as one muted line instead of many rows.
- Freshness (Measured / Last successful sample) as one small timestamp chip, not two rows.
Acceptance
- Without expanding anything, a reader can see each database's size, % of limit, distance to the next threshold and health state.
- All existing information is still reachable (in Details); unknown measurements are still not shown as free capacity.
- Matches the dense style of the feat(webui): add icons to the dashboard cards and setup links #608/feat(webui): icons for dashboard cards and setup links #610 dashboard and the feat(webui): redesign the Analytics page so it is dense and informative #587 Analytics work; accessible contrast and text alternatives for the charts.
Requested by Dustin in Dev Live, 2026-11-12. Not started; queued for next session.
Activity
[-]feat(webui): consolidate the Database Usage page into an at-a-glance view with graphs[/-][+]feat(webui): move Database Usage to the Owners section of the main web UI and make it an at-a-glance view with graphs[/+]jatmn commentedon Nov 13, 2026
🤖 Kit for jatmn
Scope update from Dustin (Dev Live, 2026-11-12 6:20 PM PT): the administrator web UI (jmodguard-admin) is for update processing only. Database Usage, and the Analytics section next to it, were supposed to live under the Owners section of the normal web UI.
This issue now covers:
The Analytics move is tracked on #587.
jatmn commentedon Nov 13, 2026
🤖 Kit for jatmn
Correction: the admin web UI's Analytics section (the Analytics button next to Database Usage) is in this issue's scope too. Move it into Owners in the normal web UI, alongside Database Usage. #587 is a separate issue: it covers the per-server community Analytics page, which is already in the normal web UI.