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(content): call the editor's Impact tab "Live page", say it isn't a forecast, and name Apply rules with Agent (#1346)

Cihan83189d737393
diff --git a/web/messages/en.json b/web/messages/en.json
index 519f58416..e68b9020d 100644
--- a/web/messages/en.json
+++ b/web/messages/en.json
@@ -3535,7 +3535,7 @@
"notApplied": "{count, plural, one {# suggestion couldn't be applied} other {# suggestions couldn't be applied}}: the page changed there, or AI quotes the passage.",
"saveFailed": "Couldn't keep the decision. Try again.",
"htmlBlocked": "Accept or reject the {count, plural, one {# agent suggestion} other {# agent suggestions}} first, then edit as HTML.",
- "fixRules": "Fix open rules with agent",
+ "fixRules": "Apply rules with Agent",
"fixing": "Content Agent is working…",
"fixed": "{count, plural, one {Content Agent suggested # change} other {Content Agent suggested # changes}} · review them in the page",
"nothingToFix": "Content Agent found nothing it could change without new facts.",
@@ -3668,15 +3668,16 @@
"hide": "Hide side panel",
"openTab": "Open {tab} in the side panel",
"tabs": {
- "impact": "Impact",
+ "impact": "Live page",
"brief": "Brief",
"sources": "Sources",
"rules": "Rules"
}
},
"impact": {
- "newPage": "This draft is a new page, not live yet, so there's nothing to measure. Impact shows when a draft optimizes a live page.",
- "thisPage": "This page",
+ "newPage": "This draft is a new page, not live yet, so there's nothing to measure. This tab shows the live page's numbers when a draft optimizes one.",
+ "thisPage": "The live page today",
+ "notForecast": "How the live page does now, not a forecast of what this draft will get.",
"periodLabel": "Period",
"periods": {
"7": "7d",
@@ -3684,7 +3685,7 @@
"90": "90d",
"365": "1y"
},
- "loadError": "Couldn't load the page's impact.",
+ "loadError": "Couldn't load the live page's numbers.",
"retry": "Retry",
"metrics": {
"citations": "Citations",
@@ -3987,7 +3988,7 @@
},
"mineName": "My rules · {type}",
"setPicked": "Rule set changed for this draft",
- "agentFix": "Fix open rules with agent",
+ "agentFix": "Apply rules with Agent",
"agentFixing": "Content Agent is working…",
"agentFixHint": "Content Agent suggests changes for the rules not met yet, for you to review in the page",
"fixTrace": "Fix",
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_agent-bar.tsx b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_agent-bar.tsx
index d1d334645..cfdc9c49f 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_agent-bar.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_agent-bar.tsx
@@ -10,8 +10,8 @@ import { suggestionCounts, type DraftSuggestion } from '@/lib/content/suggestion
* The agent bar over the page (CE-018): while an agent's suggestions are
* open, who left how many and from which action, with Reject all and Accept
* all (open ones only); once all are decided, how many were accepted and
- * rejected and how many rules are still open, with Fix open rules with
- * agent for a new batch. Undo all brings every decided one back to review.
+ * rejected and how many rules are still open, with Apply rules with
+ * Agent for a new batch. Undo all brings every decided one back to review.
*/
export function AgentBar({
suggestions,
@@ -31,7 +31,7 @@ export function AgentBar({
onRejectAll: () => void;
onUndoAll: () => void;
onClose: () => void;
- /** Fix open rules with agent: new suggestions, again for review. */
+ /** Apply rules with Agent: new suggestions, again for review. */
onFixRules: () => void;
fixing: boolean;
}) {
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_impact-tab.test.tsx b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_impact-tab.test.tsx
index 44e7a12dc..64dbd5d9a 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_impact-tab.test.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_impact-tab.test.tsx
@@ -119,11 +119,16 @@ afterEach(() => {
vi.useRealTimers();
});
-describe('the Impact tab', () => {
+describe('the Live page tab', () => {
it('shows what the page earns over the last 30 days against the 30 before', async () => {
getContentImpact.mockResolvedValue(impact());
await render();
+ // The live page's numbers, not a forecast for the draft (gkhngyk's reading).
+ expect(container.textContent).toContain('The live page today');
+ expect(container.textContent).toContain(
+ 'How the live page does now, not a forecast of what this draft will get.',
+ );
expect(getContentImpact).toHaveBeenCalledWith('b1', PAGE, 30);
expect(getContentResults).toHaveBeenCalledWith('b1', PAGE, 30);
expect(periodButton('30d').getAttribute('aria-pressed')).toBe('true');
@@ -226,7 +231,7 @@ describe('the Impact tab', () => {
vi.spyOn(console, 'error').mockImplementation(() => {});
getContentImpact.mockRejectedValueOnce(new Error('boom')).mockResolvedValue(impact());
await render();
- expect(container.textContent).toContain("Couldn't load the page's impact.");
+ expect(container.textContent).toContain("Couldn't load the live page's numbers.");
await act(async () => periodButton('Retry').click());
expect(getContentImpact).toHaveBeenCalledTimes(2);
@@ -315,7 +320,7 @@ describe('the Impact tab', () => {
getContentImpact.mockResolvedValue(impact());
getContentResults.mockRejectedValueOnce(new Error('boom'));
await render();
- expect(container.textContent).toContain("Couldn't load the page's impact.");
+ expect(container.textContent).toContain("Couldn't load the live page's numbers.");
});
});
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_impact-tab.tsx b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_impact-tab.tsx
index c3c22c4a5..39fb20ab5 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_impact-tab.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_impact-tab.tsx
@@ -88,7 +88,11 @@ export function ImpactTab({
return (
<div className="space-y-5 text-sm">
<div className="flex items-center gap-2">
- <h3 className="font-medium">{t('thisPage')}</h3>
+ <div className="min-w-0">
+ <h3 className="font-medium">{t('thisPage')}</h3>
+ {/* gkhngyk read the numbers as what the draft would get: they are the live page's. */}
+ <p className="text-xs text-muted-foreground">{t('notForecast')}</p>
+ </div>
<div
role="group"
aria-label={t('periodLabel')}
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_rules-tab.tsx b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_rules-tab.tsx
index 27275240f..091561c1d 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_rules-tab.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_rules-tab.tsx
@@ -57,7 +57,7 @@ const HINTED = new Set([
* ("Your text rules"); Save as my rules keeps the set for the workspace's
* drafts of the type, and Reset goes back to Ansvisor's default.
*/
-/** Fix open rules with agent (CE-018), as the editor runs it. */
+/** Apply rules with Agent (CE-018), as the editor runs it. */
export interface AgentFix {
/** Runs the agent on the open rules, or only on the ones named. */
run: (only?: string[]) => void;
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/page.test.tsx b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/page.test.tsx
index e2c346c77..372939e23 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/page.test.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/page.test.tsx
@@ -1417,10 +1417,10 @@ describe('the side panel', () => {
await act(async () => button('Show side panel')!.click());
expect(panel()!.getAttribute('aria-label')).toBe('Side panel');
- // Rules first, what to act on; Impact reads only once it is picked.
+ // Rules first, what to act on; the live page reads only once it is picked.
expect(panel()!.querySelector('[role="tab"][aria-selected="true"]')?.textContent).toBe('Rules');
expect(getContentImpact).not.toHaveBeenCalled();
- await pickTab('Impact');
+ await pickTab('Live page');
// The page the draft optimizes, over 30 days.
expect(getContentImpact).toHaveBeenCalledWith('b1', 'https://acme.example.com/pricing', 30);
expect(getContentResults).toHaveBeenCalledWith('b1', 'https://acme.example.com/pricing', 30);
@@ -1434,7 +1434,7 @@ describe('the side panel', () => {
expect(panel()).toBeNull();
const rail = () => container.querySelector('nav[aria-label="Side panel"]');
const tabs = [...rail()!.querySelectorAll('button')];
- expect(tabs.map((b) => b.textContent)).toEqual(['Rules', 'Brief', 'Sources', 'Impact']);
+ expect(tabs.map((b) => b.textContent)).toEqual(['Rules', 'Brief', 'Sources', 'Live page']);
expect(tabs[2].getAttribute('title')).toBe('Open Sources in the side panel');
await act(async () => tabs[2].click());
@@ -1566,7 +1566,7 @@ describe('the side panel', () => {
'Rules',
'Brief',
'Sources',
- 'Impact',
+ 'Live page',
]);
await pickTab('Sources');
await act(async () => button('Rebuild with selection')!.click());
@@ -1710,7 +1710,7 @@ describe('the side panel', () => {
}
});
- describe('Fix open rules with agent', () => {
+ describe('Apply rules with Agent', () => {
const traced = draft({
pageType: 'blog_post',
bodyHtml: '<h1>Pipeline forecasting</h1><p>We delve into how teams forecast.</p>',
@@ -1748,7 +1748,7 @@ describe('the side panel', () => {
fixDraftRules.mockResolvedValue({ count: 1 });
await openRules();
- await act(async () => panelButton('Fix open rules with agent').click());
+ await act(async () => panelButton('Apply rules with Agent').click());
await act(async () => {});
const [id, brandId, request] = fixDraftRules.mock.calls[0];
@@ -1780,7 +1780,7 @@ describe('the side panel', () => {
fixDraftRules.mockRejectedValue(new Error('An unexpected response was received'));
await openRules();
- await act(async () => panelButton('Fix open rules with agent').click());
+ await act(async () => panelButton('Apply rules with Agent').click());
await act(async () => void (await vi.advanceTimersByTimeAsync(5_000)));
expect(toast.error).not.toHaveBeenCalled();
await act(async () => void (await vi.advanceTimersByTimeAsync(5_000)));
@@ -1807,7 +1807,7 @@ describe('the side panel', () => {
fixDraftRules.mockResolvedValue({ error: 'unconfirmed' });
await openRules();
- await act(async () => panelButton('Fix open rules with agent').click());
+ await act(async () => panelButton('Apply rules with Agent').click());
await act(async () => void (await vi.advanceTimersByTimeAsync(85_000)));
expect(toast.error).not.toHaveBeenCalled();
await act(async () => void (await vi.advanceTimersByTimeAsync(10_000)));
@@ -1838,7 +1838,7 @@ describe('the side panel', () => {
fixDraftRules.mockResolvedValue({ error: 'ai_budget' });
await openRules();
- await act(async () => panelButton('Fix open rules with agent').click());
+ await act(async () => panelButton('Apply rules with Agent').click());
await act(async () => {});
expect(toast.error).toHaveBeenCalledWith(
"This month's AI usage is spent. Upgrade for more, or try again next month.",
@@ -1850,7 +1850,7 @@ describe('the side panel', () => {
getDraftSuggestions.mockResolvedValue([agentSuggestion]);
await openRules();
- const fix = panelButton('Fix open rules with agent');
+ const fix = panelButton('Apply rules with Agent');
expect(fix.disabled).toBe(true);
expect(fix.title).toBe('Accept or reject the open suggestions first.');
});
@@ -1864,7 +1864,7 @@ describe('the side panel', () => {
getCitedPassages.mockReturnValue(new Promise((resolve) => (read = resolve)));
await openRules();
- const fix = () => panelButton('Fix open rules with agent');
+ const fix = () => panelButton('Apply rules with Agent');
expect(fix().disabled).toBe(true);
expect(fix().title).toBe(
'Reading which passages AI quotes, so the agent leaves them as they are…',
@@ -1879,7 +1879,7 @@ describe('the side panel', () => {
fixDraftRules.mockResolvedValue({ error: 'open_suggestions' });
await openRules();
- await act(async () => panelButton('Fix open rules with agent').click());
+ await act(async () => panelButton('Apply rules with Agent').click());
await act(async () => {});
expect(toast.error).toHaveBeenCalledWith(
"This page has open suggestions, maybe from another tab. They're shown now: accept or reject them first.",
@@ -1938,7 +1938,7 @@ describe('the side panel', () => {
getContentDraft.mockResolvedValue(draft({ method: 'create' }));
window.innerWidth = 1440;
await renderPage();
- await pickTab('Impact');
+ await pickTab('Live page');
// A new page: nothing to measure yet.
expect(panel()!.textContent).toContain('This draft is a new page, not live yet');
expect(getContentImpact).not.toHaveBeenCalled();
diff --git a/web/src/lib/mcp/server.ts b/web/src/lib/mcp/server.ts
index d84f80892..7073ffb15 100644
--- a/web/src/lib/mcp/server.ts
+++ b/web/src/lib/mcp/server.ts
@@ -1625,7 +1625,7 @@ export function createMcpServer(auth: McpAuthContext): McpServer {
'get_content_impact',
{
description:
- "What the draft's live page earns, as the editor's Impact tab reads it: citations in AI answers, AI visits, Google clicks and the prompts citing it, against the period before. Only for a draft of a live page (method optimize, or published).",
+ "What the draft's live page earns, as the editor's Live page tab reads it: citations in AI answers, AI visits, Google clicks and the prompts citing it, against the period before. Only for a draft of a live page (method optimize, or published).",
inputSchema: {
draft_id: relaxedUuid.describe('Draft UUID.'),
days: impactDays,