Repository navigation
Globe: a click on a group drawn as one place opens that place - #785
Merged
Merged
Conversation
…ly the camera At the world view a country that holds one place (and what is nested in it) is drawn and labelled as that place, but a click on it took the group path and only flew the camera; a second click was needed to open the panel. LodTree.placeOf answers which place a click on a node opens, and the globe and the street map both use it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ub8ohU7xwodfgHSDAjwfUJ
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
This branch was successfully 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.
What
At the world view a country that holds one place (and what is nested inside it) is drawn and labelled as that place: Poland reads as "Warsaw". A click on it took the group path, which only flies the camera, so the panel did not open and a second click was needed once the group had opened into the place.
LodTree.placeOf(slug)now answers which place a click on a node opens: the place itself, the host of a group drawn as one place (loneHost), ornullfor a real group (several places), which still only frames the camera. The globe (renderer.ts) and the street map (street/engine.ts) both use it. The camera still flies to the place and the panel opens in one click.Checks
lod-tree.test.ts: new case forplaceOf(place, lone group, nested place, unknown slug, group of two places).pnpm typecheckclean,vitest run195 files / 2686 tests pass.Board
No issue exists for this and I could not reach the "Open-source development" board (GraphQL is blocked in this environment), so the item still has to be added and its fields filled in by a human.
Generated by Claude Code