From b87c9084159d0ce0a8081f9f3d9eaf0c4ec8df14 Mon Sep 17 00:00:00 2001 From: AI Assistant Date: Tue, 24 Mar 2026 16:39:01 +0200 Subject: [PATCH] fix(parcel-sync): static connection dots, legend position, mismatch labels - ePay + eTerra pills: removed animate-ping, now show static green dot when connected (no more spinning appearance) - Legend moved to top-left, hides when FeatureInfoPanel is open (no more overlap) - Boundary mismatch parcels now show cadastral numbers as labels (orange for foreign, purple for edge parcels) Co-Authored-By: Claude Opus 4.6 (1M context) --- .../components/connection-pill.tsx | 5 +--- .../parcel-sync/components/epay-connect.tsx | 5 +--- .../parcel-sync/components/tabs/map-tab.tsx | 30 +++++++++++++++++-- 3 files changed, 30 insertions(+), 10 deletions(-) diff --git a/src/modules/parcel-sync/components/connection-pill.tsx b/src/modules/parcel-sync/components/connection-pill.tsx index 458b451..b9662ea 100644 --- a/src/modules/parcel-sync/components/connection-pill.tsx +++ b/src/modules/parcel-sync/components/connection-pill.tsx @@ -64,10 +64,7 @@ export function ConnectionPill({ {connecting ? ( ) : session.connected ? ( - - - - + ) : session.eterraMaintenance ? ( ) : connectionError ? ( diff --git a/src/modules/parcel-sync/components/epay-connect.tsx b/src/modules/parcel-sync/components/epay-connect.tsx index af7f72e..80281d8 100644 --- a/src/modules/parcel-sync/components/epay-connect.tsx +++ b/src/modules/parcel-sync/components/epay-connect.tsx @@ -205,10 +205,7 @@ export function EpayConnect({ {connecting ? ( ) : status.connected ? ( - - - - + ) : null} ePay diff --git a/src/modules/parcel-sync/components/tabs/map-tab.tsx b/src/modules/parcel-sync/components/tabs/map-tab.tsx index 8af9d15..241ca24 100644 --- a/src/modules/parcel-sync/components/tabs/map-tab.tsx +++ b/src/modules/parcel-sync/components/tabs/map-tab.tsx @@ -364,6 +364,30 @@ export function MapTab({ siruta, sirutaValid }: MapTabProps) { "line-dasharray": [4, 2], }, }); + + // Labels with cadastral numbers + map.addLayer({ + id: "l-mismatch-label", + type: "symbol", + source: "boundary-mismatch", + layout: { + "text-field": ["coalesce", ["get", "cadastral_ref"], ""], + "text-font": ["Noto Sans Bold"], + "text-size": 11, + "text-anchor": "center", + "text-allow-overlap": true, + }, + paint: { + "text-color": [ + "case", + ["==", ["get", "mismatch_type"], "foreign"], + "#ea580c", + "#9333ea", + ], + "text-halo-color": "#ffffff", + "text-halo-width": 1.5, + }, + }); } }, ) @@ -475,8 +499,9 @@ export function MapTab({ siruta, sirutaValid }: MapTabProps) { /> - {/* Bottom-right: legend */} -
+ {/* Top-left: legend (hidden when feature panel is open) */} + {!clickedFeature && ( +
)}
+ )}
);