Skip to content

ui: Ensure Flame Graph is reset on all toolbar interactions#5953

Merged
yomete merged 3 commits into
mainfrom
toolbar-flamegraph-expansion
Sep 15, 2025
Merged

ui: Ensure Flame Graph is reset on all toolbar interactions#5953
yomete merged 3 commits into
mainfrom
toolbar-flamegraph-expansion

Conversation

@yomete
Copy link
Copy Markdown
Contributor

@yomete yomete commented Sep 15, 2025

This PR ensures that we now reset the Flame Graph on Filters and Level of Profiling changes. I thought it'd be a good idea to rename the useResetStateOnNewSearch hook to useResetFlameGraphState since that reflects/explains more what happens in the hook.

Now resets flame graph state on filter and group-by changes for improved consistency.

Renames useResetStateOnNewSearch to useResetFlameGraphState and updates all references.

Removes unused curPath state and related props from visualization and dashboard components.
@yomete yomete requested a review from a team as a code owner September 15, 2025 12:33
@alwaysmeticulous
Copy link
Copy Markdown

alwaysmeticulous Bot commented Sep 15, 2025

✅ Meticulous spotted 0 visual differences across 472 screens tested: view results.

Meticulous evaluated ~5 hours of user flows against your PR.

Expected differences? Click here. Last updated for commit 3275509. This comment will update as new commits are pushed.

profileSource: ProfileSource;
total: bigint;
filtered: bigint;
curPath: string[];
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Doing some cleanups here as we no longer need these props.


const {
curPath,
setCurPath,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Doing some cleanups here as we no longer need these props.

@yomete yomete changed the title Refactor flame graph state reset logic ui: Ensure Flame Graph is reset on all toolbar interactions Sep 15, 2025
Copy link
Copy Markdown
Contributor

@manojVivek manojVivek left a comment

Choose a reason for hiding this comment

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

Lgtm!

@yomete yomete merged commit e655023 into main Sep 15, 2025
37 of 38 checks passed
@yomete yomete deleted the toolbar-flamegraph-expansion branch September 15, 2025 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants