diff --git a/CHANGELOG.md b/CHANGELOG.md index 56995ef1..a94151d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ 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.7.0] - 2026-12-02 + +### Changed + +- Updated `@merqo/ui` to v0.68.0. In the account menu, Text size is now a "Text size · 100%" submenu with a preset list (75% to 200%) under a new Preferences heading, replacing the inline A-/A+ buttons. +- Documented the shared storage and media-query helper move in the root and card-check component READMEs. + ## [0.6.5] - 2026-12-02 ### Changed diff --git a/README.md b/README.md index 5be92d67..11c7089a 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Day keys, short dates and dollars-to-cents conversion come from `@merqo/ui` (`sgDayKey`, `formatShortDate`, `dollarsToCents`), not local helpers. +The visits trend, Counter last-program memory, "Serve a customer" button and retired-card notice read and write browser storage and media queries through `@merqo/ui`'s `readStored`/`writeStored`/`useMediaQuery` (see `src/features/card-check/components/README.md`). The account menu's Text size is a Preferences submenu from `@merqo/ui` v0.68.0. + 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. `DESIGN.md` records loopkit's own public-page design values and links the shared rules, including the stamp card's current edge. @@ -53,7 +55,7 @@ output instead of a hand-copied string, so it can't drift from what the engine actually computes — see `../docs/superpowers/specs/2026-08-25-tour-example-badge-drift-fix-design.md` in the workspace root. Migrated onto -the shared `@merqo/ui` component package (pinned at v0.63.0, commit `13c3d3f9`, in `package.json`; email links land on `/auth/confirm`, see `src/app/auth/README.md`): the +the shared `@merqo/ui` component package (pinned at v0.68.0, commit `5a08fd87`, in `package.json`; email links land on `/auth/confirm`, see `src/app/auth/README.md`): the dashboard nav/account dropdown, `useAsyncAction`, `InfoTooltip`, `ImageUploader`, `DashboardTour`, the landing page's sticky header (`LandingNav`, via `src/components/landing/nav.tsx`), and diff --git a/package.json b/package.json index 2a3d0acf..d88acb0b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loopkit", - "version": "0.6.5", + "version": "0.7.0", "private": true, "packageManager": "pnpm@11.10.0", "engines": { @@ -23,7 +23,7 @@ }, "dependencies": { "@hookform/resolvers": "5.2.2", - "@merqo/ui": "github:merqo-io/merqo-ui#8d2da3abcb4e5c3bab2b3a3482c740797e2d5c03", + "@merqo/ui": "github:merqo-io/merqo-ui#5a08fd875ad6c96f096fbcb4d56ed50eb238f33e", "@supabase/ssr": "^0.10.3", "@supabase/supabase-js": "2.110.0", "@zxing/browser": "^0.2.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7272aba5..7bdb3d73 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,8 +32,8 @@ importers: specifier: 5.2.2 version: 5.2.2(react-hook-form@7.81.0(react@19.2.7)) '@merqo/ui': - specifier: github:merqo-io/merqo-ui#8d2da3abcb4e5c3bab2b3a3482c740797e2d5c03 - version: https://codeload.github.com/merqo-io/merqo-ui/tar.gz/8d2da3abcb4e5c3bab2b3a3482c740797e2d5c03(@eslint-community/eslint-plugin-eslint-comments@4.8.1(eslint@9.39.4(jiti@2.7.0)))(@playwright/test@1.61.1)(@supabase/ssr@0.10.3(@supabase/supabase-js@2.110.0))(@supabase/supabase-js@2.110.0)(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(eslint-plugin-sonarjs@4.2.2(eslint@9.39.4(jiti@2.7.0)))(eslint@9.39.4(jiti@2.7.0))(next-themes@0.4.6(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(next@16.4.6(@babel/core@7.29.7)(@playwright/test@1.61.1)(@types/node@24.13.2)(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(radix-ui@1.6.1(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(sonner@1.7.4(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(tailwindcss@4.3.2)(zod@4.6.6) + specifier: github:merqo-io/merqo-ui#5a08fd875ad6c96f096fbcb4d56ed50eb238f33e + version: https://codeload.github.com/merqo-io/merqo-ui/tar.gz/5a08fd875ad6c96f096fbcb4d56ed50eb238f33e(@eslint-community/eslint-plugin-eslint-comments@4.8.1(eslint@9.39.4(jiti@2.7.0)))(@playwright/test@1.61.1)(@supabase/ssr@0.10.3(@supabase/supabase-js@2.110.0))(@supabase/supabase-js@2.110.0)(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(eslint-plugin-sonarjs@4.2.2(eslint@9.39.4(jiti@2.7.0)))(eslint@9.39.4(jiti@2.7.0))(next-themes@0.4.6(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(next@16.4.6(@babel/core@7.29.7)(@playwright/test@1.61.1)(@types/node@24.13.2)(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(radix-ui@1.6.1(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(sonner@1.7.4(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(tailwindcss@4.3.2)(zod@4.6.6) '@supabase/ssr': specifier: ^0.10.3 version: 0.10.3(@supabase/supabase-js@2.110.0) @@ -972,9 +972,9 @@ packages: '@jridgewell/trace-mapping@0.3.31': resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} - '@merqo/ui@https://codeload.github.com/merqo-io/merqo-ui/tar.gz/8d2da3abcb4e5c3bab2b3a3482c740797e2d5c03': - resolution: {gitHosted: true, tarball: https://codeload.github.com/merqo-io/merqo-ui/tar.gz/8d2da3abcb4e5c3bab2b3a3482c740797e2d5c03} - version: 0.67.0 + '@merqo/ui@https://codeload.github.com/merqo-io/merqo-ui/tar.gz/5a08fd875ad6c96f096fbcb4d56ed50eb238f33e': + resolution: {gitHosted: true, integrity: sha512-VQhYGj8jL65lLuWUAgLjZpy4PlzzLW1+uCs9kUJ1tphR910N9aZlsEPpnVlyQwg1H1XHyYG8w0UqZXGiQXiMLQ==, tarball: https://codeload.github.com/merqo-io/merqo-ui/tar.gz/5a08fd875ad6c96f096fbcb4d56ed50eb238f33e} + version: 0.68.0 engines: {node: '>=24'} peerDependencies: '@eslint-community/eslint-plugin-eslint-comments': '>=4.8.1' @@ -5536,7 +5536,7 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.5 - '@merqo/ui@https://codeload.github.com/merqo-io/merqo-ui/tar.gz/8d2da3abcb4e5c3bab2b3a3482c740797e2d5c03(@eslint-community/eslint-plugin-eslint-comments@4.8.1(eslint@9.39.4(jiti@2.7.0)))(@playwright/test@1.61.1)(@supabase/ssr@0.10.3(@supabase/supabase-js@2.110.0))(@supabase/supabase-js@2.110.0)(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(eslint-plugin-sonarjs@4.2.2(eslint@9.39.4(jiti@2.7.0)))(eslint@9.39.4(jiti@2.7.0))(next-themes@0.4.6(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(next@16.4.6(@babel/core@7.29.7)(@playwright/test@1.61.1)(@types/node@24.13.2)(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(radix-ui@1.6.1(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(sonner@1.7.4(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(tailwindcss@4.3.2)(zod@4.6.6)': + '@merqo/ui@https://codeload.github.com/merqo-io/merqo-ui/tar.gz/5a08fd875ad6c96f096fbcb4d56ed50eb238f33e(@eslint-community/eslint-plugin-eslint-comments@4.8.1(eslint@9.39.4(jiti@2.7.0)))(@playwright/test@1.61.1)(@supabase/ssr@0.10.3(@supabase/supabase-js@2.110.0))(@supabase/supabase-js@2.110.0)(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(eslint-plugin-sonarjs@4.2.2(eslint@9.39.4(jiti@2.7.0)))(eslint@9.39.4(jiti@2.7.0))(next-themes@0.4.6(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(next@16.4.6(@babel/core@7.29.7)(@playwright/test@1.61.1)(@types/node@24.13.2)(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(radix-ui@1.6.1(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(sonner@1.7.4(react-dom@19.2.7(react@19.2.7))(react@19.2.7))(tailwindcss@4.3.2)(zod@4.6.6)': dependencies: '@icons-pack/react-simple-icons': 13.13.0(react@19.2.7) class-variance-authority: 0.7.1 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 02e33a7f..026bbf75 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,5 +1,5 @@ allowBuilds: - "@merqo/ui@https://codeload.github.com/merqo-io/merqo-ui/tar.gz/8d2da3abcb4e5c3bab2b3a3482c740797e2d5c03": true + "@merqo/ui@https://codeload.github.com/merqo-io/merqo-ui/tar.gz/5a08fd875ad6c96f096fbcb4d56ed50eb238f33e": true supabase: true esbuild: true sharp: true diff --git a/src/app/dashboard/README.md b/src/app/dashboard/README.md index 19b381a5..25a48238 100644 --- a/src/app/dashboard/README.md +++ b/src/app/dashboard/README.md @@ -92,6 +92,6 @@ Dates and times on these pages render through `@merqo/ui`'s `formatDate`/`format - Route `loading.tsx` files use `@merqo/ui`'s `ListSkeleton` and `StatTileSkeleton` (each a `role="status"` region with its own sr-only label) under `components/loading-header.tsx`. `visits-bars.tsx` imports `formatShortDate` from `@merqo/ui` (the local `lib/format.ts` re-export is gone). It is a client component (its server caller `stats/visits-chart.tsx` and the client `overview/visits-trend.tsx` import it unchanged): bars are 44px tap targets on coarse pointers in a horizontally scrollable row, and a status line shows the tapped day's date and count, because a `title` never shows on touch. `plan/page.tsx` uses `PageHeader`; `serve-customer.tsx` no longer passes `pending` to `ActiveCard`. `counter/use-serve-customer.ts`'s `confirmRedeemPlant` and `confirmRegenerate` return promises that reject on failure so `ConfirmDialog` stays open with the message inline. -The account menu shows the shared "Text size" row (A-, 100%, A+): `dashboard-nav.tsx` passes `textSizeKey="loopkit:scale:dashboard"` to `SharedDashboardNav` (`@merqo/ui` v0.67.0), so the scale applies to the dashboard only and persists per browser. +The account menu shows the shared "Text size · 100%" submenu (a preset list under the Preferences label): `dashboard-nav.tsx` passes `textSizeKey="loopkit:scale:dashboard"` to `SharedDashboardNav` (`@merqo/ui` v0.68.0), so the scale applies to the dashboard only and persists per browser. `scan-button.tsx` renders its link and hero variants with the shared `Button` (44px minimum height) instead of native buttons. diff --git a/src/app/dashboard/dashboard-nav.dom.test.tsx b/src/app/dashboard/dashboard-nav.dom.test.tsx index d4a82ccb..72d1d18d 100644 --- a/src/app/dashboard/dashboard-nav.dom.test.tsx +++ b/src/app/dashboard/dashboard-nav.dom.test.tsx @@ -115,12 +115,10 @@ describe("DashboardNav", () => { "Feedback", "Programs", "Theme · System", - "A-", - "100%", - "A+", + "Text size · 100%", "Sign out", ]); - expect(screen.getByText("Text size")).toBeInTheDocument(); + expect(screen.getByText("Preferences")).toBeInTheDocument(); }); it("shows the tier badge behind the opened account menu", async () => { diff --git a/src/features/card-check/components/README.md b/src/features/card-check/components/README.md index 535af4d7..d00aeacf 100644 --- a/src/features/card-check/components/README.md +++ b/src/features/card-check/components/README.md @@ -24,3 +24,5 @@ Every `dangerouslySetInnerHTML` here is `qrSvg()` output over a server-minted to Customer-facing copy has no emoji or contractions. `birthday-field.tsx` uses the shared Select for month and day (44px triggers) and `check-form.tsx` renders "Change number" with the shared `Button`. + +`program-card-status.tsx` (retired-card notice) uses the shared `readStored`/`writeStored`/`useMediaQuery` helpers from `@merqo/ui` instead of local storage and media-query code, as do the visits trend, remember-program and serve-cta modules elsewhere in this slice.