diff --git a/frontend/eslint.config.mjs b/frontend/eslint.config.mjs index 8c283825c..0cda2a52e 100644 --- a/frontend/eslint.config.mjs +++ b/frontend/eslint.config.mjs @@ -40,9 +40,8 @@ export default [ 'react-hooks/immutability': 'error', 'react-hooks/refs': 'error', - // Pre-existing tags in src/app/sandbox/results/[id]/SharedSandboxResult.tsx - // pointing at /#sandbox. Downgraded to warn to unblock CI; a - // separate PR should migrate to next/link. + // Downgraded to warn to unblock CI; a separate PR should + // migrate any remaining internal tags to next/link. '@next/next/no-html-link-for-pages': 'warn', }, }, diff --git a/frontend/src/__tests__/lib/marketing-analytics-routes.test.ts b/frontend/src/__tests__/lib/marketing-analytics-routes.test.ts index e6849aff0..ff83cea14 100644 --- a/frontend/src/__tests__/lib/marketing-analytics-routes.test.ts +++ b/frontend/src/__tests__/lib/marketing-analytics-routes.test.ts @@ -36,11 +36,9 @@ describe('marketing pageview routes', () => { expect(shouldTrackMarketingPageview('/tools/person%40example.com')).toBe(false); }); - it('omits public result and portal paths whose segments identify a user or record', () => { + it('omits portal paths whose segments identify a user or record', () => { document.cookie = 're_cookie_consent=accepted; path=/'; - expect(safeMarketingPath('/sandbox/results/result-123')).toBeNull(); expect(safeMarketingPath('/portal/portal-123')).toBeNull(); - expect(shouldTrackMarketingPageview('/sandbox/results/result-123')).toBe(false); expect(shouldTrackMarketingPageview('/portal/portal-123')).toBe(false); }); diff --git a/frontend/src/app/fsma-204/[cte]/page.tsx b/frontend/src/app/fsma-204/[cte]/page.tsx index 14b56a21f..dfade3342 100644 --- a/frontend/src/app/fsma-204/[cte]/page.tsx +++ b/frontend/src/app/fsma-204/[cte]/page.tsx @@ -18,6 +18,7 @@ import { import { Container } from "@/components/layout/container"; import { PageHeader } from "@/components/layout/page-header"; import { Section } from "@/components/layout/section"; +import { sandboxCta } from "@/lib/sandbox-cta"; import { Button } from "@/components/ui/button"; import { Callout } from "@/components/ui/callout"; import { Card } from "@/components/ui/card"; @@ -29,7 +30,6 @@ import { TableHeader, TableRow, } from "@/components/ui/table"; -import { sandboxCta } from "@/lib/sandbox-cta"; /* ------------------------------------------------------------------ */ /* CTE DATA */ diff --git a/frontend/src/lib/marketing-analytics-routes.ts b/frontend/src/lib/marketing-analytics-routes.ts index 8120505d5..8ef01aa83 100644 --- a/frontend/src/lib/marketing-analytics-routes.ts +++ b/frontend/src/lib/marketing-analytics-routes.ts @@ -10,7 +10,7 @@ export const MARKETING_APP_ROUTE_PREFIXES = [ ] as const; const INTERNAL_STORAGE_KEY = 're_internal'; -const SENSITIVE_ROUTE_PREFIXES = ['/sandbox/results', '/portal'] as const; +const SENSITIVE_ROUTE_PREFIXES = ['/portal'] as const; const PUBLIC_MARKETING_SECTIONS = new Set([ '/about', '/alpha', '/blog', '/buyer-programs', '/case-studies', '/compare', '/contact', '/design-system', '/developers',