-
Notifications
You must be signed in to change notification settings - Fork 488
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
Improve Variables Tab Access and Bottom Panel Controls #4638
Conversation
7e162c8
to
b3a4f84
Compare
a84e98c
to
a6fa31b
Compare
I'd suggest that we decide on another key for the shortcut. Ctrl/Cmd+V is the traditional paste shortcut, and in some editors a combination of Cmd+Shift+(Option)+V triggers "paste and match formatting". Why don't we use a letter without strong OS link, e.g. U or M. Screen.Recording.2024-10-30.at.17.26.31.mov |
I subscribe to this. CC @lmbateman. |
I agree that we should stay away from Cmd-V variations. Looks like for many MacOS apps (but not the Desktop Modeler), Cmd-M minimizes the window. Cmd-U is a common shortcut for underline, but since that's a fairly specialized feature, I think Cmd-U will work, and Ctrl-U should be fine for Windows. (Should we add a Cmd-M shortcut?) |
BTW the recording I shared displays the vscode shortcuts. I think the Shift usage in that tool is wise as it allows to avoid conflicts. Learning from Cmd+P (print or toggle properties panel 🤡 ). |
115ebc2
to
14d27f7
Compare
MacOS tests are passing now. Will review. |
@abdul99ahad Could you adjust the PR according to my suggestion?
|
Okay. Regarding point 3, I think for now, we can add variables tab as individual entry and see in future if users also want Output and Problems tab in application menu. |
I'd say: Don't add a toggle shortcut for variables panel for now, but in the future automatically open variables tab from various places. Much more important that this is properly wired, i.e. with the FEEL editors. |
Additionally, adding the individual entries including disabled states is a bit more work since opening a tab doesn't trigger a menu update at the moment. So I'd say let's keep it for later or just don't add them if no one ever asks. |
14d27f7
to
b33e8c5
Compare
aa5d66d
to
9edd76c
Compare
Understood. If that's the convention, then I think the test cases are perfectly aligned with the convention. |
9edd76c
to
732b93c
Compare
Agreed. I assumed it should function like the properties panel, but since the bottom panel is more global, it makes sense to make it universally available. I've implemented the necessary changes, and the bottom panel is now accessible throughout the modeler. |
Ok, this works properly now, across all file types. One issue that remains is that we don't properly fall back to another "known tab" when we switch to a view where a particular tab is not present: This issue, however, can already be reproduced in released versions of the modeler, so not a regression. |
I think it is a good solution we ended up building here 👏 |
Please add an entry to the CHANGELOG, linking to the issue this closes. |
b6fd676
to
cb7ee49
Compare
Merging with some minor squashes. |
Initially, it was grouped with |
Okay, understood. 😃 |
Closes #4516
Proposed Changes
Variables Application Menu
Variables Tab Keyboard shortcut
(For Mac OS): Press
Command + Shift + V
Variables Bottom Tab
Checklist
To ensure you provided everything we need to look at your PR:
@bpmn-io/sr
toolCloses {LINK_TO_ISSUE}
orRelated to {LINK_TO_ISSUE}