[MGNLUI-2748] Rework action availability to become more flexible and consistent Created: 17/Mar/14  Updated: 09/Mar/21  Resolved: 09/Mar/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 5.2.x
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Andreas Weder Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: actionbar, actions, availability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

We need a more flexible implementation for action availability that is applicable to all elements of an Action bar: to actions, groups and sections.

We've reworked action availability to be able to enable/disable actions and show them depending on user permissions. However, the current solution seems to be somewhat hackish.

What follows are some short notes from discussions of the topic we had during a UX team meeting.

We also need more flexibility to hide/show items entirely as well:

This user has done everything right, but is still out of luck as we currently can't hide items. Possible quick fix: filter out actions based on role.

We could then bring this flexibility consistently to all actions, groups and sections. We would then add a HIG card to educate devs on how to use all these options and to give best practice for e.g. when to hide an action and when to just disable it.


Generated at Mon Feb 12 08:59:46 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.