Skip to content
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

Move emoji picker and "Insert image" under the overflow menu #2611

Closed

Conversation

luka-nextcloud
Copy link
Contributor

@luka-nextcloud luka-nextcloud commented Jun 22, 2022

Signed-off-by: Luka Trovic luka@nextcloud.com

Summary

Screencast.from.30-06-2022.22_59_14.webm

@susnux
Copy link
Contributor

susnux commented Jun 22, 2022

Have you tested the Insert image part? While developing the link menu entry I noticed Actions within the overflow menu do not work, so for me callouts insert image (and my insert link) menus do not work when allowed to move into the overflow menu.

@vinicius73
Copy link
Member

Originally those are not in the overflow menu because those are "dropdown menus", like "heading" and callouts.

@max-nextcloud
Copy link
Collaborator

max-nextcloud commented Jun 23, 2022

I like the idea of moving some actions to the bottom. I think we actually might need both places and more drop down menus. How about this:

  • on top:
    • history ( undo, redo - drop down only if redo is available )
    • style ( bold, italic, underline, strike )
    • headings ( h1...h6 )
    • lists ( unordered, ordered, todo )
  • on bottom:
    • blocks ( quote, code, info, success, warn, error )
    • table
    • emoji
    • image
    • formatting help

@luka-nextcloud
Copy link
Contributor Author

Hmm, the uploaded image and emoji don't work inside the overflow menu.
@max-nextcloud From my understanding, the items inside your round bracket should go into dropdown. So, I think the quote, code, info, success, warn, and the error should go into dropdown because I believe we don't have enough space.

@max-nextcloud
Copy link
Collaborator

@max-nextcloud From my understanding, the items inside your round bracket should go into dropdown. So, I think the quote, code, info, success, warn, and the error should go into dropdown because I believe we don't have enough space.

Yes... totally agree. I changed my comment above acordingly. Now all dropdowns are written as brackets. I my list they have a name (history, style, ...) in order to clarify why i'd put them in one place. So far this name is only to make it easier to discuss this - it would not show in the ui.

@max-nextcloud

This comment was marked as outdated.

@luka-nextcloud

This comment was marked as resolved.

@luka-nextcloud luka-nextcloud force-pushed the feature/move-buttons-into-overflow-menu branch from 7c20c8a to 54e08f4 Compare June 29, 2022 17:21
@luka-nextcloud
Copy link
Contributor Author

@max-nextcloud I've updated the summary with a new video.

@jancborchardt
Copy link
Member

jancborchardt commented Jun 30, 2022

I'm not fully sure about the separation of the toolbar, as it seems a bit arbitrary as it is now.

A separation which would seem fine is to put undo/redo at the top, and everything else on the bottom, for example. So all formatting is together. It's also fine to have horizontal scrolling in the bar as e.g. GitHub mobile does it.

Otherwise we repeat a similar confusion we had with the toolbar + menu which appears when narking text.

@jancborchardt
Copy link
Member

Also to add: What takes most space at the top currently is actually the "Saved" indicator which can be done via an icon, or with an asterisk / circle next to the filename if there are unsaved changes.

@luka-nextcloud
Copy link
Contributor Author

luka-nextcloud commented Jul 6, 2022

@jancborchardt How does it look like? :)

Screencast.from.05-07-2022.22_38_00.webm

Signed-off-by: Luka Trovic <luka@nextcloud.com>
Signed-off-by: Luka Trovic <luka@nextcloud.com>
Signed-off-by: Luka Trovic <luka@nextcloud.com>
@luka-nextcloud luka-nextcloud force-pushed the feature/move-buttons-into-overflow-menu branch from 54e08f4 to 051bb73 Compare July 6, 2022 12:28
@max-nextcloud
Copy link
Collaborator

max-nextcloud commented Jul 6, 2022

Just a few thoughts:

  • I like the idea of using an icon as a saved indicator a lot.
  • The floppy icon does not work so well i think - some people don't know what a floppy is these days ;). I'd personally use a checkmark when it's saved and some form of progress indication (spinning wheel, etc.) sync when it's not saved. I would not make it blue in either state.
  • I like the clean look of only undo and redo on top.
  • I don't like the scrolling of the bottom toolbar. If the help icon is not on the screen initially it might be hard to find.
  • @jancborchardt would you be okay with still moving the formatting (bold, italic, strike through, ...) into a submenu but on the bottom? I think that would save quite some space / scrolling.
  • todo list seems to be missing in the last video, right?
  • @jancborchardt would you be okay with combining the lists into one submenu?

@mejo-
Copy link
Member

mejo- commented Jul 7, 2022

I mostly agree with @max-nextcloud comments.

One additional thought: would it be an option to move the help icon to the top as well? It's not a formatting tool either, so could fit next to the redo/undo buttons, no? @jancborchardt

@susnux
Copy link
Contributor

susnux commented Jul 7, 2022

From mobile perspective scrolling makes using the lower menu bar is harder, so moving the formatting help to the upper menu makes sense on mobile (and in general).

Also the priority of e.g. emoji picker is on mobile quite low as most keyboards already have a (better) emoji input (e.g. you can type more than one without the need of reopen the menu), so there is no problem with hiding it in an overflow menu as you probably do not need it here.

It is also possible to thin out the menu by hiding disabled entries, like the blockquote if you are within an list entry (isDisabled is already available) or later the list indention button (heavily required on mobile!)

@juliusknorr
Copy link
Member

@nimishavijay Any thoughts on that until @jancborchardt is back? :)

@nimishavijay
Copy link
Member

This is a good improvement! The top bar looks much cleaner now :)

  • The floppy icon does not work so well i think - some people don't know what a floppy is these days ;). I'd personally use a checkmark when it's saved and some form of progress indication (spinning wheel, etc.) sync when it's not saved. I would not make it blue in either state.
  • One additional thought: would it be an option to move the help icon to the top as well?
  • Also the priority of e.g. emoji picker is on mobile quite low as most keyboards already have a (better) emoji input

Agree with these points!
I am not so sure about scrolling horizontally as it can be easy to miss. Some options:

  1. Hide everything that is overflowing in a submenu
  2. Categorise into submenu like @max-nextcloud said
  3. Kind of a contextual bottom bar, where depending on what you click some items are hidden or shown, expanding on what @susnux said. Google docs does something like this. By default, the options shown are bold, italic, underline, text colour, highlight, text align and list. If you click the list button, text color, highlight and text align are hidden and in their place checklist, bullet list, numbered list and increase/decrease indentation of list are shown. We can group the options and show them only if they are relevant.

I like 2 because it shows all the options available in a simple way, but I like 3 because it allows you to easily switch between formatting options without opening menus. What do you think? cc @jancborchardt

@max-nextcloud
Copy link
Collaborator

@luka-nextcloud what do we do with this? My understanding is that we discussed at the ui review and came up with some ideas for submenus etc... but is this PR still relevant to that?

@juliusknorr juliusknorr added this to the Nextcloud 26 milestone Oct 11, 2022
@juliusknorr juliusknorr added the enhancement New feature or request label Oct 26, 2022
@juliusknorr
Copy link
Member

Let's close this as from the discussion the actual implementation would be quite different and requires more refactoring as described in #2836

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Emoji picker and "Insert image" should go into the overflow menu
8 participants