chore: market insights, adds filled state and persist ability to the feedback buttons#27849
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #27849 +/- ##
==========================================
+ Coverage 82.46% 82.51% +0.05%
==========================================
Files 4801 4804 +3
Lines 123807 123956 +149
Branches 27602 27633 +31
==========================================
+ Hits 102101 102286 +185
+ Misses 14634 14605 -29
+ Partials 7072 7065 -7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
No E2E tests exist for MarketInsights functionality (confirmed by searching for e2e/spec files). The unit test file adds coverage for the new behavior. The .agents/skills/SKILL.md change is documentation only. There is no risk to existing E2E test flows from these changes. Performance Test Selection: |
|




Description
The Market Insights thumbs up/down feedback buttons previously didn't give a clear indication that they were selected, meaning the icons always appeared as outlines. To improve this we added the filled state and persist it until a new digest comes or the app is killed.
Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk UI-state change: adds local in-memory caching of feedback selection keyed by
report.generatedAtand updates icon rendering; no sensitive data or auth flows touched.Overview
Market Insights feedback buttons now show a filled thumbs up/down icon after the user submits feedback, and that selection is persisted across
MarketInsightsViewunmount/remount for the same digest via an in-moduleMapkeyed byreport.generatedAt.The view resets the filled state when a new digest arrives, and tests were expanded to cover filled-state rendering, switching votes, dismissing the thumbs-down sheet without submitting, and persistence/reset behavior. Separately, the
repo-skill-authoringdoc fixes markdown code-fence formatting in the minimal examples.Written by Cursor Bugbot for commit 51641f1. This will update automatically on new commits. Configure here.