Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "loopkit",
"version": "0.6.5",
"version": "0.6.6",
"private": true,
"packageManager": "pnpm@11.10.0",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/features/card-check/components/README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down