Skip to content
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

feat(hydration error): Create a tree-view that highlights dom mutations directly #80808

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ryan953
Copy link
Member

@ryan953 ryan953 commented Nov 15, 2024

SCR-20241115-mtqw

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 15, 2024
Copy link

codecov bot commented Nov 15, 2024

Codecov Report

Attention: Patch coverage is 0% with 88 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...pp/utils/replays/hooks/useExtractDiffMutations.tsx 0.00% 79 Missing ⚠️
...app/components/replays/diff/replayMutationTree.tsx 0.00% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #80808      +/-   ##
==========================================
+ Coverage   74.97%   78.39%   +3.41%     
==========================================
  Files        7207     7208       +1     
  Lines      319509   319549      +40     
  Branches    44001    44003       +2     
==========================================
+ Hits       239546   250498   +10952     
+ Misses      73442    62671   -10771     
+ Partials     6521     6380     -141     

@ryan953 ryan953 marked this pull request as ready for review November 15, 2024 16:46
@ryan953 ryan953 requested a review from a team as a code owner November 15, 2024 16:46
Copy link
Member

@billyvg billyvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How many times does replayStepper run when we open this modal?

});

const timeIndexedMutations = Array.from(data?.values() ?? []).reduce(
(mutation, acc) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this not switched? accumulator should be first arg

queryFn: () =>
extractDiffMutations({replay, rangeStartTimestampMs, rangeEndTimestampMs}),
enabled: true,
gcTime: 0, // Infinity,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, had this set to 0 for testing because i didn't want the cache to kick in so often.

Copy link

codecov bot commented Nov 16, 2024

Bundle Report

Changes will increase total bundle size by 44.89kB (0.14%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
app-webpack-bundle-array-push 31.9MB 44.89kB (0.14%) ⬆️

@ryan953
Copy link
Member Author

ryan953 commented Nov 16, 2024

I was thinking about adding a feature-flag around this.. but it's pretty deep inside the workflow, so i think I might not 'need' it even if it's a good habit in all cases. Exception to the rule!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants