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(web): pluralize day/mention counts in metric breakdown sheet (#602)
Patel Dhrit335c5577ea8b
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/insights/_metric-breakdown-sheet.tsx b/web/src/app/[locale]/(dashboard)/dashboard/insights/_metric-breakdown-sheet.tsxindex a17403066..1a09a7a91 100644--- a/web/src/app/[locale]/(dashboard)/dashboard/insights/_metric-breakdown-sheet.tsx+++ b/web/src/app/[locale]/(dashboard)/dashboard/insights/_metric-breakdown-sheet.tsx@@ -95,7 +95,7 @@ export function MetricBreakdownSheet({ brandId, metric, onOpenChange, filters }:<SheetTitle className="text-base">{title} Breakdown</SheetTitle><SheetDescription className="text-xs">{data- ? `Last ${data.windowDays} days vs previous ${data.windowDays} days`+ ? `Last ${data.windowDays} day${data.windowDays !== 1 ? 's' : ''} vs previous ${data.windowDays} day${data.windowDays !== 1 ? 's' : ''}`: 'Comparing the selected window with the previous equal-length window.'}</SheetDescription></SheetHeader>@@ -367,7 +367,7 @@ function formatContribution(row: BreakdownRow, metric: BreakdownMetric): string}const verb = isLoss ? 'lost' : 'gained';- const core = `${verb} ${abs.toLocaleString()} mentions`;+ const core = `${verb} ${abs.toLocaleString()} mention${abs !== 1 ? 's' : ''}`;if (row.deltaPct === null) return core;const sign = row.deltaPct < 0 ? '−' : '+';return `${core} (${sign}${Math.abs(row.deltaPct)}%)`;