feat(radial): remove redundant 'What's here' wedge

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
This commit is contained in:
Matt 2026-04-26 06:44:12 +00:00
commit 19b8c6e23b

View file

@ -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',