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

DatePicker: Incorrect validation message for invalid value scenario #4888

Closed
ahnpnl opened this issue Feb 26, 2021 · 6 comments
Closed

DatePicker: Incorrect validation message for invalid value scenario #4888

ahnpnl opened this issue Feb 26, 2021 · 6 comments
Labels
priority: trival Least important issues team: landmark For Landmark issues type: bug 🐛 [1] Velocity rating (Fibonacci)

Comments

@ahnpnl
Copy link

ahnpnl commented Feb 26, 2021

Describe the bug

When using date picker with time, the validation message is not correct for invalid value scenario.

To Reproduce

Steps to reproduce the behavior:

Expected behavior

The validation message should be Invalid Date Time instead of Invalid Date because I am using date picker with time

Version

  • ids-enterprise: 4.37.0

Screenshots

image

Platform

  • Infor Application/Team Name: ION
  • Device: (if applicable) N.A.
  • OS Version: MacOS Big Sur, Windows 10
  • Browser Name: Chrome
  • Browser Version: Version 88.0.4324.192 (Official Build) (x86_64)

Additional context

N.A.

@tmcconechy
Copy link
Member

tmcconechy commented Feb 26, 2021

I dont think "Date Time" makes sense. A date can have time. Can we think of a better description all together? What about "Invalid Value" or "Invalid Date or Time"?

Technically this isnt wrong. Its an invalid date

@tmcconechy tmcconechy added [1] Velocity rating (Fibonacci) priority: trival Least important issues team: landmark For Landmark issues type: bug 🐛 labels Feb 26, 2021
@tmcconechy tmcconechy changed the title [date-picker]: incorrect validation message for invalid value scenario DatePicker: Incorrect validation message for invalid value scenario Feb 26, 2021
@ahnpnl
Copy link
Author

ahnpnl commented Feb 26, 2021

Let's go for "Invalid Date or Time", our QA accepts that :)

@tmcconechy
Copy link
Member

Ok we'll have to check there is a time and then show that message (or the previous). Seems minor but makes sense

@tmcconechy
Copy link
Member

@danielortiz1982 so what we decided on this is to change the message but only if the date format has time associated with it

http://localhost:4000/components/datepicker/example-timeformat.html
vs
http://localhost:4000/components/datepicker/example-index.html

When you top a bad date tab out of the field it should now say "Invalid Date or Time" if there is a time involved.

The validation code is here for the dates https://github.com/infor-design/enterprise/blob/master/src/components/validation/validation.js#L109

To add a new translation string you just add an entry into th en-US locale file https://github.com/infor-design/enterprise/blob/master/src/components/locale/cultures/en-US.js#L64

@danielortiz1982
Copy link
Contributor

Thanks for this update @tmcconechy

@tmcconechy tmcconechy reopened this Mar 11, 2021
Enterprise 4.50.x (Mar 2021) Sprint automation moved this from In progress to To do Mar 11, 2021
@danielortiz1982 danielortiz1982 moved this from To do to In progress in Enterprise 4.50.x (Mar 2021) Sprint Mar 11, 2021
@danielortiz1982 danielortiz1982 moved this from In progress to Pending Review in Enterprise 4.50.x (Mar 2021) Sprint Mar 12, 2021
danielortiz1982 pushed a commit that referenced this issue Mar 15, 2021
danielortiz1982 pushed a commit that referenced this issue Mar 15, 2021
@tmcconechy tmcconechy moved this from Pending Review to Ready for QA (beta) in Enterprise 4.50.x (Mar 2021) Sprint Mar 15, 2021
@jbrcna jbrcna moved this from Ready for QA (master) to Done in Enterprise 4.50.x (Mar 2021) Sprint Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: trival Least important issues team: landmark For Landmark issues type: bug 🐛 [1] Velocity rating (Fibonacci)
Projects
No open projects
Development

No branches or pull requests

4 participants