Skip to content

Improve top banner presets and CSS isolation#1

Merged
Starry-Sky-World merged 1 commit into
CuzTeam:mainfrom
Jarvisu88:cuzteam-main-dev
May 3, 2026
Merged

Improve top banner presets and CSS isolation#1
Starry-Sky-World merged 1 commit into
CuzTeam:mainfrom
Jarvisu88:cuzteam-main-dev

Conversation

@Jarvisu88
Copy link
Copy Markdown

Summary

  • add banner category and dismissible controls to the backend/API and system settings UI
  • split banner presets into fixed notification styles and color-editable animation presets
  • add new animation presets: Aurora, Spotlight, and Scanline
  • scope custom banner CSS to code mode so CSS experiments cannot bleed into preset colors
  • remove the visual banner editor tab because custom CSS now covers that use case
  • place the banner inside the rounded authenticated content frame and refine the notice glass style

Verification

  • bun run build
  • go test ./controller ./model ./router

Known gap

  • bun run typecheck still fails on the pre-existing src/context/theme-color-provider.tsx unused DEFAULT_HUE error; this PR does not introduce that issue.

The banner editor now separates fixed notification presets from editable animation presets, adds dismissible/type controls, and scopes custom CSS to code-mode banners so CSS trials cannot leak into preset colors. The main layout also hosts the banner inside the rounded content frame to avoid visual overlap.

Constraint: Banner customization must remain hot-debug friendly and avoid Docker rebuilds during UI iteration

Rejected: Keep visual builder alongside CSS mode | CSS mode now covers the same effects with less duplicated UI and fewer conflicting styling paths

Rejected: Let notification presets share palette colors | maintenance stripes and semantic alert colors become inconsistent when palette variables override fixed styles

Confidence: high

Scope-risk: moderate

Directive: Keep custom banner CSS scoped to data-banner-mode=code unless preset bleed is explicitly desired and tested

Tested: bun run build

Tested: go test ./controller ./model ./router

Not-tested: bun run typecheck still fails on pre-existing src/context/theme-color-provider.tsx DEFAULT_HUE unused error
@Starry-Sky-World Starry-Sky-World self-requested a review May 3, 2026 14:32
Copy link
Copy Markdown

@Starry-Sky-World Starry-Sky-World left a comment

Choose a reason for hiding this comment

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

LGTM

@Starry-Sky-World Starry-Sky-World merged commit 9c5b95a into CuzTeam:main May 3, 2026
1 check passed
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.

3 participants