fix(geoportal-v2): disable Ortofoto ANCPI button in PIZ modal

gis-api currently returns 501 basemap_not_supported for basemap='orto'
(needs orchestrator-side basemap endpoint that proxies the eTerra account
pool — not yet wired). Showing a clickable button that errors out is bad
UX; gate it with a dashed style + 'curând' badge + tooltip explaining
the dependency so the user reaches for Google Satellite (default,
fully working) instead.

Re-enable when orchestrator ships the basemap endpoint.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude VM
2026-05-21 14:58:29 +03:00
parent 5a282234d2
commit 5cfa6c8847
@@ -206,15 +206,11 @@ export function ExportModal({
</button> </button>
<button <button
type="button" type="button"
onClick={() => setBasemap("orto")} disabled
className={cn( title="Disponibil în curând — necesită endpoint basemap pe orchestrator (pool eTerra)."
"flex-1 rounded-md border px-2 py-1.5 text-xs", className="flex-1 cursor-not-allowed rounded-md border border-dashed border-border bg-muted/30 px-2 py-1.5 text-xs text-muted-foreground"
basemap === "orto"
? "border-primary bg-primary/5 font-medium"
: "border-border hover:bg-muted/50",
)}
> >
Ortofoto ANCPI Ortofoto ANCPI <span className="ml-0.5 text-[9px] uppercase opacity-70">curând</span>
</button> </button>
</div> </div>
</div> </div>