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(action-center): show an action no one is on as Everyone's (#1237)
Cihan62aad9a06e9c
diff --git a/web/messages/en.json b/web/messages/en.jsonindex 0019edc91..8fe5c9d3e 100644--- a/web/messages/en.json+++ b/web/messages/en.json@@ -830,7 +830,7 @@"status": "Status","assignee": "Assignee","all": "All",- "unassigned": "Unassigned",+ "unassigned": "Everyone","search": "Search actions…","clear": "Clear filters"},@@ -858,6 +858,8 @@"dismissed": "Dismissed"},"taskProgress": "{completed}/{total} tasks",+ "everyone": "Everyone",+ "everyoneTitle": "Everyone in the workspace: no one is assigned yet","tags": {"signals": "{count, plural, one {1 signal} other {# signals}}","prompts": "{count, plural, one {1 prompt} other {# prompts}}",diff --git a/web/src/components/action-center/action-table.test.tsx b/web/src/components/action-center/action-table.test.tsxindex cab1d3075..106acf648 100644--- a/web/src/components/action-center/action-table.test.tsx+++ b/web/src/components/action-center/action-table.test.tsx@@ -128,3 +128,25 @@ describe('ActionTable row menu', () => {expect(container.querySelector('button[aria-label^="Actions for"]')).toBeNull();});});++// New Ansvisor (AC-ALT2): no one assigned means the whole workspace's.+describe('ActionTable assignee', () => {+ const assigneeCell = () => container.querySelectorAll('tbody tr td')[3];++ it('shows an action with no one on it as Everyone', () => {+ render();+ expect(assigneeCell().textContent).toBe('Everyone');+ expect(assigneeCell().querySelector('[title]')?.getAttribute('title')).toBe(+ 'Everyone in the workspace: no one is assigned yet',+ );+ });++ it("shows an assigned member's initials", () => {+ render({+ actions: [+ { ...action, assignee: { id: 'u1', fullName: 'Ayse Kaya', email: null, avatarUrl: null } },+ ],+ });+ expect(assigneeCell().textContent).toBe('AK');+ });+});diff --git a/web/src/components/action-center/action-table.tsx b/web/src/components/action-center/action-table.tsxindex 38c3b988d..b9a70c9f7 100644--- a/web/src/components/action-center/action-table.tsx+++ b/web/src/components/action-center/action-table.tsx@@ -158,7 +158,16 @@ export function PriorityBadge({}export function AssigneeAvatar({ assignee }: { assignee: ActionItem['assignee'] }) {- if (!assignee) return <span className="text-xs text-muted-foreground">—</span>;+ const t = useTranslations('actionCenter.actionsPage');+ // New Ansvisor (AC-ALT2): an action with no one on it is the whole+ // workspace's, until someone takes it.+ if (!assignee) {+ return (+ <span className="text-xs text-muted-foreground" title={t('everyoneTitle')}>+ {t('everyone')}+ </span>+ );+ }// Named as the assignee picker names them: by e-mail when there's no name.const label = assigneeLabel(assignee);const initials = (label && labelInitials(label)) || '?';