manager-ui
manager-ui copied to clipboard
Content: One to Many Field - Modal for Deleted One-to-Many Linked Items
Problem
When a content item has a one-to-many relationship with another item that has been deleted, users currently have no clear indication of this issue. As a result, the content item only displays a ZUID. Users need a more intuitive way to understand that a linked item has been deleted and take appropriate actions to fix the issue.
For example, a content manager is editing an event page that includes a speaker list (one-to-many field). One of the speakers has been deleted from the system. The user needs to be informed that the linked speaker is missing and be given the option to either replace the speaker with a new one or remove the speaker item from the event page.
Solution
When a user opens a content item that contains a one-to-many field, and a related item has been deleted, a warning modal should appear with the following content:
-
Headline:
Item Connected to [Field Name] Has Been Deleted
-
Body Copy:
A linked item to this field has been deleted from your instance by [USER NAME] on [DATE TIME]. Please review and update your content. What would you like to do?
Primary Button :Replace Item
(When clicked, the user is taken to a modal to select a new item to replace the deleted one with) -
Secondary Button:
Remove Item
(When clicked, the deleted item is simply removed from the one-to-many field without affecting other content.)
Acceptance Criteria
- The modal should trigger automatically when a user opens a content item with a deleted one-to-many relationship field.
- The modal should clearly explain that the linked item was deleted, including the [USER NAME] and [DATE TIME] of the deletion.
- The modal should have two buttons:
- Replace Item: Users can select a new item to add to the field.
- Remove Item: Users can remove the deleted item from the field.