Skip to content

ref(transactions): Remove usage of deprecatedRouteProps from TransactionOverview view#101093

Closed
shashjar wants to merge 1 commit into
masterfrom
remove-deprecatedRouteProps-TransactionOverview
Closed

ref(transactions): Remove usage of deprecatedRouteProps from TransactionOverview view#101093
shashjar wants to merge 1 commit into
masterfrom
remove-deprecatedRouteProps-TransactionOverview

Conversation

@shashjar

@shashjar shashjar commented Oct 7, 2025

Copy link
Copy Markdown
Member

Migrates usage of deprecatedRouteProps for TransactionOverview - sentry/views/performance/transactionSummary/transactionOverview.

https://www.notion.so/sentry/Frontend-TSC-Project-Remove-all-uses-of-deprecatedRouteProps-true-26a8b10e4b5d8015a6a2dd14f9d41dd7

@shashjar shashjar requested a review from a team October 7, 2025 17:22
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 7, 2025
@shashjar shashjar marked this pull request as ready for review October 10, 2025 21:49
@shashjar shashjar requested a review from a team October 10, 2025 21:49

@gggritso gggritso left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Cool, thank you! One question about mocking navigations, otherwise LGTM

Comment on lines +25 to +29
const mockNavigate = jest.fn();
jest.mock('sentry/utils/useNavigate', () => ({
useNavigate: () => mockNavigate,
}));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👀 I think you can replace this mock with assertion for router.location.url instead, per the docs!

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

bad timing on my part but I have a PR up that adds a shared layout to all /summary pages for faster navigation, and I also had to change all the tests because of it, therefore removing the deprecatedRouterProps implicitly 😅 🙈

Here’s how I removed the mocking (PR is still in draft):

https://github.com/getsentry/sentry/pull/101436/files#diff-9f7209ce3911bbc397cc82331cfdf08a5c7c835513df6550cf1a04edf020b47b

@shashjar shashjar closed this Oct 15, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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