-
Notifications
You must be signed in to change notification settings - Fork 489
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
Populate empty tab buttons from available create options #4575
Conversation
This Pull Request targets Consider targeting |
client/src/app/App.js
Outdated
action = action[0]; | ||
} | ||
|
||
console.log(action, options); |
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.
Get rid of this
console.log(action, options); | |
console.log(action, options); |
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.
🤦
Fixed in 88646ed
0914681
to
88646ed
Compare
Could you elaborate what exactly is missing from the current way to trigger menus? I verified via 1163371 and e53e2f3 to see that we can already pass context. I propose that we update the existing examples / plug-ins to feature the new extension point / usage patterns within the DEV environment. This makes it simpler for you to test things, but also allows us to verify that we don't break E2E scenarios in the future. |
5fc71cc
to
e53e2f3
Compare
You are right, this is not the correct way to implement this. The problem is that we use the tab provider both the frontend (right plus button) as well as the backend (File menu). The Frontend implementation does not support adding options, the backend does. This needs to be fixed in the frontend code that renders the Menu, as well as add the option for "options" in the Slot on the front page. I will revisit this PR |
e53e2f3
to
1c5f4c2
Compare
What we could consider for a good integration:
The current way of doing things is error-prone. |
We already do this
I would not hide them, we have enough space on the landing page and I do not see us having a lot of additional Providers. If we get to the point, we can reiterate and hide them.
The only place we do not do that yet is the Welcome page. I added this in 7ee2c34 |
7ee2c34 is great, because it sets us up to do whatever optimizations on the welcome page in the future. Good stuff. |
a74aff0
to
016fe71
Compare
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 struggled to get this up and running just to realize that we did not check-in the test-plugin distro (as we do with other distributions). Fixed via d1f280b.
Then I checked the welcome page designs. Via 016fe71 I made sure that the UI scales, independent on how many options we offer.
The overall changes look good to me.
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.
You could do another round of cleanup on the commit history, but otherwise it looks good to merge.
Also noticed that we need |
016fe71
to
4e17a0a
Compare
I did a small refactoring in EmptyTab to add |
4e17a0a
to
dd4eace
Compare
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.
Fixed via 24e086a. As the functions called on the ref are all implemented by the child, we are fine to simply forward the ref to the EmptyTab component. |
24e086a
to
45be9f0
Compare
Thanks for the update. The change still did not fully work, as |
Once CI passes I'll squash the changes and merge this PR. 🎉 |
45be9f0
to
620a778
Compare
#triggerAction
to receive action and options as array
Proposed Changes
related to #4568
I noticed that with the plugin, the new file dialog from the OS menu does not work. Start page and client side new-tab worked, as we added the special action handling there.
With this change, we allow action and options to be an array for
#triggerAction
, so menu actions can easily add options, even when triggered via a backend module.Try it out:
.robot
file from the file menuChecklist
To ensure you provided everything we need to look at your PR:
@bpmn-io/sr
toolCloses {LINK_TO_ISSUE}
orRelated to {LINK_TO_ISSUE}