Add a system that lets us display flags on edits within the Review changes module.
The system should be configurable so that we can conditionally display various different flag types based on dynamic criteria.
The exact criteria and exact wording of these flags depends on what is available to us from an engineering standpoint, as well as what we discover is most effective to show from user data. The purpose of this task is to set up a configurable system that lets us add them as needed. The figma file shows an array of possible flags that would be great to get ready, with the hope that we'll be able to active them in the future as they become available to us. To start with, we could at the very least introduce the "High revert risk" flag, as I believe that piece of information is already available (though it only makes sense to show it once we introduce other sources of edits, eg: https://phabricator.wikimedia.org/T419838 + https://phabricator.wikimedia.org/T422148).
Figma here.
Acceptance criteria
- It is possible to define a kind of edit (e.g. a high revert risk change), and flag it to the user in the UI
- For each kind of edit, we should be able to define in code an icon, a colour, and a help text to display. A given icon, colour, or help text won't always be in a unique set, for example a yellow triangle icon might be used for types of edits with different help texts.
- For an edit defined in this way, an icon, colour, and help text are displayed for that edit in the Review Changes feed.
- As a practical implementation of this system, edits which are being shown to the user because they have high risk of being reverted should be displayed with a red border, the cdxIconError icon, and the following help text:
High revert risk: There is a high likelihood that this edit should be reverted.
