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(action-center): hide History, name assignees, make the summary cards filter (#811)

Gökhan Geyik22572eac375c
diff --git a/web/messages/en.json b/web/messages/en.json
index 3311ac786..e8c65ce6f 100644
--- a/web/messages/en.json
+++ b/web/messages/en.json
@@ -77,7 +77,7 @@
},
"comingSoon": {
"title": "Coming soon",
- "description": "This part of the Action Center is on its way. KPIs are live — start by setting your goals there."
+ "description": "This part of the Action Center is on its way. KPIs, Actions and Signals are live in the meantime."
},
"categories": {
"visibility": "Visibility",
@@ -263,7 +263,7 @@
},
"sources": {
"ai_results": "AI Results",
- "ga4": "Google Analytics 4",
+ "ga4": "Google Analytics",
"gsc": "Google Search Console",
"site_audit": "Site Audit"
},
@@ -377,7 +377,7 @@
"top": "Top Actions",
"topSub": "Highest priority right now",
"atRisk": "At Risk",
- "atRiskSub": "Visibility or traffic declining",
+ "atRiskSub": "Recover and Fix — visibility or traffic declining",
"opportunities": "Opportunities",
"opportunitiesSub": "High potential to grow",
"inProgress": "In Progress",
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/action-center/actions/page.tsx b/web/src/app/[locale]/(dashboard)/dashboard/action-center/actions/page.tsx
index 7d21f0386..b27f67f79 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/action-center/actions/page.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/action-center/actions/page.tsx
@@ -27,7 +27,12 @@ import {
type ActionSort,
type ActionStatus,
} from '@/lib/action-center/registry';
-import { actionContextTags, actionTexts, comparePriority } from '@/lib/action-center/display';
+import {
+ actionContextTags,
+ actionTexts,
+ comparePriority,
+ memberLabel,
+} from '@/lib/action-center/display';
import { ActionCenterTabs } from '@/components/action-center/action-center-tabs';
import { ActionTable } from '@/components/action-center/action-table';
import { ActionDrawer } from '@/components/action-center/action-drawer';
@@ -46,6 +51,27 @@ import { cn } from '@/lib/utils';
const OPEN_STATUSES: ActionStatus[] = ['new', 'in_progress', 'on_hold', 'no_improvement'];
+const isOpen = (action: ActionItem) => OPEN_STATUSES.includes(action.status);
+
+/**
+ * What each summary card counts, one predicate per card.
+ *
+ * The cards used to be numbers with no way back to the rows behind them: "At
+ * Risk 2" above a table of three, and nothing saying which two — At Risk spans
+ * Recover *and* Fix, which neither the card nor the category badges admitted.
+ * Clicking a card now narrows the table to exactly what it counted, and since
+ * the count and the filter read the same predicate they cannot disagree.
+ */
+const CARD_FILTERS = {
+ top: (action: ActionItem) => isOpen(action) && action.impact === 'high',
+ atRisk: (action: ActionItem) =>
+ isOpen(action) && (action.category === 'recover' || action.category === 'fix'),
+ opportunities: (action: ActionItem) => isOpen(action) && action.category === 'growth',
+ inProgress: (action: ActionItem) => action.status === 'in_progress',
+} as const;
+
+type CardFocus = keyof typeof CARD_FILTERS;
+
export default function ActionCenterActionsPage() {
const brand = useBrandStore((s) => s.getActiveBrand());
const t = useTranslations('actionCenter.actionsPage');
@@ -85,6 +111,7 @@ function ActionsContent({ brand }: { brand: Brand }) {
const [assignee, setAssignee] = useState<string>('all');
const [sort, setSort] = useState<ActionSort>('priority');
const [search, setSearch] = useState('');
+ const [focus, setFocus] = useState<CardFocus | null>(null);
const [selectedId, setSelectedId] = useState<string | null>(null);
@@ -133,6 +160,7 @@ function ActionsContent({ brand }: { brand: Brand }) {
const visible = useMemo(() => {
const needle = search.trim().toLowerCase();
const filtered = (actions ?? []).filter((action) => {
+ if (focus && !CARD_FILTERS[focus](action)) return false;
if (category !== 'all' && action.category !== category) return false;
if (impact !== 'all' && action.impact !== impact) return false;
if (status !== 'all' && action.status !== status) return false;
@@ -162,7 +190,7 @@ function ActionsContent({ brand }: { brand: Brand }) {
return comparePriority(a, b);
}
});
- }, [actions, category, impact, status, assignee, search, sort, tTexts, t]);
+ }, [actions, focus, category, impact, status, assignee, search, sort, tTexts, t]);
const categoryCounts = useMemo(() => {
const counts = new Map<ActionCategory, number>();
@@ -173,20 +201,21 @@ function ActionsContent({ brand }: { brand: Brand }) {
}, [actions]);
const summary = useMemo(() => {
- const open = (actions ?? []).filter((action) => OPEN_STATUSES.includes(action.status));
+ const all = actions ?? [];
+ const open = all.filter(isOpen);
const impacts = open.map((action) => action.impact);
return {
- top: open.filter((action) => action.impact === 'high').length,
- atRisk: open.filter((action) => action.category === 'recover' || action.category === 'fix')
- .length,
- opportunities: open.filter((action) => action.category === 'growth').length,
- inProgress: (actions ?? []).filter((action) => action.status === 'in_progress').length,
+ top: all.filter(CARD_FILTERS.top).length,
+ atRisk: all.filter(CARD_FILTERS.atRisk).length,
+ opportunities: all.filter(CARD_FILTERS.opportunities).length,
+ inProgress: all.filter(CARD_FILTERS.inProgress).length,
potential: impacts.includes('high') ? 'high' : impacts.includes('medium') ? 'medium' : 'low',
hasOpen: open.length > 0,
};
}, [actions]);
const hasActiveFilters =
+ focus !== null ||
category !== 'all' ||
impact !== 'all' ||
status !== 'all' ||
@@ -194,6 +223,7 @@ function ActionsContent({ brand }: { brand: Brand }) {
search !== '';
const clearFilters = () => {
+ setFocus(null);
setCategory('all');
setImpact('all');
setStatus('all');
@@ -243,29 +273,39 @@ function ActionsContent({ brand }: { brand: Brand }) {
return (
<div className="space-y-4">
<div className="grid gap-3 sm:grid-cols-2 lg:grid-cols-5">
+ {/* Each card toggles itself as the table's filter, so a count always
+ has a way back to the rows it came from. */}
<SummaryCard
icon={CircleDot}
label={t('cards.top')}
value={summary.top}
sub={t('cards.topSub')}
+ isActive={focus === 'top'}
+ onClick={() => setFocus(focus === 'top' ? null : 'top')}
/>
<SummaryCard
icon={Shield}
label={t('cards.atRisk')}
value={summary.atRisk}
sub={t('cards.atRiskSub')}
+ isActive={focus === 'atRisk'}
+ onClick={() => setFocus(focus === 'atRisk' ? null : 'atRisk')}
/>
<SummaryCard
icon={Sparkles}
label={t('cards.opportunities')}
value={summary.opportunities}
sub={t('cards.opportunitiesSub')}
+ isActive={focus === 'opportunities'}
+ onClick={() => setFocus(focus === 'opportunities' ? null : 'opportunities')}
/>
<SummaryCard
icon={ArrowUpDown}
label={t('cards.inProgress')}
value={summary.inProgress}
sub={t('cards.inProgressSub')}
+ isActive={focus === 'inProgress'}
+ onClick={() => setFocus(focus === 'inProgress' ? null : 'inProgress')}
/>
<Card>
<CardContent className="p-4">
@@ -343,7 +383,7 @@ function ActionsContent({ brand }: { brand: Brand }) {
{ value: 'unassigned', label: t('filters.unassigned') },
...members.map((member) => ({
value: member.userId,
- label: member.fullName ?? member.userId.slice(0, 8),
+ label: memberLabel(member),
})),
]}
allLabel={t('filters.all')}
@@ -394,14 +434,38 @@ function SummaryCard({
label,
value,
sub,
+ isActive,
+ onClick,
}: {
icon: React.ComponentType<{ className?: string }>;
label: string;
value: number;
sub: string;
+ /** Omit both to render a card that only reports, like Potential Impact. */
+ isActive?: boolean;
+ onClick?: () => void;
}) {
return (
- <Card>
+ <Card
+ {...(onClick
+ ? {
+ role: 'button' as const,
+ tabIndex: 0,
+ 'aria-pressed': isActive,
+ onClick,
+ onKeyDown: (event: React.KeyboardEvent) => {
+ if (event.key === 'Enter' || event.key === ' ') {
+ event.preventDefault();
+ onClick();
+ }
+ },
+ className: cn(
+ 'cursor-pointer transition-colors hover:border-foreground/30',
+ isActive && 'border-foreground/60 bg-muted/40',
+ ),
+ }
+ : {})}
+ >
<CardContent className="p-4">
<div className="flex items-center gap-2">
<div className="flex h-7 w-7 items-center justify-center rounded-md border bg-muted/40">
diff --git a/web/src/components/action-center/action-center-tabs.tsx b/web/src/components/action-center/action-center-tabs.tsx
index 88a1206a6..d28104729 100644
--- a/web/src/components/action-center/action-center-tabs.tsx
+++ b/web/src/components/action-center/action-center-tabs.tsx
@@ -7,15 +7,18 @@ import { useBrandStore } from '@/stores/use-brand-store';
import { getNewSignalCount } from '@/lib/actions/signals';
import { cn } from '@/lib/utils';
+// History is deliberately absent: the route still answers, but a top-level
+// tab that only ever says "coming soon" is a dead end for anyone who clicks
+// it. It returns here when the page renders the action_events trail the
+// action drawer already shows per action.
const TABS = [
{ key: 'kpis', href: '/dashboard/action-center/kpis' },
{ key: 'actions', href: '/dashboard/action-center/actions' },
{ key: 'signals', href: '/dashboard/action-center/signals' },
- { key: 'history', href: '/dashboard/action-center/history' },
] as const;
/**
- * The Action Center's section nav: KPIs | Actions | Signals | History.
+ * The Action Center's section nav: KPIs | Actions | Signals.
* Route-backed rather than state-backed tabs so each section is linkable
* and the browser back button works across them.
*/
diff --git a/web/src/components/action-center/action-drawer.tsx b/web/src/components/action-center/action-drawer.tsx
index ce3795982..9140d8872 100644
--- a/web/src/components/action-center/action-drawer.tsx
+++ b/web/src/components/action-center/action-drawer.tsx
@@ -39,7 +39,7 @@ import {
type ActionStatus,
type TaskStatus,
} from '@/lib/action-center/registry';
-import { actionContextTags, actionTexts } from '@/lib/action-center/display';
+import { actionContextTags, actionTexts, memberLabel } from '@/lib/action-center/display';
import { signalTexts } from '@/lib/signals/display';
import { isKpiKey } from '@/lib/kpis/registry';
import { ImpactDots, SignalStatusBadge } from './signal-table';
@@ -403,7 +403,7 @@ export function ActionDrawer({
{ value: 'unassigned', label: t('filters.unassigned') },
...members.map((member) => ({
value: member.userId,
- label: member.fullName ?? member.userId.slice(0, 8),
+ label: memberLabel(member),
})),
]}
>
@@ -414,7 +414,7 @@ export function ActionDrawer({
<SelectItem value="unassigned">{t('filters.unassigned')}</SelectItem>
{members.map((member) => (
<SelectItem key={member.userId} value={member.userId}>
- {member.fullName ?? member.userId.slice(0, 8)}
+ {memberLabel(member)}
</SelectItem>
))}
</SelectContent>
diff --git a/web/src/components/action-center/coming-soon-page.tsx b/web/src/components/action-center/coming-soon-page.tsx
index 23ce3afda..d70fac043 100644
--- a/web/src/components/action-center/coming-soon-page.tsx
+++ b/web/src/components/action-center/coming-soon-page.tsx
@@ -5,12 +5,12 @@ import { Hourglass } from 'lucide-react';
import { ActionCenterTabs } from './action-center-tabs';
/**
- * Shared shell for the Action Center sections that exist in navigation but
- * not yet in function (Actions, Signals, History). Honest placeholder over a
- * dead tab: the route works, the nav highlights, and the body says exactly
- * where things stand.
+ * Shell for an Action Center section whose route exists but whose page does
+ * not yet. Only History uses it now that Actions and Signals are real, and
+ * History is no longer in the tab bar — so this answers a deep link or a
+ * bookmark rather than a click, and says plainly where things stand.
*/
-export function ComingSoonPage({ tab }: { tab: 'actions' | 'signals' | 'history' }) {
+export function ComingSoonPage({ tab }: { tab: 'history' }) {
const t = useTranslations('actionCenter');
return (
diff --git a/web/src/lib/action-center/display.ts b/web/src/lib/action-center/display.ts
index 9c6bb1158..da7da58dd 100644
--- a/web/src/lib/action-center/display.ts
+++ b/web/src/lib/action-center/display.ts
@@ -98,3 +98,16 @@ export function comparePriority(a: ActionItem, b: ActionItem): number {
b.updatedAt.localeCompare(a.updatedAt)
);
}
+
+/**
+ * How a team member is named in an assignee picker.
+ *
+ * `full_name` is optional on a profile and most of this organization's members
+ * have never set one, so the previous fallback — the first eight characters of
+ * the user's uuid — put strings like `1d3fb0a2` in the dropdown. Email is the
+ * one identifier every member is guaranteed to have and to recognise, which is
+ * what the team settings list has always shown.
+ */
+export function memberLabel(member: { fullName: string | null; email: string }): string {
+ return member.fullName?.trim() || member.email;
+}