feat(places): one place view for All places and the lists

The desktop dialog and the phone sheet of a place show its overview, notes,
tours and bookings, photos and files and its history in tabs, with the tags
of each list and trip, a markdown notes editor, uploads and the place
picture. The rating bar of All places is the rating row the lists show,
with its voters, and votes once for every copy. All places filters by a
lowest rating and sorts by it, and the edit form changes the first copy the
reader may edit, which the server carries to the others.
This commit is contained in:
Maurice
2026-11-29 23:36:43 +00:00
parent 783c98f41e
commit d758f4c592
78 changed files with 5604 additions and 2797 deletions
+31 -9
View File
@@ -287,7 +287,13 @@
},
{
"feature": "Collection place detail",
"hooks": ["src/components/Collections/useCollectionPlaceForm.ts"],
"hooks": [
"src/components/Collections/useCollectionPlaceForm.ts",
"src/components/Collections/useLibraryPlace.ts",
"src/components/Collections/usePlaceSheet.ts",
"src/components/Collections/usePlaceTags.ts",
"src/components/Collections/libraryPairs.ts"
],
"desktop": ["src/components/Collections/CollectionPlaceDetail.tsx"],
"mobile": ["src/mobile/screens/collections/MCollPlaceSheet.tsx"]
},
@@ -305,10 +311,28 @@
},
{
"feature": "Places: a place of all places",
"hooks": ["src/components/Collections/libraryDates.ts", "src/components/Collections/libraryPairs.ts"],
"hooks": [
"src/components/Collections/libraryPairs.ts",
"src/components/Collections/usePlaceSheet.ts",
"src/components/Collections/usePlaceTags.ts",
"src/components/Collections/usePlaceEdit.ts",
"src/components/Collections/usePlaceRating.ts"
],
"desktop": ["src/components/Collections/LibraryPlaceDetail.tsx"],
"mobile": ["src/mobile/screens/collections/MLibraryPlaceSheet.tsx"]
},
{
"feature": "Places: where a place is kept",
"hooks": ["src/components/Collections/libraryDates.ts"],
"desktop": ["src/components/Collections/PlaceOrigins.tsx"],
"mobile": ["src/mobile/screens/collections/MPlaceOrigins.tsx"]
},
{
"feature": "Places: the tabs of a place",
"hooks": ["src/components/Collections/usePlaceSheet.ts"],
"desktop": ["src/components/Collections/PlaceSheetTabs.tsx"],
"mobile": ["src/mobile/screens/collections/MPlaceSheetTabs.tsx"]
},
{
"feature": "Places: tours and bookings of a place",
"hooks": ["src/components/Collections/usePlaceActivities.ts", "src/components/Collections/placeExtrasText.ts"],
@@ -321,12 +345,6 @@
"desktop": ["src/components/Collections/PlaceHistorySection.tsx"],
"mobile": ["src/mobile/screens/collections/MPlaceHistorySection.tsx"]
},
{
"feature": "Places: personal tags of a place",
"hooks": ["src/components/Collections/useEntryTags.ts"],
"desktop": ["src/components/Collections/EntryTagsSection.tsx", "src/components/Collections/PlacesLibraryView.tsx"],
"mobile": ["src/mobile/screens/collections/MEntryTagsSection.tsx", "src/mobile/screens/collections/MPlacesLibrary.tsx"]
},
{
"feature": "Places: notes of a place",
"hooks": ["src/components/Collections/useOriginNotes.ts"],
@@ -335,7 +353,7 @@
},
{
"feature": "Places: pictures and files of a place",
"hooks": ["src/components/Collections/usePlaceMedia.ts"],
"hooks": ["src/components/Collections/usePlaceMedia.ts", "src/components/Collections/mediaAdd.tsx"],
"desktop": ["src/components/Collections/PlaceMediaSection.tsx"],
"mobile": ["src/mobile/screens/collections/MPlaceMediaSection.tsx"]
},
@@ -1186,6 +1204,10 @@
}
],
"mobileOnly": {
"src/mobile/screens/collections/MPlaceCard.tsx": "The frame of a group in the phone's place view; the desktop twin is PlaceCard, plain markup with no logic to share.",
"src/mobile/screens/collections/MPlaceEditForm.tsx": "Markup over the usePlaceEdit state MLibraryPlaceSheet passes in; the hook is in the \"a place of all places\" pair.",
"src/mobile/screens/collections/MPlaceSheetShell.tsx": "The phone's frame of the one place view (cover, body, bottom row); the desktop frame is DialogShell.",
"src/mobile/screens/collections/MPlaceTagsCard.tsx": "Markup over the usePlaceTags state the place sheets pass in; the hook is in their pairs.",
"src/mobile/screens/collections/MCollFilterKit.tsx": "Markup only: the filter chips, dropdown rows and empty note the phone's lists and all-places screens share; the desktop draws its own filter row (FilterDropdown).",
"src/mobile/screens/trip/sheets/MReviewNotice.tsx": "The transport sheet's row asking for a look at an imported booking; the desktop dialog folds the same \"looks right\" action into its review pill (ReviewPill in bookingParts.tsx), so there is no separate twin.",
"src/mobile/screens/mail/MMailInboxHost.tsx": "Mounts the phone shell's one inbox sheet and reads the person's import settings; the desktop mounts its dialog from the Navbar, so there is no twin.",
-2
View File
@@ -233,7 +233,6 @@
"src/components/Collections/CollectionPicker.test.tsx",
"src/components/Collections/CollectionPicker.tsx",
"src/components/Collections/CollectionPlaceDetail.test.tsx",
"src/components/Collections/CollectionPlaceDetail.tsx",
"src/components/Collections/CopyToTripModal.test.tsx",
"src/components/Collections/CopyToTripModal.tsx",
"src/components/Collections/ImportCollectionModal.test.tsx",
@@ -1288,7 +1287,6 @@
"src/mobile/screens/collections/MCollLinksEditor.tsx",
"src/mobile/screens/collections/MCollListPickerSheet.tsx",
"src/mobile/screens/collections/MCollPlaceRow.tsx",
"src/mobile/screens/collections/MCollPlaceSheet.tsx",
"src/mobile/screens/collections/MCollShareSheet.tsx",
"src/mobile/screens/collections/MCollSheetKit.tsx",
"src/mobile/screens/collections/MCollTripPickerSheet.tsx",
-1
View File
@@ -1,7 +1,6 @@
{
"components/AtlasGlobe/atlasGlobe.css": 1,
"components/Collections/CollectionMap.tsx": 1,
"components/Collections/detailDock.ts": 2,
"components/Packing/PackingItemDetail.tsx": 1,
"components/Studio/LineHandles.tsx": 1,
"components/Studio/StudioSelectionChrome.tsx": 2,
+1 -1
View File
@@ -12,7 +12,7 @@
"src/components/Planner/DayPlanSidebar.test.tsx": 5349,
"src/components/Planner/DayPlanSidebar.tsx": 2908,
"src/components/Planner/PlaceFormModal.test.tsx": 2836,
"src/components/Planner/PlaceInspector.tsx": 1128,
"src/components/Planner/PlaceInspector.tsx": 1030,
"src/components/Studio/TravelElements.tsx": 1559,
"src/components/Studio/countryShapes.ts": 2595,
"src/index.css": 1636,
-1
View File
@@ -171,7 +171,6 @@
"mobile/screens/collections/MCollLinksEditor.tsx": 2,
"mobile/screens/collections/MCollListPickerSheet.tsx": 3,
"mobile/screens/collections/MCollPlaceRow.tsx": 3,
"mobile/screens/collections/MCollPlaceSheet.tsx": 10,
"mobile/screens/collections/MCollShareSheet.tsx": 14,
"mobile/screens/collections/MCollSheetKit.tsx": 5,
"mobile/screens/collections/MCollTripPickerSheet.tsx": 4,
@@ -59,7 +59,6 @@
"mobile/screens/atlas/MAtlasCountryPopup.tsx": 2,
"mobile/screens/atlas/hub/MHubTravellers.tsx": 1,
"mobile/screens/collections/MCollEditSheet.tsx": 2,
"mobile/screens/collections/MCollPlaceSheet.tsx": 2,
"mobile/screens/collections/MCollShareSheet.tsx": 1,
"mobile/screens/collections/collectionsMobileModel.ts": 15,
"mobile/screens/dashboard/MDashboard.tsx": 3,