Description
The ZObjectType allows the contributor to select type/mode for a key-value.
When the key is bound to a type, the "literal" option means the bound or selected type:
However, when the key is not bound to a type, the "literal" options shows the selected type if any:
And "Object" when the field is blank or a non-literal option is selected:
This means that when we have a literal type selected for a key that allows any type, changing the type requires a number of steps:
- Select a non-literal option (e.g. Reference)
- Select the literal "Object" option
- Select the type
One solution we can easily incorporate is:
When a literal type is selected for a non-type-bound key, show both literal options in the dropdown:
- Currently selected literal type
- Object (untyped) literal type
Desired behavior/Acceptance criteria
- Changing the type of a key-value that's non-type-bound should be easier and more explicit
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist