As a user, when I finish filling out the new Lexeme form I would like to create a new lexeme by clicking on the ‘Create Lexeme’ button in order to save my contribution.
Problem:
We need to let editors submit the data for the new Lexeme that is supposed to be created and then create the Lexeme.
Screenshots/mockups:
https://www.figma.com/file/XoYktoKEBnC0VIf1SRuxJK/Lexicographical-Data-UI?node-id=493%3A3179
BDD
GIVEN the special page to create new Lexemes
AND the input fields are filled out
WHEN clicking “Submit”
THEN the input is validated
AND the new Lexeme created if validation was successful
Acceptance criteria:
- input is validated
- Lexeme is created if input is valid
Notes:
- Button Copy: Create Lexeme
- Wikit component Button: progressive
- Errors (pre submit): no entities selected in the entity selectors, invalid input in the entity selectors, Lemma field is empty, spelling variant is invalid, Lemma is too long
- validation should be included in serverside, improved validation (if desired) should be in a new task
error post submit (permission errors) to be handled here: T302264 design / T303393 implementation
error "spelling variant is invalid" added to spelling variant field creation task: T298145