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

GSLUX-569: Time layers permalink (parent GSLUX-594) #70

Merged
merged 11 commits into from
Sep 8, 2023

Conversation

AlitaBernachot
Copy link
Contributor

@AlitaBernachot AlitaBernachot commented Sep 4, 2023

JIRA issue

https://jira.camptocamp.com/browse/GSLUX-569

Description

Handle time layers in permalink, plus UI in layer-item.
There are 4 types of time components :

  • datepicker value,
  • datepicker range,
  • slider value,
  • slider range.

Theme fixtures have been updated with new time layers for tests.
⚠️ Adding time layers on map will be done in another PR.

  • new time param in permalink (and localstorage)
  • add new components layer-time-datepicker and layer-time-slider
  • added new dep luxon in package.json to help with date formatting
  • fix i18n to find translation when translation key has a ':'
  • fix layer manager accessibility, move bg layer item outside the ul list

Screenshots

Slider value

image

Slider range

TODO, in GSLUX-649

Datepicker range

image

Datepicker value

image

Run in dev

⚠️ There is no update in v3 for now.

👉 If you want to compare behavior in v3 dev mode, please update your db with commit: https://github.com/camptocamp/luxembourg_dev_db/tree/time_layers

@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2023

Copy link
Contributor

@tkohr tkohr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Impressive work! Thanks for this new dev @AlitaBernachot ! I have no comments regarding the code, just noticed that the date does not seem to be updated when using the datepicker widget with one date (value type). Maybe you could take a look at this on your side, before merging. The e2e only tests the range widget if I saw correctly.

@AlitaBernachot
Copy link
Contributor Author

@tkohr Indeed, I wasn't e2e testing the datepicker in value mode, I would have noticed the datepicker wasn't working properly.
Now it is fixed, thanks to you!

@AlitaBernachot AlitaBernachot merged commit 8df41bf into main Sep 8, 2023
2 checks passed
@AlitaBernachot AlitaBernachot deleted the GSLUX-594-TimeSelectionsLayers branch September 8, 2023 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants