code4romania / code4romania/sunrise
[NGO Admin / General] Implement a way of warning the user if someone else is editing a section/ page at the same time
- Dominant language
- PHP
- Stars
- 0
- Forks
- 0
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
**System Behaviour**
If a user is editing a section, and a second user initiates edit on the same section, the system does not merge the two versions. As a result, the user who saves the form last, could possibly overwrite the information changed by the previous user.
**Need for enhancement**
In order to communicate this limitation, users have to be informed (when attempting to edit a form which is already is in Edit mode from another user) about the simultaneous edit action as well as its risks
**Desired behaviour**
- When a user clicks on _Editează_ on a form which is already opened by one or more users, they will receive a dialogue (pop-up) communicating this information (including the user name of the user/s who is/are editing the same section).
- Users can click on _Renunță_, which will close the modal and cancel the edit action (users remain on the initial page in view mode)
- User can click on _Continuă editarea simultană_ which will take them to the form in Edit Mode + a persistent banner message informing them of the risk.
**Screenshots for reference**
Dialogue on top of view mode:

Banner in edit mode:

**Design specs**
Please refer to the [Figma file](https://www.figma.com/design/gpOGCkb9B6pTfe1DvleVMm/Sunrise?node-id=10188-18037&t=4v4zdtcDzfmSmqxc-4) for detailed design specs
Contributor guide
Assessment
This issue has not been assessed yet.