Skip to content

Create an Action menu #7390

@jpye-finch

Description

@jpye-finch

Descriptions:

We don't have a consistent way to list all available actions that scales as more actions are add to OpenCRVS.

This ticket is to:

  • Create a reusable component called Action
  • List all record actions based on the record scope and user scopes
  • If the user is not assigned Then those actions that require the user to be assigned are disabled
  • Shows who is assigned to the record
  • Refactors Record Audit to use the Action component
  • Desktop version is Medium
  • Mobile version is Small

Design

Image

Desktop:
Image

Mobile:
Image

Variations based on record status:
https://www.figma.com/design/O6PevbBv0lApmXWYotR8sf/OpenCRVS-Design-Specifications-v2?node-id=19880-66203&t=dvwGBHOdODhytrIe-1

ACs

GIVEN I am on the Record Audit view unassigned or it assigned to someone else
WHEN I click the Action menu
THEN show all the actions I have scopes
AND disable those i need to be assigned to action

GIVEN I am on the Record Audit view assigned
WHEN I click the Action menu
THEN show all the actions i have scopes
AND have them all enabled

--

Unassign another user
Currently this is done by clicking the profile. This moves it to the menu which feels more obvious:

GIVEN another user is assigned to a declaration

WHEN the logged in user has the scope unassign-user

THEN show the option Unassign
AND show the confirmation prompt to unassign the user

Tech tasks:

Client front end action menu

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Completed

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions