From dfa4815d75568e520c3b5955c06d96fe2505777f Mon Sep 17 00:00:00 2001 From: AI Assistant Date: Tue, 24 Mar 2026 12:58:24 +0200 Subject: [PATCH] fix(geoportal): layers off by default + bulk enrichment feedback - UAT + Intravilan layers OFF by default (user activates when needed) - Terenuri/Cladiri listed first in panel (most used) - Bulk enrichment: per-feature with progress counter (3/10), success summary - Progress text shown in toolbar during enrichment Co-Authored-By: Claude Opus 4.6 (1M context) --- .../geoportal/components/layer-panel.tsx | 16 +++++----- .../components/selection-toolbar.tsx | 32 +++++++++++++------ 2 files changed, 30 insertions(+), 18 deletions(-) diff --git a/src/modules/geoportal/components/layer-panel.tsx b/src/modules/geoportal/components/layer-panel.tsx index 3689f09..59b3bc5 100644 --- a/src/modules/geoportal/components/layer-panel.tsx +++ b/src/modules/geoportal/components/layer-panel.tsx @@ -21,13 +21,6 @@ type LayerGroupDef = { }; const LAYER_GROUPS: LayerGroupDef[] = [ - { - id: "uats", - label: "Limite UAT", - description: "Unitati administrativ-teritoriale", - color: "#7c3aed", - defaultVisible: true, - }, { id: "terenuri", label: "Terenuri", @@ -42,10 +35,17 @@ const LAYER_GROUPS: LayerGroupDef[] = [ color: "#3b82f6", defaultVisible: true, }, + { + id: "uats", + label: "Limite UAT", + description: "Unitati administrativ-teritoriale", + color: "#7c3aed", + defaultVisible: false, + }, { id: "administrativ", label: "Intravilan", - description: "Limite intravilan, arii speciale (zoom >= 10)", + description: "Limite intravilan, arii speciale (zoom >= 13)", color: "#ea580c", defaultVisible: false, }, diff --git a/src/modules/geoportal/components/selection-toolbar.tsx b/src/modules/geoportal/components/selection-toolbar.tsx index 2abced6..58bee30 100644 --- a/src/modules/geoportal/components/selection-toolbar.tsx +++ b/src/modules/geoportal/components/selection-toolbar.tsx @@ -43,6 +43,7 @@ export function SelectionToolbar({ }: SelectionToolbarProps) { const [exporting, setExporting] = useState(false); const [enriching, setEnriching] = useState(false); + const [enrichProgress, setEnrichProgress] = useState(""); const active = selectionMode !== "off"; const handleExport = async (format: ExportFormat) => { @@ -140,21 +141,28 @@ export function SelectionToolbar({ + + {enrichProgress && ( + {enrichProgress} + )} )}