-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add append to contextPad #1801
Comments
UX discussion outcome (2023-01-16): Let's interpret "append anything" as "add anything", a tool that can basically replace the palette in a way that is always close to where you are modeling. It provides all elements you might need. We can see how users react to this and adapt if needed.
|
Currently having some difficulty with triggering create mode on keyboard (same as bpmn-io/bpmn-js-connectors-extension#54). The dragging module is not prepared to receive a KeyboardEvent because it can't extract the cursor position from it, therefore not being able to calculate the initial dragging position. I only got this far (needs an initial mouse movement to be able to display the hover element): Screen.Recording.2023-01-16.at.16.37.43.mov |
How about we fake the initial cursor position based on the button position? That could mimic the mouse interaction. Still, it looks good enough as we don't aim for keyboard-only modeling at the moment. |
@barmac I tried to calculate the position based on the target but it wasn't working out too well. We also try to get this position again (here) after the menu has been closed to add the placeholder, so we would need to save this position and re-use it. I did some messing around with it but the positioning was always off. |
We have a utility to record and provide the last mouse position I think it is fine to use that (and otherwise resort to "show only once mouse moved for the first time). |
Also interesting if #1801 (comment) does not work: Why does it work so smoothly in the prototype? |
Following our UX discussion, there are still some other things we could clear up:
Screen.Recording.2023-01-17.at.14.56.25.mov
Screen.Recording.2023-01-17.at.15.03.33.mov |
I'm aware of that case and would keep it as is.
We could go either way about this, but we should be consistent: Either we show the menu for all flow elements (end, event-sub + others) or only others. Intuitively I'd not show for both (end, event-sub) for now. Also: Should we show it for elements where the context pad is conclusive? Event-based gateway is such a candidate. |
I'd say we can keep it initially and we can do some refining after the initial PR (#1802) has been merged. Wdyt? |
I was surprised to learn that we cannot add text annotation via the append menu. Perhaps that could make sense even for event subprocesses and end events. |
Let's log this as a follow up, too. Makes sense to annotate from there, too. |
Created as #1806 |
What should we do?
Add a "append anything" entry to the palette which provides a menu with all possible elements.
What it should look like:
To do:
Why should we do it?
To support create anything, see #1627
The text was updated successfully, but these errors were encountered: