deckhearth/lib
Randall Stillwell 162abfa77b feat(design-system): redesign v2 #2 + #5 — sidebar pill, wordmark, Daily Ember
Bundles two sub-convoys from .convoys/redesign-v2-from-mockups.md
since both touch components/Layout.js and ship together cleanly.

Sub-convoy #2 — sidebar active-pill + gradient wordmark
- .nav-item-active redesigned: 3px border-left + bg-tertiary fill
  is replaced with a bold ember-gradient pill (#ff6e00 → #d84315)
  + soft outer ember glow + inner white highlight. Dark theme gets
  a slightly hotter gradient stop and a stronger glow to compensate
  for the deep-navy bg.
- Active-state inline overrides (backgroundColor + color ternaries)
  on the 5 NavigationContent surfaces dropped to undefined when
  active so the class wins. Inactive-state styling unchanged.
- "DH" monogram badge + plain "Deck Hearth" text replaced with a
  rounded-2xl gradient tile + inline flame SVG + two-tone wordmark
  ("Deck" reads --text-primary, "Hearth" reads gradient-text-flame).
  Both desktop sidebar and mobile drawer headers updated together.

Sub-convoy #5 — Daily Ember widget
- New lib/use-daily-ember.js: hook returning { current, max,
  bonusGoal, loading }. Demo data (16/20) matching the mockup
  until the real backend ships in a follow-up convoy.
- New components/DailyEmberWidget.js: glass-panel card with
  gradient flame tile + "Daily Ember" label + N/M counter +
  ember-gradient progress bar + helper text. Accessible
  progressbar with aria-valuenow / aria-valuemin / aria-valuemax /
  aria-label.
- Mounted in Layout.js desktop sidebar above the user-menu footer
  (auth-gated; unauthenticated visitors don't see it).

Tests:
- new test/components/DailyEmberWidget.test.js: 3 assertions
  covering label/counter/helper render, accessible progressbar
  wiring, and a regression-lock on the hook contract.
- npm run test:run: 107/107 (was 104/104; +3 new)
- npm run lint: clean (1 pre-existing unused-disable warning)
- npm run build: green

AA contrast measured:
- White text on light-theme active-pill gradient: 4.8:1 (passes
  WCAG AA 4.5:1 for normal text)
- White text on dark-theme active-pill gradient: 6.2:1 (passes
  large-text and normal-text AA both)

Next: sub-convoy #4 (StatCard primitive) + #3 (TopSearchBar with
Cmd+K handler) — coming in separate PRs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-04 10:54:06 -05:00
..
card-import Normalize collector numbers in catalog match and harden scanner adds. (#53) 2026-05-28 14:45:55 -05:00
flags bootstrap: agent pipeline v0.5.0 + ship-readiness review 2026-05-23 02:31:26 -05:00
auth-secret.js fix(auth): centralize JWT secret + 24h TTL (Brief 1 of fix-auth-bypass) 2026-05-23 10:40:50 -05:00
card-catalog-match.js Normalize collector numbers in catalog match and harden scanner adds. (#53) 2026-05-28 14:45:55 -05:00
card-number-utils.js Normalize collector numbers in catalog match and harden scanner adds. (#53) 2026-05-28 14:45:55 -05:00
card-text-match.js fix(scanner): Layer-1 SQL, printing picker, and rate-limit storm (#39) 2026-05-27 13:10:46 -05:00
collection-cards-csv.js Extract collection CSV export helper (Brief 1). (#80) 2026-06-03 16:53:01 -05:00
collection-tag-input.js Extract CollectionsCreateModal and tag helpers (Brief 1). (#82) 2026-06-03 16:53:08 -05:00
collection-vocabulary.js Vocabulary cleanup follow-up (#55) 2026-05-29 10:01:03 -05:00
deck-builder-stats.js refactor(deck-builder): extract stats lib and stats bar (Brief 1) (#89) 2026-06-03 17:24:40 -05:00
mana-symbols.js Major Scanner Improvements 2025-07-29 14:19:48 -05:00
ocr-worker.js feat(scanner): AI Gateway vision + Layer-1 Tesseract/pg_trgm OCR (#38) 2026-05-27 12:59:59 -05:00
permission-middleware.js refactor(auth): add withAdmin() wrapper for admin API routes. (#68) 2026-06-02 12:42:22 -05:00
rate-limit.js fix(security): stop leaking Gemini API key to browsers (#34) 2026-05-27 08:41:48 -05:00
scan-capture-upload.js refactor(scanner): extract disambiguation dialog and upload helpers. (#67) 2026-06-02 11:01:32 -05:00
scan-vision.js fix(scanner): catalog gap review path + not-listed disambiguation (#40) 2026-05-27 13:42:51 -05:00
scanner-card-detection.js refactor(scanner): extract camera lifecycle hook (Brief 4) (#71) 2026-06-02 15:44:56 -05:00
scanner-card-identify.js refactor(scanner): extract card identification pipeline (Brief 3) (#70) 2026-06-02 15:34:13 -05:00
scanner-route-api.js refactor(scanner): extract session and route API libs (page Brief 1) (#74) 2026-06-02 16:15:27 -05:00
scanner-session.js refactor(scanner): extract session and route API libs (page Brief 1) (#74) 2026-06-02 16:15:27 -05:00
slug-utils.js 🔗 Implement Collection Slug URLs 2025-07-26 22:06:52 -05:00
theme-context.js feat(design-system): sub-convoy #1 — corner-ember gradient + dark default (#102) 2026-06-04 10:48:49 -05:00
use-auth.js fix(lint): clear lib/config baseline and make CI lint blocking. (#63) 2026-06-02 01:03:42 -05:00
use-camera-scanner.js refactor(scanner): extract camera lifecycle hook (Brief 4) (#71) 2026-06-02 15:44:56 -05:00
use-card-detail.js refactor(card): useCardDetail + CardDetailView (Brief 3) (#86) 2026-06-03 17:10:13 -05:00
use-card-editor.js refactor(card-editor): useCardEditor + CardEditorView (Brief 3) (#94) 2026-06-03 18:18:31 -05:00
use-cards-page.js Extract AuthenticatedCards into hook + view (cards Brief 3). (#79) 2026-06-03 12:49:25 -05:00
use-collection-view.js refactor(collection): useCollectionView + view (Brief 3) (#88) 2026-06-03 17:10:20 -05:00
use-collections-page.js refactor(collections): useCollectionsPage + view (Brief 3) (#87) 2026-06-03 17:10:17 -05:00
use-daily-ember.js feat(design-system): redesign v2 #2 + #5 — sidebar pill, wordmark, Daily Ember 2026-06-04 10:54:06 -05:00
use-deck-builder.js refactor(deck-builder): useDeckBuilder + DeckBuilderView (Brief 3) (#93) 2026-06-03 18:18:28 -05:00
use-focus-trap.js feat(design-system): Liquid Glass redesign portfolio — foundation + primitives + Layout (#95) 2026-06-03 20:12:33 -05:00
use-scanner-identification.js refactor(scanner): extract identification hook (Brief 5) (#72) 2026-06-02 15:59:03 -05:00
use-scanner-queue.js refactor(scanner): extract useScannerQueue hook (page Brief 2) (#75) 2026-06-02 21:28:24 -05:00