Repository navigation
feat(webui): Sentinel Fleet Workbench shell and Bento Command Center (PR 1/2) - #1118
Conversation
There was a problem hiding this comment.
Important
The server rail can leave users on Fleet or push navigation down the mobile page, and Command Center can display another guild’s database usage.
Approach
The role-aware hubs reuse the existing tab permissions, and Command Center reuses the analytics and configuration APIs. The rail needs a server-workspace destination, and the database metric needs to follow the selected server’s storage placement.
Reviewed changes
- Workspace shell. The telemetry ribbon, server and Fleet rail, and contextual hub navigation replace the sidebar. The sign-in page and shared badges get updated styling.
- Command Center. The dashboard gains enforcement telemetry, inline shield modes, and an owner-only infrastructure strip. Analytics adds hidden-tab deferral and preview cache bypass.
- Regression checks. State and Firefox layout tests cover the updated navigation and dashboard. GitHub’s frontend check passed, and 42 local contrast and warmup tests passed. The local screen-reader and browser checks require the WebUI build artifacts, which were missing from this checkout.
Non-blocking
- Infrastructure samples appear current after they go stale. The strip reads once on mount and continues showing the numbers without a timestamp or stale indicator, even when the API already marks a retained sample stale. Show the sample’s freshness using the existing resource and database status fields. Infrastructure reads, resource freshness check, database stale status
- The ribbon counts disabled rules as dry-run. Switching an enabled dry-run shield to Off preserves its
dry_runsetting, so the ribbon still counts it as dry while Active Shields shows Off. Count only shields whose effective mode is dry-run. Ribbon count, quick mode state
gpt-6.2-sol | 𝕏
…ment, and freshness
There was a problem hiding this comment.
Important
Command Center can still show the wrong database on deployments with multiple shared stores.
Reviewed changes
Reviewed 83a307c against 9529e33. The WebUI build and four focused tests passed, including the Firefox layout test. GitHub’s frontend check also passed.
- Restored server navigation. Server rail clicks from Fleet and owner pages open the selected server’s workspace, including when it was already selected.
- Fixed the mobile rail. The mobile overrides now keep the server icons in one horizontal row.
- Updated telemetry. The ribbon uses effective shield modes, and the owner strip uses database policy, resource scaling, and sample freshness fields.
Non-blocking
- An unmeasured database triggers “Stale sample.” If the first probe fails, the API returns an unavailable row with no prior measurement. Reserve the stale badge for retained samples and let the database row show “Unavailable” for a failed first probe. Badge condition
gpt-6.2-sol | 𝕏
…e for retained samples, and include onboarding expected state
There was a problem hiding this comment.
ℹ️ No blocking issues. The fleet peak can look complete when some stores have no measurement.
Reviewed changes
Reviewed 83a307c to 2213467. Syntax and whitespace checks passed, along with focused source probes for database selection and onboarding quick switches. The frontend CI check passed.
- Replaced inferred guild placement with a fleet fallback. Command Center can select a store by placement ID when supplied. The current guild config response omits both placement fields, so the live UI uses the fleet fallback. Guild config response
- Reserved the stale badge for retained samples. The smoke checks distinguish an unavailable first sample from a retained stale measurement, and the expanded state test covers both cases.
- Updated onboarding trap quick switches. They send the previously loaded rule as
expectedand route Settings-only users to the editor when enabling live role removal requires Manage Server access.
Non-blocking
- The fleet peak can understate database usage after a failed probe. When one store has no sample, the calculation drops that store and still labels the remaining maximum “Fleet DB peak.” If the unmeasured store is the fullest, owners see a lower figure with no indication that fleet coverage is partial. Label the value “Peak among measured stores” when coverage is incomplete. Fleet peak selection
gpt-6.2-sol | 𝕏

Summary
PR 1 of 2 modernizing the jModGuard WebUI into the Sentinel Fleet Workbench (Option A + Option E hybrid) while carrying over jModGuard's existing Navy Dark and Ice-Blue Light brand tokens and WCAG AA contrast guarantees.
What changed
frontend/app.js,frontend/style.css,frontend/controls.css):.sf-ribbon) showing live workspace status, active server prefix, enabled/dry-run shield counts, enabled slash commands, routed log channels, and owner quick-jumps toBot ResourcesandDatabase Usage..sf-rail) for 1-click guild switching + an owner/system-admin Fleet shortcut, paired with 4 primary Workspace Hub pills (Command Center,Analytics,Configuration,Records, plusFleet & Accesswhen authorized) and a contextual#tabssub-pill bar.#guild-select(ServerPicker) inline in the header, role-based access control, preview mode read-only enforcement, and SVG-only iconography (frontend/icons.js).color-mixfills), card elevation, and the Discord Sign-In landing view while keeping all:root/:root[data-theme="dark"]color tokens synchronized withcrates/api/src/web/legal/style.css.tabDashboard):useAnalyticsSummarywith preview cache bypass and hidden-tab deferral) + Active Shields quick-control matrix with inlineOff / Dry / Liverule toggles (PUT /api/guilds/{id}/rules/{rule_id}using capturedenrollment_idand existingsetSpamRuleMode/applyConfigPatchpaths) + an owner-only Bot Infrastructure & Fleet Health strip (/api/database-usage&/api/owner/resources?range=24h, never rendered or requested for non-owners or previews).tabEventsagainst missingstate.config.event_typesand clearedanalyticsCache/ownerInfraCacheon logout and auth loss.scripts/frontend-state-test.mjs):Off / Dry / Liveshield controls, owner infrastructure strip isolation, and server/fleet rail switching.Validation
npm run build --prefix tools/webui— PASSbash tools/eslint-web-selftest.sh— PASSnode --test scripts/frontend-contrast-test.mjs scripts/frontend-sr-only-test.mjs scripts/frontend-warmup-test.mjs scripts/package-webui-test.mjs scripts/administration-state-test.mjs— 88/88 PASSnode --test scripts/frontend-state-test.mjs— 617/617 PASS (includes real headless Firefox BiDi desktop/mobile/font-scale layout suite; simulated API stub server)git diff --check— cleanStack
Discord Preview↔Global Diff) + consolidated Records hubSummary by Sourcery
Modernize the WebUI shell and dashboard into a Sentinel Fleet Workbench with role-aware navigation and a Bento Command Center.
New Features:
Bug Fixes:
Enhancements:
Tests: