Repository navigation
Conversation
A corridor leg's automatic route follows the corridor's centre line where it is legal, else the shortest way inside; the editor's alternatives are searched inside the corridor. A pair whose courses differ is searched without one, and a corridor leg reads a chosen route only while it stays inside its corridor (course-elevation.md §0.46, §7.3, §7.5, §7.6). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011DoDZwiGLhqVqaUG86tu32
A bent corridor whose centre is not legal never stores a route without vertices (it would read as the bent line); a crossing point's opening stays inside the corridor; the editor reads the corridor's width at one scale for search and climb. Tests for the map scale, a bent corridor round a lake, a crossing point, two widths on one pair; the browser test allows the corner a corridor lets a route cut. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011DoDZwiGLhqVqaUG86tu32
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011DoDZwiGLhqVqaUG86tu32
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.
Requested by Marcus · project thread
Into #254's branch (course elevation), not main.
What
Marcus: "in a corridor, the suggested route should follow the centre of the corridor, or at least stay inside it". Before this, the route finder ignored corridors entirely.
packages/shared/src/route):LegRouteRequest.corridor(centre line + half width, paper mm).confineToCorridormakes every cell outside the corridor uncrossable (the cells the line passes through are kept, so a narrow corridor stays connected). The window shrinks to the corridor's box plus 1 mm. A crossing point's opening stays inside the corridor.leg-routes-auto.ts): a corridor pair's route is its centre line where that line is legal, else the shortest way inside the corridor. A bent corridor whose centre isn't legal never stores an empty row, because an empty row would read as the bent line. The basis digests the corridor only for corridor pairs, so the other pairs keep their basis.routeInsideCorridor), and otherwise reads its drawn line.docs/course-elevation.md§0.46, §7.3, §7.5, §7.6 step 5, §7.8, the Tests table and Pending. Also one line each incourse-editor.md§6.7 andguide/course-editor.md.Verification (cloud)
pnpm buildpasses.pnpm test: shared 2736, api 1533, web 2780, all passing.pnpm lint: 0 errors.leg-routes-auto,leg-routes,course-climball pass on PG16 :5433.e2e/course-editor-routes.spec.tspasses all 4 tests. The new bent-corridor test passed 5 of 5 under--repeat-each 5.Generated by Claude Code