Skip to content

Add per-app access and annual org billing to Cloud - #57

Merged
Ziinc merged 3 commits into
mainfrom
claude/project-thread-81b9kq
Oct 12, 2026
Merged

Ziinc merged 3 commits into
mainfrom
claude/project-thread-81b9kq

Conversation

@Ziinc

@Ziinc Ziinc commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Requested by Zn · project thread

  • Org members get per-app Admin, Billing or Viewer roles (PRD §20.3) through one capability function shared by RLS and Edge Functions
  • Billing per app, paid by the org's single customer; annual = 10× monthly, no trial (PRD §4.5)
  • New Access tab and Monthly/Annual toggle; service-qa contracts (70) and Deno tests (52) pass

🤖 Generated with Claude Code

https://claude.ai/code/session_01FnMtGVhp92898pMda24XBU


Generated by Claude Code

- PRD §4.5 billing model (per app, org pays, annual = 2 months free, no
  trial, USD from a Singapore sole proprietorship) and §20.3 per-app access.
- Migration: app_collaborators, app_capabilities(_for), capability-based RLS,
  plans.annual_price_cents (check = 10x monthly), subscriptions.billing_interval,
  org_billing_customers.
- Edge Functions: app-access-update; billing-checkout takes interval and
  bills the org's single customer; webhook resolves plan and interval from
  the price; admin checks share app_capabilities_for.
- Website: Access tab, capability-gated read-only tabs, Monthly/Annual toggle
  on Billing and Pricing.
- service-qa contract and UI specs, Deno tests, decision records.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FnMtGVhp92898pMda24XBU
@github-actions

github-actions Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

… not overlap

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FnMtGVhp92898pMda24XBU
@Ziinc
Ziinc marked this pull request as ready for review October 12, 2026 20:59
@Ziinc
Ziinc merged commit bbfa183 into main Oct 12, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
preview — 7badebd8 Deployed Oct 12, 2026 by github-actions[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.

2 participants