As a user, I want to add & edit time using time datatypes to Wikidata, and see them displayed on the main page.
Note - this ticket shares the same popover with the feature for coordinates T409454
(!) Ticket should be broken down, lead by whoever picks it up from the backlog
Editing
- Once any property related to time is selected: the input field and the time popover appear
- when the input field is active, the native keyboard is activated
- Once there is something in the input field:
- The display for date rendering starts showing how the date would be displayed
- The automatic precision and calendar changes start reflecting in the respective displays
- The publishing button becomes blue (default) if the input actually renders a date for publishing
- if the input doesn't render as a date, the display says "The time value is malformed." and the publish button stays disabled
- The precision & calendar drop-downs:
- These allows the user to override the automatic selection, and select their own.
- Are native dropdowns that call in the native select component
- If the user selects something other than "automatic":
- The selection reflects in the dropdown
- the date rendered and the precision value update accordingly
- the drop-down also allows the user to revert back into automatic selection: this is the first option in the menu
- the content in the dropdown is truncated with elipsis - can have 10 characters tops, to avoid layout problems
Notes:
- We keep the same precision as in wikibase (1 billion years)
- everything is lowercase other than Julian and Gregorian
Display
When the user decides to publish, we save and publish whatever was showing at the date rendering display in the moment of clicking.



