Skip to content

Conversation

@Abdkhan14
Copy link
Contributor

@Abdkhan14 Abdkhan14 commented Oct 21, 2025

  • This PR removes the legacy TraceTreeNode class and it's subclasses from the codebase.

  • Also, replaces the use of TraceTree statics methods with the new BaseNode methods

  • Note that this PR, doesn't replace the use of guards or doesn't fully use the generalizations introduced by the new BaseNode class. The goal is to make the minimal amount of change to reach feature parity, pass CI and get rid of the legacy TraceTreeNode class.

  • I will be following up with a stacked PR to make full use of the BaseNode class, mitigate the use of guards etc. Helps make reviewing easier/reduces scope.

  • At this stack all CI passes ✅, we can merge into master

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 21, 2025
@Abdkhan14 Abdkhan14 marked this pull request as ready for review October 21, 2025 20:32
@Abdkhan14 Abdkhan14 requested review from a team as code owners October 21, 2025 20:32
@Abdkhan14 Abdkhan14 requested review from a team and gggritso October 21, 2025 20:32
cursor[bot]

This comment was marked as outdated.

if (
!(
tree.transactions_count < AUTO_EXPAND_TRANSACTIONS_THRESHOLD ||
tree.collapsed_nodes < AUTO_EXPAND_TRANSACTIONS_THRESHOLD ||
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug: Trace Expansion Logic Incorrect

The trace auto-expansion logic now incorrectly uses tree.collapsed_nodes instead of tree.transactions_count to determine if a trace has few transactions. This can cause traces to auto-expand when they shouldn't or fail to expand when they should, potentially impacting performance.

Fix in Cursor Fix in Web

Copy link
Member

@gggritso gggritso left a comment

Choose a reason for hiding this comment

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

👍🏻

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.

3 participants