Skip to content

fix #11153: fix keeping slider swipe position after saving resource#11280

Merged
MV88 merged 1 commit intogeosolutions-it:masterfrom
mahmoudadel54:fix_swipe_pos_persist
Jul 4, 2025
Merged

fix #11153: fix keeping slider swipe position after saving resource#11280
MV88 merged 1 commit intogeosolutions-it:masterfrom
mahmoudadel54:fix_swipe_pos_persist

Conversation

@mahmoudadel54
Copy link
Copy Markdown
Contributor

Description

This PR fixes the issue of not keeping slider swipe position after saving and make refresh page for vertical/horizontal swipe.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Issue

What is the current behavior?

#11276 (comment)

What is the new behavior?

Slider swipe position after saving resource is kept for horizontal/vertical slider.

persist.slider.pos.mp4

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

@mahmoudadel54 mahmoudadel54 added this to the 2025.01.01 milestone Jul 3, 2025
@mahmoudadel54 mahmoudadel54 requested a review from MV88 July 3, 2025 21:50
@mahmoudadel54 mahmoudadel54 self-assigned this Jul 3, 2025
@mahmoudadel54 mahmoudadel54 added bug BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch labels Jul 3, 2025
@mahmoudadel54 mahmoudadel54 linked an issue Jul 3, 2025 that may be closed by this pull request
1 task
@MV88 MV88 merged commit 17492c1 into geosolutions-it:master Jul 4, 2025
6 checks passed
@MV88
Copy link
Copy Markdown
Contributor

MV88 commented Jul 4, 2025

@ElenaGallo please test it in DEV

@ElenaGallo
Copy link
Copy Markdown
Contributor

Test passed, @mahmoudadel54 please backport to 2025.01.xx. Thanks

mahmoudadel54 added a commit to mahmoudadel54/MapStore2 that referenced this pull request Jul 4, 2025
@tdipisa tdipisa removed the BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch label Jul 4, 2025
tdipisa pushed a commit that referenced this pull request Jul 4, 2025
…after saving resource (#11276, #11280) (#11284)

* fix #1153: Persist Swipe Layer state after map refresh  (#11276)

* fix #1153:
- handle storing position of swipe
- fix issue of not reflecting the stored swipe
- add unit tests

* - add comment for swipe plugin in product/plugins.js
- adjust indentation in swipe reducers

* fix #11153 keeping swipe position after saving (#11280)
mahmoudadel54 added a commit to mahmoudadel54/MapStore2 that referenced this pull request Jul 4, 2025
tdipisa pushed a commit that referenced this pull request Jul 4, 2025
…tion after saving resource (#11276, #11280) (#11286)

* fix #1153: Persist Swipe Layer state after map refresh  (#11276)

* fix #1153:
- handle storing position of swipe
- fix issue of not reflecting the stored swipe
- add unit tests

* - add comment for swipe plugin in product/plugins.js
- adjust indentation in swipe reducers

* fix #11153 keeping swipe position after saving (#11280)
mahmoudadel54 added a commit to mahmoudadel54/MapStore2 that referenced this pull request Jul 7, 2025
tdipisa pushed a commit that referenced this pull request Jul 7, 2025
…tion after saving resource (#11276, #11280)  (#11293)

* fix #11153: Persist Swipe Layer state after map refresh  (#11276)

* fix #11153:
- handle storing position of swipe
- fix issue of not reflecting the stored swipe
- add unit tests

* - add comment for swipe plugin in product/plugins.js
- adjust indentation in swipe reducers

* fix #11153 keeping swipe position after saving (#11280)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Persist Swipe Layer state after map refresh

4 participants