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.
TypeScript aeoai-agentai-searchanswer-engine-optimizationbrand-monitoringchatgptclaudecopilotdockergeminigeogoogle-ai-overviewsgrokmcpnextjsopen-sourceperplexityseosupabasetypescript
chore(lint): clear the 8 existing ESLint errors so #128 can land (#133)
Gökhan Geyik20ee4732d12c
diff --git a/web/src/app/[locale]/invite/[token]/page.tsx b/web/src/app/[locale]/invite/[token]/page.tsxindex 4255d7317..510edc1a1 100644--- a/web/src/app/[locale]/invite/[token]/page.tsx+++ b/web/src/app/[locale]/invite/[token]/page.tsx@@ -21,6 +21,7 @@ export default async function InviteAcceptPage({return <InvalidInvitation reason={invitation.status} />;}+ // eslint-disable-next-line react-hooks/purity -- server component renders fresh per request; Date.now() is the correct expiration check, the purity rule targets client-side memoization which doesn't apply on the server.if (new Date(invitation.expiresAt).getTime() < Date.now()) {return <InvalidInvitation reason="expired" />;}diff --git a/web/src/components/layout/mobile-nav.tsx b/web/src/components/layout/mobile-nav.tsxindex 9feef7b89..7ff3e7ca9 100644--- a/web/src/components/layout/mobile-nav.tsx+++ b/web/src/components/layout/mobile-nav.tsx@@ -25,7 +25,13 @@ export function MobileNav() {const { activeBrandId } = useBrandStore();const { resolvedTheme } = useTheme();const [mounted, setMounted] = useState(false);- useEffect(() => setMounted(true), []);+ // Hydration guard — see sidebar.tsx for the rationale; the two+ // components mirror each other and can't share a hook without breaking+ // their independent layout contexts.+ useEffect(() => {+ // eslint-disable-next-line react-hooks/set-state-in-effect+ setMounted(true);+ }, []);const logoSrc = mounted && resolvedTheme === 'dark' ? '/logo_dark.svg' : '/logo_light.svg';diff --git a/web/src/components/layout/sidebar.tsx b/web/src/components/layout/sidebar.tsxindex 601b9d8ba..592f57872 100644--- a/web/src/components/layout/sidebar.tsx+++ b/web/src/components/layout/sidebar.tsx@@ -26,7 +26,14 @@ export function Sidebar() {const { canUse, requiredPlanFor, isCloud } = useFeatureGate();const { resolvedTheme } = useTheme();const [mounted, setMounted] = useState(false);- useEffect(() => setMounted(true), []);+ // Hydration guard: SSR can't know the resolved theme, so we render the+ // light logo first and swap after mount. This is the canonical Next.js+ // pattern for "render client-only content after hydration" — there's no+ // useEffect-free version that avoids the hydration mismatch.+ useEffect(() => {+ // eslint-disable-next-line react-hooks/set-state-in-effect+ setMounted(true);+ }, []);const logoSrc = mounted && resolvedTheme === 'dark' ? '/logo_dark.svg' : '/logo_light.svg';diff --git a/web/src/lib/mcp/data.ts b/web/src/lib/mcp/data.tsindex c58851f26..46ff7968d 100644--- a/web/src/lib/mcp/data.ts+++ b/web/src/lib/mcp/data.ts@@ -398,7 +398,7 @@ export async function listContentOpportunitiesFor(prompt_id: string | null;created_at: string | null;updated_at: string | null;- brief: any | null;+ brief: Record<string, unknown> | null;prompts: Array<{ text: string }> | { text: string } | null;}> | null) ?? [];@@ -431,8 +431,8 @@ export interface ContentOpportunityDetail {status: string;prompt_id: string | null;prompt_text: string | null;- source_data: Record<string, any> | null;- brief: Record<string, any> | null;+ source_data: Record<string, unknown> | null;+ brief: Record<string, unknown> | null;created_at: string;updated_at: string;}@@ -540,8 +540,8 @@ export async function getContentOpportunityFor(prompt_id: string | null;created_at: string | null;updated_at: string | null;- source_data: any | null;- brief: any | null;+ source_data: Record<string, unknown> | null;+ brief: Record<string, unknown> | null;prompts: Array<{ text: string }> | { text: string } | null;};