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

Existing states checks in state planning #118

Open
ondryaso opened this issue Apr 11, 2022 · 0 comments
Open

Existing states checks in state planning #118

ondryaso opened this issue Apr 11, 2022 · 0 comments
Labels
backend A backend-related issue comp-states Related to the state management functionality enhancement New feature or request frontend A frontend-related issue

Comments

@ondryaso
Copy link
Member

The state planning form could be improved in several ways:

  1. Dynamically check if there's a colliding state for the selected timespan and show validation errors.
  2. Highlight days that have planned states on them in the dropdown calendar.
  3. Disable days in the past in the dropdown calendar.

For 1), an API endpoint must be added that performs the check for a given timespan and returns either true/false, or even a list of colliding states. This is a better solution than fetching a list of planned states and reimplementing the collision constraints in the frontend.

Modifications 2) and 3) are doable without API changes but they depend on the dropdown calendar control's level of extensibility.

@ondryaso ondryaso added enhancement New feature or request backend A backend-related issue frontend A frontend-related issue comp-states Related to the state management functionality labels Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend A backend-related issue comp-states Related to the state management functionality enhancement New feature or request frontend A frontend-related issue
Projects
None yet
Development

No branches or pull requests

1 participant