Repository navigation
feat(prompts): give Starter a $1 trial of Improve, with an upgrade once it's spent - #1296
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]>
Collaborator
Author
|
@gkhngyk This PR is a product change from main, independent of the Content Editor stack.
Plans are kept in step in |
This was referenced Oct 20, 2026
gkhngyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Oct 21, 2026
ansvisor#1296 and ansvisor#1297 are squash-merged on main; this keeps only this branch's own change on top. Claude-Session: https://claude.ai/code/session_0121amRjX7UFrgmGELAtkc7A
This was referenced Oct 21, 2026
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
Starter gets a $1 monthly trial of Improve: the Positions panel's AI suggestions (
prompt_improve). Starter users can try what Improve does before they upgrade. Once the $1 is spent, the Improve tab offers Starter an Upgrade link to the billing page.This changes PROMPT-003's decision that Improve is Growth and above. The other plans keep 1% of the plan price (Growth $2.49, Enterprise $4.99, self-hosted unlimited). Starter's $1 is a fixed trial, not 1% of $49.
Plans (
server/src/config/plans.js,web/src/config/plans.ts, kept in step)featuresnow includeprompt_improve.improveMonthlyBudgetUsdchanges from 0 to 1, with a comment saying why.enforceImproveQuotacharges each generation's real token cost against the monthly budget, so $1 holds whichever model is configured. The tab's estimate showed about 100 generations at the current default.Improve tab (
web/src/components/prompts/prompt-improve-tab.tsx)en.json(prompts.improve.quota): "About N generations left this month", the percent-left hint, and "This month's suggestion budget is used up. It resets when your subscription renews."/dashboard/settings?tab=billing(the same target as the Content usage card's upgrade). Paid plans only see when it resets.planIdthrough to the note.Related issue
Changes PROMPT-003 (Improve plan limits). It also gives Starter the budget the Content Editor's AI will use (Rebuild outline in #1293 is metered from the same Improve budget).
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
IS_CLOUD=trueon the server andNEXT_PUBLIC_IS_CLOUD=trueon the web, put an organization onstarter.prompt_improve_usagerow ofcost_usd1 for the org this month. The note reads "This month's suggestion budget is used up…", followed by Upgrade for more, which opens Settings → Billing. Generate is disabled.Checked locally:
self_hostedand the row deleted.Tests:
prompt-improve.test.js. Improve is on every plan; Starter's budget is $1, and the other budgets are unchanged.prompt-improve-tab.test.tsx: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,912 tests) andyarn buildpass. Server:npm run format,npm run lintandnpm test(1,919 tests, also without a.env, as CI runs them) pass. No migration.🤖 Generated with Claude Code