feat: billing workspace templates for platform and tenant billing - #44
Merged
Merged
Conversation
Move the shell, sidebar navigation, view frame, primitives and the ViewTransition wrapper into workspace-kit so the billing templates and agents-builder share one workspace shell.
billing-kit holds provider-neutral contracts, formatters, the Stripe descriptor and the shared billing components, including gift codes. billing-account is the customer workspace and billing-console the operator workspace for platform and tenant billing.
Remove the ten billing blocks and their showcase, rebuild the billing feature pack and Console Kit module on billing-account, and document both templates under one Billing section of the docs site. BREAKING CHANGE: the billing-* registry blocks are removed; install billing-account, billing-console or billing-kit instead.
|
Review complete. No issues found — approved ✅. This is a documentation-only change that updates how agents select billing surfaces: the routing table, eval expectations, ownership reference, and workspace guidance now point to
Reviewed commit: 61fde9c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
billing-*blocks and their showcase with two workspace templates built on a shared kit:billing-account: the customer workspace (overview, usage by credit pool, plans with a change preview, credits and gift codes, invoices, activity).billing-console: the operator workspace for platform or tenant billing (overview, catalog with entitlement matrix, meters, packs and gift codes, customers, payment provider with readiness and the gated billing switch, platform database standing).billing-kit: provider-neutral contracts, formatters, the built-in Stripe descriptor, and every card, table and dialog the templates use.workspace-kit(shell, sidebar rail and drawer, view frame, primitives, ViewTransition wrapper) from agents-builder; agents-builder now uses it.?code=prefill, typed refusals, history); operators create codes, bulk-create single-use batches with CSV export, pause them, and see redemptions. Codes credit billing meters (e.g. compute) or limits (e.g. seats).billing-account./blocks/billing) with tabs for Billing Account, Billing Console, and the feature pack. Storybook covers both templates and every kit component group.BREAKING CHANGE: the
billing-*registry blocks are removed; installbilling-account,billing-console, orbilling-kitinstead.Backend notes (constructive-db, not blocking)
RAISE WARNINGfor not found, expired and max redemptions, does not checkis_active, and users cannot resolve a code to its id; aredeem_credit_code(code)function is needed.Test plan
pnpm check(typecheck, lint, registry build and parity, all tests)billing-account,billing-console,agents-builder,console-module-billing,preset-fullpnpm pack:check, registry smoke installs,pnpm build:pages, Pages artifactpnpm build:storybook