Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date field type #76

Closed
1ec5 opened this issue Nov 29, 2022 · 1 comment
Closed

Date field type #76

1ec5 opened this issue Nov 29, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Milestone

Comments

@1ec5
Copy link

1ec5 commented Nov 29, 2022

There should be a date field type for inputting dates in ISO 8601 format. An editor could present the field using the platform’s standard date picker, with an affordance for unset or malformed values. iD could use either <input type="date"> or <input type="datetime-local">. openstreetmap/iD#8951 requests a “Today” button to go along with it.

id-tagging-schema has several fields where this field type would apply:

  • Last Survey Date (survey:date)
  • Population Date (population:date)
  • Date Sunk (wreck:date_sunk)
  • Last Checked Date (check_date)
  • Start Date (start_date)
  • Expected Opening Date (opening_date)
@1ec5
Copy link
Author

1ec5 commented Nov 29, 2022

OpenHistoricalMap’s fork of iD would benefit from this field type for its Start Date (start_date) and End Date (end_date) fields, which appear universally. A validator rule (OpenHistoricalMap/iD#138) has been critical for keeping the data well-formed, but users still find a plain text field to be more intimidating than a date picker, especially when working with sources like newspaper articles that say something like “last Friday”.

@tyrasd tyrasd added the enhancement New feature or request label Dec 9, 2022
@tyrasd tyrasd added this to the v6 milestone Dec 9, 2022
@tyrasd tyrasd added the documentation Improvements or additions to documentation label Jan 20, 2023
@tyrasd tyrasd closed this as completed in c5e6ce9 Jan 20, 2023
tyrasd added a commit that referenced this issue Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants