Skip to content

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.

fix: improve content list accessibility and i18n (#679)

Bharadwajjjjj9a3c9ded2da5
diff --git a/web/messages/en.json b/web/messages/en.json
index 5311aa8be..c42259da7 100644
--- a/web/messages/en.json
+++ b/web/messages/en.json
@@ -247,8 +247,10 @@
"generate": "Generate Opportunities",
"regenerate": "Refresh Opportunities",
"generating": "Analyzing...",
+ "send": "Send",
"sendToWorkflow": "Send to Workflow",
"sending": "Sending...",
+ "noResults": "No opportunities match your filters.",
"dismiss": "Dismiss",
"dismissedToast": "Opportunity dismissed",
"undo": "Undo",
@@ -280,7 +282,11 @@
"total": "Total Opportunities",
"highImpact": "High Impact",
"sentToWorkflow": "Sent to Workflow",
- "avgScore": "Avg. Score"
+ "avgScore": "Avg. Score",
+ "shown": "{count} shown",
+ "opportunities": "opportunities",
+ "outOf100": "out of 100",
+ "sentOrInProgress": "sent or in progress"
},
"filters": {
"allStatuses": "All Statuses",
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/content/page.tsx b/web/src/app/[locale]/(dashboard)/dashboard/content/page.tsx
index d22437695..75d611c57 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/content/page.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/content/page.tsx
@@ -142,6 +142,7 @@ function KpiCard({
export default function ContentPage() {
const t = useTranslations('content');
+ const tCommon = useTranslations('common');
const activeBrandId = useBrandStore((s) => s.activeBrandId);
const { isCloud } = usePlanContext();
@@ -470,20 +471,25 @@ export default function ContentPage() {
title={t('kpi.total')}
icon={Lightbulb}
value={total}
- sub={`${filtered.length} shown`}
+ sub={t('kpi.shown', { count: filtered.length })}
/>
<KpiCard
title={t('kpi.highImpact')}
icon={Zap}
value={highImpact}
- sub="opportunities"
+ sub={t('kpi.opportunities')}
+ />
+ <KpiCard
+ title={t('kpi.avgScore')}
+ icon={BarChart3}
+ value={avgScore}
+ sub={t('kpi.outOf100')}
/>
- <KpiCard title={t('kpi.avgScore')} icon={BarChart3} value={avgScore} sub="out of 100" />
<KpiCard
title={t('kpi.sentToWorkflow')}
icon={Send}
value={sentCount}
- sub="sent or in progress"
+ sub={t('kpi.sentOrInProgress')}
/>
</div>
@@ -496,16 +502,17 @@ export default function ContentPage() {
variant="outline"
className="text-xs border-emerald-500/30 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400"
>
- {total} Available
+ {t('available', { count: total })}
</Badge>
</div>
<div className="flex items-center gap-2 flex-wrap">
<div className="relative w-48">
<Search className="absolute left-2.5 top-2.5 h-3.5 w-3.5 text-muted-foreground" />
<Input
- placeholder="Search..."
+ placeholder={tCommon('search')}
value={search}
onChange={(e) => setSearch(e.target.value)}
+ aria-label={tCommon('search')}
className="pl-8 h-8 text-xs"
/>
</div>
@@ -585,7 +592,7 @@ export default function ContentPage() {
disabled={bulkSending}
>
<Check className="h-3 w-3" />
- Done
+ {t('status.done')}
</Button>
<Dialog>
@@ -722,20 +729,26 @@ export default function ContentPage() {
) : (
<Send className="h-3 w-3" />
)}
- Send
+ {t('send')}
</Button>
<Button
variant="ghost"
size="sm"
className="h-7 px-2 text-xs text-muted-foreground"
onClick={() => handleDismiss(opp.id)}
+ aria-label={t('dismiss')}
>
<X className="h-3 w-3" />
</Button>
</>
)}
<Link href={`/dashboard/content/${opp.id}`}>
- <Button variant="ghost" size="sm" className="h-7 px-2 text-xs">
+ <Button
+ variant="ghost"
+ size="sm"
+ className="h-7 px-2 text-xs"
+ aria-label={t('viewDetails')}
+ >
<ExternalLink className="h-3 w-3" />
</Button>
</Link>
@@ -747,7 +760,7 @@ export default function ContentPage() {
</Table>
{filtered.length === 0 && (
<div className="py-10 text-center text-sm text-muted-foreground">
- No opportunities match your filters.
+ {t('noResults')}
</div>
)}
<TablePager