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 invalid handling to calcite-input-date-picker #3526

Closed
paulcpederson opened this issue Nov 16, 2021 · 16 comments
Closed

Add invalid handling to calcite-input-date-picker #3526

paulcpederson opened this issue Nov 16, 2021 · 16 comments
Assignees
Labels
1 - assigned Issues that are assigned to a sprint and a team member. ArcGIS Map Viewer Issues logged by ArcGIS Map Viewer team members. ArcGIS Online Issues logged by ArcGIS Online team members. ArcGIS Web Analysis Issues logged by ArcGIS Web Analysis team members blocked This issue is blocked by another issue. design Issues that need design consultation prior to development. enhancement Issues tied to a new feature or request. p - high Issue should be addressed in the current milestone, impacts component or core functionality ready for dev Issues ready for development implementation.
Milestone

Comments

@paulcpederson
Copy link
Member

Description

When a user enters totally invalid input into a date picker, no feedback is given to the user or to the app developer.

Acceptance Criteria

  • add status prop to calcite-input-date-picker (status: "idle" | "invalid" | "valid")
  • new CalciteInputDatePickerInvalid event added to calcite-input (emitted on blur of input with invalid date entered)

Relevant Info

Which Component

calcite-input-date-picker

Example Use Case

In our application, we need a way to notify the user that the date they entered is not valid.

@benelan feel free to assign me, happy to add this in

@jcfranco @driskull would love feedback on this api as well

@paulcpederson paulcpederson added enhancement Issues tied to a new feature or request. 0 - new New issues that need assignment. needs triage Planning workflow - pending design/dev review. labels Nov 16, 2021
@jcfranco jcfranco added the design Issues that need design consultation prior to development. label Jan 21, 2022
@jcfranco
Copy link
Member

Validation is something we want to support consistently across our form/value components. I'd like for the design team to look at this holistically before we start thinking about implementation. cc @HeathMeyette @macandcheese @benelan

@yelenakreyndel
Copy link

@ashetland is this item similar to the one you are working on?

@benelan benelan added 1 - assigned Issues that are assigned to a sprint and a team member. and removed 0 - new New issues that need assignment. needs triage Planning workflow - pending design/dev review. labels Aug 30, 2022
@ashetland
Copy link

@ashetland is this item similar to the one you are working on?

No, this is a separate issue and component. Not related to the input-time enhancement.

@ashetland ashetland added 0 - new New issues that need assignment. needs triage Planning workflow - pending design/dev review. and removed 1 - assigned Issues that are assigned to a sprint and a team member. labels Aug 30, 2022
@ashetland ashetland removed their assignment Aug 30, 2022
@geospatialem
Copy link
Member

This enhancement was mentioned by the MapViewer team as well to accommodate start/end dates for the time slider.

Mapviewer timeslider options with start date and end date validation

@benelan benelan added the ArcGIS Online Issues logged by ArcGIS Online team members. label Jan 30, 2023
@Olga8614
Copy link

We verified this defect on ArcGIS Online 2023.r01 devext and qaext site (2/13/2023) in EN language with Edge chromium/Chrome/FF/Safari browsers.
For Gallery page, design changed, date under "Custom range..." on Gallery page can only be modified in calendar, selected date can only be showed in calendar without date textbox.
For Content/Group/Organization page: The deleted value in date is removed accordingly each time press backspace keyboard and no invalid date is appeared after deleted the date.
So this defect is fixed. Thanks!

@geospatialem
Copy link
Member

Evaluated design will include the status prop, additional considerations part of the larger validation epic if #4598.

@geospatialem geospatialem added 1 - assigned Issues that are assigned to a sprint and a team member. and removed 0 - new New issues that need assignment. labels Apr 17, 2023
@geospatialem geospatialem added p - high Issue should be addressed in the current milestone, impacts component or core functionality ArcGIS Map Viewer Issues logged by ArcGIS Map Viewer team members. labels Jul 27, 2023
@geospatialem
Copy link
Member

This request was also filed as a bug with Online, BUG-000159719.

Repro case:

  1. Open https://codepen.io/banuelosj/pen/qBQyNrQ
  2. Type a date with the year ending in two digits, for instance 8/1/23
  3. Select outside the date to close the component
  4. Observe the date is displayed as 0023-08-01

@amring1
Copy link

amring1 commented Aug 1, 2023

Analysis is also tracking this fix (https://devtopia.esri.com/WebGIS/arcgis-web-analysis/issues/4166)

@geospatialem geospatialem added the ArcGIS Web Analysis Issues logged by ArcGIS Web Analysis team members label Aug 1, 2023
@geospatialem
Copy link
Member

@SkyeSeitz Want to verify the above comment encompasses the Online bug report from last month before finalizing the dev effort.

Could you take a peek, and if we need to add additional content to ensure the fix, we could consider breaking off the effort into two different issues to fulfill the bug first. WDYT?

@SkyeSeitz
Copy link

Thanks, @geospatialem! Doesn't look like is there is any design work needed on the Online bug report, correct? I would consider this bug as separate from the validation support effort.

@geospatialem
Copy link
Member

Opened #7588 to separate the bug from the enhancement effort to prioritize the bug effort. Will be reallocating the enhancement effort into the upcoming September milestone, and hope to tackle the bug as soon as possible. cc @banuelosj @amring1

@brittneytewks brittneytewks added the figma changes Issues that require additions or updates to the Figma UI Kit where no `design` label exists label Sep 12, 2023
@eriklharper eriklharper self-assigned this Sep 12, 2023
@benelan benelan assigned benelan and unassigned eriklharper Sep 18, 2023
@geospatialem geospatialem added 1 - assigned Issues that are assigned to a sprint and a team member. and removed 0 - new New issues that need assignment. labels Sep 28, 2023
@benelan benelan added the blocked This issue is blocked by another issue. label Oct 12, 2023
@brittneytewks brittneytewks removed the figma changes Issues that require additions or updates to the Figma UI Kit where no `design` label exists label Dec 11, 2023
@Olga8614
Copy link

We verified this defect on ArcGIS Online 2024.r01 devext site (12/19/2023) in ENU language with Edge Chromium/FF/Safari/Chrome browsers. Invalid characters can be entered in textbox of Start date/End date/Start time/End time/Count options on Time slider options pane. So this defect is not fixed. Thanks!

@geospatialem
Copy link
Member

Closing in favor of the efforts completed in #8057, where the status property was added, along with an internal input-message for displaying validation messages.

Additional efforts will be completed in #8000 for setting the validity state of the component internally.

@geospatialem
Copy link
Member

We verified this defect on ArcGIS Online 2024.r01 devext site (12/19/2023) in ENU language with Edge Chromium/FF/Safari/Chrome browsers. Invalid characters can be entered in textbox of Start date/End date/Start time/End time/Count options on Time slider options pane. So this defect is not fixed. Thanks!

@Olga8614 While a portion of the effort has been mitigated, there are still additional requirements needed to be mitigated in full, which will be handled via #8000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - assigned Issues that are assigned to a sprint and a team member. ArcGIS Map Viewer Issues logged by ArcGIS Map Viewer team members. ArcGIS Online Issues logged by ArcGIS Online team members. ArcGIS Web Analysis Issues logged by ArcGIS Web Analysis team members blocked This issue is blocked by another issue. design Issues that need design consultation prior to development. enhancement Issues tied to a new feature or request. p - high Issue should be addressed in the current milestone, impacts component or core functionality ready for dev Issues ready for development implementation.
Projects
None yet
Development

No branches or pull requests