Repository navigation
feat(action-center): label the Action Center's and Opportunities' AI volumes as estimates - #1364
Merged
gkhngyk merged 10 commits intoOct 22, 2026
Merged
Conversation
…adge and method note PROMPT-013, part 1. A prompt's AI volume is the median Google volume of its keywords x the AI adoption rate; how far to trust it follows from how many keywords have data and how closely they agree. lib/volume-estimate.ts turns each stored estimate into a range and a confidence (high, medium, low; a level less when over six months old), and adds them up for the Insights cards. The Prompts page shows ranges with a dashed Estimate badge and a method note (sources, month, confidence, date), greys low-confidence estimates, leaves them out of High Opportunity on their own and sorts them after the confident ones by Volume. The Tracked Prompts CSV gains volume_type, volume_confidence, the range and volume_date. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t page's AI volume as estimates PROMPT-013, part 2. Two more kinds of estimate: one keyword's AI share (its Google volume is measured, only the adoption rate assumed: medium, ±25%) for Similar Topics' rows, and an AI's guess (always low, half to twice) for Prompt Suggestions' volume badge. The method note words each. Similar Topics' Est. AI Volume card shows the prompts' summed range with the Estimate badge, and a prompt's detail page gains an "AI searches a month" card, read through getPromptVolume (the prompt is checked with the user's client before prompt_volumes is read with the admin client). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…an, one note per table Review fixes for PROMPT-013 part 1. The keywords are head terms that spread widely by design, so agreement is now the upper over the lower quartile of the measured volumes (as percentile_cont): high at three or more within 4x, medium at two or more within 15x. The range is the AI share of that middle half, clamped to half to twice. The note calls the 45% the share of Google searches that now get an AI answer. Long tables share one tooltip through createEstimateNoteHandle, the Prompt Volumes chart shows each platform's share of the range, rankable is used by both ranking rules, and perMonth waits for part 2. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lume-pages # Conflicts: # web/messages/en.json # web/src/components/prompts/volume-estimate.test.tsx # web/src/components/prompts/volume-estimate.tsx
…t Suggestions As ansvisor#1361's tables do: each long list mounts one method note through createEstimateNoteHandle rather than one per row. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…volumes as estimates
PROMPT-013, part 3a. readPromptDemand returns each prompt's estimate (a
range and a confidence) instead of a number, so the Affected tab, the Why
("28-42k AI searches a month, estimated"), the history drawer and the
action exports show ranges; CSV and Excel gain volume_type and
volume_confidence. A topic opportunity's demand and its suggestions' are
an AI's guess: grey, low-confidence ranges in the title, the drawer and
Insights' Opportunities card.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… volumes As the Prompts tables do (ansvisor#1361): the column's ranges pass a shared createEstimateNoteHandle rather than mounting a tooltip each. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… people, keep ranges focusable Pre-push review fixes for PROMPT-013 part 3a. A sum of suggestions' AI guesses gets its own note, and its low-confidence line no longer claims it never ranks. Excel and Markdown word the confidence through volumeEstimate.level while the CSV keeps the code. The topic context keeps its separator in en.json and shares one note across its suggestions, the Opportunities line truncates only its text so the range stays focusable, and tests date their volumes relative to now. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
|
@gkhngyk PROMPT-013 part 3a, stacked on #1362, with #1361's quartile rule merged in.
A review pass before pushing caught:
All four are fixed in 669f272. |
This was referenced Oct 22, 2026
gkhngyk
previously approved these changes
Oct 22, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good. Two small follow-ups. Neither blocks the merge:
web/src/app/[locale]/(dashboard)/dashboard/insights/_opportunities.tsx:329-338: every text part of the row's line now truncates, the·separators included. Flex shrinks each one in proportion to its width, so on a narrow row (a phone) the count and the separators turn into ellipses before the standing does: "2… … 600–2.4k/mo … A…", where the old single span read "2 prompts · ~1.2k/mo · Acme…". Make the count and the separatorsshrink-0too, and let only the last text part (the standing or "not tracked") truncate.web/src/lib/action-center/export-labels.ts:198→export.ts:550: the Excel sheet spells out the confidence ("Medium") but writes the type as the codeestimate. In #1367 the opportunity export writes "Estimate". Give Excel a label like that, for exampleactionsPage.export.estimate: "Estimate", and keep the code in the CSV.
Also checked:
- Merge commit e524595 re-merges to the same tree, so it has no hidden changes.
readPromptDemandstill checks the prompts against the brand with the caller's client before it reads with the admin client. It readsprompt_volumesby its uniqueprompt_id, 150 ids per request.- The server's priority and demand tiers are unchanged.
- The CSV only adds columns, after
volume. - The removed
en.jsonkeys have no callers left.
gkhngyk
approved these changes
Oct 22, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Re-approving after merging main into the branch. The merge only brings in the squashed parent PR; the tree matches the one tested (web and server tests, typecheck, lint, format).
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
PROMPT-013, part 3a: the Action Center and Insights' Opportunities label their AI volumes as estimates, with ranges.
Action Center
readPromptDemand(lib/action-center/prompt-demand.ts) also reads each prompt's keyword volumes, rate andfetched_at, and returns aVolumeEstimateper prompt instead of a number. So the drawer, the history drawer and the MCP export get the range and confidence from feat(prompts): show estimated AI volume as a range with an Estimate badge and method note #1361's rules.createEstimateNoteHandle), as feat(prompts): show estimated AI volume as a range with an Estimate badge and method note #1361's tables do.est_volume, an AI's guess, so it reads as a grey, low-confidence range.en.json(t.richwith a<range>tag), and the suggestions share one note.volume_type(estimate) andvolume_confidencecolumns aftervolume. The CSV keeps the code (medium), and Excel words it for people ("Medium", fromvolumeEstimate.level);Insights › Opportunities: a topic's or a prompt's volume is the suggestions' AI guess, shown as a grey range with its note ("2 prompts · 600–2.4k/mo · you lead").
Not changed: the server's demand tiers (Action Center priority, detector thresholds) still read
est_ai_volume. They combine it with other signals. See #1361.Strings:
actionsPage.export.volumeType,volumeConfidenceandestimatedVolume;story.subject.volumenow says "estimated";topic_opportunity.titlesays "estimated AI demand";topicOpportunity.demandValueno longer carries the number;topicOpportunity.volumeandinsights.opportunities.volume("~{volume}/mo").Related issue
ROADMAP plan item 03 (PROMPT-013), queued by the user on 2026-10-22. No issue.
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
volume_typeandvolume_confidence.Checked locally on the demo brand at 1024 px, in light and dark, with three temporary rated suggestions:
The demo has no signal-backed action, so step 3 is covered by tests. The temporary suggestions and AC-62 have been deleted.
Tests (updated to estimates):
prompt-demand.test.ts;story.test.ts;affected-tab.test.tsx;history-drawer.test.tsx;export.test.ts(CSV, Excel and Markdown columns);display.test.ts(title);mcp/action-export.test.ts;insights/_opportunities.test.tsx(grey ranges, no "~").Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/) (0 errors; the 6 warnings are in untouched files, as on main)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Also run: web
yarn test(2,750 tests) andyarn build.🤖 Generated with Claude Code