Page MenuHomePhabricator

Decide how to prevent empty forms / senses
Closed, ResolvedPublic

Description

Each form of a lexeme must have at least one representation, and each sense of a lexeme must have at least one gloss. This is currently enforced only by the API:

image.png (168×938 px, 17 KB)

We see two options to prevent this in the UI without showing an API error: we can disable the “save”/“publish” button if all representations/glosses have been removed, or we can disable the “remove” button on the last representation/gloss when there are no other representations/glosses.

Disable “save”/“publish”:

Screenshot_2018-07-23 L1.png (64×900 px, 6 KB)

Disable “remove”:

Screenshot_2018-07-23 L1(1).png (147×900 px, 11 KB)

WMDE-Design what do you think? Lydia is ok either way (see T198035#4436197).