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

Restrict "Time of Day" options for "In Stock" reports dated today #5

Open
mthomas-ketchbrook opened this issue Jan 14, 2022 · 1 comment

Comments

@mthomas-ketchbrook
Copy link
Contributor

If it is the morning of 2022-01-01, someone should not be able to submit a report saying they saw tests in stock on the evening of 2022-01-01. This happened on 2022-01-14, below:

image

@mthomas-ketchbrook
Copy link
Contributor Author

mthomas-ketchbrook commented Jan 14, 2022

This should be fixable with a combination of shiny::updateSelectizeInput() (to remove certain "Time of Day" options if date selected is today) and Sys.Time().

We may also want to see if it's possible to have the Date input widget default to blank, instead of the current day. This will force the user to manually pick a date.

@mthomas-ketchbrook mthomas-ketchbrook changed the title Limit "Time of Day" entries > current time of day Limit "Time of Day" entries for "In Stock" reports to > current time of day Jan 15, 2022
@mthomas-ketchbrook mthomas-ketchbrook changed the title Limit "Time of Day" entries for "In Stock" reports to > current time of day Restrict "Time of Day" options for "In Stock" reports dated today Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant