From 21e1249507e28450457dbed9eecc7e879e991355 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 13 Nov 2026 02:23:45 +0800 Subject: [PATCH 1/4] Fix map pin hover on selected report, add stats panel, photo lightbox and location card Co-Authored-By: Claude Haiku 5.5 Claude-Session: https://claude.ai/code/session_01TwEhKE8qd1dQVno8YgYZVX --- app/reports/[id]/page.tsx | 20 ++------- components/Explorer.tsx | 32 ++++++++------ components/LocationCard.tsx | 54 +++++++++++++++++++++++ components/PhotoGallery.tsx | 88 +++++++++++++++++++++++++++++++++++++ components/ReportsMap.tsx | 6 +++ 5 files changed, 171 insertions(+), 29 deletions(-) create mode 100644 components/LocationCard.tsx create mode 100644 components/PhotoGallery.tsx diff --git a/app/reports/[id]/page.tsx b/app/reports/[id]/page.tsx index 033a1e1..02316b6 100644 --- a/app/reports/[id]/page.tsx +++ b/app/reports/[id]/page.tsx @@ -2,6 +2,8 @@ import type { Metadata } from "next"; import Link from "next/link"; import { notFound } from "next/navigation"; import ProgressSteps from "@/components/ProgressSteps"; +import LocationCard from "@/components/LocationCard"; +import PhotoGallery from "@/components/PhotoGallery"; import StaticMap from "@/components/StaticMap"; import StatusBadge from "@/components/StatusBadge"; import TransitionControls from "@/components/TransitionControls"; @@ -72,22 +74,7 @@ export default async function ReportPage({ params }: Props) {

Details

{report.description}

- {report.media.length > 0 && ( - - )} + {report.media.length > 0 && }
@@ -114,6 +101,7 @@ export default async function ReportPage({ params }: Props) {