Skip to content

feat(insights): Formulas dialog explaining every metric's calculation - #581

Merged
gkhngyk merged 1 commit into
mainfrom
feature/insights-formula-popup
Aug 3, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
feature/insights-formula-popup

Conversation

@gkhngyk

@gkhngyk gkhngyk commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Customers kept asking how the Visibility number is computed. This adds a "Formulas" button (sigma icon, outline style) to the left of Export CSV on the Insights header. It opens a dialog explaining how every metric on the page is calculated:

  • Visibility (0–100) — the blend formula in a monospace block plus a per-component breakdown (mention rate 60%, citation rate 25%, position factor 15%). The weights are read live from the shared visibility-score module, so the dialog stays correct if the blend is ever tuned.
  • A note that competitors are scored with the exact same formula over the same answer set, which is what makes the leaderboard comparable.
  • Trend chart — the rolling-window definition (why the newest point always matches the headline card).
  • Mentions vs Citations, Positive sentiment (with the "shown alongside, not part of the score" note), Share of Voice, and Coverage.

Related issue

—

Type of change

  • feat — New feature

How to test

  1. Open Insights → click Formulas next to Export CSV.
  2. The dialog lists every metric's definition; the Visibility formula shows 0.6 / 0.25 / 0.15 weights.
  3. Content wraps inside the dialog on narrow screens (no horizontal shift).

Checklist

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

New outline button (sigma icon) to the left of Export CSV opens a dialog
explaining how every Insights metric is computed: the Visibility blend
(weights read live from the shared visibility-score module), the rolling
trend-chart definition, mentions vs citations, positive sentiment, Share
of Voice, and coverage.
@gkhngyk
gkhngyk merged commit f92e8c8 into main Aug 3, 2026
5 checks passed
@gkhngyk
gkhngyk deleted the feature/insights-formula-popup branch August 3, 2026 06:30
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.

1 participant