fix: robust layer fetch (multi-fallback page sizes, error cause), neutral 505 color

LAYER FETCH:
- fetchAllLayerByWhere now falls back through 2000 → 1000 → 500 → 200
  instead of just 2000 → 1000 before giving up
- 500ms delay between fallback attempts to let eTerra recover
- Error message now includes the original cause:
  'Failed to fetch layer TERENURI_ACTIVE: Session expired (401)'
  instead of just 'Failed to fetch layer TERENURI_ACTIVE'

DISPLAY:
- 505 terenuri count no longer green (was emerald-600, now neutral semibold)
  It's just a data value, not a status indicator
This commit is contained in:
AI Assistant
2026-03-07 22:01:17 +02:00
parent b287b4c34b
commit a7c9e8a6cc
2 changed files with 18 additions and 10 deletions
@@ -2617,7 +2617,7 @@ export function ParcelSyncModule() {
<div className="flex-1 min-w-0">
<p className="text-sm">
Layer GIS:{" "}
<span className="text-emerald-600 dark:text-emerald-400 font-semibold">
<span className="font-semibold">
{noGeomScan.remoteGisCount.toLocaleString("ro-RO")}
</span>{" "}
terenuri