compass
compass copied to clipboard
feat(compass-aggregations): Update saved aggregations to open as popover COMPASS-5852
COMPASS-5852
This PR updates the saved aggregations view to open as a popover, previously it would open as a panel from the left.
A few driveby updates:
- Updated the title and button in the panel to leafygreen.
- Added an empty state (screenshot below).
- A bit of renaming: previously the saved aggregations panel was named
save-pipeline.jsx
, now it issaved-pipelines.tsx
. - (bugfix) Previously if a user had a lot of saved aggregations the panel would overflow the top level container, now it scrolls nicely
Before:
After:
With lots of saved aggregations:
Video:
https://user-images.githubusercontent.com/1791149/184723351-a8095c53-f8f5-4c73-b048-59f740ce5f42.mp4
Empty state before:
Empty state after:
Noticed the popover closes when the modal confirmation opens, going to bring this with Claudia and look at what behavior we want here. Maybe we can remove the confirmation all together.
@Anemy @Sgrinfy given that we are touching this component, should we consider making it clear that those are the pipelines for the current collection and not all of them, maybe by tweaking the copy a bit?