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
fix(content): call New content's opportunities content opportunities (#1327)
Cihanbb885b1e89d4
diff --git a/web/messages/en.json b/web/messages/en.jsonindex ec118e5a1..86322fa71 100644--- a/web/messages/en.json+++ b/web/messages/en.json@@ -3215,7 +3215,7 @@"methods": {"create": {"title": "Create from scratch",- "hint": "From an opportunity, a prompt or a topic"+ "hint": "From a content opportunity, a prompt or a topic"},"optimize": {"title": "Optimize content",@@ -3225,10 +3225,10 @@"startFrom": "Start from","sources": {"opportunity": {- "tab": "Opportunity",- "placeholder": "Pick an opportunity",- "search": "Search opportunities",- "empty": "No open opportunities."+ "tab": "Content Opportunity",+ "placeholder": "Pick a content opportunity",+ "search": "Search content opportunities",+ "empty": "No open content opportunities."},"prompt": {"tab": "Prompt",diff --git a/web/src/components/content/new-content-dialog.test.tsx b/web/src/components/content/new-content-dialog.test.tsxindex d26e460d6..b6b8da245 100644--- a/web/src/components/content/new-content-dialog.test.tsx+++ b/web/src/components/content/new-content-dialog.test.tsx@@ -138,7 +138,7 @@ describe('New content', () => {expect(getContentStartOptions).toHaveBeenCalledWith('b1');expect(button('Continue')!.disabled).toBe(true);- await click(button('Pick an opportunity'));+ await click(button('Pick a content opportunity'));const option = [...document.querySelectorAll<HTMLElement>('[role="option"]')].find((o) => o.textContent === 'Northwind vs HubSpot',);@@ -174,7 +174,7 @@ describe('New content', () => {expect(dialog.className).toContain('overflow-y-auto');expect(document.querySelector('[data-slot="dialog-footer"]')!.className).toContain('sticky');- await click(button('Pick an opportunity'));+ await click(button('Pick a content opportunity'));const option = [...document.querySelectorAll<HTMLElement>('[role="option"]')].find((o) => o.textContent === 'Northwind vs HubSpot',);@@ -188,7 +188,7 @@ describe('New content', () => {it('names the page by the opportunity’s brief title when it has one', async () => {await render();- await click(button('Pick an opportunity'));+ await click(button('Pick a content opportunity'));const option = [...document.querySelectorAll<HTMLElement>('[role="option"]')].find((o) => o.textContent === 'Create a page for realtors',);@@ -282,7 +282,7 @@ describe('New content', () => {expect(document.body.textContent).toContain("Couldn't load what to start from.");await click(button('Try again'));expect(getContentStartOptions).toHaveBeenCalledTimes(2);- expect(button('Pick an opportunity')).toBeDefined();+ expect(button('Pick a content opportunity')).toBeDefined();});describe('opened from the Content plan (CE-014)', () => {@@ -417,7 +417,7 @@ describe('New content', () => {it('leaves an opportunity no longer open to pick', async () => {await render('b2b', { kind: 'opportunity', id: 'gone' });expect(button('Continue')).toBeDefined();- expect(document.body.textContent).toContain('Pick an opportunity');+ expect(document.body.textContent).toContain('Pick a content opportunity');});});@@ -492,7 +492,7 @@ describe('New content', () => {/** Starts a new page from the first opportunity and waits for the check. */async function startFromOpportunity() {await render();- await click(button('Pick an opportunity'));+ await click(button('Pick a content opportunity'));const option = [...document.querySelectorAll<HTMLElement>('[role="option"]')].find((o) => o.textContent === 'Northwind vs HubSpot',);@@ -619,7 +619,7 @@ describe('New content', () => {describe('who does it', () => {async function startNewPage() {await render();- await click(button('Pick an opportunity'));+ await click(button('Pick a content opportunity'));const option = [...document.querySelectorAll<HTMLElement>('[role="option"]')].find((o) => o.textContent === 'Northwind vs HubSpot',);