Commit Graph

8 Commits

Author SHA1 Message Date
John Yeo
972b5f6019 latest 2026-05-08 01:25:53 +08:00
John Yeo
9b8d930476 chore: enable plan immediately on checkout session 2026-04-30 15:04:05 +01:00
Ayush Rodrigues
d4907e63f2 feat: smart default scope for attach and create-schedule sheets
Adds useSheetScopeEntityId hook used by both AttachProductSheet and
CreateScheduleSheet, which seeds scope from ?entity_id= and falls back
to the customer's active entity-level plan when no customer-level plan
exists. AttachFormProvider now exposes entityId and onScopeChange on
context, so AttachProductSelection and the scope dropdown pull from
the form context instead of the page-level useEntity() store.

Made-with: Cursor
2026-04-24 17:01:54 +01:00
Charlie Lamb
696dad7475 chore: initial create schedule checkouts 2026-04-20 14:28:37 +01:00
Ayush Rodrigues
b3e930ef82 Allow create_schedule without payment method — checkout URL or send invoice
Remove the payment-method requirement from create_schedule. When no payment
method exists the flow now generates a Stripe Checkout URL (matching attach).
Add invoice_mode and redirect_mode params to the schedule API, wire up a
review → send-invoice sheet flow in the dashboard, and expose
redirect_to_checkout on the schedule preview response.

Made-with: Cursor
2026-04-20 13:09:10 +01:00
John Yeo
699c00e42c chore: cleanup 2026-04-16 15:59:41 +00:00
Charlie Lamb
8998bf8d62 chore: add stripe updates & dry up multi attach logic 2026-04-16 10:21:23 +01:00
Charlie Lamb
c5fe0ecb38 feat: init billing cycles schema
Made-with: Cursor
2026-04-15 16:37:56 +01:00