Add subscription billing with free trial and plan limits
Step 6:
- Plans in a database table (prices in sen); 14-day free trial for
every new account.
- Stripe subscriptions behind a SubscriptionGateway interface:
subscribe, switch plan, cancel at period end, undo.
- Billing page with usage meters and plan cards; sidebar link; trial
notice on the dashboard.
- Limits enforced for stores, regenerations and AI edits. With no plan,
AI, new stores and publishing are refused and live stores go offline.
- The Stripe webhook also keeps subscriptions in step.
Tests: 164 pass (14 new). Verified with a real Stripe test
subscription: subscribe, cancel, undo.
Add AI store generation, chat edits and plan limits
Step 3: swappable AI layer (Claude via the official SDK, DeepSeek via an
OpenAI-compatible driver, and a fake provider), full store generation,
chat edits, background job with a progress screen, usage counting and
limits per plan. Removes the temporary sample-design button.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>