Repository navigation
fix(content): show the brand's cited pages as an Overview, not an overlap warning - #1320
Merged
Merged
Conversation
…rlap warning More of the brand's pages cited for the same prompts is no loss (AI answers aren't a ranking), so neither Start nor the Plan treats it as a problem any more: - Start's "Overlap check" is an "Overview": a plain box listing the brand's pages AI already cites for these prompts, with no amber warning, no "Safe to create" and no "Recommended". The action the person clicked stays chosen (Create stays Create); the choices are the plan's page when it named one, a new page, and optimizing the page cited most. - The Plan drops the Overlaps card, the ⚠ Overlap tag on rows, and the rows that were listed only because another page of the brand is cited for the same prompts. content_plan_pages (00220/00221) still returns overlaps; the Plan no longer reads it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
|
@gkhngyk A product change from the user's review of the live Plan: the brand's own pages cited for the same prompts are information, not a warning. So Start's "Overlap check" becomes an "Overview" with no warning and no recommendation, and the clicked action stays chosen. The Plan drops the Overlaps card, the ⚠ tag and the overlap-only rows. |
This was referenced Oct 22, 2026
Merged
gkhngyk
approved these changes
Oct 22, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good. One follow-up worth doing in this PR or right after it:
content_plan_pagesstill computesoverlaps(supabase/migrations/00226_content_reads_bounded.sql:481-513, thecur_answers/page_prompts/competing/page_overlapsCTEs, used at :569 and :575). After this PR nothing reads it (web/src/lib/actions/content-plan.ts:99no longer maps it), and it is the only part of the function that readsprompt_resultsandprompt_result_citationsrow by row. Timed on the largest brand asauthenticated: with a cold cache the 30-day call took 8.7 s and 9.5 s in two runs, which is over the 8 s statement timeout. With a warm cache it took 0.5 s. A copy without those four CTEs ran in 0.7 s (30 days) and 1.1 s (90 days) in the same session. Add a migration that drops the four CTEs and theoverlapskey. Usecreate or replacewith the same signature, so the grants carry over.
Tested on top of main together with #1327, #1319, #1330 and #1320: web 2,487 tests, server 2,006, tsc, lint and Prettier pass.
This was referenced Oct 22, 2026
cihan-gyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Oct 22, 2026
… opens Start to optimize The merge of main took ansvisor#1320's side and dropped this PR's preferOptimize, so Optimize content from the Improve tab without a cited page opened Start on a new page. The person picked Optimize: once the Overview's read lands, its first page to optimize is chosen, a single time. A pick of their own, or a retry, leaves the choice to them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
gkhngyk
pushed a commit
that referenced
this pull request
Oct 22, 2026
* feat(prompts): open the Content Editor from a tracked prompt From the user's spec, PR A of the Content Editor entry points: - The Tracked Prompts row menu gets "Create content", which opens New content > Start with the prompt picked. When a draft not yet published already covers the prompt (content_drafts.prompt_ids), it shows "Open draft" and goes to the editor instead. - The Positions panel's Improve tab starts with a content step, on the user's thresholds (lib/prompt-content.ts). If no answer in the period mentions or cites the brand, it offers Create content. If the brand is mentioned in under 20% of 5+ answers, or at an average position worse than 3 over 3+ answers, it offers Optimize content on the brand page AI cites most for the prompt (new citedPage in the positions data). Without a cited page, Start's overlap check offers the pages to optimize. - Start takes a "prompt" preset. The cited page's option reads "The page AI engines cite for this prompt". The panel stays open when Escape or a click outside closes Start over it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(prompts): look for the prompt's draft again after Start sends one, so Improve offers Open draft Start sent to the Agent or the Team closes over the positions panel, which stays open. The Prompts page now bumps a counter on New content's onSent, passed through the sheet to PromptContentStep, whose draft lookup reruns on it: the step offers Open draft rather than a second draft. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(content): pick the Overview's page to optimize once when a prompt opens Start to optimize The merge of main took #1320's side and dropped this PR's preferOptimize, so Optimize content from the Improve tab without a cited page opened Start on a new page. The person picked Optimize: once the Overview's read lands, its first page to optimize is chosen, a single time. A pick of their own, or a retry, leaves the choice to them. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Cihan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
9 of 13 tasks
gkhngyk
pushed a commit
that referenced
this pull request
Nov 6, 2026
…2188) Pages of the brand cited for the same prompts aren't a problem, so the words for them don't say "overlap" (2026-10-21 decision, kept for the Plan and Start in #1320). The Impact tab's line under "Your other pages for these prompts" now reads "The only page of yours cited for its prompts", with no "· no overlap". Text and its test only. Co-authored-by: Cihan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The user's product call, from reviewing the live Plan: more of the brand's pages cited for the same prompts is no loss. We can't control it, and the more citations and mentions, the better: AI answers aren't Google rankings. So neither Start nor the Plan treats it as a problem any more.
Start (New content → Start):
"Overlap check" is now "Overview": a plain box (no amber, no warning icon) with "N of your pages are cited for these prompts" and the same table of pages. With none, it says "None of your pages is cited for these prompts yet", without "Safe to create".
The action the person clicked stays chosen. Pressing Create used to switch Start to "Optimize X instead" whenever a page answered half the prompts, so Create almost always opened as Optimize. Start no longer picks for the person, and nothing is labelled "Recommended".
The choices (
overlapOptions):With a new page as the only choice, no radio group shows.
Plan:
content_plan_pages(00220 / 00221) still returnsoverlaps; the Plan no longer reads it. Dropping it from the function, and the work it does, can be a follow-up migration if you'd like the read lighter.Related issue
None. Product feedback from the user.
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
Checked in light and dark, at 1024 px and wider.
Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/): no errors; the 6 warnings are in files this PR does not touchyarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Also run:
yarn test(2,478 tests;overlapOptions, the Overview in Start, and the Plan's three cards and rows are covered) andyarn build. Web only, no migration. It touches the Plan page and its test like #1319, on different lines; whichever merges second takes main.🤖 Generated with Claude Code