Skip to content

'Edit'-action #10939

@cibelius

Description

@cibelius

As part of the event overview UI rework on #10824 we removed the possibility to edit the declaration as part of the Validate and Register actions, when validating or registering a previously declared record.

Validate and register now happen as 'quick actions' with a simple modal.

This ticket is to add the action EDIT

it adds two new scopes:

  • record.notified.edit
 (user can edit a record with the status Notified)
  • record.declared.edit
 (user can edit a record with the status Notified)

Design
https://www.figma.com/design/TyOp4aUHJmiPz9IpBX5q4m/OpenCRVS-Design-Specifications-v3?node-id=7608-7176&t=D82jT3eomYw6yz8s-1

ACs

GIVEN the record is at a NOTIFIED status

AND the user is assigned to the record

WHEN the user has the scope record.notified.edit

THEN show the action option Edit

GIVEN the record is at a DECLARED status

AND the user is assigned to the record

WHEN the user has the scope record.declared.edit

THEN show the action option Edit

GIVEN the user clicks Edit

THEN show the confirmation model



GIVEN the user clicks Confirm
THEN navigate to the user to the EDIT action view



GIVEN the user is on the EDIT action view
WHEN the use clicks Change
THEN navigate the user to the form



GIVEN the user is on the EDIT action view
WHEN the use clicks Cancel edits from the Action Menu
THEN navigate the user back to the VIEW view

Edit + Declare



GIVEN the user Redeclare with edits
THEN check if any record flags must be added



GIVEN the user clicks Redeclare with edits
THEN show the confirmation model

Edit + Register


GIVEN a user has the scope record.register
AND their edits don't trigger any flags stopping register!
THEN show and enable the 'Register with edits' option

Audit
GIVEN the user Declared with edits
THEN show the Edited
 audit item (currently named Updated)

GIVEN the user Register with edits
THEN show the Edited
 audit item (currently named Updated)
THEN show the Register audit item

NOTE! As part of this PR, 3 tests were partially skipped. They should be returned to use when this issue is implemented.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In Development

Relationships

None yet

Development

No branches or pull requests

Issue actions