-
Notifications
You must be signed in to change notification settings - Fork 73
Conversation
@@ -134,6 +147,54 @@ export const SelectorModalWithToggler = ({ | |||
return selectedApp?.__profile_type__ === a.__profile_type__; | |||
}; | |||
|
|||
const groups = useMemo(() => { | |||
const allGroups = leftSideApps.map((app) => app.name.split('-')[0]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess here we should maybe use service_name
and simply calculate the height of the dropdown based off the number of service_name
.
If I'm understanding correctly the idea here is to:
- Calculate the necessary height of the modal based off the number of "groups" that will exist
- If the modal is bigger than the screen then set the modal to slightly bigger height than the screen... if the modal is smaller than the screen then just adapt to the size of the modal
right now the logic is assuming that the "groups" are differentiated by the text before the first -
but thats not true. I guess they are now based off of the service_name
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, max-height
would be a slightly cleaner solution but this will work too.
* Fix app selector scrolling * comment out stuff * Remove comments * Remove item duplicator
This takes the:
And then I asked for some help from chatgpt to bring some functionality from the pyroscope version into the phlare version.
Had to make some tweaks after, but now it looks better. Would like to merge this and get it into the next weekly release for phlare so we can then add it to the Grafana cloud profiles app plugin which imports the ui from phlare.
Fixes app selector scrolling
Screen.Recording.2023-07-13.at.3.12.56.PM.mov