Uh oh!
There was an error while loading. Please reload this page.
feat: Expose formatting menu bar actions through slash command - #4587
Conversation
Passing run #11614 ↗︎Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. | |||||||||||||||
juliusknorr
commented
Jul 26, 2023
@nextcloud/designers I'd be glad to get some early design feedback on this :) |
54ef05d to
34897faComparemejo-
commented
Jul 31, 2023
Really nice, can't wait to use this myself 😍 One thing that immediately came to my mind: should we change the order to hide the formatting options a bit? I don't think it's very intuitive to have six headings options listed as the first smartpicker options 😬 |
juliusknorr
commented
Jul 31, 2023
Yes, maybe we could also sort the usual smart pickers first. Regarding the list of visible entries we could also increase that a bit if screen space allows. @nextcloud/designers What do you think? |
Uh oh!
There was an error while loading. Please reload this page.
marcoambrosini
left a comment
There was a problem hiding this comment.
Nice!
I think it would be really nice to have the 4-5 most used styles at the top of the menu so that they're immediately visible.
34897fa to
e5c6b58Comparejuliusknorr
commented
Aug 2, 2023
Not sure what the most used would be then. I've pushed a change to sort ToDo list, table, h1, h2 first to at least show that there are different options other than headings. |
marcoambrosini
commented
Aug 3, 2023
Sorry, I meant most used on a per document base :) |
juliusknorr
commented
Aug 3, 2023
I'd rather prefer a default choice of order rather than randomly changing ones. Not only for the complexity that it adds but also users would know what to expect from the menu then. I think changing per document could be confusing and also is not very helpful on empty documents or when documents only have a simple structure like headings and paragraphs. |
max-nextcloud
left a comment
There was a problem hiding this comment.
Code looks good. ✨
Will still test locally.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
max-nextcloud
commented
Aug 8, 2023
Okay.... I tried this out and it's great... 👯 but we should really check if a given action is available in the current context. So these options should not be available. |
max-nextcloud
left a comment
There was a problem hiding this comment.
Please check if the actions are available in the current context.
e5c6b58 to
48f45c8Comparejuliusknorr
commented
Aug 8, 2023
@max-nextcloud Thanks for bringing this up. I pushed a fix to address this. Main change is https://github.com/nextcloud/text/pull/4587/files#diff-461b071d61c872ecc5d0c24f5227cfdbafd62c22347ef001a4d1aab55c25d58eR83-R87 |
48f45c8 to
9337c7eComparemax-nextcloud
commented
Aug 9, 2023
/compile |
378da86 to
462deb9CompareSigned-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
462deb9 to
e51ce5aComparejuliusknorr
commented
Aug 9, 2023
/backport e4e5f42 to stable27 |
📝 Summary
Introduce commands in the smart picker
/dialog for useful menubar actionsSome menu items (undo/redo/outline) are excluded as they don't make sense here. Insert attachments would still be nice, but ee need to figure out a good way to trigger the action from within the tiptap suggest plugin, so I'd like to rather do that as a follow up.
🖼️ Screenshots
Recording:
https://github.com/nextcloud/text/assets/3404133/96aaecbc-9254-4786-9b35-210557b9694d
🚧 TODO
🏁 Checklist
npm run lint/npm run stylelint/composer run cs:check)