ref(autofix): Use new Markdown primitive in v3 cards#115879
Merged
priscilawebdev merged 1 commit intoMay 22, 2026
Merged
Conversation
Replace the local StyledMarkedText wrapper (built on the legacy sentry/utils/marked MarkedText component) with the new <Markdown /> primitive from @sentry/scraps/markdown introduced in #115025. Covers the Solution and Root Cause cards rendered in the issue details sidebar and Seer drawer, plus the streaming loading details. The shared v3/styled.tsx wrapper is no longer needed and is removed.
Contributor
📊 Type Coverage Diff✅ No new type safety issues introduced. Coverage: 93.56% |
Member
Author
3 tasks
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.


Replace the local
StyledMarkedTextwrapper (built on the legacysentry/utils/markedMarkedTextcomponent) with the new<Markdown />primitive from@sentry/scraps/markdownintroduced in #115025.This is the autofix surface rendered in the issue details sidebar and the Seer drawer — the Solution card ("Plan"), Root Cause card, and the streaming loading details. The
v3/styled.tsxwrapper is no longer needed and is removed.No behavior change is intended. The new primitive renders each markdown block via Scraps
Text/Heading/InlineCode/etc. instead ofdangerouslySetInnerHTML, so visual rendering of the one-line summaries and lists inRootCauseCard/SolutionCardmay shift slightly — please eyeball the cards in the sidebar and drawer during review.Refs #115025