-
-
Notifications
You must be signed in to change notification settings - Fork 78
feat: Compact Route View #1131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Compact Route View #1131
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a compact route view feature that allows users to toggle between a new flag-based route display and the traditional full route visualization mode.
- Added a route store with caching and POI grouping logic to support the new compact view
- Implemented compact route rendering with blue flags, directional arrows, and clickable route counts
- Added a toggle in the routes drawer to switch between compact and legacy route display modes
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/services/queries/route.js | Added start_fort_id and end_fort_id fields to GraphQL route fragment |
| src/pages/map/components/QueryData.jsx | Added special handling for routes category to use new RouteLayer component |
| src/features/route/useRouteStore.js | New Zustand store for route caching, POI indexing, and selection state management |
| src/features/route/index.js | Added exports for new RouteLayer and useRouteStore modules |
| src/features/route/RouteTile.jsx | Enhanced route rendering with orientation support, direction arrows, and inline popups |
| src/features/route/RoutePopup.jsx | Added inline mode support for popups displayed outside of markers |
| src/features/route/RouteLayer.jsx | New component implementing compact route view with anchor points and route counting |
| src/features/pokestop/PokestopTile.jsx | Added route store integration for POI click handling |
| src/features/gym/GymTile.jsx | Added route store integration for POI click handling |
| src/features/drawer/Routes.jsx | Added compact view toggle switch in routes drawer |
| src/assets/css/main.css | Added CSS styles for direction arrows and route count badges |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Mygod
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 12 out of 13 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
# [1.39.0-develop.4](v1.39.0-develop.3...v1.39.0-develop.4) (2025-09-23) ### Features * Compact Route View ([#1131](#1131)) ([795976e](795976e))
|
🎉 This PR is included in version 1.39.0-develop.4 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
# [1.39.0](v1.38.0...v1.39.0) (2025-09-24) ### Bug Fixes * ditto filtering ([2fe3af3](2fe3af3)) * localization ([f02e8cd](f02e8cd)) * refinements to interaction between gyms/stops and routes ([8c0ba37](8c0ba37)) * relative timer not updating ([72b0a8c](72b0a8c)) * skip updated filtering if shortcode is present ([b0cfe13](b0cfe13)) * translation ([5a02a6b](5a02a6b)) ### Features * Compact Route View ([#1131](#1131)) ([795976e](795976e)) * display actual battle bonus via stationed pokemon ([ba51f47](ba51f47)) * estimated shiny probability for pokemon ([#1133](#1133)) ([d44a3df](d44a3df)) * route share code ([4ac76d0](4ac76d0))
|
🎉 This PR is included in version 1.39.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |



Routes Display Updates
Implemented by Codex. Fixes #953. Supersedes #1126.