Skip to content

Fix moderation workspace layout and editor usability - #88

Merged
jatmn merged 2 commits into
mainfrom
fix/workspace-ui-zW9zIKNv
Sep 22, 2026
Merged

jatmn merged 2 commits into
mainfrom
fix/workspace-ui-zW9zIKNv

Conversation

@jatmn

@jatmn jatmn commented Sep 22, 2026 •

Copy link
Copy Markdown
Owner

The UI migration left status badges attached to names, editors constrained by component defaults, and unrelated controls competing for space. This gives the existing daisyUI/Headless UI workspace explicit layout and hierarchy across the reported pages.

  • Dashboard: prominent getting-started actions, grouped statistics, and a separate moderation-count note.
  • Automod: distinct status/scope badges and a wider, responsive editor with labeled escalation fields.
  • Commands: separated names and metadata with calmer table rows.
  • Templates: paired full-width editing and preview areas with a clear save footer.
  • Log channels: labeled routing controls and a separate ignore section.

Existing save, scope, permissions, dirty-state protection, and queued-action behavior are preserved. No backend or dependency changes.

Validation: full bash scripts/ci-preflight.sh passed on the submitted tree, including Rust tests/builds/Clippy, frontend suites (86 state tests), policy checks and dual-process smoke. The two new UI regressions fail against the base and pass here. Browser fixtures cover all reported pages in light/dark at 1440px and 390px, plus standard/specialized rule and command dialogs with the actual Headless runtime; no horizontal overflow or browser errors. This is fixture-based validation, not a live Discord exercise. Cargo audit reported two existing advisories tolerated by the repository’s ordinary-PR policy; dependencies are unchanged.

Reviewed head: a7a97e7729c7de0ac57d45b9c10400183aa85763.

Summary by Sourcery

Refine the moderation workspace layouts and editing flows for clearer hierarchy, responsive usability, and accessible controls.

Bug Fixes:

  • Improve moderation workspace layout and editor usability across the dashboard, automod, commands, templates, and log-channel pages.

Enhancements:

  • Separate rule and command names from status and scope badges while clarifying moderation dashboard hierarchy and activity counts.
  • Make rule escalation controls, template editing, previews, and log-channel routing and ignore settings more clearly labeled and responsive.
  • Preserve existing save, scope, permissions, dirty-state protection, and queued-action behavior while adding regression coverage for badge semantics and escalation editing.

Documentation:

  • Document the updated responsive layouts, badge semantics, editor organization, and log-channel controls.

Tests:

  • Add frontend regression tests covering distinct rule badges and persistence of labeled escalation fields.

@jatmn jatmn self-assigned this Sep 22, 2026
@jatmn
jatmn marked this pull request as ready for review September 22, 2026 18:55

@sourcery-ai sourcery-ai 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.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.

@jatmn
jatmn merged commit 4a40b0c into main Sep 22, 2026
2 checks passed
@jatmn
jatmn deleted the fix/workspace-ui-zW9zIKNv branch September 22, 2026 19:00
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.

1 participant