Skip to content

Promote staging to main (v0.10.0: discount codes, min order qty, order-ready email, board ready column, settings columns) - #511

Merged
cljiahao merged 8 commits into
mainfrom
staging
Dec 2, 2026
Merged

cljiahao merged 8 commits into
mainfrom
staging

Conversation

@cljiahao

@cljiahao cljiahao commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Promotes staging (2ba0439) to main.

Included PRs: #497, #498, #500, #503, #508, #509, #510.

Migrations in this promotion (all confirmed applied on prod): 0130 item min order qty, 0131 order-ready email, 0132 discount release by id, 0133 board settings show ready column. 0129 is already on main.

No CHANGELOG or version edits; this is a promotion only.

🤖 Generated with Claude Code

cljiahao and others added 8 commits December 1, 2026 22:43
…#506)

* docs(faq): replace pilot and in-build wording with dated, true labels

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* docs(changelog): drop stray empty 0.6.0 heading above 0.6.1

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…503)

* feat(board): two-column board by default with an opt-in Ready column

Ready orders sit at the bottom of Preparing unless Settings turns on a Ready
column. Settings gets a Board display card with a colour key for the two blues.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* test(board): cover both column modes in the realtime board tests

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* feat(discounts): vendor discount codes (#487)

* feat(discounts): vendor discount codes with checkout, order and board display

Paid vendors (Pro or a running Event Pass) create, switch off and delete
percent or fixed codes with an optional last day and use cap. Customers enter
a code at checkout; place_order re-validates and redeems it atomically so the
client total is never trusted and a total never goes below zero. The order
page and the live board card show the code and amount taken off.

Also adds the service-role-only qkit.issue_reward_code(...) for loopkit,
idempotent on source_ref.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* test(discounts): avoid DELETE inside subselect in pgTAP

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(discounts): lock preview to service role, release uses on cancel, free cart

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(discounts): justify service client import in checkout action

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* test(discounts): prove the cancel trigger releases a use only once

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* docs: HitPay QR ordering rate and break-even scenarios (#489)

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>

* docs: align Hawkers competitors row with handoff doc (#499)

Add Hawker POS and Rewardly as direct and EPOS as adjacent for hawkers,
matching the 2026-12-01 addendum and the business handoff doc.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* fix(demo): options scene shows the option items (#488)

* fix(demo): options scene replaces the onboarding sample menu

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(demo): wait for menu rows before removing the sample items

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* chore(release): stamp 0.6.0

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>

* feat(ui): adopt @merqo/ui 0.67.0 text size control; add Text size to account menu (#501)

* feat(ui): adopt @merqo/ui 0.67.0 text size control and add Text size to the account menu

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* docs(readme): note the v0.67.0 pin and shared text size control

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(board): two-column skeleton and document undo-window orders in Preparing

The loading skeleton now matches the default two-column board, and board-derive notes why picked-up orders stay in the ready list.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(board): renumber show_ready_column migration to 0133

Staging already has 0129_discount_codes.sql, and 0130-0132 are taken by other PRs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
* feat(discounts): vendor discount codes with checkout, order and board display

Paid vendors (Pro or a running Event Pass) create, switch off and delete
percent or fixed codes with an optional last day and use cap. Customers enter
a code at checkout; place_order re-validates and redeems it atomically so the
client total is never trusted and a total never goes below zero. The order
page and the live board card show the code and amount taken off.

Also adds the service-role-only qkit.issue_reward_code(...) for loopkit,
idempotent on source_ref.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* test(discounts): avoid DELETE inside subselect in pgTAP

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(discounts): lock preview to service role, release uses on cancel, free cart

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(discounts): justify service client import in checkout action

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* test(discounts): prove the cancel trigger releases a use only once

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* feat(order): minimum order quantity per menu item

Vendors set an optional minimum per item. The cart starts the item at the
minimum, removes it when decremented below, and the DB refuses customer
orders below it (migration 0130, ORDER_BELOW_MIN).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(order): cap minimum order quantity at the 20-per-line order limit

place_order refuses any line above 20, so a larger minimum could never be
ordered. The editor, save validation and cart now treat it as invalid or
unreachable, and the editor flags a minimum above the booth's per-order cap.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* chore(release): 0.7.0

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* docs(changelog): drop duplicated 0.6.0 heading

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…ed (#509)

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
* feat(discounts): vendor discount codes with checkout, order and board display

Paid vendors (Pro or a running Event Pass) create, switch off and delete
percent or fixed codes with an optional last day and use cap. Customers enter
a code at checkout; place_order re-validates and redeems it atomically so the
client total is never trusted and a total never goes below zero. The order
page and the live board card show the code and amount taken off.

Also adds the service-role-only qkit.issue_reward_code(...) for loopkit,
idempotent on source_ref.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* test(discounts): avoid DELETE inside subselect in pgTAP

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(discounts): lock preview to service role, release uses on cancel, free cart

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(discounts): justify service client import in checkout action

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* test(discounts): prove the cancel trigger releases a use only once

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* feat(order): minimum order quantity per menu item

Vendors set an optional minimum per item. The cart starts the item at the
minimum, removes it when decremented below, and the DB refuses customer
orders below it (migration 0130, ORDER_BELOW_MIN).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(order): cap minimum order quantity at the 20-per-line order limit

place_order refuses any line above 20, so a larger minimum could never be
ordered. The editor, save validation and cart now treat it as invalid or
unreachable, and the editor flags a minimum above the booth's per-order cap.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* feat(order): optional email when a QR order is marked ready

Checkout gets an unticked opt-in checkbox and email field. The address
lives in service-role-only qkit.order_ready_emails (migration 0131), kept
off orders because that table is in the Realtime publication. Mark Ready
claims the row and sends one Resend email; a send failure never blocks it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(order): keep first ready-email address, neutral subject

Insert instead of upsert and ignore 23505, look up only unfinished orders,
mark ready-email.ts server-only, drop the vendor-controlled booth name from
the subject, and extend the pgTAP test with service_role insert and delete
returning.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(test): claim ready email through a CTE in pgTAP

DELETE ... RETURNING is not valid inside a subquery. Run the service_role
insert and delete before asserting, and assert after reset role.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* chore(release): 0.8.0

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
* feat(discounts): vendor discount codes with checkout, order and board display

Paid vendors (Pro or a running Event Pass) create, switch off and delete
percent or fixed codes with an optional last day and use cap. Customers enter
a code at checkout; place_order re-validates and redeems it atomically so the
client total is never trusted and a total never goes below zero. The order
page and the live board card show the code and amount taken off.

Also adds the service-role-only qkit.issue_reward_code(...) for loopkit,
idempotent on source_ref.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* test(discounts): avoid DELETE inside subselect in pgTAP

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(discounts): lock preview to service role, release uses on cancel, free cart

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(discounts): justify service client import in checkout action

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* test(discounts): prove the cancel trigger releases a use only once

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* feat(order): minimum order quantity per menu item

Vendors set an optional minimum per item. The cart starts the item at the
minimum, removes it when decremented below, and the DB refuses customer
orders below it (migration 0130, ORDER_BELOW_MIN).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(order): cap minimum order quantity at the 20-per-line order limit

place_order refuses any line above 20, so a larger minimum could never be
ordered. The editor, save validation and cart now treat it as invalid or
unreachable, and the editor flags a minimum above the booth's per-order cap.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* feat(order): optional email when a QR order is marked ready

Checkout gets an unticked opt-in checkbox and email field. The address
lives in service-role-only qkit.order_ready_emails (migration 0131), kept
off orders because that table is in the Realtime publication. Mark Ready
claims the row and sends one Resend email; a send failure never blocks it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(order): keep first ready-email address, neutral subject

Insert instead of upsert and ignore 23505, look up only unfinished orders,
mark ready-email.ts server-only, drop the vendor-controlled booth name from
the subject, and extend the pgTAP test with service_role insert and delete
returning.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(db): release discount use by code id, not text

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* fix(test): claim ready email through a CTE in pgTAP

DELETE ... RETURNING is not valid inside a subquery. Run the service_role
insert and delete before asserting, and assert after reset role.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* chore: release 0.9.0

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Dec 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
qkit Ready Ready Preview Dec 2, 2026 12:59am UTC

@cljiahao
cljiahao merged commit 43561e2 into main Dec 2, 2026
19 checks passed

This branch was successfully deployed

1 active deployment
Preview — 2ba04399 Deployed Dec 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant