From 19b8c6e23b5c3990f1f7799033e5e03e4bd6e7cd Mon Sep 17 00:00:00 2001 From: Matt Date: Sun, 26 Apr 2026 06:44:12 +0000 Subject: [PATCH] feat(radial): remove redundant 'What's here' wedge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Left-click on the map already reverse-geocodes and opens the place panel, making the 'What's here' wedge redundant. Radial drops from 6 to 5 wedges (72° each). Remaining wedges (all stubs except they show toast): - Drop pin - Directions to here - Save place (auth-gated) - Add as stop - Directions from here --- src/components/MapView.jsx | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/src/components/MapView.jsx b/src/components/MapView.jsx index ab4cdf0..9715c8d 100644 --- a/src/components/MapView.jsx +++ b/src/components/MapView.jsx @@ -7,7 +7,7 @@ import { useStore } from '../store' import { decodePolyline } from '../utils/decode' import { fetchReverse } from '../api' import { getConfig, hasFeature } from '../config' -import { MapPin, Navigation, ArrowUpRight, ArrowDownLeft, Plus, Star, Info } from 'lucide-react' +import { MapPin, Navigation, ArrowUpRight, ArrowDownLeft, Plus, Star } from 'lucide-react' import RadialMenu from './RadialMenu' import useContextMenu from '../hooks/useContextMenu' import toast from 'react-hot-toast' @@ -650,33 +650,6 @@ const MapView = forwardRef(function MapView(_, ref) { requiresAuth: true, onSelect: () => toast('Save place coming soon', { icon: '⭐' }), }, - { - id: 'whats-here', - label: "What's here", - icon: Info, - onSelect: async ({ lat, lon }) => { - setRadialMenu((m) => ({ ...m, open: false })) - // Immediately show dropped pin - useStore.getState().setSelectedPlace({ - lat, - lon, - name: 'Dropped pin', - address: null, - type: null, - source: 'radial_menu', - matchCode: null, - raw: {}, - }) - // Reverse geocode in background - const place = await fetchReverse(lat, lon) - if (place) { - const current = useStore.getState().selectedPlace - if (current && Math.abs(current.lat - lat) < 0.00001 && Math.abs(current.lon - lon) < 0.00001) { - useStore.getState().setSelectedPlace({ ...place, lat, lon }) - } - } - }, - }, { id: 'add-stop', label: 'Add stop',