Skip to content
Open
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.8.2] - 2026-12-02

### Fixed

- Visits chart axis labels and the landing card-screen stamp labels are sized in rem, so the Text size setting scales them.

## [0.8.1] - 2026-12-02

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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.
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. Text outside SVG is sized in rem so that setting scales it; SVG text (wheel, scratch card) uses viewBox units and scales with its SVG.

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.8.1",
"version": "0.8.2",
"private": true,
"packageManager": "pnpm@11.10.0",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/app/dashboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ submenu.

## Reuse and ownership

`visits-bars.tsx` supplies pure bars and calendar axes to Overview and Stats; each view retains its own window and captions. `serve-customer.tsx` composes Counter panels around `counter/use-serve-customer.ts`. Customer-notify and qkit-earn settings share `hooks/use-save-settings.ts` and `components/form-card.tsx` while keeping their distinct defaults and entitlement rules.
`visits-bars.tsx` supplies pure bars and calendar axes (rem-sized labels, so Text size scales them) to Overview and Stats; each view retains its own window and captions. `serve-customer.tsx` composes Counter panels around `counter/use-serve-customer.ts`. Customer-notify and qkit-earn settings share `hooks/use-save-settings.ts` and `components/form-card.tsx` while keeping their distinct defaults and entitlement rules.

Server Actions here return `ActionResult` from `@merqo/ui/kit-api`. `useAsyncAction` comes from `@merqo/ui`; call sites pass `(fn: () => Promise<void>) => fn()` as the action. The plan page reads `merqoBaseUrl` from `@merqo/ui/kit-api`.

Expand Down
2 changes: 1 addition & 1 deletion src/app/dashboard/stats/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Vendor stats page at `/dashboard/stats` — enrollment, retention, and visit met

- `page.tsx` — `StatsPage` server component; requires a vendor, redirects to the single program when there's exactly one, renders `ProgramSwitcher` below the page header, then nine stat tiles in three groups (Customers, Visits, Rewards: total customers, active, not seen in 30 days, visits, "Came back", days between visits, rewards redeemed, rewards claimed, rewards expired unclaimed) with day-over-day deltas and a shared `VisitsChart`, sourced from `getVendorStats`/`getProgramStats` plus the separately-sourced `countExpiredVouchers`. Each tile's own `Tile` helper wraps `@merqo/ui`'s shared `StatTile` (label/value/delta content, value-above-label via its `reverse` prop) in `@merqo/ui`'s `ElevatedCard` shell. Both return branches' root element is a plain `<div className="space-y-8">` — the page no longer sets its own `max-w-*`/padding; the enclosing `../layout.tsx` `<main>` now owns the shared `max-w-7xl` width and padding for the whole `/dashboard` tree. The vendor-wide branch also renders a "By mechanic" card from `getVendorMechanicBreakdown` (`@/lib/stats`), shown only when the vendor runs 2+ distinct mechanics — a single-mechanic shop already sees those numbers in the tiles above.
- `stats-page.dom.test.tsx` — jsdom tests for `StatsPage`: renders vendor-wide stat tiles (including "Came back" and "Rewards expired unclaimed") and the visits chart with no program selected, renders program-scoped tiles when `?p=` is set, shows the empty state at zero enrolled customers, and shows/hides the "By mechanic" card based on how many mechanics `getVendorMechanicBreakdown` returns.
- `visits-chart.tsx` — `VisitsChart({ data })`: the 30-day visits bar chart, extracted so both of `page.tsx`'s branches (all programs / single program) share one implementation instead of ~110 duplicated lines; renders a `border-t border-border` baseline under the bars and `text-[10px]` first/last date labels (via `formatShortDate`) beneath it, since the per-bar `title` tooltip alone is invisible on touch — the primary device per PRODUCT.md.
- `visits-chart.tsx` — `VisitsChart({ data })`: the 30-day visits bar chart, extracted so both of `page.tsx`'s branches (all programs / single program) share one implementation instead of ~110 duplicated lines; renders a `border-t border-border` baseline under the bars and `text-[0.625rem]` first/last date labels (via `formatShortDate`) beneath it, since the per-bar `title` tooltip alone is invisible on touch — the primary device per PRODUCT.md.

## Reuse and ownership

Expand Down
2 changes: 1 addition & 1 deletion src/app/dashboard/visits-bars.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function VisitsBars({
)}
{first && last && (
<div
className={`flex justify-between text-[10px] text-muted-foreground ${axisClassName}`}
className={`flex justify-between text-[0.625rem] text-muted-foreground ${axisClassName}`}
>
<span>{formatShortDate(first.date)}</span>
<span>{formatShortDate(last.date)}</span>
Expand Down
2 changes: 1 addition & 1 deletion src/components/landing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Shared controls and `cn` used by this folder's modules are imported from `@merqo
## Contents

- `card-journey.tsx` — `CardJourney` (`#how`): the three-step scroll journey (watch, tap, come back) built from `@merqo/ui` `Journey`/`JourneyStep`/`PhoneFrame`/`PressButton`; scroll is the play head and rewinds, a tap overrides until scroll moves on, and under reduced motion each step shows its finished state with a Replay button
- `card-screen.tsx` — `CardScreen`, `JoinScreen`, `CounterScreen`: the customer card, join page and vendor counter shown inside phones
- `card-screen.tsx` — `CardScreen`, `JoinScreen`, `CounterScreen`: the customer card, join page and vendor counter shown inside phones; its stamp labels are sized in rem so the Text size setting scales them
- `card-labels.ts` — the product strings the mock-ups quote (pinned to app source by `card-labels.test.ts`)
- `rhythm.ts` — shared container width and section padding
- `sections.tsx` — `LandingFaq` (three `FaqRows`) and `LandingClosing` (`ClosingCall` with the unchanged pricing line and the auth-aware CTA)
Expand Down
2 changes: 1 addition & 1 deletion src/components/landing/card-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function CardScreen({
<div
key={i}
className={cn(
"flex aspect-square items-center justify-center rounded-full border-2 text-[10px]",
"flex aspect-square items-center justify-center rounded-full border-2 text-[0.625rem]",
stamped
? "border-transparent bg-gold text-gold-foreground"
: "border-dashed border-border text-muted-foreground/60",
Expand Down
Loading