Skip to content

fix(action-center): lower topic opportunity impact to the new volume scale - #1105

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:fix/topic-opportunity-thresholds
Oct 17, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:fix/topic-opportunity-thresholds

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

A topic opportunity's impact moves to the new volume scale: high from 10k a month (was 50k), medium from 2k (was 10k).

When Insights sends a topic opportunity to the Action Center, topicOpportunityImpact grades it by the topic's demand, which is its relevant suggestions' est_volume added up. The suggestion model estimates those volumes against the brand's tracked prompts. Its prompt gives it their average and maximum, and asks it to calibrate.

#1103 changes those tracked volumes: the median of a prompt's keywords at a 45% AI adoption rate, instead of their sum at 15%. On the largest brand the average prompt goes from ~16.5k to ~3.3k a month, about a fifth. Once suggestions follow, the old 50k / 10k would grade almost every topic low. 10k / 2k keep the same proportions.

What changes

  • server/src/lib/action-center/from-topic-opportunity.js: the thresholds, with a comment on why.
  • from-topic-opportunity.test.js: pins both boundaries (10,000 / 9,999 and 2,000 / 1,999). It fails on the old thresholds.

Merge order and caveats

Related issue

None. Follows #1103 (prompt volume median and 45% AI adoption rate) and #1104.

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. Run npm test -- from-topic-opportunity in server/.
  2. With fix(volumes): estimate prompt volume from the median of its keywords at a 45% AI adoption rate #1103 deployed and suggestions refreshed, send a topic from Insights → Opportunities (Send action).
    • A topic whose relevant suggestions add up to 10k+ a month opens a high-impact Growth action.
    • 2k–10k opens a medium one.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/): this PR doesn't touch web/
  • yarn typecheck passes (run from web/): this PR doesn't touch web/
  • yarn format:check passes (run from web/): this PR doesn't touch web/
  • Changes are focused — one concern per PR

Also run:

  • server: npm run format, npm run lint and npm test (1,285) pass.
  • Review: a code review raised the merge order, stored suggestion volumes, existing actions, the 5× assumption, and that impact grows with a topic's suggestion count (unchanged here). All are noted above.

🤖 Generated with Claude Code

…scale

A topic opportunity's impact came from its suggestions' estimated volumes
added up: high from 50k a month, medium from 10k. The model estimates
those against the brand's tracked prompts, and with ansvisor#1103 (the median of
the keywords at a 45% AI adoption rate instead of their sum at 15%) a
brand's average prompt reads about a fifth of what it did. High is now
10k and medium 2k.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

@gkhngyk ready for review: topic opportunity impact moves to the new volume scale (high from 10k, medium from 2k, was 50k / 10k). Please merge with or after #1103 and #1104; before them almost every topic would grade high.

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, approving, together with #1103 and #1104. Server tests pass on the combined tree. As you note, stored suggestions keep their old est_volume until they refresh.

@gkhngyk
gkhngyk merged commit e2f496f into ansvisor:main Oct 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants