Repository navigation
feat(insights): open on 24h, always compare same prompts, drop the trend's AC markers and Send biggest gap - #1100
Merged
Conversation
Insights opened on 30 days (VIS-007); it now opens on the last 24 hours, what the latest run found, and the longer ranges are one click away. Reset returns to 24h too. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The "Compare: Same prompts" switch (VIS-002) is gone and its behaviour is always on: every change compares only the prompts answered in both periods, so adding prompts doesn't inflate it. The numbers themselves still cover every prompt. A link with ?compare=all from before is cleaned up, and the Formulas dialog says how changes are compared. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The trend no longer marks the days Action Center actions were sent: the "A" markers and their "AC-61 sent · date" lines under the chart are gone. The days the most prompts were added and the Action Center goal line stay. insights_trend_markers (00136) still returns actions_sent; the web no longer reads it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
"Send biggest gap to Actions" (VIS-010) sent a Compete action whose tasks were too general to act on, so the button goes, with the server action and the biggestGap helper only it used. The heat map is unchanged. The server's POST /api/topics/:id/gap-action and the topic_competitor_gap kind stay for the actions already sent. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
|
@gkhngyk could you review this when you have a moment? Product feedback on the Insights page: open on 24h, always compare same prompts (the switch goes), drop the trend's Action Center "A" markers, and remove "Send biggest gap" (its tasks were too general). One commit per change; the server gap-action route and insights_trend_markers' actions_sent are left as follow-ups. |
This was referenced Oct 16, 2026
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
Four simplifications to the Insights (Visibility) page, from product feedback.
Why:
How
One commit per change:
feat(insights): open on the last 24 hours:DEFAULT_FILTERS.datePresetis'24h'.feat(insights): always compare changes on the same promptssamePromptsleaves the filters and the URL; the page always asks for same-prompt changes.?compare=allfrom before is cleaned up.insights.compare.labelandsamePromptsstrings are removed.hint,newExcludedandnewIncludedstay, since the summary line and Why it changed use them.feat(insights): drop the Action Center markers from the trendlib/insights-trend.tsno longer readsactions_sentor keeps an "actions" marker kind.feat(insights): remove "Send biggest gap" from the heat map: the button and the code only it used are removed:sendTopicGapToActionCenter,TopicGapWindowandbiggestGapwith its test, and its strings.Left as is, for a follow-up if wanted:
POST /api/topics/:id/gap-actionand thetopic_competitor_gapkind (actions already sent still open);insights_trend_markers(00136) still computingactions_sent, which nothing reads now.Note on 24h: the Topics vs competitors heat map and the trend's goal line need more than one day of trend points, so the default 24h view doesn't show them; 7d, 30d and 90d do, as before.
These depart from Visibility spec v2 (VIS-002, VIS-007's default and markers, VIS-010's button), which will be updated to match.
Related issue
None. Product feedback on the Insights page.
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
?compare=all: the parameter is dropped, and changes still compare the same prompts.Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/): no errors; the 7 warnings are in files this PR does not touchyarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Also run:
web:yarn testpasses (849 withmainmerged in), andyarn buildpasses.lib/insights-trend.test.tscovers the prompt-only markers and the payload'sactions_sentbeing left out.In the browser (demo data):
I checked at 1024px, in the light and dark themes.
Review: a code review raised the Formulas heading still naming "Same prompts" and a per-kind marker constant; both are fixed. The default view's missing heat map is noted above, and the server route and RPC field are listed as follow-ups.
🤖 Generated with Claude Code