Repository navigation
Playable Area layer and toggle layers button - #159
cosminpolifronie wants to merge 16 commits into
Conversation
…they're not useful
…only handled end of route
…l Wiki information + additional routing bugfixes
…ittle to no heuristics are needed - generated routes are now also much more stable
…sn't fit the screen - now the popup will draw somewhere where it has space without moving the map
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (23)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe map adds passenger-station and playable-area overlays, persisted layer-menu visibility, and a shared popup component. Railway scripts generate station and track data, assemble route geometry, and check routes for jumps and hairpins. ChangesMap features and railway data
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~50 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant generateRailData as generate-rail-data.mjs
participant railHelpers as rail-helpers.mjs
participant routeData as Generated route and playable-area data
participant checkRoutes as check-routes.mjs
participant trainRoute as trainRoute.ts
generateRailData->>railHelpers: Build graph and find track paths
generateRailData->>routeData: Write route and playable-area data
generateRailData->>checkRoutes: Check generated routes
checkRoutes->>trainRoute: Load routes from cached timetable data
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The new map layers and popup behavior have no established merge-blocking defect. Interrupted local catalog generation can be repaired by rerunning the command; merging remains subject to normal build and functional checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to Risk appears limited to generated map-data integrity and browser presentation. The inspected tooltip escapes external text, and generation uses fixed output destinations. Generated-data contents and popup lifecycle compatibility remain partially verified. Retained concerns Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 25 functions across 16 files. (5 skipped: 5 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Not every station in the layer is a dispatch station. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
c1e68ce to
907ea57
Compare
…ations"" The non-dispatch stations in that layer get their own "Passenger stations" layer instead. This reverts commit 136693d. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…CS icon with something more in the already existing style
…f the output data is the same
Joins were stored as geometry only, and the client drew each one in the colour of the leg before it, so a join crossing track that isn't in the game was drawn green. Joins now carry their colour runs (same format as segmentColors), which the client applies, reversed for joins drawn backwards. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e don't get any flicker
907ea57 to
e9ac429
Compare
|
@coderabbitai review |
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
After merging #158, this PR can be merged to add a "Playable area" toggle. When hovering over the tracks you can also see details related to them.
Also added a "Layers" toggle button, as on some devices the layers just don't fit properly.
Summary by CodeRabbit
New Features
Bug Fixes