Skip to content

US: View available library roles #53

@MaferMazu

Description

@MaferMazu

As a Library Member, I want to view the roles available for libraries with their descriptions and permissions, so that I can understand each role's capabilities.

Figma: https://www.figma.com/design/q3Knq0BKoVTBbtaxb81n9R/RBAC---Console---Wireframes?node-id=2750-9652&t=71PeX22gyABqxnHu-4

Acceptance criteria

  • Placement
    Integrated as a tab named Roles in the Library Team Management view, alongside Team Members and Permissions.

  • Access
    Any user with a role in the library can view this tab.
    Non members cannot access this panel.

  • Header context
    Shows library name and library ID in the header.

  • Content
    List of Role Cards.
    Each card shows the role name followed by the number of users on it, and a short description. Descriptions are WIP.
    Each card includes a collapsible list of permissions grouped by category, Library, Content, Team, Collections.
    Permissions are displayed as chips indicating whether that permission is included for the role.

  • States
    Loading uses skeleton blocks.
    Error shows a message with a Retry action.

Notes, out of scope for this card

  • Sorting and filters are separate stories.

  • There is an API GET endpoint to retrieve all the roles and associated permissions for the current scope.

  • API and error views are defined in a separate card. 401 and 403 use the same auth error view. 404 and general server errors use a not found or generic error view with a Retry.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions