Skip to content

Open-source agentic AI Search Execution Platform. Track AI visibility, find opportunities, and let agents turn signals into prioritized actions and drafted fixes across ChatGPT, Claude, Gemini, Google AI Overviews, Google AI Mode, Perplexity, Grok, and Microsoft Copilot.

feat(settings): link the billing plans to every feature on the pricing page (#1311)

Cihan12846db3e098
diff --git a/web/messages/en.json b/web/messages/en.json
index be6967e34..c418819cf 100644
--- a/web/messages/en.json
+++ b/web/messages/en.json
@@ -5872,6 +5872,7 @@
"firstMonthOffer": "50% off your first month with code {code}",
"buyPlanNow": "Buy {plan} now",
"planAdminOnly": "Only admins can buy or change the plan. Ask an admin in your organization.",
+ "seeAllPlanFeatures": "See everything each plan includes",
"switchToAnnual": "Switch to annual billing",
"switchToMonthly": "Switch to monthly billing",
"buyNowTitle": "Buy {plan} now?",
diff --git a/web/src/components/settings/plan-switcher.test.tsx b/web/src/components/settings/plan-switcher.test.tsx
index d99e8747a..2cd39ad9c 100644
--- a/web/src/components/settings/plan-switcher.test.tsx
+++ b/web/src/components/settings/plan-switcher.test.tsx
@@ -142,6 +142,14 @@ describe('the plan cards', () => {
container.querySelector('a[href="https://www.ansvisor.com/contact-us"]')?.textContent,
).toBe('Contact Us');
});
+
+ it('links to every feature on the pricing page, in a new tab, for any role', async () => {
+ await render('starter', { role: 'manager' });
+ const link = container.querySelector('a[href="https://www.ansvisor.com/pricing"]');
+ expect(link?.textContent).toBe('See everything each plan includes');
+ expect(link?.getAttribute('target')).toBe('_blank');
+ expect(link?.getAttribute('rel')).toBe('noopener noreferrer');
+ });
});
describe('the billing period', () => {
diff --git a/web/src/components/settings/plan-switcher.tsx b/web/src/components/settings/plan-switcher.tsx
index b1ffa4dc5..b509a61e1 100644
--- a/web/src/components/settings/plan-switcher.tsx
+++ b/web/src/components/settings/plan-switcher.tsx
@@ -17,7 +17,13 @@ import {
DialogTitle,
DialogTrigger,
} from '@/components/ui/dialog';
-import { CONTACT_SALES_URL, PLANS, SUBSCRIBABLE_PLANS, type PlanId } from '@/config/plans';
+import {
+ CONTACT_SALES_URL,
+ PLANS,
+ PRICING_URL,
+ SUBSCRIBABLE_PLANS,
+ type PlanId,
+} from '@/config/plans';
import {
FIRST_MONTH_CODE,
annualSaving,
@@ -374,6 +380,19 @@ export function PlanSwitcher({ subscription, onUpdate }: PlanSwitcherProps) {
})}
</div>
+ {/* The cards list the highlights; the pricing page has every feature */}
+ <div className="flex justify-center">
+ <a
+ href={PRICING_URL}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="inline-flex items-center gap-1.5 text-sm text-muted-foreground underline-offset-4 transition-colors hover:text-foreground hover:underline"
+ >
+ {t('seeAllPlanFeatures')}
+ <ExternalLink className="h-3.5 w-3.5" />
+ </a>
+ </div>
+
{/* Buy now / change confirmation */}
<Dialog open={pending != null} onOpenChange={(open) => !open && setPending(null)}>
{pending && (
diff --git a/web/src/config/plans.ts b/web/src/config/plans.ts
index fcb2179e5..a7326bdc5 100644
--- a/web/src/config/plans.ts
+++ b/web/src/config/plans.ts
@@ -314,6 +314,9 @@ export const SUBSCRIBABLE_PLANS: PlanId[] = ['starter', 'growth'];
/** Where a plan the app can't sell by itself (Enterprise, add-ons) is asked for. */
export const CONTACT_SALES_URL = 'https://www.ansvisor.com/contact-us';
+/** The pricing page: every plan's features side by side. */
+export const PRICING_URL = 'https://www.ansvisor.com/pricing';
+
/**
* Self-hosted instances bypass all limits.
* Cloud is determined by NEXT_PUBLIC_IS_CLOUD env var.