From 026d593c8d315e1e845ac41bf73b0b8b57f7bfdc Mon Sep 17 00:00:00 2001 From: Maurice Date: Sun, 29 Nov 2026 16:48:45 +0100 Subject: [PATCH] fix(ci): layering and theme counts after the places changes - LibraryFilterBar reads the list statuses from the component-level collectionStatus model instead of reaching into pages/. - The phone filter kit moved out of MCollections with its raw text sizes; it now uses the type tiers (control, caption), so the user's text size applies. - The cover of a place of All places on the phone keeps its scrim, close button and name colours in a small stylesheet, as the desktop sheet does. - theme-baseline: ratingBadge back to the two corner-badge literals it holds, MapView, MapViewGL and MCollections lowered to what they hold now. --- client/scripts/theme-baseline.json | 8 ++++---- .../src/components/Collections/LibraryFilterBar.tsx | 2 +- .../mobile/screens/collections/MCollFilterKit.tsx | 8 ++++---- .../screens/collections/MLibraryPlaceSheet.tsx | 7 ++++--- .../src/mobile/screens/collections/libraryCover.css | 13 +++++++++++++ 5 files changed, 26 insertions(+), 12 deletions(-) create mode 100644 client/src/mobile/screens/collections/libraryCover.css diff --git a/client/scripts/theme-baseline.json b/client/scripts/theme-baseline.json index fb9c0debd..bed5ff3cb 100644 --- a/client/scripts/theme-baseline.json +++ b/client/scripts/theme-baseline.json @@ -59,8 +59,8 @@ "components/Map/LocationButton.tsx": 1, "components/Map/MapPluginMarkers.tsx": 2, "components/Map/MapTogglePill.tsx": 1, - "components/Map/MapView.tsx": 7, - "components/Map/MapViewGL.tsx": 10, + "components/Map/MapView.tsx": 5, + "components/Map/MapViewGL.tsx": 8, "components/Map/NightPauseTooltip.tsx": 1, "components/Map/PlaceHoverCard.tsx": 1, "components/Map/ReservationOverlay.tsx": 5, @@ -68,7 +68,7 @@ "components/Map/locationMarkerMapbox.ts": 2, "components/Map/placePopup.ts": 6, "components/Map/poiCategories.ts": 7, - "components/Map/ratingBadge.ts": 1, + "components/Map/ratingBadge.ts": 2, "components/Map/reservationsMapbox.ts": 1, "components/Map/switcherRow.ts": 1, "components/Packing/PackingListPanelBagModal.tsx": 2, @@ -175,7 +175,7 @@ "mobile/screens/collections/MCollShareSheet.tsx": 14, "mobile/screens/collections/MCollSheetKit.tsx": 5, "mobile/screens/collections/MCollTripPickerSheet.tsx": 4, - "mobile/screens/collections/MCollections.tsx": 13, + "mobile/screens/collections/MCollections.tsx": 9, "mobile/screens/dashboard/MDashWidgets.tsx": 22, "mobile/screens/dashboard/MDashboard.tsx": 30, "mobile/screens/dashboard/MNewTripSheet.tsx": 12, diff --git a/client/src/components/Collections/LibraryFilterBar.tsx b/client/src/components/Collections/LibraryFilterBar.tsx index 2f6230e11..fe1de8b5a 100644 --- a/client/src/components/Collections/LibraryFilterBar.tsx +++ b/client/src/components/Collections/LibraryFilterBar.tsx @@ -1,7 +1,7 @@ import type { CollectionStatus, PlacesLibraryCounts, PlacesLibrarySort } from '@trek/shared'; import { ArrowDownUp, Bookmark, CopyCheck, Globe2, Layers, Luggage, Tag } from 'lucide-react'; import React from 'react'; -import { STATUS_META, STATUS_ORDER } from '../../pages/collections/collectionsModel'; +import { STATUS_META, STATUS_ORDER } from './collectionStatus'; import type { Category, TranslationFn } from '../../types'; import { getCategoryIcon } from '../shared/categoryIcons'; import FilterDropdown, { type FilterOption } from './FilterDropdown'; diff --git a/client/src/mobile/screens/collections/MCollFilterKit.tsx b/client/src/mobile/screens/collections/MCollFilterKit.tsx index 8f98aaf15..c1f2deda6 100644 --- a/client/src/mobile/screens/collections/MCollFilterKit.tsx +++ b/client/src/mobile/screens/collections/MCollFilterKit.tsx @@ -7,7 +7,7 @@ import MDancingTrek, { type TrekScene } from '../../components/MDancingTrek'; */ export const FILTER_CHIP = - 'flex min-w-0 flex-1 items-center justify-center gap-[5px] rounded-full py-2 text-[0.75rem] font-semibold'; + 'flex min-w-0 flex-1 items-center justify-center gap-[5px] rounded-full py-2 text-caption font-semibold'; export const CHIP_IDLE = 'border border-m-rowbr bg-m-sheetop text-m-ink'; export const CHIP_ON = 'border border-transparent bg-m-act text-m-actfg'; @@ -32,13 +32,13 @@ export function DropRow({ ); } @@ -51,7 +51,7 @@ export function EmptyNote({ icon, scene, title }: { icon?: ReactNode; scene?: Tr ) : ( {icon} )} -

{title}

+

{title}

); } diff --git a/client/src/mobile/screens/collections/MLibraryPlaceSheet.tsx b/client/src/mobile/screens/collections/MLibraryPlaceSheet.tsx index e8d757525..28e58b23e 100644 --- a/client/src/mobile/screens/collections/MLibraryPlaceSheet.tsx +++ b/client/src/mobile/screens/collections/MLibraryPlaceSheet.tsx @@ -35,6 +35,7 @@ import type { TranslationFn } from '../../../types'; import { entityGradient } from '../../../utils/gradients'; import MSheet from '../../components/MSheet'; import { categoryMeta, STATUS_SPEC, tint, UNCATEGORIZED_META } from './collectionsMobileModel'; +import './libraryCover.css'; import { Eyebrow } from './MCollSheetKit'; interface MLibraryPlaceSheetProps { @@ -94,7 +95,7 @@ function SheetCover({ style={cover ? undefined : { backgroundImage: entityGradient(gradient) }} > {cover && } -
+
{entry?.category && (
{entry && ( -

+

{entry.name}

)} diff --git a/client/src/mobile/screens/collections/libraryCover.css b/client/src/mobile/screens/collections/libraryCover.css new file mode 100644 index 000000000..429fb38b4 --- /dev/null +++ b/client/src/mobile/screens/collections/libraryCover.css @@ -0,0 +1,13 @@ +/* The cover of a place of "All places" on the phone sits on a photo or a gradient, + so its scrim, close button and name keep the same dark glass and white in every + theme, as the desktop sheet's cover does in collections.css. */ +.m-libcover-scrim { + background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6)); +} +.m-libcover-btn { + background: rgba(0, 0, 0, 0.3); + color: #fff; +} +.m-libcover-name { + color: #fff; +}