-
Notifications
You must be signed in to change notification settings - Fork 159
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 open action for editors #11085
Add open action for editors #11085
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
TBD:
|
packages/web-pkg/src/composables/actions/files/useFileActionsOpenWithApp.ts
Outdated
Show resolved
Hide resolved
1535da5
to
0f35d18
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.
Nice progress! I noticed some things:
- if I have the right sidebar open in the main window, the embed mode in the modal starts with visible right sidebar. I'd like the embed mode to always start with closed sidebar
- paddings are somehow off in the right sidebar. E.g. the
x
button for closing the right sidebar floats out of the sidebar, into the blue border on the right. - visually it makes a quite heavy impression, that the embed mode has the dark blue frame and is placed in an otherwise white modal.
Functionality already works flawlessly 💯
Since the sidebar will be controlled by localStorage, this is a little hard to achieve, maybe in a followup
Not reproducible, could you check again and upload a screenshot?
@tbsbdr remarked this as well, and proposed a blue modal, @kulmann is against that, can you please propose something you both are fine with?
:) |
1a29ef3
to
327b22a
Compare
327b22a
to
2e36152
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.
Only a few tiny remarks, otherwise awesome stuff!
Did you try what happens if token renewal takes places during the modal being open? I noticed the iFrame spawns another web worker for the token renewal... I hope it doesn't have a negative effect 🙈
packages/web-pkg/tests/unit/components/Modals/FilePickerModal.spec.ts
Outdated
Show resolved
Hide resolved
packages/web-pkg/tests/unit/components/Modals/FilePickerModal.spec.ts
Outdated
Show resolved
Hide resolved
…spec.ts Co-authored-by: Jannik Stehle <[email protected]>
…spec.ts Co-authored-by: Jannik Stehle <[email protected]>
I didn't 🙈 |
Changelog is missing |
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.
This is working perfectly, so I'm just gonna go ahead and approve this.
For the visuals I have one proposal though: could you drop the modal footer and instead of the cancel button add an X
in the top right of the modal for closing the modal? That could/should look like the following screenshot and IMO that makes it look much better already, because the white frame at the bottom disappears. Still not happy with the header section, but IMO this would be an improvement.
@kulmann Unfortunately I can't easily, we use the dispatchModal function here to display the modal, and our FilePickerModal component will be just the rendered content. I only have the possibility to adjust CSS but injecting elements would end up in spaghetti code. Another possibility could be: |
Yes, sounds good. But as a followup please. :-) |
Quality Gate passedIssues Measures |
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.
Noice 👍
I'll merge this and open a follow up pr, so we can show it tomorrow Toodalo! |
* Add open action for editors Co-authored-by: Jannik Stehle <[email protected]>
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Open tasks: