Repository navigation
feat(webui): colorful, meaningful icons for row actions and the sidebar menu - #602
Conversation
|
@pullfrog review |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes against #588 and its scope clarifications, including all eight changed files.
- Shared icons: Centralizes SVG paths and semantic mappings, including the green user-check Unban icon.
- Actions and navigation: Converts row actions, sidebar items, and Administration controls while preserving labels, confirmations, permissions, and shared busy handling.
- Styling and regression coverage: Adds independent Light/Dark icon palettes, compact targets, focus/hover styles, contrast checks, and page-level tests.
- Validation:
bash scripts/ci-preflight.sh --only frontendpassed, including all 410 tests and the ESLint gate. Sampled the built UI in both themes with local API fixtures and checked computed icon sizing, colors, and focus styling; no live Discord or Bunny testing. Full per-page screenshot acceptance remains unverified.
gpt-6.1-sol | 𝕏
…ar menu Every row and record action on the report pages is now a compact 24px icon button from one shared SVG set (frontend/icons.js), drawn in a fixed color by meaning: ban and delete red, unban (a person with a check, no longer a padlock) green, edit and view blue, warn and timeout amber, kick orange, copy and cancel gray. Members, Cases, Badwords, Settings access roles, command steps and Bot servers lose their remaining text-only row actions; aria-label/title, confirmations, owner-only rows and the ActionButton busy path are unchanged. Every sidebar item and Administration page link shows its icon beside its label, on a small tile so it stays readable on the inverted active row. The old glyph nav icons and the Administration glyph badges are replaced with SVGs; the Web UI no longer uses emoji or glyph icons. The --icon-* palette is separate from the daisyUI theme tokens, with a light and a dark shade per meaning that keeps at least 3:1 on every surface icons sit on. New contrast, palette, icon-map, per-page coverage, sidebar, no-glyph and target-size tests. Closes #588
189ee58 to
3c0831b
Compare
|
@pullfrog review |
1 similar comment
|
@pullfrog review |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes across all eight files against #588 and its scope clarifications.
- Shared icon system: Centralizes SVG paths and intent mappings, including the green user-check Unban icon.
- Actions and navigation: Converts row actions, sidebar items, and Administration controls while preserving accessible names, confirmations, permissions, and shared busy handling.
- Palette and coverage: Adds independent Light/Dark colors, compact targets, hover/focus styling, documentation, and regression tests.
- Validation:
bash scripts/ci-preflight.sh --only frontendpassed with 427 tests, build, and ESLint checks. Browser spot checks of Bans, Cases, and navigation confirmed theme colors and 24px action targets, including a 390px viewport, using local API fixtures only. Full per-page screenshot acceptance remains unverified; no live Discord or Bunny testing. GitHub’sCI passedcheck is successful.
gpt-6.1-sol | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes across all eight changed files against #588 and its scope clarifications.
- Shared icons: Centralizes SVG paths and intent mappings, replacing the Unban padlock with a green user-check.
- Actions and navigation: Converts row actions, sidebar items, and Administration controls while preserving accessible names, permissions, confirmations, and shared busy handling.
- Palette and coverage: Adds independent Light/Dark colors, compact targets, hover/focus styling, documentation, and regression tests.
- Validation:
bash scripts/ci-preflight.sh --only frontendpassed all 427 tests and the ESLint/audit gates. Sampled the built Bans page and sidebar in both themes with local API fixtures, confirming 24px action targets and keyboard focus styling. Full per-page screenshot acceptance and live provider behavior were not verified.
gpt-6.1-sol | 𝕏
Administration (crown, blue), View as… (eye, blue), Exit preview (back arrow, gray) and Sign out (log-out, gray) now show aria-hidden SVG icons from the shared map on the sidebar icon tile, with their labels unchanged. Kick, timeout and warn had no page using them, so their icons, the orange kick color and their docs rows are gone; they come back when a page needs them. The Administration boot-mismatch badge, the one place that borrowed the warn icon, now uses the attention icon. Remove the dead #tabs button span rules (nav items no longer contain a span) and the .btn.btn-icon svg size rule that duplicated .btn-icon svg. Refs #588
jatmn
left a comment
There was a problem hiding this comment.
🤖 PR Reviewer (jatmn's review agent)
🟢 Thanks for the contribution. I do not see any actionable code issues from my review.
Merge readiness
- #588 screenshots: the acceptance asks that "Screenshots of each page in both themes are attached to the PR." The description says none are attached yet. That isn't a code issue, but
Closes #588is incomplete until screenshots are added or that bullet is waived. - Still a draft.
- CI passed, frontend checks, CodeQL and Pullfrog succeeded on
3c0831b. - Conventional
feat(webui)title.
#588 acceptance on 3c0831b
- Colored, meaningful row-action icons: met.
frontend/icons.jsmaps every action to an icon and intent, and the state tests cover the audited pages. - Unban no longer a lock: met (
unban→user-check, green; tests assert no lock path). - Screenshots: not yet (above).
- Frontend state and contrast tests pass: met.
frontend-state-test.mjs345 passed (2 skipped);frontend-contrast-test.mjs18 passed.
What I verified
- Icon move: every icon name referenced on this head (action map, sidebar map, direct
name:uses and administration badges, 34 in total) resolves inICON_PATHS, so no existing icon goes blank.icons.jsis bundled intoapp.jsandadministration.js;index.htmlis unchanged. - Contrast: the new tests hold every
--icon-*shade to at least 3:1 on each surface icons sit on, in both themes. The lowest passing pairs are--icon-warningon the selected sidebar item in light (3.41:1) and--icon-kickon the selected sidebar item in dark (3.7:1). The palette is independent of theme primary/secondary/accent, so switching themes only swaps shade, not meaning. - Accessibility:
IconButtonkeepsaria-labelandtitle, the focus ring and thevar(--target-min, 1.5rem)target; busy/disabled still go throughActionButton; confirm dialogs and owner-only gates are unchanged. - Meaning: the map matches the PR table (ban/remove/leave red, kick orange, unban/approve green, and so on). Leave uses the
log-outdoor-and-arrow glyph, distinct from kick'sdoor. - Third-party source: the SVG paths are hand-authored in
icons.js, with no new dependency.
External reviews (on 3c0831b)
- Pullfrog: three passes, no issues; also noted the missing screenshots.
- Sourcery: summary in the description only.
- CodeQL: success, no comments.
Backlog (not blocking)
kick,timeoutandwarnicons are mapped but not wired to row actions yet (acknowledged in the description).
|
@pullfrog review |
1 similar comment
|
@pullfrog review |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes across all eight files against #588 and its scope clarifications.
- Shared icons: Centralizes SVG paths and semantic mappings, including the green user-check Unban icon.
- Actions and navigation: Converts row actions, sidebar items and owner controls while preserving accessible names, confirmations, permission gates and busy handling.
- Palette and coverage: Adds independent Light/Dark colors, compact targets, hover/focus styling, documentation and regression tests.
- Validation:
bash scripts/ci-preflight.sh --only frontendpassed all 428 tests plus build, ESLint and audit gates. Browser spot checks confirmed 24px Unban targets and the action/sidebar colors in both themes using local API fixtures only. No live Discord or Bunny testing; screenshots are explicitly waived in the PR description. GitHub’sCI passedcheck is successful.
gpt-6.1-sol | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes across all eight files against #588 and its scope clarifications.
- Shared icons: Centralizes SVG paths and semantic mappings, including the green user-check Unban icon.
- Actions and navigation: Converts row actions, sidebar items and owner tools, and Administration controls while retaining accessible labels, permissions, confirmations, and busy handling.
- Palette and coverage: Adds independent Light/Dark colors, compact targets, hover/focus styling, documentation, and regression tests.
- Validation:
bash scripts/ci-preflight.sh --only frontendpassed all 428 tests and build/lint/audit gates. Chromium spot checks of the built Bans page and sidebar confirmed theme colors, 24px action targets, keyboard focus, and narrow-screen navigation using local API fixtures only. No live Discord/Bunny testing or full per-page visual acceptance was performed; GitHub’sCI passedcheck is successful.
gpt-6.1-sol | 𝕏
jatmn
left a comment
There was a problem hiding this comment.
🤖 PR Reviewer (jatmn's review agent)
🟢 Thanks for the contribution. I do not see any actionable code issues from my review.
Merge readiness
- Still a draft PR.
- #588 screenshots: waived in the PR Decisions section (Pullfrog on
6837870notes the same);Closes #588is fine with that waiver. - Checks on
683787047878233db9c67833b46791732cd9ebec:CI passed,Checks / frontend, CodeQL, Buildkite completion, and Pullfrog (includingpullfrog-approval) are green. Pullfrog filed two reviews on this head with no inline review comments. GitHub Copilot did not post a review on this PR. Sourcery appears only as the auto-generated summary in the PR description, not as a separate review thread.
Round 2 (6837870) — verified on head
- Removed kick / timeout / warn action icons and
--icon-kick: Nothing on head still references those icon keys, CSS vars, orACTION_ICONSentries in a way that would render a blank or undefined icon color. Moderation kick, timeout, and warn strings in rule editors and API payloads are unchanged and are not icon-map keys. Boot mismatch now usesbadge("Boot mismatch", "warn", "attention")— amber soft badge shell, redalert-circleicon — matching the PR Decisions note that unusedwarnicon paths were dropped. - Icon registry:
ICON_PATHSdefines 32 paths;ICON_INTENTSlists 7 intents with matching--icon-*variables. EveryACTION_ICONSandNAV_ICONSentry resolves; directIconuses such asexternal-linkresolve as well. - CSS cleanup: Tab buttons have been
Icon+ label text nodes (no inner<span>) since the first commit on this branch, so removing#tabs button spanrules does not drop styling anything still uses. Row icon sizing stays on.btn-icon svgat1rem. The sidebar tile rule is.sidebar svg.nav-icon { … background: var(--panel); }, covering tab icons and the owner footer controls that passclassName: "nav-icon". - Sidebar text buttons: Each decorative SVG has
aria-hidden="true"; visible names stay Administration, View as…, Exit preview, and Sign out; blue/gray intents pass the sidebar contrast suite in both themes. - Palette floor 8 → 7: Matches the real seven intent colors after removing kick orange — not a weakened gate.
- Tests vs
3c0831b: The new state testthe sidebar's own buttons show their colored SVG icons beside unchanged labelsdoes not exist on3c0831b. The contrast tile assertion now requires.sidebar svg.nav-icon; on3c0831bthe stylesheet still used#tabs svg.nav-icon, so that assertion fails for the right reason when the new test is run against the old head. - Docs:
docs/WEBUI.mdmatches the head maps (including sidebar text-button examples) and the seven-color palette rules.
Validation (this review)
npm run build --prefix tools/webuinode --test scripts/frontend-state-test.mjs— 346 passed, 2 skippednode --test scripts/frontend-contrast-test.mjs— 18 passednode --test scripts/administration-state-test.mjs— 46 passed
External reviews (on 6837870)
- Pullfrog: ✅ no new issues (two head reviews); no unresolved inline feedback.
- Sourcery: summary-only in the PR body.
- CodeQL: success, no review comments.
- Copilot: not requested / no review on head.
Backlog (not blocking this PR)
- Dashboard card icons and decorative → on dashboard setup links remain the acknowledged dashboard follow-up (glyph scan still excludes U+2192). Info-tip ⓘ is older chrome outside the round-2 diff.
- When row actions need kick, timeout, or warn icons, add them in that feature work — not by keeping unused paths in this PR.

🤖 Fixer (jatmn's agent)
Closes #588
Summary
Every row or record action on the report-style pages, and every item in the left sidebar menu, is now a colored SVG icon with a fixed meaning. Each meaning has its own color from a dedicated
--icon-*palette with a light and a dark shade, so switching themes never recolors an icon or changes what it means. Unban is now a green person-with-check icon instead of a padlock. The Web UI uses SVG icons only, never emoji.I kept what #582 got right:
aria-labelandtitleon every icon button, theActionButtonbusy and disabled path, the existing confirm dialogs and the owner-only handling.Changes
frontend/icons.js, new): one action → icon → intent map, and the existingIconcomponent moved here (same pattern ascharts.js).IconButtonstays inapp.js. I drew the paths myself and added no new dependency:AGENTS.mddoesn't allow committing third-party source such as copied Lucide paths, and an npm package would have meant lockfile, dependency-table and harness changes.frontend/style.css): seven--icon-*colors in one commented block appended near the end of the file, each with a light and a dark shade. They don't use the theme's primary, secondary or accent colors. Icon buttons have a visible hover state and focus ring and a minimum target of 24px, viavar(--target-min, 1.5rem).Pages audited and actions found
I left form-footer buttons (Save, Delete, Cancel, Set, Clear, Save ignores, Add note, Use global) and page toolbars (Refresh, First/Next page, Removed records) as text on purpose.
Sidebar menu
Every nav item gets an
aria-hiddenSVG icon. The label text is unchanged:The sidebar's own text buttons use the same map and the same icon tile, with their labels unchanged:
The Administration page nav gets Updates (circle with up arrow, blue), Database Usage (database, gray) and Analytics (bar chart, purple). Each icon sits on a small panel-colored tile, so it stays readable on the inverted highlight of the active item. The icons also show in the narrow scrolling menu on small screens.
docs/WEBUI.mddescribes the icon set, the palette and the rules.Validation
bash scripts/ci-preflight.shpassed (exit 0, no reruns) on the pushed head. The frontend suites inside it: state 348/0, contrast 18/0, warmup 13/0, package 3/0, administration 46/0.scripts/frontend-state-test.mjs: new "the sidebar's own buttons show their colored SVG icons beside unchanged labels" covers Administration, View as…, Sign out (owner) and Exit preview (preview tab): onearia-hiddenicon on the sidebar tile, its meaning color, and the label text unchanged. It fails on the previous head ("Administration has one icon"). The icon-map test no longer expects kick, timeout or warn.scripts/frontend-contrast-test.mjs: the tile check now targets.sidebar svg.nav-icon(fails on the previous head: rule missing), and the palette floor is seven colors now that the orange kick color is gone.--icon-*color as a fixed value, with one rule per meaning and the same hue in both themes. Icons never use theme primary, secondary or accent.#599 has merged
#599 (the #590 density pass) has merged, and this branch is rebased onto it. With that in place, I removed the dead
#tabs button spanrules (nav items no longer contain a span) and my duplicate.btn.btn-icon svgwidth, since.btn-icon svgalready sets it.Limitations
Decisions
Summary by Sourcery
Standardize the Web UI on meaningful, accessible SVG icons with fixed intent colors across row actions, navigation, and Administration controls.
New Features:
Bug Fixes:
Enhancements:
Documentation:
Tests: