From 2b49a78b998ec364f66c081bf0a21653d9392bba Mon Sep 17 00:00:00 2001 From: que01 Date: Mon, 7 Sep 2026 18:02:34 +0800 Subject: [PATCH] style(junction): fold facilities and clarify diagnostics --- .../client/src/junction/JunctionWorkspace.tsx | 22 +++++- workbench/client/src/styles.css | 73 +++++++++++++++++++ 2 files changed, 91 insertions(+), 4 deletions(-) diff --git a/workbench/client/src/junction/JunctionWorkspace.tsx b/workbench/client/src/junction/JunctionWorkspace.tsx index 09bba0c..dbf545f 100644 --- a/workbench/client/src/junction/JunctionWorkspace.tsx +++ b/workbench/client/src/junction/JunctionWorkspace.tsx @@ -106,6 +106,7 @@ export function JunctionWorkspace({ ); const [selectedCandidateNodes, setSelectedCandidateNodes] = useState([]); const [candidateNodePickerOpen, setCandidateNodePickerOpen] = useState(false); + const [facilitiesOpen, setFacilitiesOpen] = useState(false); const candidateNodes = useMemo( () => (candidate?.nodeIds?.length @@ -260,15 +261,28 @@ export function JunctionWorkspace({
{structure.corners.length ? structure.corners.map((corner) => corner.label).join('、') : '无'}
设施
- {structure.facilities.length - ? structure.facilities.map((facility) => facility.label).join('、') - : '无'} + {structure.facilities.length ? ( +
setFacilitiesOpen(event.currentTarget.open)} + > + 已识别 {structure.facilities.length} 项设施 +
    + {structure.facilities.map((facility) => ( +
  • {facility.label}
  • + ))} +
+
+ ) : ( + '无' + )}
{standardDiagnostics.length ? (