Page MenuHomePhabricator

Duration: Use placeholders instead of prefilled values
Closed, ResolvedPublic

Description

Problem

The Start and End date fields in the experiment and instrument forms are prefilled with the current date by default. The idea to use the current date in the start date field is clever and might reduce effort, but it unfortunately could also be error-prone: prefilling the fields creates the possibility for users to inadvertently save incorrect configurations, given that validation would pass without their input.

Suggested solution

The fields should display placeholders instead of being prefilled by default, so we collect the users' deliberate input in all cases (or validate the lack of it).
The date picker component offers a "Today" shortcut that would allow users to quickly input the current date if needed. On the other hand, placeholders also offer guidance regarding the date format (e.g. dd/mm/yyyy is more informative than 12/11/2025).

currentsuggestion
Screenshot 2025-01-13 at 15.56.34.png (172×734 px, 17 KB)
Screenshot 2025-01-13 at 16.03.32.png (165×724 px, 17 KB)
Acceptance criteria
  • The Duration fields (Start and End date) display placeholders by default

Event Timeline

Change #1111318 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[operations/deployment-charts@master] Experiment Platform Instrument Configuration: Deploying to staging

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

Change #1111321 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[operations/deployment-charts@master] Experiment Platform Instrument Configuration: Deploying to production

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

Change #1111318 merged by jenkins-bot:

[operations/deployment-charts@master] Experiment Platform Instrument Configuration: Deploying to staging

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

Change #1111321 merged by jenkins-bot:

[operations/deployment-charts@master] Experiment Platform Instrument Configuration: Deploying to production

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