Page MenuHomePhabricator

[L] Improve the date field in describe step of upload wizard
Open, In Progress, Needs TriagePublic

Description

This task is part of improving the describe step of the Upload Wizard on Commons T358765.

As part of this ticket we will be making some improvements to the date of creation field such as simplifying the input, using EXIF data as a starting point and provide guidance to the user.

Link to UI
  • Replace the grouped button with a single button to access the calendar as shown in the UI
  • If the file is ‘own work’ and has a date in the EXIF show that date in the date field by default with a message as shown here
  • If the file is ‘not own work’ do not use the date in EXIF to pre-fill the date field
  • Tapping on calendar icon shows the existing calendar widget where users will be able to choose a date
  • If the user picks a date in the future show the error message as shown here
  • Allow users to enter their own date or time period in the input box.
  • If the user starts typing in the input box first (before clicking on the calendar icon) show the message as shown here
    • If the user choses a date from the calendar widget remove the above message and replace the previously the previously typed input with date selected.
  • If the user proceeds without entering the date show the error message as shown here
  • Attempt to automatically convert the entered date into a format suitable for structured data. If that conversion fails, only include the date in the wikitext.
  • "Copy information to other uploads" continues to work

Event Timeline

Just FYI, currently the second button (the pencil icon) allows users to enter a text-based date, which could be useful in cases where we know only partially the date (i.e. only the year of publication). Just checking if we got this use case considered too.

+1 to @Sannita - worth looking at the wikidata date interface for this (see https://www.wikidata.org/wiki/Help:Dates)

Oh, one other thing - I think we should make sure to record this directly into the inception structured data property as well as into the date field in Template:Information

@Sannita the text input is editable so users can enter partial dates.

@Cparle would those properties allow for storing partial dates? Also feel free to add the structured data property we want to add this to in the acceptance criteria in description

Yes, but it's more involved than just storing text like "between 1801 and 1805" - instead we'd have store the data "1800 CE" with precision 8 (meaning precision at the level of decades) and then add the qualifiers earliest date: 1801 and latest date:1085

MarkTraceur renamed this task from Improve the date field in describe step of upload wizard to [L] Improve the date field in describe step of upload wizard.Apr 17 2024, 4:40 PM
mfossati changed the task status from Open to In Progress.Thu, May 30, 10:10 AM
mfossati claimed this task.

Change #1041681 had a related patch set uploaded (by Marco Fossati; author: Marco Fossati):

[mediawiki/extensions/UploadWizard@master] Describe step: improve the date field

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