Skip to content

Conversation

@Abdkhan14
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Dec 6, 2025
color: colors[1],
};

if (isTransactionNode(node)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

No need to look for 'transaction.op' specifically in value, we can use the baseNode.op getter

@Abdkhan14 Abdkhan14 marked this pull request as ready for review December 9, 2025 01:18
@Abdkhan14 Abdkhan14 requested a review from a team as a code owner December 9, 2025 01:18
@Abdkhan14 Abdkhan14 requested a review from gggritso December 9, 2025 01:18
nodeInfo.color = colors[4];
} else {
nodeInfo.subtitle = node.value.description || '';
nodeInfo.subtitle = node.description || '';
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug: TransactionNode title and subtitle are swapped after change

Removing the isTransactionNode check and early return causes TransactionNode types that don't match any AI-specific conditions to have their title and subtitle swapped. Previously, TransactionNode displayed the transaction name (e.g., "POST /api/endpoint") as the title and the operation as the subtitle. Now, for these nodes, title is set to truncatedOp (the operation) and subtitle is set to node.description (the transaction name via the TransactionNode.description getter), reversing the original display order.

Fix in Cursor Fix in Web

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