Repository navigation
Share link: carry the comparison and reopen it on load - #644
Open
BhattaraiSijan wants to merge 2 commits into
Open
BhattaraiSijan wants to merge 2 commits into
BhattaraiSijan wants to merge 2 commits into
Conversation
BhattaraiSijan
force-pushed
the
feat/tools-url-state
branch
from
November 19, 2026 16:40
ca4d014 to
4e42a39
Compare
…ger has The notice sits above the action row and clears when a layer is picked for that side; a layer the user switches off later ends its side as before, without it. The sides sent to core are derived from drawn layers only, so a missing id never reaches map:comparison:enable. With the link encoding each tool's entry, the codec strips only its own separator. Tests pin the divider applied after the first enable and the link seeding the first panel once.
BhattaraiSijan
force-pushed
the
feat/616-comparison-url-state
branch
from
November 19, 2026 16:47
6fe22bb to
84b7829
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #616. Part of #613. Stacked on the tools-url-state PR; retarget to
developmentonce that merges.Summary
With comparison on, copying the link gave a plain map with both sides' layers stacked. The link now carries the comparison and reopens it.
ComparisonTool.getUrlStringwrites mode, layout, the two layers, the compare date, the swap and the divider position as a|-separated entry. The link encodes each tool's entry, so the codec strips only its own separator. The panel reports its arrangement to the module as it changes; the divider is dragged on the map, so the module followsmap:comparison:dividerMoveditself.tool:getUrlState, seeds the panel, asks core to show the plugin, and applies the divider after the enable settles, since enabling resets it to the middle.map:comparison:enable; before, the first render enabled with it and the next disabled.Not in this PR
Test plan
npx vitest run: 223 files, 3824 tests pass;npx tsc --noEmitclean🤖 Generated with Claude Code