Skip to content

fix(dashboard): use scrim tokens in modal backdrops (#4578)#4589

Closed
OneStepAt4time wants to merge 1 commit into
developfrom
fix/dashboard-overlay-modal-scrims-slice9
Closed

fix(dashboard): use scrim tokens in modal backdrops (#4578)#4589
OneStepAt4time wants to merge 1 commit into
developfrom
fix/dashboard-overlay-modal-scrims-slice9

Conversation

@OneStepAt4time
Copy link
Copy Markdown
Owner

Context

Slice 9 of #4578 β€” converts 3 modal backdrops from raw bg-black/60 to the --color-scrim design token (added in #4577).

components/CreateSessionModal.tsx:207
components/CreatePipelineModal.tsx:121
components/TemplateModal.tsx:152

All three backdrops are the identical pattern absolute inset-0 bg-black/60 backdrop-blur-sm. The new --color-scrim token is defined as black/60 in dark theme, with theme variants in light/light-paper/light-aaa (slight reduction to black/50 for better contrast on lighter surfaces β€” see #4577 for rationale).

Verification

  • tsc --noEmit β€” clean (3 pre-existing errors in chartTheme.tsx/logger.ts are unrelated, present on develop HEAD)
  • vitest run β€” 224 files, 2252 tests pass, 2 skipped (~172s)
  • vite build β€” clean (2.72s)
  • grep -rE 'text-white|bg-black|border-white' dashboard/src/ β€” matches in the 3 changed files removed (1 match each eliminated)

Token mapping (from #4577)

  • bg-black/60 (3) β†’ bg-[color:var(--color-scrim)]

Out of scope (deferred to future slices)

  • FirstRunTour.tsx:246 β€” bg-black/80 (heavier scrim, no matching token β€” would need a new --color-scrim-heavy variant)
  • SessionDetailPage.tsx:292 β€” bg-black/40 (lighter scrim, no matching token β€” would need a new --color-scrim-light variant)
  • SettingsPage, SessionHistoryPage, SessionsPage, NewSessionDrawer, Layout β€” remaining border-white and bg-white matches for future Path B slices

Lane: Daedalus (per #4578). Not blocking Hermes, Argus, Scribe, Hep, or any P0/P1 work.

πŸ€– Generated with Claude Code

Path B slice 9 of #4578 β€” applies the new scrim design token
(added in #4577) to 3 modal backdrops.

Files changed (3):
- CreateSessionModal.tsx:207 β€” backdrop
- CreatePipelineModal.tsx:121 β€” backdrop
- TemplateModal.tsx:152 β€” backdrop

Token mapping (from #4577):
- bg-black/60 (3) β†’ bg-[color:var(--color-scrim)]

All three backdrops are identical pattern: `absolute inset-0 bg-black/60 backdrop-blur-sm`.
The new --color-scrim token is defined as `black/60` in dark theme and `black/50`
in light/light-paper/light-aaa (slight reduction for better contrast against
lighter surfaces β€” see #4577 for rationale).

Verification:
- tsc --noEmit: clean (3 pre-existing chartTheme/logger errors are unrelated,
  present on develop HEAD)
- vitest run: 224 files, 2252 tests pass, 2 skipped
- vite build: clean (2.72s)

Out of scope (deferred):
- FirstRunTour.tsx:246 β€” bg-black/80 (heavier scrim, no matching token)
- SessionDetailPage.tsx:292 β€” bg-black/40 (lighter scrim, no matching token)
- SettingsPage, SessionHistoryPage, SessionsPage, NewSessionDrawer, Layout
  (raw border-white and bg-white matches covered by future slices)
@OneStepAt4time
Copy link
Copy Markdown
Owner Author

Closing as redundant. PR #4579 (fix(dashboard): use scrim design token in 5 modal backdrops, already LGTM'd and queued for Ema's UI-approval) covers the same 3 files I touched here: CreateSessionModal, CreatePipelineModal, TemplateModal β€” all with the identical bg-black/60 β†’ bg-[color:var(--color-scrim)] swap. My work adds nothing.

Real next-slice candidates after the 7-batch lands: SettingsPage (1 match) plus any leftover lines in the 7-batch's files.

β€” Daedalus πŸ›οΈ

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