The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
fix: the file size, theme and reading direction ratchets the last push tipped; widget previews and watch screens run by hand only
Maurice26dc88181de5
diff --git a/.github/workflows/native.yml b/.github/workflows/native.ymlindex 2bccc3c5a..8c2cf6fbe 100644--- a/.github/workflows/native.yml+++ b/.github/workflows/native.yml@@ -151,7 +151,10 @@ jobs:# The widgets drawn to PNGs (client/ios/WidgetPreviews): every size, light and# dark, for a trip ahead, a trip under way and none, plus a home screen and# a lock screen of them. Nobody has to install a build to see a widget change.+ # Started by hand only (Run workflow): the apps are on TestFlight and Play now,+ # where a change is looked at on a device; on every PR it only held the queue.widget-previews:+ if: github.event_name == 'workflow_dispatch'runs-on: macos-15timeout-minutes: 20steps:@@ -208,7 +211,9 @@ jobs:# The watch app on watchOS simulators in its screenshot mode (DemoMode.swift):# every screen on the largest and the smallest watch, the main ones in every# language, and the complications, as PNGs to look at without a watch.+ # Started by hand only, like the widget previews: up to 90 minutes of macOS.watch-screens:+ if: github.event_name == 'workflow_dispatch'runs-on: macos-15timeout-minutes: 90steps:diff --git a/client/scripts/rtl-baseline.json b/client/scripts/rtl-baseline.jsonindex 35e465910..b692cfc21 100644--- a/client/scripts/rtl-baseline.json+++ b/client/scripts/rtl-baseline.json@@ -24,8 +24,8 @@"components/Map/DawarichTrailPill.tsx": 1,"components/Map/LocationButton.tsx": 1,"components/Map/MapTogglePill.tsx": 1,- "components/Map/MapView.tsx": 6,- "components/Map/MapViewGL.tsx": 8,+ "components/Map/MapView.tsx": 5,+ "components/Map/MapViewGL.tsx": 7,"components/Map/NightPauseTooltip.tsx": 1,"components/Map/PlaceHoverCard.tsx": 1,"components/Map/PoiCategoryPill.tsx": 1,@@ -34,6 +34,7 @@"components/Map/locationMarkerMapbox.ts": 2,"components/Map/nightPauseMarker.ts": 4,"components/Map/ratingBadge.ts": 1,+ "components/Map/switcherRow.ts": 1,"components/PDF/TripPDF.tsx": 7,"components/PDF/tripMapImage.ts": 1,"components/Packing/PackingListPanelBagCard.tsx": 1,diff --git a/client/scripts/size-baseline.json b/client/scripts/size-baseline.jsonindex 69b0dc228..b3e2b7b14 100644--- a/client/scripts/size-baseline.json+++ b/client/scripts/size-baseline.json@@ -5,9 +5,9 @@"src/components/Admin/AdminPluginsPanel.tsx": 1266,"src/components/Budget/CostsPanel.test.tsx": 2730,"src/components/Budget/CostsPanel.tsx": 1798,- "src/components/Map/MapView.tsx": 1201,+ "src/components/Map/MapView.tsx": 1200,"src/components/Map/MapViewGL.test.tsx": 2919,- "src/components/Map/MapViewGL.tsx": 2127,+ "src/components/Map/MapViewGL.tsx": 2126,"src/components/Planner/DayDetailPanel.test.tsx": 2333,"src/components/Planner/DayPlanSidebar.test.tsx": 5349,"src/components/Planner/DayPlanSidebar.tsx": 2929,diff --git a/client/scripts/theme-baseline.json b/client/scripts/theme-baseline.jsonindex 97e40bebc..1312003fb 100644--- a/client/scripts/theme-baseline.json+++ b/client/scripts/theme-baseline.json@@ -60,8 +60,8 @@"components/Map/LocationButton.tsx": 1,"components/Map/MapPluginMarkers.tsx": 2,"components/Map/MapTogglePill.tsx": 1,- "components/Map/MapView.tsx": 8,- "components/Map/MapViewGL.tsx": 11,+ "components/Map/MapView.tsx": 7,+ "components/Map/MapViewGL.tsx": 10,"components/Map/NightPauseTooltip.tsx": 1,"components/Map/PlaceHoverCard.tsx": 1,"components/Map/ReservationOverlay.tsx": 5,@@ -71,6 +71,7 @@"components/Map/poiCategories.ts": 7,"components/Map/ratingBadge.ts": 2,"components/Map/reservationsMapbox.ts": 1,+ "components/Map/switcherRow.ts": 1,"components/PDF/TripPDF.tsx": 51,"components/Packing/PackingListPanelBagModal.tsx": 2,"components/Packing/PackingListPanelCategoryGroup.tsx": 5,diff --git a/client/src/components/Map/MapLayerSwitcher.tsx b/client/src/components/Map/MapLayerSwitcher.tsxindex 560277702..55ace706f 100644--- a/client/src/components/Map/MapLayerSwitcher.tsx+++ b/client/src/components/Map/MapLayerSwitcher.tsx@@ -33,8 +33,6 @@ export interface TourLayerOffer {/** Distance from the map's left edge (plus any side panel) to the switcher. */export const MAP_LAYER_SWITCHER_INSET = 20-/** What the switcher row leaves free at the map's trailing edge: the locate button (20px off the edge, 44px wide) and a gap. */-export const LOCATE_BUTTON_ROOM = 76/*** Outer size of the round shell: a 34px button in 4px of padding, the same shell as* MapCompassPill. The markup below keeps its literals, and FE-COMP-MAPLAYER-006 holdsdiff --git a/client/src/components/Map/MapView.tsx b/client/src/components/Map/MapView.tsxindex 3a1792e45..3b46e0c26 100644--- a/client/src/components/Map/MapView.tsx+++ b/client/src/components/Map/MapView.tsx@@ -73,7 +73,8 @@ import VectorBasemap from './VectorBasemap'import { nativeRasterTemplate } from '../../native/tileCache'import { useSettingsStore } from '../../store/settingsStore'import { TourMapLayersLeaflet } from './RasterOverlayLeaflet'-import { MapLayerSwitcher, TourMapLayerSwitcher, MAP_LAYER_SWITCHER_INSET, LOCATE_BUTTON_ROOM, type TourBaseLayer } from './MapLayerSwitcher'+import { MapLayerSwitcher, TourMapLayerSwitcher, type TourBaseLayer } from './MapLayerSwitcher'+import { switcherRowStyle } from './switcherRow'import { MapLockPill } from './MapLockPill'import type { ViewportPadding } from '../../utils/mapViewport'import { parseRenderableRouteGeometry } from '../../utils/routeGeometry'@@ -1126,7 +1127,7 @@ export const MapView = memo(function MapView({{/* 20px off the sidebar, not 12: the pill is round and frosted, so at thesmaller gap its shadow ran into the sidebar edge and the two read as onesurface. */}- <div style={{ position: 'absolute', left: leftWidth + MAP_LAYER_SWITCHER_INSET, width: `calc(100% - ${leftWidth + MAP_LAYER_SWITCHER_INSET + rightWidth + LOCATE_BUTTON_ROOM}px)`, bottom: switcherBottom, zIndex: 1000, pointerEvents: 'none', display: 'flex', flexDirection: 'column', alignItems: 'flex-start', gap: 8 }}>+ <div style={{ ...switcherRowStyle(leftWidth, rightWidth), bottom: switcherBottom }}>{onToggleFollow && <MapLockPill locked={!followSelection} onToggle={onToggleFollow} />}{hasViewBaseLayer? <TourMapLayerSwitcher active={baseLayer} onChange={onViewBaseLayerChange}diff --git a/client/src/components/Map/MapViewGL.tsx b/client/src/components/Map/MapViewGL.tsxindex 044d67b53..ca856b713 100644--- a/client/src/components/Map/MapViewGL.tsx+++ b/client/src/components/Map/MapViewGL.tsx@@ -12,7 +12,8 @@ import { useTranslation } from '../../i18n/TranslationContext'import { applyBaseLayer } from './glRasterLayers'import { reportGlViewport } from './glViewport'import { isTourLayerHit, useTourMapLayersGL } from './mapRasterOverlay'-import { MapLayerSwitcher, TourMapLayerSwitcher, MAP_LAYER_SWITCHER_INSET, LOCATE_BUTTON_ROOM, type BaseLayer, type TourBaseLayer } from './MapLayerSwitcher'+import { MapLayerSwitcher, TourMapLayerSwitcher, type BaseLayer, type TourBaseLayer } from './MapLayerSwitcher'+import { switcherRowStyle } from './switcherRow'import { MapLockPill } from './MapLockPill'import { useMarkerThumbs } from './useMarkerThumbs'import { placeMarkerFrame, placeMarkerLook, type PlaceMarkerFlags } from './markerLook'@@ -2060,8 +2061,7 @@ export function MapViewGL({card too, and used to send the pill to the top of the map for a corner it nevercovers. */}<div style={{- position: 'absolute', left: leftWidth + MAP_LAYER_SWITCHER_INSET, width: `calc(100% - ${leftWidth + MAP_LAYER_SWITCHER_INSET + rightWidth + LOCATE_BUTTON_ROOM}px)`, zIndex: 1000, pointerEvents: 'none',- display: 'flex', flexDirection: 'column', alignItems: 'flex-start', gap: 8,+ ...switcherRowStyle(leftWidth, rightWidth),bottom: isMobile && hasDayDetail? 'calc(var(--bottom-nav-h, 0px) + 20px + var(--day-panel-h, 0px) + 12px)': 'calc(var(--bottom-nav-h, 0px) + 12px)',diff --git a/client/src/components/Map/switcherRow.ts b/client/src/components/Map/switcherRow.tsnew file mode 100644index 000000000..4eddf12d8--- /dev/null+++ b/client/src/components/Map/switcherRow.ts@@ -0,0 +1,24 @@+import type { CSSProperties } from 'react';+import { MAP_LAYER_SWITCHER_INSET } from './MapLayerSwitcher';++/** What the switcher row leaves free at the map's trailing edge: the locate button (20px off the edge, 44px wide) and a gap. */+export const LOCATE_BUTTON_ROOM = 76;++/**+ * The column along a map's bottom edge that holds the layer switcher, both+ * renderers alike. Its width ends before the locate button, so the switcher can+ * tell when its words no longer fit (useLabelFit) and go to its icons.+ */+export function switcherRowStyle(leftWidth: number, rightWidth: number): CSSProperties {+ return {+ position: 'absolute',+ left: leftWidth + MAP_LAYER_SWITCHER_INSET,+ width: `calc(100% - ${leftWidth + MAP_LAYER_SWITCHER_INSET + rightWidth + LOCATE_BUTTON_ROOM}px)`,+ zIndex: 1000,+ pointerEvents: 'none',+ display: 'flex',+ flexDirection: 'column',+ alignItems: 'flex-start',+ gap: 8,+ };+}diff --git a/client/src/components/Studio/StudioShell.tsx b/client/src/components/Studio/StudioShell.tsxindex 5d41b3458..08ac522bb 100644--- a/client/src/components/Studio/StudioShell.tsx+++ b/client/src/components/Studio/StudioShell.tsx@@ -21,6 +21,7 @@ import { NewerBookOverlay } from './SaveIndicator'import { StudioNotices } from './StudioNotices'import '../../styles/dashboard.css'import '../../styles/studio.css'+import '../../styles/studio-floating.css'import './bookFontFaces'import { useWarmBookFaces } from './bookFontWarm'diff --git a/client/src/styles/studio-floating.css b/client/src/styles/studio-floating.cssnew file mode 100644index 000000000..80aa625d0--- /dev/null+++ b/client/src/styles/studio-floating.css@@ -0,0 +1,13 @@+/*+ * Studio's side panels where they float over the workbench (studio.css, under+ * 1280px for the inspector and 1080px for the side panel, an iPad in either+ * orientation). The docked panels' glass let the page show through there and the+ * panel's text washed out, so a floating panel is opaque. Higher specificity than+ * `.st-panel`, which sets the glass after these breakpoints.+ */+@media (max-width: 1279px) {+ .trek-dash .st-panel.st-inspector { background: var(--surface); }+}+@media (max-width: 1079px) {+ .trek-dash .st-panel.st-side { background: var(--surface); }+}diff --git a/client/src/styles/studio.css b/client/src/styles/studio.cssindex 207e5f601..d55ed7494 100644--- a/client/src/styles/studio.css+++ b/client/src/styles/studio.css@@ -229,10 +229,7 @@bottom: 0;width: 300px;box-shadow: var(--sh-lg);- /* Floating over the page, the glass let the page show through and the panel's- text washed out (an iPad in landscape): a floating panel is opaque. */}- .trek-dash .st-panel.st-inspector { background: var(--surface); }}@media (max-width: 1079px) {.trek-dash .st-body { grid-template-columns: minmax(64px, min-content) minmax(0, 1fr); }@@ -243,7 +240,6 @@width: 236px;box-shadow: var(--sh-lg);}- .trek-dash .st-panel.st-side { background: var(--surface); }}.trek-dash .st-panel {