deckhearth/components
Randall Stillwell 7cf2c5006f refactor(design-system): redesign-v2 — bolder hover + mouse-tracking spotlight + active gradient
Operator feedback after the first refinement (PR #109): "It's hard
to see which one you're hovering" + asked for a fun mouse-tracking
radial gradient AND a subtle gradient on the active state. Three
targeted refinements in one PR.

1. Active state: subtle ember linear-gradient added.
   - Kept the 1px ember border + ember text from PR #109's first
     refinement (operator approved the toned-down read).
   - Added a 135deg linear-gradient at 14% → 6% alpha (light) /
     18% → 8% alpha (dark) so the active item has visible warmth
     without returning to the heavy saturated pill from sub-convoy
     #2. Background shorthand replaces the prior transparent value.

2. Hover state: base tint bolder.
   - rgba(216, 67, 21, 0.08) → rgba(216, 67, 21, 0.18) on light
     (per operator: "hard to see which one you're hovering")
   - rgba(255, 138, 80, 0.10) → rgba(255, 138, 80, 0.22) on dark
   - Also expanded the selector list to include .nav-item-hover
     consistently with .nav-item and .nav-item-bottom (the three
     hoverable nav surface classes).

3. Hover state: mouse-tracking radial spotlight overlay.
   - New ::before pseudo-element on .nav-item / .nav-item-bottom /
     .nav-item-hover. Uses a radial-gradient positioned via two
     CSS custom properties --mouse-x and --mouse-y (default 50%).
   - Light theme: rgba(255, 140, 30, 0.35) center → rgba(216, 67,
     21, 0.18) at 35% → transparent at 70%. 120px radius.
   - Dark theme: rgba(255, 160, 70, 0.40) center → rgba(255, 110,
     0, 0.22) → transparent. Brighter for visibility against navy.
   - Opacity transitions in/out via --motion-duration-quick.
   - pointer-events: none so it never blocks clicks or focus.
   - Content z-index: 1 so icons + labels paint above the gradient.

4. Layout.js: single delegated mousemove listener at document level.
   - Cheaper than per-item React onMouseMove handlers (the
     NavigationContent function has 10+ different nav-item render
     paths). closest() returns null for non-nav events so the
     listener cost is negligible.
   - Writes --mouse-x / --mouse-y as percentages onto the closest
     matching nav element. CSS consumes those vars to position the
     radial-gradient via inheritance through the ::before.
   - prefers-reduced-motion: respected by the existing global
     0.01ms transition sweep — the spotlight opacity fade is
     collapsed but the static gradient position update is a
     positional change (not an animation), so it stays per WCAG
     SC 2.3.3 without special-casing.

Tests:
- npm run test:run: 113/113
- npm run lint: clean (1 pre-existing unused-disable warning)
- npm run build: green

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-04 11:49:52 -05:00
..
ui refactor(design-system): redesign-v2 refinements — tone down active/hover states + dedupe profile + seamless header (#109) 2026-06-04 11:45:57 -05:00
AdminProtected.js feat(design-system): finish Liquid Glass — close all remaining sub-convoys (#96) 2026-06-03 20:34:06 -05:00
AnimatedFireLogo.js fix(lint): clear ESLint baseline in components/ (#61) 2026-06-02 01:03:36 -05:00
AuthLayout.js fix(lint): clear ESLint baseline in components/ (#61) 2026-06-02 01:03:36 -05:00
BulkSelectionToolbar.js Align UI copy: My Collection vs Lists (#54) 2026-05-29 09:53:40 -05:00
CameraScanner.js refactor(scanner): extract CameraScannerView presentational component (#73) 2026-06-02 16:04:02 -05:00
CameraScannerView.js feat(design-system): sweep authenticated body-content panels to glass (#97) 2026-06-03 21:28:52 -05:00
CardDetailDeckModal.js feat(design-system): finish Liquid Glass — close all remaining sub-convoys (#96) 2026-06-03 20:34:06 -05:00
CardDetailQuantityModal.js feat(design-system): finish Liquid Glass — close all remaining sub-convoys (#96) 2026-06-03 20:34:06 -05:00
CardDetailView.js feat(design-system): sweep authenticated body-content panels to glass (#97) 2026-06-03 21:28:52 -05:00
CardEditorForm.js feat(design-system): sweep authenticated body-content panels to glass (#97) 2026-06-03 21:28:52 -05:00
CardEditorPreview.js feat(design-system): sweep authenticated body-content panels to glass (#97) 2026-06-03 21:28:52 -05:00
CardEditorSearchPanel.js feat(design-system): sweep authenticated body-content panels to glass (#97) 2026-06-03 21:28:52 -05:00
CardEditorView.js feat(design-system): sweep authenticated body-content panels to glass (#97) 2026-06-03 21:28:52 -05:00
CardItem.js feat(design-system): redesign v2 #6 — card grid outer-glow (#106) 2026-06-04 11:14:53 -05:00
CardsPageView.js feat(design-system): redesign v2 #3 — TopSearchBar + Cmd+K + sweep page-header-glass (#105) 2026-06-04 11:14:50 -05:00
CollaboratorFacepile.js fix(lint): clear ESLint baseline in components/ (#61) 2026-06-02 01:03:36 -05:00
CollectionDeleteModal.js feat(design-system): Liquid Glass redesign portfolio — foundation + primitives + Layout (#95) 2026-06-03 20:12:33 -05:00
CollectionEditModal.js feat(design-system): finish Liquid Glass — close all remaining sub-convoys (#96) 2026-06-03 20:34:06 -05:00
CollectionPageView.js feat(design-system): redesign v2 #3 — TopSearchBar + Cmd+K + sweep page-header-glass (#105) 2026-06-04 11:14:50 -05:00
CollectionsCreateModal.js feat(design-system): Liquid Glass redesign portfolio — foundation + primitives + Layout (#95) 2026-06-03 20:12:33 -05:00
CollectionsEditModal.js feat(design-system): finish Liquid Glass — close all remaining sub-convoys (#96) 2026-06-03 20:34:06 -05:00
CollectionSelectionModal.js feat(design-system): finish Liquid Glass — close all remaining sub-convoys (#96) 2026-06-03 20:34:06 -05:00
CollectionsPageView.js feat(design-system): redesign v2 #3 — TopSearchBar + Cmd+K + sweep page-header-glass (#105) 2026-06-04 11:14:50 -05:00
CollectionsSuccessModal.js feat(design-system): finish Liquid Glass — close all remaining sub-convoys (#96) 2026-06-03 20:34:06 -05:00
CollectionsThumbnail.js refactor(collections): useCollectionsPage + view (Brief 3) (#87) 2026-06-03 17:10:17 -05:00
DailyEmberWidget.js feat(design-system): redesign v2 #2 + #5 — sidebar pill, wordmark, Daily Ember (#103) 2026-06-04 10:59:44 -05:00
DashboardCardSpotlight.js feat(design-system): redesign v2 #7 + #8 — dashboard rebuild + right-rail Card Spotlight (#107) 2026-06-04 11:21:58 -05:00
DashboardFeaturedCollection.js feat(design-system): redesign v2 #7 + #8 — dashboard rebuild + right-rail Card Spotlight (#107) 2026-06-04 11:21:58 -05:00
DashboardRecentActivity.js feat(design-system): redesign v2 #7 + #8 — dashboard rebuild + right-rail Card Spotlight (#107) 2026-06-04 11:21:58 -05:00
DeckBuilderCardBrowser.js refactor(deck-builder): extract deck list and card browser (Brief 2) (#91) 2026-06-03 17:29:08 -05:00
DeckBuilderDeckList.js refactor(deck-builder): extract deck list and card browser (Brief 2) (#91) 2026-06-03 17:29:08 -05:00
DeckBuilderStatsBar.js refactor(deck-builder): extract stats lib and stats bar (Brief 1) (#89) 2026-06-03 17:24:40 -05:00
DeckBuilderView.js refactor(deck-builder): useDeckBuilder + DeckBuilderView (Brief 3) (#93) 2026-06-03 18:18:28 -05:00
Layout.js refactor(design-system): redesign-v2 — bolder hover + mouse-tracking spotlight + active gradient 2026-06-04 11:49:52 -05:00
Layout.js.backup 🚀 Implement Mobile-First Navigation System 2025-08-01 18:18:21 -05:00
LoginCTA.js Align UI copy: My Collection vs Lists (#54) 2026-05-29 09:53:40 -05:00
ManaSymbols.js fix(lint): clear ESLint baseline in components/ (#61) 2026-06-02 01:03:36 -05:00
ManaSymbolSettings.js fix(lint): clear ESLint baseline in components/ (#61) 2026-06-02 01:03:36 -05:00
MobileNavigation.js feat(design-system): Liquid Glass redesign portfolio — foundation + primitives + Layout (#95) 2026-06-03 20:12:33 -05:00
OCRSettings.js feat(design-system): finish Liquid Glass — close all remaining sub-convoys (#96) 2026-06-03 20:34:06 -05:00
PermissionIndicator.js feat(design-system): sweep authenticated body-content panels to glass (#97) 2026-06-03 21:28:52 -05:00
ProtectedRoute.js Major Scanner Improvements 2025-07-29 14:19:48 -05:00
PublicCardsView.js Extract PublicCardsView from pages/cards.js (Brief 2). (#78) 2026-06-03 12:06:24 -05:00
ScanDisambiguationDialog.js feat(design-system): sweep authenticated body-content panels to glass (#97) 2026-06-03 21:28:52 -05:00
ScannedCardItem.js feat(design-system): sweep authenticated body-content panels to glass (#97) 2026-06-03 21:28:52 -05:00
ScannerDestinationPicker.js feat(design-system): sweep authenticated body-content panels to glass (#97) 2026-06-03 21:28:52 -05:00
ScannerPageView.js feat(design-system): sweep authenticated body-content panels to glass (#97) 2026-06-03 21:28:52 -05:00
ShareModal.js feat(design-system): Liquid Glass redesign portfolio — foundation + primitives + Layout (#95) 2026-06-03 20:12:33 -05:00
UploadImageModal.js feat(design-system): finish Liquid Glass — close all remaining sub-convoys (#96) 2026-06-03 20:34:06 -05:00