Server: Delete button as far as possible from selection box

Created on 29 Dec 2017  Â·  12Comments  Â·  Source: nextcloud/server

Select a file in the web UI on the left. You'll find the delete button (and other buttons) totally on the right. You will probably not even notice they just appeared... @waazdakka pointed this out and I even had to look for the delete button myself...

Maybe it's simplistic to put them on the left, but... Better ideas?

@nextcloud/designers

design enhancement files

Most helpful comment

The triangle should be in the middle of the box, pointing towards the 3-dot-icon.

@jancborchardt - Done

Note that I also modified the trashbin plugin (Deleted files), I've put the restore and delete items under the actions menu.

Here are a few screenshots,

Laptop

screenshot from 2018-06-02 21-02-40

Deleted files

screenshot from 2018-06-02 21-29-33

Mobile

Landscape

localhost_nextcloud_index php_apps_files__dir _ iphone 6_7_8 plus

Potrait

localhost_nextcloud_index php_apps_files__dir _ iphone 6_7_8 plus 1

All 12 comments

This should be symmetric to the normal file list entries, with the actions in a 3-dot-menu. In this case the 3-dot-icon can be directly right next to the "2 folders & 5 files" text.

Also makes it work better on mobile where the 3 icons are close together without labels. On desktop, the 3-dot-icon could have a label like "Actions".

Also cc @Abijeet who implemented this :)

That would indeed help a lot, I think... @waazdakka agreed?

This is what I'm going to be doing in a separate PR -

  1. On mobile the actions - Move to, download and delete will be going into a 3-dot-menu.
  2. Ensure that the Delete label should be right of the icon, like with the other icons on all resolutions.
  3. 3-dot-menu should be right of the "2 folders & 1 file" text.
  4. In the guest view for a read-only shared folder, there will only be a single action: Download. In that case there should not be a 3-dot-menu, but the single action shown directly.

Note that if we go with the above changes there will be some HTML that will be duplicated.

@MorrisJobke - These changes will not be minor, not sure if I'd label this as papercut.

Maybe someone from the JS team can help me on this one.

For the new dropdown needed on lower resolutions, I'm planning to do the following,

  1. Create a new Backbone View to handle the dropdown needed on this one.
  2. Some of the methods in filelist.js such as _onClickDownloadSelected, _onClickCopyMoveSelected, _onClickDeleteSelected etc will have to be be made "public" so that the other component can use this.
  3. Will initialize the view similar to the NewFileMenu dropdown.

Thoughts?

cc: @nextcloud/javascript

@Abijeet the changes you mention sound perfect! :)

Maybe @skjnldsv @juliushaertl or @pixelipo can help with the JS?

Finally got round to working on this.

I've added the actions menu on the normal view as well and displaying it right next to the _1 folder and 1 file_ selected text. Not a huge fan of this approach though. I feel the move or copy, delete and download icons appearing earlier were cleaner and intuitive, especially on a large monitor.

screenshot-localhost-2018 05 27-18-35-38

@jancborchardt / @nextcloud/designers - What do you think?

@Abijeet looks good! :) Only a detail: The triangle should be in the middle of the box, pointing towards the 3-dot-icon.

Regarding showing the contents of the actions menu earlier – sure: We could show »Move or copy« outside of the menu (left of it, with text) on a bigger screen. But more than 1 action outside the menu is too much.

@Abijeet looks good! :) Only a detail: The triangle should be in the middle of the box, pointing towards the 3-dot-icon.

Documentation: https://docs.nextcloud.com/server/13/developer_manual/design/popovermenu.html
:)

@skjnldsv in the alignment it says Right is by default – seems it should be centered by default for sure, and right as an option, just like left. :)

The triangle should be in the middle of the box, pointing towards the 3-dot-icon.

@jancborchardt - Done

Note that I also modified the trashbin plugin (Deleted files), I've put the restore and delete items under the actions menu.

Here are a few screenshots,

Laptop

screenshot from 2018-06-02 21-02-40

Deleted files

screenshot from 2018-06-02 21-29-33

Mobile

Landscape

localhost_nextcloud_index php_apps_files__dir _ iphone 6_7_8 plus

Potrait

localhost_nextcloud_index php_apps_files__dir _ iphone 6_7_8 plus 1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juliushaertl picture juliushaertl  Â·  3Comments

mama21mama picture mama21mama  Â·  3Comments

Django-BOfH picture Django-BOfH  Â·  3Comments

dl5rcw picture dl5rcw  Â·  3Comments

MorrisJobke picture MorrisJobke  Â·  3Comments