Skip to content

feat(webui): move Database Usage to the Owners section of the main web UI and make it an at-a-glance view with graphs #613

Closed

Description

@jatmn

🤖 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

Requested by Dustin in Dev Live, 2026-11-12. Not started; queued for next session.

Activity

  1. added
    enhancement
    WebUI
    on Nov 13, 2026
  2. changed the title [-]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[/+] on Nov 13, 2026
  3. jatmn commented on Nov 13, 2026

    @jatmn
    OwnerAuthor

    🤖 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:

    1. Moving Database Usage out of the admin web UI into Owners in the main web UI, with the admin page link removed or redirected.
    2. The at-a-glance redesign with graphs described above, built in its new home.

    The Analytics move is tracked on #587.

  4. jatmn commented on Nov 13, 2026

    @jatmn
    OwnerAuthor

    🤖 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    WebUIenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions