From 8f86bab337c8bbcdb5f6c18b0a9a0a13eff47780 Mon Sep 17 00:00:00 2001 From: Claude VM Date: Wed, 20 May 2026 07:44:12 +0300 Subject: [PATCH] =?UTF-8?q?fix(geoportal-v2):=20remove=20eterra.live=20lin?= =?UTF-8?q?ks=20+=20fix=20Actualizeaz=C4=83=20wrap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per Marius's feedback: eterra.live is a separate product, ArchiTools shouldn't link out to it. Removed both touch-points: 1. The "eterra.live" button I'd added beside "Actualizează" in the Date eTerra header — gone. This was also breaking layout (the second button forced "acum câteva secunde" to wrap into "acum / câteva / secunde" stacked above the button text). 2. The "Export GPKG" action in the toolbar — gone. It used to deep- link to eterra.live/harta?…&autoexport=geopackage. Toolbar now holds just "Comandă CF" which stays internal (/parcel-sync). While in there: - Actualizează button: `whitespace-nowrap` + `shrink-0` so it stops wrapping when the panel is at min-width. - Dropped the inline " · acum X min" beside the button label — cleaner button, less truncation risk. - Resurfaced the relative time as a small line at the bottom of the Date eTerra body ("Actualizat din ANCPI · acum 3 min"). Same info, no layout pressure. - Cleaned unused lucide imports (Download, ExternalLink, Hash, Layers, CalendarDays) that were leftover from the removed eterra.live button + Cladire icon experiments. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../geoportal/v2/feature-info-panel.tsx | 71 +++++++------------ 1 file changed, 24 insertions(+), 47 deletions(-) diff --git a/src/modules/geoportal/v2/feature-info-panel.tsx b/src/modules/geoportal/v2/feature-info-panel.tsx index 31903bf..8022fd9 100644 --- a/src/modules/geoportal/v2/feature-info-panel.tsx +++ b/src/modules/geoportal/v2/feature-info-panel.tsx @@ -3,10 +3,10 @@ import { useCallback, useEffect, useMemo, useRef, useState } from "react"; import { signIn } from "next-auth/react"; import { - X, RefreshCw, Loader2, FileText, Download, AlertCircle, + X, RefreshCw, Loader2, FileText, AlertCircle, Home, Building, Building2, MapPin, ChevronRight, Users, Sparkles, User, ShieldCheck, AlertTriangle, HelpCircle, - Factory, Warehouse, ExternalLink, Hash, Layers, CalendarDays, + Factory, Warehouse, } from "lucide-react"; import { cn } from "@/shared/lib/utils"; @@ -914,39 +914,22 @@ export function FeatureInfoPanel({ feature, onClose, onSelectFeature, basic = fa Date eTerra

-
- - - - eterra.live - -
+
@@ -1022,6 +1005,12 @@ export function FeatureInfoPanel({ feature, onClose, onSelectFeature, basic = fa
)} + + {enrichedAgo && hasEnrich && ( +

+ Actualizat din ANCPI · {enrichedAgo} +

+ )} )} @@ -1224,18 +1213,6 @@ export function FeatureInfoPanel({ feature, onClose, onSelectFeature, basic = fa {/* Actions toolbar */}
-