feat(formatters): add Seer fixability score to issue list and detail views#233
Closed
feat(formatters): add Seer fixability score to issue list and detail views#233
Conversation
project view now accepts <org>/<project> as a single positional argument instead of separate --org flag and <project> positional, matching the pattern used by event view and issue view. Auto-detect via DSN still works when no argument is provided, including monorepo multi-target.
E2E tests now pass org/project as a single arg instead of --org flag. Renamed test cases to reflect positional args instead of flags.
Deduplicate resolveFromProjectSearch() which was identically implemented in event/view, trace/view, log/view, and project/view. The shared resolveProjectBySlug() in resolve-target.ts handles project slug lookup with consistent error messages and disambiguation prompts.
…views Surfaces seerFixabilityScore from the Sentry API on issue list and detail views. Shows a 3-tier label (high/med/low) with the raw percentage, e.g. med(50%) in lists, Med (50%) in detail. Color-coded green/yellow/red. Mirrors the approach in getsentry/sentry-mcp#732.
Unit tests for all fixability functions with boundary/edge cases (score=0, score=1, null, undefined). Property-based tests for tier validity, monotonicity, format pattern matching, and column width constraints.
Contributor
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨
Bug Fixes 🐛
🤖 This preview updates automatically when you update the PR. |
Contributor
|
Contributor
Codecov Results 📊✅ Patch coverage is 87.57%. Project has 3871 uncovered lines. Files with missing lines (67)
Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 69.87% 70.00% +0.13%
==========================================
Files 105 105 —
Lines 12848 12902 +54
Branches 0 0 —
==========================================
+ Hits 8977 9031 +54
- Misses 3871 3871 —
- Partials 0 0 —Generated by Codecov Action |
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
Surfaces the Seer fixability score on issue list and detail views. Shows a 3-tier label (high/med/low) with the raw percentage — e.g.
med(50%)in lists,Med (50%)in detail. Color-coded green/yellow/red to match the severity coloring pattern.Mirrors the approach in getsentry/sentry-mcp#732.
Changes
seerFixabilityScorefield onSentryIssueSchema(nullable/optional, returned by the API when Seer has scored an issue)issue listtable, between SEEN and TITLEissue viewdetail, between Priority and LevelfixabilityColor()(high=green, med=yellow, low=red)FixabilityTierunion type threaded through from label function to color functionTest Plan
bun run typecheck— cleanbun run lint— clean