Repository navigation
Console settings with plan switching, clearer sign-in links, fuller console pages - #49
Merged
Merged
Conversation
POST /billing/change moves the account's Paygate subscription to the other paid plan. With preview it returns the prorated charge for the rest of the period; without it the change is invoiced at once (always_invoice) and the new plan is stored straight away. Free accounts, the same plan and unknown plans are refused.
…ller console pages - Account and billing move into the console at /app/settings; /account redirects there, keeping ?billing=success for the Checkout return. - Plan and billing shows Free, Team and Business side by side: Free buys through Checkout (monthly or yearly, with a discount code), a paid plan previews the prorated charge before switching. Without the sign-in service the demo keeps a pretend plan in the browser. - Console sidebar: Settings, a link back to floodwall.ai and the crate, the account's initials; signing out goes to the home page. - Site header: Sign in and Get started (to /signup) signed out, the account menu and Open console signed in; the GitHub link becomes a small button. Footer gains an Account column; sign-in pages link back to the site. Signing in opens the console. - Overview: needs-attention panel for held intents and a getting-started checklist. Policies: per-policy activity, how verdicts combine, the rules file. Ledger: kind filter, chain summary, expandable records. Hold queue: deferring policy and context. Intent: action panel and timeline. Intents: search by agent or resource.
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.
What changes
Links to the app, sign in, sign up and sign out
/signup); signed in, the account menu and Open console. The "Sign up" item that scrolled to a home-page section is gone; the GitHub link is a small button (the hero's View the Crate stays).Account and plans
/app/settings(profile, plan and billing, session)./accountredirects there and keeps?billing=success, so Checkout returns and old emails still land right.POST /billing/changein the API (PaygatePOST /v1/subscriptions/:id/change,always_invoice), with tests and README docs.DEMO20.Console pages
Not in this PR
fix/billing-page-return-link(Floodwall) andfeat/billing-page-return-link(Paygate). It touchesapi/src/billing.tsnearchangePlan, so expect a small merge.Checks
site:tsc --noEmit,npm test(24 pass),npm run build.api:node --test test/billing.test.mjs(21 pass, 2 new).