feat(mobile): phone styling for tours list, trip settings and admin cards

The tours list in the places browser now uses the same rows as places: a
grade or type tile, the day plan's figure badges and a day badge or plus on
the right. A shared "Planned on desktop" badge replaces the grey hint box
there and sits under the road trip's empty stage.

Trip settings and trip edit open phone sheets instead of the desktop
dialogs; the edit sheet gains the day count of a dateless trip and the
reminder. Questions are asked in phone sheets, not the browser.

Admin on the phone: the paddle regions and school holiday cards are phone
cards on their shared hooks, long addon descriptions fold to two lines,
the addon header keeps the wordmark inside its sentence, the group bands
drop the dash and the permissions actions get a row of their own. The
Tours addon gets its catalog name and description in every locale.

The journey map on the phone shows every layer without the switch bar.
This commit is contained in:
Maurice
2026-10-22 21:26:41 +02:00
parent bb3c0151d5
commit 49afee161d
151 changed files with 2660 additions and 899 deletions
@@ -511,7 +511,7 @@ export function useJourneyDetail({ journeyId, embedded = false }: JourneyDetailO
dayImport, dayImportDates,
} = useJourneyDetailLayers({
journey: current, loaded: journeyLoaded, canEditEntries, loadJourney, dawarich, dawarichByDate, dawarichTrail,
tripDates, sidebarMapItems, photoCount: mapPhotos.length, showTripTracks,
tripDates, sidebarMapItems, photoCount: mapPhotos.length, showTripTracks, allLayers: isMobile,
})
/** Studio's margin to the window on all four sides — see `.st-root` in studio.css. */
@@ -30,6 +30,7 @@ export function useJourneyDetailLayers({
sidebarMapItems,
photoCount,
showTripTracks,
allLayers = false,
}: {
journey: JourneyDetail | null;
/** Whether `journey` is the one the route names yet: the store keeps the last one while the next loads. */
@@ -43,6 +44,8 @@ export function useJourneyDetailLayers({
sidebarMapItems: ReadonlyArray<{ id: string; entry_date: string; dayColor: string }>;
photoCount: number;
showTripTracks: boolean;
/** The phone: every map layer on, as it offers no switches (see useJourneyMapLayers). */
allLayers?: boolean;
}) {
// The editor's own status, the owner's switch, and where each day of the trips stands.
const isAddonEnabled = useAddonStore((s) => s.isEnabled);
@@ -111,6 +114,7 @@ export function useJourneyDetailLayers({
recordedRead,
colorOfDay,
dateOfEntry,
allLayers,
});
// The drafts a day's take-over wrote reach the timeline, and its stays leave the pending list.
@@ -136,6 +136,7 @@ export function useJourneyPublic() {
photoCount: mapPhotos.length,
colorOfDay,
dateOfEntry,
allLayers: isMobile,
})
// A journey shared while the trip is still running reads like a blog, so the owner