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

Cannot reliably restore an input-time-zone's value #9291

Open
2 of 6 tasks
nwhittaker opened this issue May 9, 2024 · 0 comments
Open
2 of 6 tasks

Cannot reliably restore an input-time-zone's value #9291

nwhittaker opened this issue May 9, 2024 · 0 comments
Labels
0 - new New issues that need assignment. ArcGIS Field Apps Issues logged by ArcGIS Field Apps team members. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. calcite-components Issues specific to the @esri/calcite-components package. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive needs triage Planning workflow - pending design/dev review.

Comments

@nwhittaker
Copy link
Contributor

Check existing issues

Actual Behavior

It is not possible to always restore the same value to the input-time-zone component that the user set on it during the previous edit session.

For example, if the user previously selected the "(GMT-6) Easter and Galapagos" option, the next edit session shows the "(GMT-6) Bahia de Banderas, Cambridge Bay, Costa Rica, El Salvador, Managua, Monterrey, and Tegucigalpa" option as selected.

Expected Behavior

The input-time-zone options have unique values that can be used to accurately restore the user's prior selection.

Reproduction Sample

https://codepen.io/nwhittaker-esri/pen/GRaRWbX

Reproduction Steps

  1. Visit the sample
  2. Select the "(GMT-6) Easter and Galapagos" option from the first input-time-zone
  3. Observe the second input-time-zone updates with "(GMT-6) Bahia de Banderas, Cambridge Bay, Costa Rica, El Salvador, Managua, Monterrey, and Tegucigalpa" option instead of the option from step 2.

Reproduction Version

2.8.0

Relevant Info

No response

Regression?

No response

Priority impact

p4 - not time sensitive

Impact

There is admittedly little impact here since the ArcGIS backend stores offsets instead of time zones. However, for consumers who do store time zone information, the input-time-zone component becomes the primary limiting factor.

The repro. is contrived but a more real-world scenario is using a form to edit previously stored time-zone data.

Calcite package

  • @esri/calcite-components
  • @esri/calcite-components-angular
  • @esri/calcite-components-react
  • @esri/calcite-design-tokens
  • @esri/eslint-plugin-calcite-components

Esri team

ArcGIS Field Apps

@nwhittaker nwhittaker added bug Bug reports for broken functionality. Issues should include a reproduction of the bug. 0 - new New issues that need assignment. needs triage Planning workflow - pending design/dev review. labels May 9, 2024
@github-actions github-actions bot added ArcGIS Field Apps Issues logged by ArcGIS Field Apps team members. calcite-components Issues specific to the @esri/calcite-components package. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive labels May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - new New issues that need assignment. ArcGIS Field Apps Issues logged by ArcGIS Field Apps team members. bug Bug reports for broken functionality. Issues should include a reproduction of the bug. calcite-components Issues specific to the @esri/calcite-components package. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive needs triage Planning workflow - pending design/dev review.
Projects
None yet
Development

No branches or pull requests

1 participant