mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 06:18:00 +01:00
A paid event sent every signed-out visitor to sign up. For Bitcoin the account-free rail already existed (public support, tips), so a guest now gives a name and pays the organizer's own wallet directly: - guestTicketPurchase: publication gate, sold-out refusal before payment, server-side price, an intent carrying guest_name and a bearer status token. - Settlement issues the ticket to that name (issue_paid_guest_ticket, idempotent on the payment); the public status poll returns the ticket page. - usePublicPayment + PublicPaymentProgress: the poll/acknowledge/resume loop once, shared by the support panel and the ticket purchase. - A paid ticket can't be given back from its page; the organizer refunds a guest "another way" (no wallet on record), recorded with a null recipient. - Migration 20261011220000: payment_intents.guest_name, the issue function, guest_ticket returns payment_status, claim_guest_ticket points at the purchase, event_payouts.recipient_user_id nullable. Also fixes a crash from #1311: MobileStickyCTA (a server component) called the client hook useMobileActionBar, so public listing pages with a sticky buy bar switched to "Something went wrong" after loading. The bar is now its own client component. Verified: every migration replayed on Supabase Postgres 15 and the new functions exercised as anon/service_role/organizer; the purchase driven in Chromium at 390px from name to QR to ticket page. Claude-Session: https://claude.ai/code/session_01MFTqYKVJNY7ddWNQqsc7yM Co-authored-by: Claude <noreply@anthropic.com>