Page MenuHomePhabricator

[MEX] M4.1.3 - Func- Add time on Items using time datatypes on mobile
Closed, ResolvedPublic

Description

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

Screenshot 2026-01-12 at 12.12.32.png (676×2 px, 258 KB)

Screenshot 2026-01-12 at 12.13.41.png (1×2 px, 224 KB)

Figma file

Editing

Screenshot 2026-01-12 at 12.13.22.png (1×2 px, 334 KB)

  • 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.

Screenshot 2026-01-06 at 10.16.16.png (1×632 px, 87 KB)

Details

Event Timeline

Alice.moutinho renamed this task from [MEX] M4.1.3 - First Pass for Statements on Items using time datatypes on mobile to [MEX] M4.1.3 - First Pass: ADD time on Items using time datatypes on mobile.Nov 13 2025, 5:00 PM
karapayneWMDE renamed this task from [MEX] M4.1.3 - First Pass: ADD time on Items using time datatypes on mobile to [MEX] M4.3.1 - First Pass: ADD time on Items using time datatypes on mobile.Nov 24 2025, 8:39 AM
karapayneWMDE renamed this task from [MEX] M4.3.1 - First Pass: ADD time on Items using time datatypes on mobile to [MEX] M4.1.3 - First Pass: ADD time on Items using time datatypes on mobile.Nov 24 2025, 8:47 AM

@Alice.moutinho Questions to clarify:

  • “The publishing button becomes blue (default)” – while still being covered?
  • “When the user decides to publish, we save and publish whatever was showing at the date rendering display in the moment of clicking.” – so the button stays enabled even if the input is still being parsed? what happens if it’s invalid?

Hi!

  • “The publishing button becomes blue (default)” – while still being covered? - those 2 things are independent from each other. Valid output = button is blue, even if covered.
  • “When the user decides to publish, we save and publish whatever was showing at the date rendering display in the moment of clicking.” - good point, it only becomes blue when the output is valid, as is on desktop. I forgot to cover that case of invalid input and will do so now.
karapayneWMDE renamed this task from [MEX] M4.1.3 - First Pass: ADD time on Items using time datatypes on mobile to [MEX] M4.1.3 - Func- ADD time on Items using time datatypes on mobile.Jan 6 2026, 10:00 AM
karapayneWMDE updated the task description. (Show Details)
Alice.moutinho renamed this task from [MEX] M4.1.3 - Func- ADD time on Items using time datatypes on mobile to [MEX] M4.1.3 - Func- Add time on Items using time datatypes on mobile.Jan 6 2026, 10:16 AM
Alice.moutinho updated the task description. (Show Details)
Alice.moutinho updated the task description. (Show Details)

Change #1226824 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[mediawiki/extensions/Wikibase@master] [WIP] Basic date / time value support

https://gerrit.wikimedia.org/r/1226824

Change #1226824 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Support time values in wbui2025

https://gerrit.wikimedia.org/r/1226824