Skip to content

Console settings with plan switching, clearer sign-in links, fuller console pages - #49

Merged
ashutosh091 merged 3 commits into
previewfrom
feat/console-settings-plans
Nov 14, 2026
Merged

ashutosh091 merged 3 commits into
previewfrom
feat/console-settings-plans

Conversation

@ashutosh091

Copy link
Copy Markdown
Contributor

What changes

Links to the app, sign in, sign up and sign out

  • Site header: signed out, Sign in and Get started (to /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).
  • Footer gains an Account column (Create an account, Sign in, Open the console).
  • Sign-in and sign-up pages link back to floodwall.ai. Signing in opens the console; signing out of the console goes to the home page.
  • Console sidebar: Settings, floodwall.ai, the crate, and the account's initials.

Account and plans

  • The account page moves into the console at /app/settings (profile, plan and billing, session). /account redirects there and keeps ?billing=success, so Checkout returns and old emails still land right.
  • Plan and billing shows Free, Team and Business side by side. Free buys through Checkout (monthly or yearly, discount code). A paid plan switches to the other one after a preview of the prorated charge; invoices, card and cancelling stay on the Paygate page.
  • New POST /billing/change in the API (Paygate POST /v1/subscriptions/:id/change, always_invoice), with tests and README docs.
  • Without the sign-in service (local dev) billing runs as an in-browser demo; nothing is charged. Demo code DEMO20.

Console pages

  • Overview: needs-attention panel for held intents, getting-started checklist.
  • Policies: per-policy admit/defer/reject counts, how verdicts combine, the rules file.
  • Ledger: filter by kind, chain summary, records open to show full hashes.
  • Hold queue: deferring policy, reason, priority, blast radius, tick; what Release and Expire do.
  • Intent: action panel and timeline. Intents: search by agent or resource.

Not in this PR

  • Switching between monthly and yearly billing.
  • The Paygate "Back to app" link: branch fix/billing-page-return-link (Floodwall) and feat/billing-page-return-link (Paygate). It touches api/src/billing.ts near changePlan, 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).
  • Clicked through in the browser at 1440px and 375px: demo checkout to Team, switch to Business with preview, sign out to home, sign in to console.

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.
@ashutosh091
ashutosh091 merged commit a46fb98 into preview Nov 14, 2026
3 checks passed
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.

1 participant