Skip to content

refactor(webui): replace daisy card stacks with Sentinel Paper cards - #1177

Merged
jatmn merged 2 commits into
mainfrom
refactor/sentinel-paper-cards-1133
Dec 4, 2026
Merged

jatmn merged 2 commits into
mainfrom
refactor/sentinel-paper-cards-1133

Conversation

@jatmn

@jatmn jatmn commented Dec 4, 2026 •

Copy link
Copy Markdown
Owner

Closes #1133

Summary

  • Standardizes WebUI cards on one shared primitive: Mantine Paper (withBorder: true) + .sf-card via SentinelCard / DraftCard in frontend/app.js and bordered Paper.sf-card in frontend/administration.js, replacing stacked card bg-base-100 card-border markup and migrating emptyPanel (hero bg-base-200 rounded-box) to .sf-empty-panel.
  • Retires unused .card*, .hero*, .bg-base-100, .bg-base-200, .rounded-box, and .text-warning CSS rules from frontend/controls.css and frontend/style.css without inventing new theme tokens or altering page layouts owned by fix(webui): apply redesign styling to remaining pages and settings dialogs #1123.
  • Updates WebUI packaging, contrast, administration, and state tests (scripts/package-webui-test.mjs, scripts/frontend-contrast-test.mjs, scripts/frontend-state-test.mjs, scripts/administration-state-test.mjs) to verify Sentinel Paper cards and reject emitted retired classes.

Validation

  • Reviewed SHA: 66fb19c52ca9a3612cc6327adc23053deb9caaac
  • bash scripts/ci-preflight.sh --only frontend — PASS
    • tools/webui install, audit (0 vulnerabilities), and build
    • tools/eslint install, audit (0 vulnerabilities), selftest, flake test (10/10)
    • scripts/frontend-state-test.mjs (636/636, JSDOM + real headless Firefox in Light/Dark)
    • scripts/frontend-contrast-test.mjs (43/43)
    • scripts/frontend-warmup-test.mjs (13/13)
    • scripts/frontend-sr-only-test.mjs (1/1)
    • scripts/package-webui-test.mjs (4/4)
    • scripts/administration-state-test.mjs (43/43)
  • git diff --check — PASS
  • Simulated boundaries: Node/JSDOM suites simulate DOM/API calls; headless Firefox tests in frontend-state-test.mjs exercise real browser rendering against the built dist/frontend/ bundle. Rust checks are covered by hosted CI.

Summary by Sourcery

Standardize WebUI cards and empty panels on the shared Sentinel Paper design and retire the corresponding DaisyUI styling.

Enhancements:

  • Standardize WebUI workspace and administration cards on bordered Sentinel Paper surfaces, including empty-state panels.
  • Remove obsolete DaisyUI card, hero, and theme utility styling while preserving table-wrapper rounding.

Tests:

  • Update WebUI packaging, contrast, workspace-state, and administration-state tests to verify Sentinel card styling and exclude retired classes.

@jatmn
jatmn marked this pull request as ready for review December 4, 2026 07:25
@sourcery-ai

sourcery-ai Bot commented Dec 4, 2026

Copy link
Copy Markdown

Sorry @jatmn, this account has used its review budget of 1,500,000 diff characters for the last 7 days.

You can request another review in 12 hours and 54 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Switching the shared table wrapper to Paper removes its visible keyboard focus indicator.

Approach The shared Mantine Paper surface fits #1133 and reuses the existing Sentinel theme tokens.

Reviewed changes

  • Workspace cards. Checked the shared card and draft wrappers, empty states, and native disclosures.
  • Administration and styling. Checked the migrated update cards, theme mappings, and removal of legacy CSS.
  • Tables and verification. Built the WebUI and ran 726 workspace, Administration, contrast, and packaging tests. Reproduced the table focus regression in Chromium in Light and Dark mode using the built app with a local API fixture.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.2-sol | 𝕏

Comment thread frontend/app.js Resolved

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

Reviewed 8db13eb since the previous review.

  • Restored keyboard focus. Added .table-scroll to the shared :focus-visible rule. In Chromium, pressing Tab onto the overflowing Cases table in the built WebUI showed the 2px focus ring in Light and Dark mode using a local API fixture.
  • Extended contrast coverage. Added the table wrapper to the shared focus-rule assertion. All 47 contrast and packaging tests passed.

Pullfrog  | View workflow run | Using gpt-6.2-sol | 𝕏

@jatmn
jatmn merged commit 2c0d63d into main Dec 4, 2026
18 checks passed
@jatmn
jatmn deleted the refactor/sentinel-paper-cards-1133 branch December 4, 2026 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(webui): replace daisy card stacks with Sentinel Paper cards

1 participant