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
feat(audit): show the score alone in the Pages Score column (#1142)
Cihan39bb8e914e95
diff --git a/web/messages/en.json b/web/messages/en.jsonindex 03f172fbb..789a0b76f 100644--- a/web/messages/en.json+++ b/web/messages/en.json@@ -2106,7 +2106,6 @@"issues": "Issues","status": "Status","lastAudit": "Last audit",- "trend": "Score trend: {scores}","showHistory": "Show earlier audits of {page}","hideHistory": "Hide earlier audits of {page}","viewReport": "View report",diff --git a/web/src/app/[locale]/(dashboard)/dashboard/audit/_pages-table.test.tsx b/web/src/app/[locale]/(dashboard)/dashboard/audit/_pages-table.test.tsxindex 67c9eea0c..196e5e1f0 100644--- a/web/src/app/[locale]/(dashboard)/dashboard/audit/_pages-table.test.tsx+++ b/web/src/app/[locale]/(dashboard)/dashboard/audit/_pages-table.test.tsx@@ -134,10 +134,8 @@ describe('AuditPagesTable', () => {['', '', '/pricing', '63', '14', 'Improving', 'Oct 14, 2026'],['', '', '/blog', '74', '7', 'Good', 'Oct 2, 2026'],]);- // A trend needs two scores to draw.- const lines = container.querySelectorAll('svg[role=img]');- expect(lines).toHaveLength(1);- expect(lines[0].getAttribute('aria-label')).toBe('Score trend: 50, 58, 63');+ // The score alone: no trend line next to it.+ expect(container.querySelectorAll('tbody svg[role=img]')).toHaveLength(0);});it('opens the latest report from the row, and the earlier audits from the arrow', () => {diff --git a/web/src/app/[locale]/(dashboard)/dashboard/audit/_pages-table.tsx b/web/src/app/[locale]/(dashboard)/dashboard/audit/_pages-table.tsxindex 9bb4550b1..75bf210e6 100644--- a/web/src/app/[locale]/(dashboard)/dashboard/audit/_pages-table.tsx+++ b/web/src/app/[locale]/(dashboard)/dashboard/audit/_pages-table.tsx@@ -94,39 +94,6 @@ export function pageLabel(page: Pick<AuditedPage, 'host' | 'path'>, primaryHost:return page.path === '/' ? page.host : `${page.host}${page.path}`;}-/** A small line of a page's latest scores (0–1), oldest first. */-export function ScoreSparkline({ points, label }: { points: number[]; label: string }) {- if (points.length < 2) return null;- const width = 48;- const height = 16;- const min = Math.min(...points);- const max = Math.max(...points);- const y = (p: number) =>- max === min ? height / 2 : height - 1 - ((p - min) / (max - min)) * (height - 2);- const coords = points- .map((p, i) => `${((i / (points.length - 1)) * width).toFixed(1)},${y(p).toFixed(1)}`)- .join(' ');- return (- <svg- viewBox={`0 0 ${width} ${height}`}- width={width}- height={height}- role="img"- aria-label={label}- className="shrink-0 text-muted-foreground"- >- <polyline- points={coords}- fill="none"- stroke="currentColor"- strokeWidth="1.5"- strokeLinecap="round"- strokeLinejoin="round"- />- </svg>- );-}-function StatusPill({ status }: { status: AuditedPageStatus }) {const t = useTranslations('audit.pages');return (@@ -347,23 +314,10 @@ export function AuditPagesTable({{label}</Link></TableCell>- <TableCell>- <div className="flex items-center gap-2">- <span- className={cn(- 'w-7 font-semibold tabular-nums',- scoreColor(page.score),- )}- >- {pct(page.score) ?? '—'}- </span>- <ScoreSparkline- points={page.trend}- label={t('pages.trend', {- scores: page.trend.map((s) => pct(s)).join(', '),- })}- />- </div>+ <TableCell+ className={cn('font-semibold tabular-nums', scoreColor(page.score))}+ >+ {pct(page.score) ?? '—'}</TableCell><TableCell className="text-right tabular-nums">{page.issues === null ? '—' : formatNumber(page.issues)}