Implement seer context panel
Implement thumbs up/down feedback buttons on Seer cards (Root Cause, Solution, Code Changes) to collect user feedback.
This PR introduces a new CardFeedback component that:
- Displays thumbs up/down icons for each card.
- Tracks the
seer.autofix.feedback_submittedanalytics event with relevant parameters. - Shows a "Thanks!" message after feedback is submitted.
- Prevents event propagation to avoid interfering with card navigation.
The feedback buttons appear when the card is loaded and a valid run_id is present. This implementation reuses the existing seer.autofix.feedback_submitted analytics event, requiring no backend changes.
Legal Boilerplate
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.
Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: All tests successful. No failed tests found.
Additional details and impacted files
@@ Coverage Diff @@
## master #104569 +/- ##
===========================================
- Coverage 80.63% 80.52% -0.12%
===========================================
Files 9335 9330 -5
Lines 402949 400651 -2298
Branches 25689 25689
===========================================
- Hits 324921 322621 -2300
- Misses 77562 77564 +2
Partials 466 466