Repository navigation
feat(settings): link the billing plans to every feature on the pricing page - #1311
Merged
Merged
Conversation
…ce it's spent Starter now has the Improve tab (prompt_improve) on a $1 monthly budget, a trial rather than 1% of its $49 price, so it can see what Improve does. PROMPT-003 kept Improve to Growth and above. - server/src/config/plans.js and web/src/config/plans.ts: Starter gets prompt_improve and improveMonthlyBudgetUsd 1. - Improve tab: the budget note reads from en.json (prompts.improve.quota); once the budget is spent, Starter gets an "Upgrade for more" link to the billing page. A spent budget is said once, by the note, instead of also repeating the server's error. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Settings → Billing's plan cards and custom plan box now follow www.ansvisor.com/pricing. - Each card lists, with a check: brands, unlimited seats, prompts tracked, the answer engines it tracks by name (Starter: ChatGPT & Microsoft Copilot; Growth: ChatGPT, Perplexity, Gemini, Microsoft Copilot, Google AI Mode and Google AI Overviews, instead of "8 answer engines"), content briefs and site audits a month, and what the plan adds; the taglines are the pricing page's. - "Need a custom plan?" says who it's for and that it starts at $499/month, with six of the custom plan's points. - The copy is in en.json (settings.planCards, customPlanPoints); the card keys nothing uses any more are removed. Plan limits are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…wth at 5x
AI usage (the monthly budget Improve and, later, the Content Editor's AI
spend) now comes in tiers the billing cards can name: Starter $1 (1x),
Growth $5 (5x, up from $2.49), Enterprise $10 at the least (up from $4.99,
so it stays above Growth; 1% of the contract still raises it).
- server/src/config/plans.js and web/src/config/plans.ts: the new budgets,
with comments; plan-guard.js and improve-cost.js no longer say the
budget is 1% of the plan price.
- Billing cards: "{n}x AI usage", worked out from the budgets against
Starter's, with a hover note on what it covers (Agent Chat runs on the
customer's own key).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he SAVE50 offer During the free trial every plan card buys now: the trial ends today on the plan and billing period picked (a Starter trial can buy Growth, or a year up front) and the card added for the trial pays at once, with the SAVE50 code filled in for a monthly plan. A failed payment changes nothing and offers Stripe's page to update the card. After the trial, a paid plan can switch between monthly and annual billing as well as change plan. The cards get a Monthly / Annual switch (a year is twelve months less 20%, the full price struck through, "Save 20%") and a Popular badge on Growth. Annual prices come from STRIPE_STARTER_ANNUAL_PRICE_ID and STRIPE_GROWTH_ANNUAL_PRICE_ID; the plan request is validated with zod. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… plan on a declined card - PATCH /api/stripe/subscription answers 403 admin_only for any role but admin, before anything is charged; Billing shows non-admins a note instead of the Buy, Upgrade, Downgrade, Switch and Reactivate buttons. - A billing period switch now uses payment_behavior error_if_incomplete, so a declined card returns 402 payment_failed and leaves the plan as it was instead of moving it to the new period past due. - Test: buying with the code field left empty applies no discount. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…g page The plan cards list each plan's highlights. A quiet link under them, "See everything each plan includes", opens www.ansvisor.com/pricing in a new tab, so the Billing page and its Buy buttons stay where they are. Shown to every role. PRICING_URL sits next to CONTACT_SALES_URL. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
|
@gkhngyk A small one on top of #1300: a muted "See everything each plan includes ↗" link under the Billing plan cards, opening www.ansvisor.com/pricing in a new tab, so people can see the whole feature list without leaving Billing. Web only. It's stacked on #1300, so please merge #1300 first; until then the diff here includes #1300's changes (this PR's own change is 81cbfdc). |
8 of 12 tasks
DELETE /api/stripe/subscription answers 403 admin_only for other roles before Stripe is called, and Billing shows Cancel Subscription to admins only, with tests. Co-Authored-By: Claude Opus 5.5 <[email protected]>
8 of 12 tasks
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 links the plan cards to the full feature list on www.ansvisor.com/pricing (product owner's request).
The plan cards only list each plan's highlights, so most of what a plan includes isn't visible in the app. A quiet link under the cards, "See everything each plan includes ↗", opens the pricing page in a new tab.
Why this form: the aim is to show more of the product without drawing people away from buying.
rel="noopener noreferrer"), so the Billing page stays open to come back and buy.Code
PRICING_URL = 'https://www.ansvisor.com/pricing'inconfig/plans.ts, next toCONTACT_SALES_URL.plan-switcher.tsx: the link between the plan cards and the custom-plan box.settings.seeAllPlanFeaturesinen.json.Related issue
Product request (2026-10-21). No issue.
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
With
NEXT_PUBLIC_IS_CLOUD=true, open Settings → Billing:Checked locally with the demo organization temporarily on a Starter trial (since restored), in light and dark, and at 1024 px.
Test:
plan-switcher.test.tsx— the link's address, text,target="_blank"andrel, as a manager.Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/) (0 errors; the 6 warnings are in untouched files, as on main)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Web:
yarn test(1,947 tests) andyarn buildpass.🤖 Generated with Claude Code