Repository navigation
feat(replay): Adds click to search on component name - #68190
Merged
Merged
Conversation
michellewzhang
approved these changes
Apr 3, 2024
| description.lastIndexOf('>') === -1 ? 0 : description.lastIndexOf('>') + 2; | ||
|
|
||
| return ( | ||
| <Description title={description} showOnlyOnOverflow isHoverable> |
Contributor
There was a problem hiding this comment.
what happens if the there's a react component name & the description here overflows? will there be two layers of tooltips :o
Contributor
Author
There was a problem hiding this comment.
if it overflows, there's only the tooltip to see all the text, no click to search in the tooltip :(
Contributor
Author
There was a problem hiding this comment.
I changed it so that there's 2 layers of tooltips :D
Contributor
|
looks good! 2/3 items crushed already?! |
michellewzhang
approved these changes
Apr 3, 2024
michellewzhang
left a comment
Contributor
There was a problem hiding this comment.
thanks for making the changes!
billyvg
reviewed
Apr 4, 2024
| <Fragment> | ||
| {componentName ? ( | ||
| <Fragment> | ||
| <div style={{display: 'inline'}}> |
Member
There was a problem hiding this comment.
I think this can be a span, no need for inline styles
shellmayr
pushed a commit
that referenced
this pull request
Apr 10, 2024
If the component that was clicked on is of type React Component Name, then you can click on it to search for replays that also have those clicks. We only have data on whether or not the clicked component has a component name, the parents in the tree come in as a string so there's no type data, so only the clicked component will have the ability to click to search. Since the entire HTML tree comes in as one string, some string manipulation was required. <img width="716" alt="image" src="https://github.com/getsentry/sentry/assets/55311782/84297982-5c52-498c-9bdc-afa31cae51ca"> <img width="596" alt="image" src="https://github.com/getsentry/sentry/assets/55311782/2da53340-77e5-453c-b15b-be04b6d34682"> Relates to: #64673
This branch was successfully deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
If the component that was clicked on is of type React Component Name, then you can click on it to search for replays that also have those clicks.
We only have data on whether or not the clicked component has a component name, the parents in the tree come in as a string so there's no type data, so only the clicked component will have the ability to click to search. Since the entire HTML tree comes in as one string, some string manipulation was required.
Relates to: #64673