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

add "today" button for check_date field #8951

Closed
stragu opened this issue Feb 4, 2022 · 4 comments
Closed

add "today" button for check_date field #8951

stragu opened this issue Feb 4, 2022 · 4 comments
Labels
enhancement An enhancement to make an existing feature even better field An issue with a field in the user interface

Comments

@stragu
Copy link
Contributor

stragu commented Feb 4, 2022

Description

When the check_date key field (titled "Last Checked Date") is visible in the left sidebar, it would be great to have a button associated to it to easily add today's date in one click. It doesn't necessarily make sense to have that for all date fields, but for this one in particular, many people will be adding or modifying something they surveyed the same day, or simply "touching" the feature to confirm that the tags are still valid. In my case, I use the field the most for construction sites: confirming that it is still currently under construction.

The iOS application GoMap!! has this handy feature.

Screenshots

No response

@tyrasd tyrasd added enhancement An enhancement to make an existing feature even better field An issue with a field in the user interface labels Feb 4, 2022
@alanb43
Copy link
Contributor

alanb43 commented Nov 29, 2022

@jdabapo or I could get started on this, but embarrassingly after searching for a while, I could not find where the code lies for the last checked date within the iD package. If someone points me in the right direction, that would be great!

@1ec5
Copy link
Collaborator

1ec5 commented Nov 29, 2022

The Last Checked Date field itself is defined along with all the other fields in the id-tagging-schema repository. However, that just defines the field as a standard text field. ideditor/schema-builder#76 requests a new date field type that would apply to other fields such as Start Date and provide convenient UI for selecting the date. As a temporary workaround, it might be possible to implement a special case somewhere around here:

} else if (field.type === 'number') {

@Dimitar5555
Copy link
Contributor

@stragu It has been implemented. This issue can be closed.
image

@stragu
Copy link
Contributor Author

stragu commented Mar 20, 2023

Fabulous, thank you!

@stragu stragu closed this as completed Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement to make an existing feature even better field An issue with a field in the user interface
Projects
None yet
Development

No branches or pull requests

5 participants