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.

feat(mentions): mark your brand in ink instead of violet (#1220)

Cihan849ea02cbd34
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/mentions/_mention-parts.tsx b/web/src/app/[locale]/(dashboard)/dashboard/mentions/_mention-parts.tsx
index 9ef2e0d76..45c895139 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/mentions/_mention-parts.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/mentions/_mention-parts.tsx
@@ -13,10 +13,12 @@ export interface MentionNames {
competitors: string[];
}
-/** Your brand in violet, competitors in grey (spec §7), in both themes. */
+/**
+ * Your brand in ink, competitors in grey (spec §7): the theme's primary, so
+ * a dark mark on light and a light one on dark, in the brand's colors.
+ */
export const MARK_CLASS: Record<MentionKind, string> = {
- brand:
- 'rounded-sm bg-violet-100 px-0.5 font-medium text-violet-900 dark:bg-violet-500/25 dark:text-violet-100',
+ brand: 'rounded-sm bg-primary px-0.5 font-medium text-primary-foreground',
competitor: 'rounded-sm bg-muted px-0.5 text-foreground ring-1 ring-inset ring-border',
};
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/mentions/_mentions-tab.test.tsx b/web/src/app/[locale]/(dashboard)/dashboard/mentions/_mentions-tab.test.tsx
index ff28b4878..ffa7fc489 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/mentions/_mentions-tab.test.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/mentions/_mentions-tab.test.tsx
@@ -169,7 +169,7 @@ describe('MentionsListTab', () => {
expect(marks[0][0]).toBe('Crema Club');
expect(marks[0][1]).toContain('bg-muted');
expect(marks[1][0]).toBe('Acme Coffee');
- expect(marks[1][1]).toContain('bg-violet-100');
+ expect(marks[1][1]).toContain('bg-primary');
expect(rows[1].textContent).toContain('—');
});
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/mentions/_response-drawer.tsx b/web/src/app/[locale]/(dashboard)/dashboard/mentions/_response-drawer.tsx
index 2100b47ab..57ca3e1eb 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/mentions/_response-drawer.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/mentions/_response-drawer.tsx
@@ -71,7 +71,7 @@ function Section({
* The response drawer (MS-08, read-only in V1): the answer's prompt,
* platform and model, country, date and time; its sentiment and the brand's
* position; the passage around the mention; the competitors named beside
- * you; the full stored answer with your brand marked in violet and
+ * you; the full stored answer with your brand marked in ink and
* competitors in grey; and the sources it cites, typed as on the Citations
* page. Its footer sends the answer to the Action Center, suggests content
* for its prompt, and copies it; correcting the sentiment comes next.
@@ -245,7 +245,7 @@ export function ResponseDrawer({
/>
<Section title={t('mention')}>
- <blockquote className="rounded-md border-l-2 border-violet-400 bg-muted/40 px-3 py-2 text-sm leading-relaxed">
+ <blockquote className="rounded-md border-l-2 border-primary bg-muted/40 px-3 py-2 text-sm leading-relaxed">
<Highlighted text={row.excerpt} names={names} />
</blockquote>
<p className="flex flex-wrap items-center gap-2 text-[11px] text-muted-foreground">
@@ -352,7 +352,7 @@ export function ResponseDrawer({
className={cn(
'h-5 shrink-0 px-1.5 text-[11px]',
category === 'you' &&
- 'border-violet-500/30 bg-violet-500/10 text-violet-700 dark:text-violet-300',
+ 'border-primary/30 bg-primary/10 text-foreground',
)}
>
{SOURCE_CATEGORY_LABELS[category]}