cockpit-project / cockpit-files

A Featureful File Browser for Cockpit (Modernized and tested version of https://github.com/45Drives/cockpit-navigator)
GNU Lesser General Public License v2.1
25 stars 23 forks source link

Details view: Permissions #565

Open garrett opened 3 weeks ago

garrett commented 3 weeks ago

For showing permissions, I think the only thing that makes sense is to have the descriptive form with triplet attributes (not octal), and have descriptions for it in a tooltip to make it more approachable, like this:

permissions in details, with a tooltip

Note the spacing, lack of d (as we have another place to show if it's a directory or file`), and grouping. The tooltip has alignment on the labels and for the content, so the content aligns (and isn't ragged due to being all in one line).

Originally posted by @garrett in https://github.com/cockpit-project/cockpit-files/issues/564#issuecomment-2175679284

jelly commented 3 weeks ago

As we can sort on this column, we need some text for the filter dropdown:

image

Or do we leave it out of this dropdown?

allisonkarlitskaya commented 3 weeks ago

Sorting on permissions seems pretty marginal.

Copying from https://github.com/cockpit-project/cockpit-files/issues/564#issuecomment-2175733593 :

Please make sure to support s (+xs), S (+s-x) and t/T (sticky) in the output for permissions.

jelly commented 3 weeks ago

Sorting on permissions seems pretty marginal.

Marginal? If you mean not important, sure, but as nautilus allows it, it seems like something we should do as well.

garrett commented 2 weeks ago

Nautilus allows it from the headers, but doesn't have it in the menu.

image

We're trying to balance 3 different factors when it comes to sorting the table:

  1. Permissions (and ownership) on a multi-user system are more important compared to a single-user desktop, so we shouldn't do a 1:1 duplication of desktop file manager features without thinking about it further.
  2. Cognitive overload (aka: "mental workload" / "info paralysis" / "paradox of choice"): having too many items in the sort list will make it harder to find what people are looking for.
  3. View compatibility: sorting options in the list need to make sense for both icon view and details view. Sorting by permissions isn't an obvious sorting order in icon view (it will look random).

Item 1 says it makes sense and can even be important on a server to sort by permission. Items 2 and 3 say adding it to the list will make that too cluttered, especially for the icon view. This is probably why Nautilus does not show permissions by default (due to 2 and 3, but also due to 1 as a single-user desktop system will generally own all the files themselves) and even when Nautilus is told to include permissions in the view, it does not add it to the menu (as that would be cluttered and not support both view modes).


On the other hand, KDE's Dolphin has these sorting options and much more. But it gets weird, as you can't see the sorting in the default view (icons) when you select it, and the menu structure is a mess. KDE often will add features just because it can, so I don't think it's a good standard to compare to.

image


Windows is weird (sometimes the menu is there, sometimes it isn't) and doesn't have permissions:

image

But Windows also has a plethora of mostly-redundant view options (with even more hidden in Windows 3.1-style dialogs in the ... menu under "Properties" and "Options"):

image

And Windows has 2 context menus, both with different options from the rest of the UI:

image

image

(The second one is triggered by selecting "More options" from the first.)


macOS Finder does sorting a little different. There's a menu in the headerbar that has various options, and when you select one other than the name (which just sorts by name), it groups the items with sticky headers:

image

image

image

image

But it gets a little wacky, as they have this duplicated in a ... menu that changes based on sort, what you have selected, and everything. Here's what it looks like with lots of options:

image

image

Same, but something's selected:

image

And then they have a "show view options" dialog that has many of the same settings, but even more to adjust the padding, spacing, font size, background wallpaper image (for the folder!), and so on, and that can be specific to the folder but also apply anywhere:

image


Anyway, looping back to the topic at hand:

And, more in depth (overall), but still applies here:

garrett commented 2 weeks ago

Here's the most recent mockup for a list view:

details mockups

It's not easy to have divider lines in Penpot, so I haven't added them yet. (It's possible, but requires workarounds.) Therefore, ignore the lack of it. We can decide if we want divider lines still or not. The lack of lines isn't intentional.