From bfb1b04f8d9c605a4b3f602ea7230c560975812b Mon Sep 17 00:00:00 2001 From: Maurice Date: Sun, 8 Nov 2026 03:05:56 +0000 Subject: [PATCH] feat(mobile): TREK Studio opens over the journey on an iPad on its side and an unfolded Duo Studio is a child route of the journey, opened on top of it. The touch shell's journey now renders that child in the split size class, where the header offers Studio beside the menu, as the desktop's bar does. The editor is the desktop's: tapping a panel, adding an element and dragging it with a finger work through its pointer events. On the phone and in a single pane the journey stays alone, whatever the address says, and offers no Studio. --- .../mobile/screens/journey/MJourneyDetail.tsx | 23 +++++++++++++++---- .../mobile/journey/MJourneyDetail.test.tsx | 14 ++++++++++- 2 files changed, 32 insertions(+), 5 deletions(-) diff --git a/client/src/mobile/screens/journey/MJourneyDetail.tsx b/client/src/mobile/screens/journey/MJourneyDetail.tsx index badbbe799..99f2fcf70 100644 --- a/client/src/mobile/screens/journey/MJourneyDetail.tsx +++ b/client/src/mobile/screens/journey/MJourneyDetail.tsx @@ -1,6 +1,6 @@ import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from 'react' -import { useSearchParams } from 'react-router' -import { ChevronLeft, MapPin, Grid3x3, MoreHorizontal, Play, Image, Camera, EyeOff, Settings2, X, Route, ListChecks } from 'lucide-react' +import { Outlet, useSearchParams } from 'react-router' +import { BookOpen, ChevronLeft, MapPin, Grid3x3, MoreHorizontal, Play, Image, Camera, EyeOff, Settings2, X, Route, ListChecks } from 'lucide-react' import JourneyLayeredMap from '../../../components/Journey/JourneyLayeredMap' import PhotoLightbox from '../../../components/Journey/PhotoLightbox' import ContributorInviteDialog from '../../../components/Journey/ContributorInviteDialog' @@ -324,8 +324,9 @@ export default function MJourneyDetail({ journeyId, embedded = false }: JourneyD // keeps a single "more" affordance. // // There is no book export here any more: the book is a Studio document now, - // and Studio is a desktop editor. A phone-sized PDF of a book laid out for - // print was the old export's answer to a question nobody was asking. + // and Studio needs the room of a desktop, an iPad on its side or an unfolded + // Duo (split), where the header offers it. A phone-sized PDF of a book laid + // out for print was the old export's answer to a question nobody was asking. const toggleSkeletons = async (next: boolean) => { setHideSkeletons(next) try { @@ -498,6 +499,16 @@ export default function MJourneyDetail({ journeyId, embedded = false }: JourneyD )} + {split && !embedded && ( + + )}