-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
ref(replay): Convert Errors Tab to use *Frame
types
#51559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
38dd44f
to
927510f
Compare
[crumb.timestamp, startTimestampMs] | ||
); | ||
const hasOccurred = currentTime >= crumbTime; | ||
const isBeforeHover = currentHoverTime === undefined || currentHoverTime >= crumbTime; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yay, simplify things with the new types and their extra fields.
searchTerm: (item: ErrorFrame, searchTerm: string) => | ||
[item.message, ...item.data.labels].some(str => | ||
str.toLowerCase().includes(searchTerm) | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed to remove the JSON.stringify business, instead look at message
and labels
on their own
*Frame
types
Relates to #47991