Repository navigation
Closed
Labels
enhancementNew feature or request
Description
What
Remove the `/pricing` page from the app and clean up its references. Pricing has moved to the marketing site (`ansvisor.com`) and the in-app duplicate at `app.ansvisor.com/pricing` is out of date and worth maintaining anywhere — it currently has hardcoded values that drift from `config/plans.ts`, and an unupdated GitHub link.
Why
- `app.ansvisor.com` is the dashboard subdomain (search indexing blocked via `chore(seo)`) — pricing has no business there, it's a marketing surface.
- Two copies of the comparison data drift. Today's drift on this page:
- Starter "AI platforms" says `4` — should be `2` per `web/src/config/plans.ts` (`starter.limits.maxPlatforms`).
- Starter "Prompts tracked" says `10` — should be `50` per the same file (`starter.limits.maxPrompts`).
- The `COMPARISON_SECTIONS` block in `web/src/app/[locale]/(marketing)/pricing/page.tsx` is hardcoded instead of reading from `PLANS`.
- The "View on GitHub" button at the bottom of the page (around line 343) still points at the placeholder `https://github.com/your-org/ansvisor\` — broken since the org was named.
All of this disappears if we simply remove the page.
Scope
- Delete `web/src/app/[locale]/(marketing)/pricing/page.tsx`
- Clean up the `marketing.pricing.*` translation block in `web/messages/en.json` (and any other locale files that still hold a copy)
- Add a redirect from `/pricing` → the canonical marketing pricing URL (`https://ansvisor.com/pricing\`) in `web/src/proxy.ts`, so bookmarks and old external links still work instead of 404ing
Acceptance criteria
- Hitting `app.ansvisor.com/pricing` redirects to `https://ansvisor.com/pricing\` (302)
- No `/pricing` route is registered in the app
- No leftover internal links pointing at `/pricing` (e.g. footer / sign-up CTA — there should be none, but verify)
- No stale `marketing.pricing.*` keys in i18n message files
- `yarn build` + `yarn typecheck` + `yarn format:check` clean
Out of scope
- The marketing site itself (separate codebase). The drifted numbers + broken GitHub link need fixing there separately if they exist on `ansvisor.com/pricing` too — but that's not this repo's problem.
- The in-app Settings → Plan & Billing plan switcher (`plan-switcher.tsx`) — that's the authenticated upgrade path, stays as-is.
- Pricing-related fields in `config/plans.ts` (`pricing.monthly`, etc.) — still used by the plan switcher.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
chore(marketing): remove the in-app /pricing page (#119)