Skip to content

fix:added sonner for valhalla warning#386

Open
rohhann12 wants to merge 1 commit intovalhalla:masterfrom
rohhann12:fix-valhalla-clean
Open

fix:added sonner for valhalla warning#386
rohhann12 wants to merge 1 commit intovalhalla:masterfrom
rohhann12:fix-valhalla-clean

Conversation

@rohhann12
Copy link

🛠️ Fixes Issue

Adds warning sonner to the user

Closes #45

👨‍💻 Changes proposed

Files touched-
-Added warning type definitions in types.ts — src/components/types.ts
-Added shared warning toast utility in valhalla.ts — src/utils/valhalla.ts
-Display Valhalla warnings in route, isochrone, and optimized route hooks -- src/hooks/use-directions-queries.ts && src/hooks/use-isochrones-queries.ts && src/hooks/use-optimized-route-query.ts

📄 Note to reviewers

Added Warning type and showValhallaWarnings() utility
Display API warnings as toasts for route, isochrone, and optimized route endpoints
Uses existing sonner toast setup — no new UI components.

📷 Screenshots

Screen.Recording.2026-03-18.at.8.41.21.PM.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add warnings from Valhalla

1 participant