docs: add Billing section (trial, seats, spillover, lifecycle, FAQ)#4
Open
maekuss wants to merge 4 commits into
Open
docs: add Billing section (trial, seats, spillover, lifecycle, FAQ)#4maekuss wants to merge 4 commits into
maekuss wants to merge 4 commits into
Conversation
Introduce a 6-page Billing cluster under the Platform tab that goes deeper than billing-access.mdx: a map page, the trial mechanics with the explicit trial-skip path, peak/HWM math with a worked example, the full spillover (PR overage) decision tree and toggle semantics, the cancel/grace/reactivate/past-due/resubscribe lifecycle, and a named-scenario FAQ. Voice and structure follow the conventions of Greptile and CodeRabbit's docs: one-sentence lead, role-badge callout for owner-only pages, named accordion scenarios over generic Q&A, "What's next" card grids, worked-example tables for billing math. Also ships docs-audit.md, an independent audit of every other docs page against iva/main and hecktron/main with file:line citations for each drift item. Not applied here — billing additions only on this branch — but ready for a follow-up PR. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Reuse the existing platform-billing-dark.png hero card on the billing overview to match the visual treatment of platform/billing-access.mdx. Drop the internal iva-repo state-diagram link from lifecycle.mdx — public docs shouldn't reference a private repo path. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Drops <Frame> placeholders at 8 spots across the billing pages, each with alt text and caption that describe the exact frontend component or route to capture. Adds /images/screenshot-placeholder.svg as a visual marker during review, plus platform/billing/IMAGES.md as a checklist mapping each placeholder to the source component on hecktron/origin/main (with the suggested PNG filename). Once real screenshots land, replace each <img src> with the named file from /images/ and delete IMAGES.md + the placeholder SVG. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…ver gates) Two factual bugs fixed after verifying every claim against iva/origin/main and hecktron/origin/main: 1. **Trial-skip is not a separate entry point.** There is no "Start paid plan" button. Every paid subscription starts as a trial — adding a payment method on a trial-eligible org auto-starts the trial (usePaymentMethodSetup + savePaymentMethod). To get to paid billing same-day, start the trial and click "Skip trial" on the Billing sidebar (applySubscriptionAction with action='end-trial'). Same-day Skip still flips has_used_trial permanently. Updated: trial.mdx (rewrote the skip section), faq.mdx (skip scenario + glossary), lifecycle.mdx (state matrix), overview.mdx (glossary). 2. **Spillover has 3 gates, not 4.** On main, eligibility is: subscription ACTIVE + owner opt-in + not OSS-exempt. There is no LaunchDarkly master switch in dev-seat-policy.service.ts:858-861. The earlier 4-condition claim came from a planning doc, not the shipped code. Internal-unlimited orgs bypass everything separately. Updated: spillover.mdx (steps, deny table, troubleshooting). Also tightened: - Lifecycle state-action matrix: Past-due no longer shows a Cancel button (isActive gate excludes past_due); Canceled state split by trial-already-used to reflect the trialCtaVisible vs Resubscribe branch in billing.vue. - Permissions table footnote naming the four roles (Viewer / Member / Admin / Owner) and noting higher-role inheritance. - HWM "monotonically increases" → "monotonically non-decreasing within a period; reset on rollover" — precise wording. - "How the trial starts" step 4 reworded — adding a PM auto-starts; there is no separate confirm step. - Trial troubleshooting accordion rewritten to match real UI labels. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
Adds a 6-page Billing group under the Platform tab covering everything `platform/billing-access.mdx` doesn't go deep on:
Voice and structure follow conventions from Greptile and CodeRabbit docs: one-sentence lead, `` role-badge callout for Owner-only pages, named accordion scenarios over generic Q&A, "What's next" CardGroups on every non-terminal page, worked-example tables for math.
Nav: new `Billing` group added to `docs.json` under the Platform tab, between Overview and the rest. `platform/billing-access.mdx` is unchanged on this PR — its factual issues are listed in `docs-audit.md` for a follow-up.
Also shipped
`docs-audit.md` — independent drift audit of every existing docs page against `iva/origin/main` and `hecktron/origin/main` with `file:line` citations. Lists ~30 drift items across 14 pages and a Top-10 prioritized fix list. No existing pages were modified on this PR; the audit is intended as the scope spec for a follow-up "docs accuracy" PR.
Highlights worth pulling forward separately:
Test plan
Companion PR on `HacktronAI/iva` (state diagram with code citations, target: staging): https://github.com/HacktronAI/iva/pull/821
Followups (out of scope for this PR)
🤖 Generated with Claude Code