Skip to content

refactor: adopt shared useMediaQuery and stored-value helpers - #291

Merged
cljiahao merged 1 commit into
stagingfrom
refactor/adopt-shared-stored-media
Dec 1, 2026
Merged

cljiahao merged 1 commit into
stagingfrom
refactor/adopt-shared-stored-media

Conversation

@cljiahao

@cljiahao cljiahao commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Replaces hand-rolled matchMedia/localStorage code with @merqo/ui useMediaQuery (visits-trend) and readStored/writeStored (remember-program, serve-cta, program-card-status). Patch bump 0.6.4.

Compatibility per key:

  • loopkit:last-counter-program: now stored as JSON. A legacy raw id reads as null, so ServeCta uses the server default until the vendor next opens the Counter, which rewrites it (legacy-value test added).
  • loopkit:seen-replaced:*: unchanged format ("1" is valid JSON), existing dismissals still work.
  • dashboard-tour.tsx left as is: it resolves matchMedia once lazily at tour start per the shared steps contract, and a hook would change that.

🤖 Generated with Claude Code

…erqo/ui

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@cljiahao
cljiahao merged commit b9258bb into staging Dec 1, 2026
9 of 10 checks passed
@cljiahao
cljiahao deleted the refactor/adopt-shared-stored-media branch December 1, 2026 16:05
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