Skip to content
Merged
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
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ All notable changes to this project are documented here. The format is based on
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [0.12.0] - 2026-12-02

### Changed

- `@merqo/ui` is now v0.68.0. In the account menu, Text size is a "Text size · 100%" submenu of preset sizes (75% to 200%) under a new "Preferences" label, replacing the inline A-/100%/A+ buttons.
- Payments, Plan, payment setup and the admin overview, vendors and activity pages now use more of the shared `@merqo/ui` components (stat tiles, sections, cards, data tables). Payments shows one table at every width, with the Kit and Created columns hidden on phones. Behaviour, plan limits and copy are unchanged.
- Bookings, inquiries and their detail pages now use the shared Merqo section, card and empty-state components.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ in the workspace root for why. Brand theme is "Banknote Engrave"
of 2026-08-19 — see `globals.css`'s own header comment; `src/lib/brand-mark.ts`'s
ImageResponse-generated favicon/apple-touch-icon carries the same rebrand.

The public landing is in pre-launch mode, headlined "Get paid by PayNow. Know who has paid.": an "Early access" badge, a hero with a switchable Waiting/Paid/Confirmed pay-card object, a three-step payment story on an iPhone and a vendor tablet (steps follow scroll on wide screens and are tapped through on narrow ones), an "After the payment" sample ledger and report, three FAQ rows linking to `/faq`, a closing "Join the waitlist" CTA, and no published price (pilot notice only, carried by the FAQ rather than a benefit tile). Sign-in and the dashboard stay reachable by direct URL. When signed in, the landing, About and FAQ nav shows a Dashboard link and the shared `LandingAccountNav` (Dashboard link and account menu with Sign out), named from the vendor profile's stall name. Landing surfaces (checkout card, FAQ rows) use one small `rounded-lg` radius and the landing has no glow or background wash, per the shared public page rules. `@merqo/ui` is pinned to merqo-ui commit 8d2da3ab (v0.67.0), whose `AppLinkProvider` is mounted once in the root layout so its client exports navigate client-side without a `LinkComponent` prop. The pin also supplies the `PricingLadder`, which the vendor plan page renders (the navigation plan chip is its `TierChip`) from merqo's public plan catalog (paykit stores no prices); the ladder hides the qkit-only Event Pass block. Money and time render through its `Money`, `Timestamp`, `formatMoney` and `formatDateTime` (S$ amounts, dates like "7 Nov 2026", all in Singapore time). The dashboard Home, Stats and Reports pages use its `StatTile` (`card`), `DataTable`, `EmptyState`, `ElevatedCard`, `Section` and link-mode `SegmentedControl`. The dashboard also uses its `ConfirmDialog` (inquiry delete), `CopyButton` (booking ID), `downloadCsv` (earnings CSV) and `AsyncSubmitButton` (refund) rather than local copies.
The public landing is in pre-launch mode, headlined "Get paid by PayNow. Know who has paid.": an "Early access" badge, a hero with a switchable Waiting/Paid/Confirmed pay-card object, a three-step payment story on an iPhone and a vendor tablet (steps follow scroll on wide screens and are tapped through on narrow ones), an "After the payment" sample ledger and report, three FAQ rows linking to `/faq`, a closing "Join the waitlist" CTA, and no published price (pilot notice only, carried by the FAQ rather than a benefit tile). Sign-in and the dashboard stay reachable by direct URL. When signed in, the landing, About and FAQ nav shows a Dashboard link and the shared `LandingAccountNav` (Dashboard link and account menu with Sign out), named from the vendor profile's stall name. Landing surfaces (checkout card, FAQ rows) use one small `rounded-lg` radius and the landing has no glow or background wash, per the shared public page rules. `@merqo/ui` is pinned to merqo-ui commit 5a08fd87 (v0.68.0), whose `AppLinkProvider` is mounted once in the root layout so its client exports navigate client-side without a `LinkComponent` prop. The pin also supplies the `PricingLadder`, which the vendor plan page renders (the navigation plan chip is its `TierChip`) from merqo's public plan catalog (paykit stores no prices); the ladder hides the qkit-only Event Pass block. Money and time render through its `Money`, `Timestamp`, `formatMoney` and `formatDateTime` (S$ amounts, dates like "7 Nov 2026", all in Singapore time). The dashboard Home, Stats and Reports pages use its `StatTile` (`card`), `DataTable`, `EmptyState`, `ElevatedCard`, `Section` and link-mode `SegmentedControl`. The dashboard also uses its `ConfirmDialog` (inquiry delete), `CopyButton` (booking ID), `downloadCsv` (earnings CSV) and `AsyncSubmitButton` (refund) rather than local copies.

The hosted pay page (`/pay/{id}`) shows "Paying <business name>" above the amount (the vendor's payee name, falling back to their inquiry-form business name), reports claim and upload failures inline instead of in toasts, shows a plain retry notice when the payment cannot be loaded, and honours a checkout's `expires_at`: a pending order past it shows "This order has expired" instead of the QR (claimed and confirmed ones are unaffected), with a "Pay within N mins" line while it is open.

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "paykit",
"version": "0.11.3",
"version": "0.12.0",
"private": true,
"packageManager": "pnpm@11.10.0",
"engines": {
Expand All @@ -20,7 +20,7 @@
"prepare": "husky"
},
"dependencies": {
"@merqo/ui": "github:merqo-io/merqo-ui#8d2da3abcb4e5c3bab2b3a3482c740797e2d5c03",
"@merqo/ui": "github:merqo-io/merqo-ui#5a08fd875ad6c96f096fbcb4d56ed50eb238f33e",
"@sentry/nextjs": "10.76.2",
"@supabase/ssr": "^0.10.3",
"@supabase/supabase-js": "2.110.4",
Expand Down
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ allowBuilds:
esbuild: true
sharp: true
unrs-resolver: true
"@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
"@sentry/cli": false
tesseract.js: false

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 @@ -52,7 +52,7 @@ for page render/data failures; it offers "Try again" and a "Back to dashboard" l
free. The old `stats/` and `reports/earnings/` URLs redirect to the matching tab.
- `plan/` shows the current plan and points to the Merqo account; merqo owns pricing.
- `profile/` saves shared stall name/social links and Supabase account metadata.
- The account menu carries the shared "Text size" row (`textSizeKey="paykit:scale:dashboard"`), saved per browser.
- The account menu lists "Text size · 100%" under a "Preferences" label; it opens a preset submenu (75% to 200%, `textSizeKey="paykit:scale:dashboard"`), saved per browser.
- `layout.tsx` labels the account menu with `accountLabel(user, stall_name)` from `@merqo/ui`: the stall name, else the auth name, else the email local part.

`page.tsx` (Home, titled "Home") renders the "Get set up" checklist above the summary, from
Expand Down
9 changes: 4 additions & 5 deletions src/app/dashboard/dashboard-nav.dom.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,12 @@ describe("DashboardNav", () => {
).toHaveAttribute("href", "/dashboard");
});

it("shows the Text size row when the account menu opens", async () => {
it("shows the Preferences group and Text size row when the account menu opens", async () => {
const user = userEvent.setup();
render(<DashboardNav {...baseProps} />);
await user.click(screen.getByRole("button", { name: /account menu/i }));
expect(screen.getByText("Text size")).toBeInTheDocument();
expect(screen.getByText("Preferences")).toBeInTheDocument();
expect(screen.getByText("Text size · 100%")).toBeInTheDocument();
});

it("account menu holds Payment setup, Profile, Plan, help and feedback, theme, text size, then Sign out", async () => {
Expand All @@ -79,9 +80,7 @@ describe("DashboardNav", () => {
"Feedback",
"Payment setup",
"Theme · System",
"A-",
"100%",
"A+",
"Text size · 100%",
"Sign out",
]);
expect(screen.getByRole("menuitem", { name: /^Plan/ })).toHaveAttribute(
Expand Down
Loading