-
Notifications
You must be signed in to change notification settings - Fork 0
Add location slug support and enhance navigation #69
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
Conversation
- Added slug field to location schema for URL-friendly identifiers - Updated map and sidebar components with improved navigation handling - Enhanced location queries and stores for better data management - Added clickable points on map with proper routing - Improved type safety and dependency versions
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Caution Review failedThe pull request is closed. WalkthroughThis change introduces location-specific navigation and selection logic across the sidebar, map, and dashboard. It adds new route-aware properties to map points and sidebar items, updates utility functions for point selection, implements a new dashboard location details page, and extends the database schema and queries for location relations. Several components and stores are refactored to support these new navigation and data structures. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Sidebar
participant Router
participant DashboardPage
participant API
participant DB
User->>Sidebar: Clicks location link
Sidebar->>Router: Navigates to /dashboard/location/:slug
Router->>DashboardPage: Loads location page
DashboardPage->>API: GET /api/locations/:slug
API->>DB: findLocation(slug, userId)
DB-->>API: Location data (with logs)
API-->>DashboardPage: Location data
DashboardPage->>Sidebar: Updates sidebar with location-specific links
DashboardPage->>Map: Updates map points for selected location
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Assessment against linked issues
Assessment against linked issues: Out-of-scope changes
Possibly related PRs
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (15)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Description
This PR introduces location-specific pages accessible via slug-based URLs, replacing the previous ID-based navigation. The changes include enhanced map interactions with clickable markers that link to individual location pages, improved sidebar navigation using Vue Router's typed routing, and better database relationships for future location log functionality.
Technical Details
New API endpoint /api/locations/[slug].get.ts for fetching locations by slug
Enhanced map component with popup navigation buttons and improved selection state management
Updated sidebar store to use RouteLocationRaw for type-safe navigation
Added database relations and utility functions for consistent map point creation
Improved map animations with custom easing and zoom limits
closes #32
Summary by CodeRabbit
New Features
Improvements
Developer Experience