feat(apps): allow action button role filter to match custom roles by name
Merged
D-
2mo ago+173+173+012345678901234567890123456789-16-16-01234567890123456789
Proposed changes (including videos or screenshots)
Accepts a role name in the when.hasOneRole and when.hasAllRoles filters of an app action button. Previously only a role id matched, so an app had create a setting to configure the value or hard-code the random id a workspace assigned to a custom role. A role id keeps working, and takes precedence over a name.
Issue(s)
Steps to test or reproduce
Further comments
Summary by CodeRabbit
- New Features
- App action button role filters now support role names alongside role IDs.
- Role names are automatically resolved to workspace roles when evaluating visibility conditions.
- Existing role IDs take precedence, while unknown values remain compatible.
- Documentation
- Clarified supported role identifiers and scope requirements for visibility conditions.
- Tests
- Added coverage for custom, missing, unknown, and conflicting role identifiers.
Task: ARCH-2379