Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(flamegraph): Redesign flamegraph toolbar to allow for more interactions #1674

Merged
merged 16 commits into from
Nov 10, 2022

Conversation

pavelpashkovsky
Copy link
Contributor

@pavelpashkovsky pavelpashkovsky commented Nov 3, 2022

@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2022

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
webapp/public/assets/app.js 490.01 KB (+0.39% 🔺) 9.9 s (+0.39% 🔺) 3.4 s (-3.39% 🔽) 13.2 s
webapp/public/assets/app.css 19.28 KB (+2.46% 🔺) 386 ms (+2.46% 🔺) 0 ms (+100% 🔺) 386 ms
webapp/public/assets/styles.css 9.52 KB (-0.19% 🔽) 191 ms (-0.19% 🔽) 0 ms (+100% 🔺) 191 ms
packages/pyroscope-flamegraph/dist/index.js 131.66 KB (+1.23% 🔺) 2.7 s (+1.23% 🔺) 1.6 s (+19.71% 🔺) 4.3 s
packages/pyroscope-flamegraph/dist/index.node.js 132.34 KB (+1.18% 🔺) 2.7 s (+1.18% 🔺) 543 ms (-8.11% 🔽) 3.2 s
packages/pyroscope-flamegraph/dist/index.css 8.28 KB (+4.61% 🔺) 166 ms (+4.61% 🔺) 0 ms (+100% 🔺) 166 ms

@pavelpashkovsky
Copy link
Contributor Author

pavelpashkovsky commented Nov 3, 2022

  1. Let me know if some sizes, shapes or colors are incorrect.
  2. There is no enough space to place everything on Toolbars on Comparison page. Any ideas?
comparison_not_enough_space.mp4
  1. What to do with SELF | TOTAL | DIFF buttons on DiffView page. Does it make sense to transform these button in the same way as TABLE | FLAMEGRAPH+TABLE | FLAMEGRAPH (on the right side)?

  2. This selector looks like font-size selector, right?
    image

  3. @eh-am After some updates live reload for storybook doesn't work anymore. Is there easy way to fix it?

  4. Actual Export button icon differs from required icon in this task. Guys told that you have arranged to leave current button. Just to confirm.
    image

  5. On the mockup toolbar looks kind of divided.
    image

  6. @eh-am can you please help w/ code review. It's not a final version, but we have to be on the same page

  7. Can you please explain a bit more about about this set of colors+buttons
    image

@pavelpashkovsky
Copy link
Contributor Author

/create-server

@codecov
Copy link

codecov bot commented Nov 3, 2022

Codecov Report

Base: 66.19% // Head: 66.22% // Increases project coverage by +0.04% 🎉

Coverage data is based on head (41f34ef) compared to base (9560869).
Patch coverage: 82.82% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1674      +/-   ##
==========================================
+ Coverage   66.19%   66.22%   +0.04%     
==========================================
  Files         166      164       -2     
  Lines        5462     5441      -21     
  Branches     1231     1220      -11     
==========================================
- Hits         3615     3603      -12     
+ Misses       1840     1831       -9     
  Partials        7        7              
Impacted Files Coverage Δ
...e-flamegraph/src/FlameGraph/FlameGraphRenderer.tsx 49.71% <ø> (-0.29%) ⬇️
...oscope-flamegraph/src/SharedQueryInput.module.scss 61.54% <0.00%> (ø)
...ebapp/javascript/components/ExportData.module.scss 61.54% <ø> (ø)
webapp/javascript/components/ExportData.tsx 37.78% <0.00%> (+0.70%) ⬆️
...kages/pyroscope-flamegraph/src/Toolbar.module.scss 61.54% <61.54%> (ø)
packages/pyroscope-flamegraph/src/Toolbar.tsx 83.21% <91.31%> (-0.57%) ⬇️
...graph/src/FlameGraph/FlameGraphComponent/index.tsx 81.89% <100.00%> (ø)
packages/pyroscope-flamegraph/src/Icons.tsx 100.00% <100.00%> (ø)
webapp/javascript/ui/Button.tsx 72.98% <0.00%> (-5.40%) ⬇️
... and 7 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Ivanikitin Ivanikitin added the frontend Mostly JS code label Nov 3, 2022
@Rperry2174
Copy link
Contributor

image

  1. Let me know if some sizes, shapes or colors are incorrect.

see picture above for color adjustments / styling placement adjustments

  1. There is no enough space to place everything on Toolbars on Comparison page. Any ideas?

When there's not enough space these should turn to dropdowns:

  • head first / tail first tabs
  • table / both / flamegraph / sandwich tabs

For now, let's just make everything else just be an icon with no words. Eventually we will use the tooltip that @eh-am added and things will work similar to google sheets.

Screen.Recording.2022-11-04.at.12.35.03.AM.mov

So this means that the following should be changed to just be their respective icons 100% of the time (we may change this later):

  • Collapse nodes above
  • reset view
  1. What to do with SELF | TOTAL | DIFF buttons on DiffView page. Does it make sense to transform these button in the same way as TABLE | FLAMEGRAPH+TABLE | FLAMEGRAPH (on the right side)?

Let's worry about this later...

  1. This selector looks like font-size selector, right?
    image

yes this is just for the mockup don't worry about it for now we will add font size later maybe

  1. Actual Export button icon differs from required icon in this task. Guys told that you have arranged to leave current button. Just to confirm.
    image

Yes we decided on the new one no need to change the export button again

  1. On the mockup toolbar looks kind of divided.
    image

yes toolbar is divided see picture at top of this message

  1. @eh-am can you please help w/ code review. It's not a final version, but we have to be on the same page
  2. Can you please explain a bit more about about this set of colors+buttons
    image

Just for reference in case we don't like the colors chosen

@pavelpashkovsky
Copy link
Contributor Author

/create-server

@Rperry2174
Copy link
Contributor

Rperry2174 commented Nov 7, 2022

  • When it is flamegraph only or table only then we should merge the toolbar so that its one bar across:

image

image

  • we should use our styled dropdown component here not the generic one
Screen.Recording.2022-11-07.at.12.48.31.PM.mov

image

@pavelpashkovsky
Copy link
Contributor Author

/create-server

@pavelpashkovsky
Copy link
Contributor Author

/create-server

@pavelpashkovsky pavelpashkovsky marked this pull request as ready for review November 9, 2022 10:29
@pavelpashkovsky pavelpashkovsky changed the title feat(flamegraph): Redesign flamegraph toolbar to allow for more interactions [WIP] feat(flamegraph): Redesign flamegraph toolbar to allow for more interactions Nov 9, 2022
@pavelpashkovsky pavelpashkovsky requested a review from eh-am November 9, 2022 10:29
@pavelpashkovsky
Copy link
Contributor Author

/create-server

Copy link
Contributor

@Rperry2174 Rperry2174 left a comment

Choose a reason for hiding this comment

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

LGTM! Nice work :)

@Rperry2174 Rperry2174 merged commit 646501a into main Nov 10, 2022
@Rperry2174 Rperry2174 deleted the toolbar-redesign branch November 10, 2022 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants