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
fix: resolve all ESLint warnings in web/ (issue #437) (#526)
Maqbool Ahmed5b00752488b5
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/competitors/page.tsx b/web/src/app/[locale]/(dashboard)/dashboard/competitors/page.tsxindex 967f96f38..b3a6c1d83 100644--- a/web/src/app/[locale]/(dashboard)/dashboard/competitors/page.tsx+++ b/web/src/app/[locale]/(dashboard)/dashboard/competitors/page.tsx@@ -1,8 +1,7 @@'use client';-import { useState, useEffect, useCallback, useRef } from 'react';+import { useState, useEffect, useCallback } from 'react';import { useRouter } from '@/i18n/navigation';-import { createPortal } from 'react-dom';import { useTranslations } from 'next-intl';import { useBrandStore } from '@/stores/use-brand-store';import { useFeatureGate } from '@/hooks/use-feature-gate';@@ -60,7 +59,6 @@ import {ShieldAlert,ChevronDown,Eye,- HelpCircle,} from 'lucide-react';// ─── Shared Visual Components (mirroring Insights) ───────────────────────────@@ -104,76 +102,6 @@ function SentimentBadge({ sentiment }: { sentiment: 'positive' | 'neutral' | 'ne);}-function VisibilityBar({ score, max = 100 }: { score: number; max?: number }) {- const pct = Math.round((score / max) * 100);- return (- <div className="flex items-center gap-2">- <div className="h-1.5 w-24 rounded-full bg-muted overflow-hidden">- <div- className={cn(- 'h-full rounded-full transition-all',- score >= 60 ? 'bg-green-500' : score >= 40 ? 'bg-yellow-500' : 'bg-red-500',- )}- style={{ width: `${pct}%` }}- />- </div>- <span className="text-sm font-medium tabular-nums">{Math.round(score)}</span>- </div>- );-}--function InfoTip({ content }: { content: string }) {- const [pos, setPos] = useState<{ x: number; y: number } | null>(null);- const ref = useRef<HTMLSpanElement>(null);-- function show() {- const r = ref.current?.getBoundingClientRect();- if (r) setPos({ x: r.left + r.width / 2, y: r.bottom + 6 });- }-- return (- <>- <span- ref={ref}- onMouseEnter={show}- onMouseLeave={() => setPos(null)}- className="inline-flex items-center cursor-help"- >- <HelpCircle className="h-3 w-3 text-muted-foreground/60 hover:text-muted-foreground transition-colors" />- </span>- {pos &&- createPortal(- <div- style={{ left: pos.x, top: pos.y, transform: 'translateX(-50%)' }}- className="pointer-events-none fixed z-[9999] w-56 rounded-md border bg-popover px-3 py-2 text-xs text-popover-foreground shadow-md"- >- {content}- </div>,- document.body,- )}- </>- );-}--function ColHead({- children,- tooltip,- className,-}: {- children: React.ReactNode;- tooltip?: string;- className?: string;-}) {- return (- <TableHead className={className}>- <span className="inline-flex items-center gap-1">- {children}- {tooltip && <InfoTip content={tooltip} />}- </span>- </TableHead>- );-}-// ─── Plan Gate ────────────────────────────────────────────────────────────────function PlanGateOverlay() {diff --git a/web/src/app/[locale]/(dashboard)/dashboard/shopping/page.tsx b/web/src/app/[locale]/(dashboard)/dashboard/shopping/page.tsxindex 5bc4e2a7d..a6fb95f63 100644--- a/web/src/app/[locale]/(dashboard)/dashboard/shopping/page.tsx+++ b/web/src/app/[locale]/(dashboard)/dashboard/shopping/page.tsx@@ -690,6 +690,7 @@ function PromptsTabContent({className="flex gap-3 rounded-md border bg-muted/10 p-2 text-xs">{card.imageUrl ? (+ // eslint-disable-next-line @next/next/no-img-element -- product images come from arbitrary merchant domains; next/image remotePatterns would need an open-ended wildcard<imgsrc={card.imageUrl}alt=""diff --git a/web/src/app/[locale]/(dashboard)/dashboard/traffic/page.tsx b/web/src/app/[locale]/(dashboard)/dashboard/traffic/page.tsxindex 8d7a8b8c7..e2d7ccedf 100644--- a/web/src/app/[locale]/(dashboard)/dashboard/traffic/page.tsx+++ b/web/src/app/[locale]/(dashboard)/dashboard/traffic/page.tsx@@ -135,7 +135,6 @@ function DeltaBadge({ current, previous }: { current: number; previous: number }function SnippetBanner({ trackingCode }: { trackingCode?: string }) {const [copied, setCopied] = useState(false);- const isCloud = process.env.NEXT_PUBLIC_IS_CLOUD === 'true';const apiUrl = getPublicApiBaseUrl();const snippet = `<script src="${apiUrl}/t.js" data-t="${trackingCode || 'YOUR_TRACKING_CODE'}" defer></script>`;diff --git a/web/src/app/opengraph-image.tsx b/web/src/app/opengraph-image.tsxindex 3f135df3f..efd797f31 100644--- a/web/src/app/opengraph-image.tsx+++ b/web/src/app/opengraph-image.tsx@@ -44,7 +44,6 @@ export default async function OpengraphImage() {}}/>- {/* eslint-disable-next-line @next/next/no-img-element */}<img src={logoSrc} alt="" width={360} height={360} style={{ width: 360, height: 360 }} /></div>,{ ...size },diff --git a/web/src/components/ai-provider-avatar.tsx b/web/src/components/ai-provider-avatar.tsxindex 9e523f470..950b8e40f 100644--- a/web/src/components/ai-provider-avatar.tsx+++ b/web/src/components/ai-provider-avatar.tsx@@ -165,6 +165,7 @@ export function AIProviderAvatar({className,)}>+ {/* eslint-disable-next-line @next/next/no-img-element -- AI provider favicon URLs come from arbitrary remote domains; next/image remotePatterns would need an open-ended wildcard */}<img src={meta.icon} alt="" className="h-full w-full object-cover" aria-hidden="true" /></span>);diff --git a/web/src/components/auth/sign-in-form.tsx b/web/src/components/auth/sign-in-form.tsxindex 39dfc503d..3b35bd549 100644--- a/web/src/components/auth/sign-in-form.tsx+++ b/web/src/components/auth/sign-in-form.tsx@@ -30,7 +30,7 @@ export function SignInForm() {const supabase = createClient();- const { data, error } = await supabase.auth.signInWithPassword({+ const { error } = await supabase.auth.signInWithPassword({email,password,});diff --git a/web/src/components/auth/sign-up-form.tsx b/web/src/components/auth/sign-up-form.tsxindex a44fef457..70fe34deb 100644--- a/web/src/components/auth/sign-up-form.tsx+++ b/web/src/components/auth/sign-up-form.tsx@@ -3,7 +3,7 @@import { useState } from 'react';import { useTranslations } from 'next-intl';import { useSearchParams } from 'next/navigation';-import { useRouter, Link } from '@/i18n/navigation';+import { useRouter } from '@/i18n/navigation';import { createClient } from '@/lib/supabase/client';import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';