diff --git a/CHANGELOG.md b/CHANGELOG.md index 56995ef1..fd088358 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to loopkit are documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [0.6.6] - 2026-12-02 + +### Changed + +- Card-check components README now describes the shared `useMediaQuery` and stored-value helpers used by `program-card-status.tsx`. + ## [0.6.5] - 2026-12-02 ### Changed diff --git a/README.md b/README.md index 5be92d67..2d4d9d58 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # loopkit -Day keys, short dates and dollars-to-cents conversion come from `@merqo/ui` (`sgDayKey`, `formatShortDate`, `dollarsToCents`), not local helpers. +Day keys, short dates and dollars-to-cents conversion come from `@merqo/ui` (`sgDayKey`, `formatShortDate`, `dollarsToCents`), not local helpers. Media-query state and persisted local values use the shared `useMediaQuery` and `readStored`/`writeStored` from `@merqo/ui`. Shared UI is pinned to audited commit `989d934c1cc8d957ff383934debf8ef083b6b6a4`. The lockfile and exact build allowlist select this same source, including image lifecycle cleanup, malformed storage-URL handling and bounded money inputs. diff --git a/package.json b/package.json index 2a3d0acf..85fd7791 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loopkit", - "version": "0.6.5", + "version": "0.6.6", "private": true, "packageManager": "pnpm@11.10.0", "engines": { diff --git a/src/features/card-check/components/README.md b/src/features/card-check/components/README.md index 535af4d7..9d72389d 100644 --- a/src/features/card-check/components/README.md +++ b/src/features/card-check/components/README.md @@ -1,7 +1,7 @@ # Card-check components - check-form.tsx submits vendor, phone, optional saved card code and referral code. It renders generic recovery guidance without revealing whether a phone has a card. A successful check stores the opaque capability in an HttpOnly cookie and renders authorized cards. -- program-card-status.tsx renders progress, card and voucher QR codes, and a saveable card code. Fresh-cycle reset is available only for an expired card; lost credentials require the shop. Retired-card notices are optional local preferences, written without em dashes (guarded by `src/components/landing/guardrails.test.tsx`). Card and voucher QR wells use the `bg-paper` token, light in both themes so the code stays scannable. +- program-card-status.tsx renders progress, card and voucher QR codes, and a saveable card code. Fresh-cycle reset is available only for an expired card; lost credentials require the shop. Retired-card notices are optional local preferences, read and written through the shared `readStored`/`writeStored` helpers from `@merqo/ui`, with the layout switched by the shared `useMediaQuery`, written without em dashes (guarded by `src/components/landing/guardrails.test.tsx`). Card and voucher QR wells use the `bg-paper` token, light in both themes so the code stays scannable. - points-catalog-picker.tsx submits vendor and program scope; the server reads the capability cookie and the database checks ownership and balance. Pending state always clears after failures. - birthday-field.tsx submits an optional birthday through the proof-checked `setCustomerBirthdayAction` in `../api/card-actions`. - marketing-consent-toggle.tsx is the card-view switch for offers by message. It shows the consent wording, withdraws or opts in through setMarketingConsentAction (`../api/consent-actions`), and flags a failed save from the join.