Skip to content

fix(trace-waterfall): Fix collapsed transaction indentation in trace waterfall#112912

Open
nsdeschenes wants to merge 3 commits intomasterfrom
nd/fix-trace-waterfall-deeply-nested-nodes-shifted-too-far
Open

fix(trace-waterfall): Fix collapsed transaction indentation in trace waterfall#112912
nsdeschenes wants to merge 3 commits intomasterfrom
nd/fix-trace-waterfall-deeply-nested-nodes-shifted-too-far

Conversation

@nsdeschenes
Copy link
Copy Markdown
Contributor

@nsdeschenes nsdeschenes commented Apr 14, 2026

Fixing an indentation and connector rendering issue for collapsed EAP transactions.

When a collapsed EAP transaction surfaces nested descendant transactions, the waterfall was still using their structural parents to compute depth and connectors. That pushed rows too far to the right even though they were being rendered as direct visible children. This change computes depth and connector state from the visible tree instead.

Before Screenshot 2026-04-14 at 07 54 37
After Screenshot 2026-04-14 at 08 00 49

nsdeschenes and others added 3 commits April 14, 2026 08:58
Compute row depth and connectors from the visible tree when collapsed EAP transactions surface nested descendants. This keeps summarized child transactions aligned under the collapsed transaction instead of inheriting indentation from hidden span parents.

Co-Authored-By: Codex <noreply@openai.com>
Add assertions for the visible parent and depth of nested EAP transactions when their ancestor transaction is collapsed, and update the rendered tree snapshots to match the corrected indentation.

Co-Authored-By: Codex <noreply@openai.com>
Treat the synthetic trace root row as the last visible child when visible-parent lookup falls back to null. This preserves the collapsed-row indentation fix without adding an extra connector to the trace header.

Co-Authored-By: Codex <noreply@openai.com>
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 14, 2026
@sentry
Copy link
Copy Markdown
Contributor

sentry bot commented Apr 14, 2026

Sentry Snapshot Testing

Name Added Removed Modified Renamed Unchanged Status
sentry-frontend
sentry-frontend
0 0 0 0 204 ✅ Unchanged

@nsdeschenes nsdeschenes changed the title fix(trace): Fix collapsed transaction indentation in trace waterfall fix(trace-waterfall): Fix collapsed transaction indentation in trace waterfall Apr 14, 2026
@nsdeschenes
Copy link
Copy Markdown
Contributor Author

@cursor review

@nsdeschenes
Copy link
Copy Markdown
Contributor Author

@sentry review

@nsdeschenes nsdeschenes requested a review from Abdkhan14 April 14, 2026 12:56
@nsdeschenes nsdeschenes marked this pull request as ready for review April 14, 2026 12:56
@nsdeschenes nsdeschenes requested a review from a team as a code owner April 14, 2026 12:56
Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit b6f8cc8. Configure here.

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.

1 participant