As an editor I want to make correct edits in order to not mess up the data in Wikidata.
Problem:
On the client there is no difference between fixing a typo in a value and replacing it with a new measurement for example. On the repository it matters because it would lead to different edit flows (overwriting the existing value vs. adding a new value and changing the rank). We can't determine automatically which way to go for a given edit so we need to ask the editor if they are making a fix or update.
Screenshots/mockups:
no selection (CORRECT TEXT)
with selection (IGNORE THE TEXT IT'S OLD)
BDD
GIVEN a bridge-enabled infobox
WHEN editing a value
THEN the editor is asked if their edit is a fix or update of the previous value
GIVEN an edit flow choice
WHEN the editor chooses fix
THEN the value on the repository is overwritten with the new value
GIVEN an edit flow choice
WHEN the editor chooses update
THEN the value on the repository is overwritten with the new value
Acceptance criteria:
- editor is asked if their edit is an update or a fix
- when no selection has been made yet, the "publish" button is disabled
- radio buttons display mutually exclusive selection logic when used in groups: selecting radio button A causes radio button B to be automatically deselected, and vice versa.
For more information, check (https://www.mediawiki.org/wiki/OOUI/Widgets/Inputs#Radio_inputs)
Notes:
- Rank adjustments based on edit flow are coming in a separate ticket
- when a selection is made, and afterwards references are added or edited, the selection is remembered upon returning to the main screen
- there is no default selection and as long as no selection is made it's blocking the publish button