Add check-in feature and update travel planner UI

This commit is contained in:
周瑞哲
2026-07-31 12:50:14 +08:00
parent ac4179086c
commit 3ef7266591
44 changed files with 2919 additions and 144 deletions
+9
View File
@@ -18,6 +18,15 @@ describe('map session store', () => {
expect(store.viewport).toEqual({ longitude: 113.94, latitude: 22.76, scale: 13 })
})
it('shows and clears the planned-route overlay explicitly', () => {
const store = useMapStore()
expect(store.plannedRouteVisible).toBe(false)
store.showPlannedRoute()
expect(store.plannedRouteVisible).toBe(true)
store.hidePlannedRoute()
expect(store.plannedRouteVisible).toBe(false)
})
it('ignores invalid viewport updates', () => {
const store = useMapStore()
store.updateViewport({ longitude: Number.NaN, latitude: 22.76, scale: 13 })