-
Notifications
You must be signed in to change notification settings - Fork 419
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
Implement popupMenu with improved UI #686
Comments
My working branch for this is: https://github.com/bpmn-io/diagram-js/tree/replace-popup-menu Some properties are customizable (to be passed on by bpmn-js) so they won’t appear at the moment but they are tested:
|
I tested out the current branch of bpmn-js (commit (bpmn-io/bpmn-js@d6a7c0d)), Overall, it works great. I'll add all my observations here, they might double what is already planned (e.g. min width, according to https://camunda.slack.com/archives/GP70M0J6M/p1667212511108699). min-width
HighlightsWhen I have header items and hover over them, multiple elements are highlighted (Multi-Instance and Replace Item). I think this can be confusing and we should only highlight the focused item SearchWhen the search bar is not visible (< 5 Items), I can still type to search. We should disable this, as there is no visual feedback of what's happening. Here, an empty state ("no Items found") might also help. Alternative here: always have a visible search bar |
RE @marstamm Regarding the min-width: This is why I added a small min-width of 120px that works for all and the possibility to pass on a Regarding the empty state and highlighted items: Regarding the search: It is always a possibility but I will look into blocking the search feature when the search bar is not displayed. |
Good point regarding the min-width. I like the option to make it configurable, so it works for both cases |
I fixed the remaining points (keeping the min width config to be added through ‘popup.open’ args), and opened #687 |
I decided to replace the configurable option Screen.Recording.2022-11-08.at.21.49.03.movThis way the width can be configured when/how it is needed by each menu. |
What should we do?
We want to replace the old popup UI menu with a new and improved UI, which includes searching.
To do:
Initial implementation concluded by #687
Identified bugs/improvements:
Why should we do it?
Preparation to support append anything - see bpmn-io/bpmn-js#1627
Child of bpmn-io/bpmn-js#1627
The text was updated successfully, but these errors were encountered: