Repository navigation
feat(prompts): banner for unanalyzed keywords with one-click Analyze - #296
Merged
Merged
Conversation
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.
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
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:
unanalyzedCount > 0), with the correct count and pluralization.handleAnalyzeNew, which already targets the unanalyzed set first). After it completes, the data reloads and the banner disappears.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 featurefixchoredocsrefactortestHow to test
/dashboard/prompts?tab=allfor a brand with at least one active prompt that has no volume data.Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)