Page 1 of 1

Contextual permissions UI could be more intuitive to new users

Posted: Fri Feb 14, 2025 10:38 pm
by barbaz
Spun off from viewtopic.php?p=107943#p107943 -
barbaz wrote: Fri Feb 14, 2025 1:54 pm Changing the selection in the drop-down does not make any changes to any permissions. It's more like switching between different tabs (like in NoScript Options > General > (Default/Trusted/Untrusted) tabs)
Writing that made me realise just how unintuitive this UI is. There is room to reduce the learning curve here.

Thinking about what could be done that's hopefully not too involved to implement, wondering if the following would reduce the learning curve:

1) Change the animation. The "sometimes it works, sometimes it doesn't" shrink-to-bottom animation comes across as cosmetic. How about switching to an animation that gives a meaningful hint as to what exactly happened when the drop-down was changed?

For example, a plain pull-down animation, where the newly-selected contextual permission slides down coming from immediately below the "Enable these capabilities when top page matches" drop-down's line (and below that line's z-index), sliding over the top of the previously-selected contextual permission.

Also, making the animation work consistently would help it be perceived as meaningful.

2) Change the text "Enable these capabilities when top page matches" to something more like "Capabilities for when top page matches". Makes it sound less like an active setting, and more like a description of what's shown.

Could these changes be helpful enough and minor enough to be worth considering?

Re: Contextual permissions UI could be more intuitive to new users

Posted: Sat Feb 15, 2025 8:52 am
by fatboy
2) "Capabilities (used is highlighted) when top page matches:"

3) It might also be a good idea to swap "toppagename" and "ANY SITE" in the drop-down list

4) In "General" there are now three tabs: DEFAULT, etc.
After these three tabs, add a row with three radio buttons:
"ANY SITE inherits DEFAULT or TRUSTED or UNTRUSTED policy by default".

5) Bring back "Permissions" instead of "Capabilities" everywhere.

Re: Contextual permissions UI could be more intuitive to new users

Posted: Sat Feb 15, 2025 1:57 pm
by barbaz
fatboy wrote: Sat Feb 15, 2025 8:52 am 4) In "General" there are now three tabs: DEFAULT, etc.
After these three tabs, add a row with three radio buttons:
"ANY SITE inherits DEFAULT or TRUSTED or UNTRUSTED policy by default".
Currently, new "ANY SITE" permissions inherit whichever preset was last selected. This is the most intuitive default behavior: selecting to "CUSTOM"ize permissions should just display more options, not automatically change permissions.

Making CUSTOM inherit a different preset seems more geared toward experienced users who repeatedly set similar contextual permissions for different sites.

To make that suggestion not a footgun and not sometimes-cumbersome, it would need to be opt-in (i.e. the default selection is a fourth radio button "Last selected preset" which keeps the current behavior) and viewtopic.php?t=26551 would need to be implemented.