diff --git a/src/hooks/useSasquatchGuide.ts b/src/hooks/useSasquatchGuide.ts index 451d161..cc59e17 100644 --- a/src/hooks/useSasquatchGuide.ts +++ b/src/hooks/useSasquatchGuide.ts @@ -147,38 +147,10 @@ export function useSasquatchGuide() { }; } - // Show on Shops & Spots map page with random jokes + // /map: never auto-show β user opens Sasquatch by tapping the floating bubble + // The map guide context + jokes are still available in the generic fallback inside SasquatchGuide else if (location.pathname === '/map') { - const joke = getRandomJoke(MAP_JOKES); - message = { - id: 'map-guide', - title: 'Shops & Spots Explorer! πΊοΈ', - message: `Welcome to the global skate database! Use the map to discover spots and shops worldwide, or switch to list view to filter by type. Toggle between Spots (πΉ), Shops (πͺ), and Gear (π) using the buttons. Pro tip: Click anywhere on the map when logged in to add a new spot!\n\n${joke}`, - context: 'map', - suggestedQuestions: [ - 'Find beginner spots', - 'Find spots in Bangkok', - 'Find skate parks', - 'Any street spots?', - 'Gear for sale?', - 'How to add spot?', - 'What are spots?', - 'Weather on map?', - ], - action: user ? { - label: 'Add Your First Spot', - onClick: () => { - // This will just scroll to show them they can click the map - window.scrollTo({ top: 0, behavior: 'smooth' }); - }, - } : { - label: 'Login to Add Spots', - onClick: () => { - window.location.href = '/onboarding'; - }, - }, - enableChat: true, - }; + message = undefined; } setCurrentMessage(message); diff --git a/src/pages/MapPage.tsx b/src/pages/MapPage.tsx index 015241d..7821c4c 100644 --- a/src/pages/MapPage.tsx +++ b/src/pages/MapPage.tsx @@ -1421,16 +1421,19 @@ export default function MapPage() { )} - {/* Add Spot + Add Shop FABs β bottom-left, 16px from bottom of map container - The map container already excludes the bottom nav height, so bottom-4 is correct. - Hidden when overlays open. */} + {/* Add Spot + Add Shop FABs β fixed to screen, above bottom nav. + Uses fixed positioning so CSS variable issues on Capacitor don't affect placement. + calc(4rem + env(safe-area-inset-bottom, 0px)) + 44px gap = clears nav on all devices. */} {user && ( -