Phase 14, part 2: the owner's Billing page

Settings → Billing shows the team's plan, trial, people, agents, storage
and next invoice. The owner subscribes through Stripe Checkout (monthly, or
yearly when there's a price) and pays or reads invoices in Stripe's
Customer Portal; admins see the plan only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 13:19:30 -07:00
co-authored by Claude Opus 5.5
parent a47990f9bf
commit 8fb79220e3
8 changed files with 498 additions and 2 deletions
+1
View File
@@ -171,6 +171,7 @@
<div class="nav-label">Data</div>
<a href="/settings/backups" {{if eq .Nav "settings/backups"}}aria-current="page"{{end}}>{{template "icon" "backups"}}Backups</a>
<a href="/settings/activity" {{if eq .Nav "settings/activity"}}aria-current="page"{{end}}>{{template "icon" "backups"}}Activity</a>
{{if $.Billing}}<a href="/settings/billing" {{if eq $.Nav "settings/billing"}}aria-current="page"{{end}}>{{template "icon" "metrics"}}Billing</a>{{end}}
{{with $.Viewer}}{{if and .User (eq (print .Member.Role) "owner")}}<a href="/settings/data" {{if eq $.Nav "settings/data"}}aria-current="page"{{end}}>{{template "icon" "backups"}}Your data</a>{{end}}{{end}}
<a href="/settings/about" {{if eq .Nav "settings/about"}}aria-current="page"{{end}}>{{template "icon" "info"}}About</a>
{{end}}