Skip to content

feat(prompts): banner for unanalyzed keywords with one-click Analyze - #296

Merged
gkhngyk merged 1 commit into
mainfrom
feature/unanalyzed-keywords-banner
Jun 23, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
feature/unanalyzed-keywords-banner

Conversation

@gkhngyk

@gkhngyk gkhngyk commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

On the All Prompts tab (/dashboard/prompts?tab=all), prompts that haven't had volume analysis run show blank Volume / Competition cells with no explanation — and the analyze action only lived on the Insights tab, so there was no way to act from here.

Adds a contextual banner above the table:

  • Shown only when there are active prompts with no volume row (unanalyzedCount > 0), with the correct count and pluralization.
  • An Analyze N keyword(s) button that runs volume analysis for just those (reuses handleAnalyzeNew, which already targets the unanalyzed set first). After it completes, the data reloads and the banner disappears.
  • Respects the monthly volume quota: when exhausted, the CTA is disabled and the copy switches to a "limit reached — upgrade" hint, consistent with the existing quota messaging.

Uses the same amber-callout style as other in-app warning banners (no new deps/icons).

Related issue

Closes #290

Type of change

  • feat — New feature
  • fix
  • chore
  • docs
  • refactor
  • test

How to test

  1. Open /dashboard/prompts?tab=all for a brand with at least one active prompt that has no volume data.
  2. A banner shows "{n} keywords haven't been analyzed yet" with an Analyze {n} keywords button.
  3. Click it → volume analysis runs for those prompts; once done, Volume/Competition fill in and the banner disappears.
  4. With all prompts analyzed → no banner.
  5. With the monthly volume quota exhausted → the CTA is disabled and the copy shows the upgrade/limit hint.

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

On the All Prompts tab, keywords with no volume row render blank Volume/
Competition cells with no explanation, and the analyze action only lived on the
Insights tab. Add a contextual banner above the table: when there are active
prompts without a volume row, it shows the count and an Analyze CTA that runs
volume analysis for just those (reusing handleAnalyzeNew, which already targets
promptsWithoutVolume first). The banner hides once all are analyzed, and when the
monthly volume quota is exhausted the CTA is disabled with an upgrade hint.

Closes #290.
@gkhngyk
gkhngyk merged commit 25704d8 into main Jun 23, 2026
4 checks passed
@gkhngyk
gkhngyk deleted the feature/unanalyzed-keywords-banner branch June 23, 2026 15:26
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.

feat(prompts): banner for unanalyzed keywords with one-click Analyze (All Prompts)

1 participant