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

Improve the DURATION validation and UI display #3710

Open
anna-geller opened this issue May 13, 2024 · 0 comments
Open

Improve the DURATION validation and UI display #3710

anna-geller opened this issue May 13, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@anna-geller
Copy link
Member

Feature description

UI side: https://codesandbox.io/p/sandbox/react-duration-input-i7ekk?file=%2Fsrc%2Findex.js

Validation: ensure that the duration string is a valid ISO-type duration e.g. these are valid:

  • PT2H = 2 hours
  • P2D = 2 days
  • P2W = 2 weeks
  • P2M = 2 months

but this is not valid: PT3D = 3 dates with period timestamp is invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant