From 708e550d06197f730eb97a752503a9a4e96991d0 Mon Sep 17 00:00:00 2001 From: Claude VM Date: Wed, 8 Apr 2026 15:16:41 +0300 Subject: [PATCH] fix(parcel-sync): allow DB download regardless of layer freshness MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The top export buttons required all primary layers to be "fresh" (<7 days) before using the DB download path. When stale, they fell through to live eTerra sync which requires credentials — blocking users who just want to download existing data. Now any UAT with data in DB uses the local export path directly. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/modules/parcel-sync/components/tabs/export-tab.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/modules/parcel-sync/components/tabs/export-tab.tsx b/src/modules/parcel-sync/components/tabs/export-tab.tsx index 28eec8b..d401b5f 100644 --- a/src/modules/parcel-sync/components/tabs/export-tab.tsx +++ b/src/modules/parcel-sync/components/tabs/export-tab.tsx @@ -149,10 +149,8 @@ export function ExportTab({ const primaryLayers = dbLayersSummary.filter((l) => PRIMARY_LAYERS.includes(l.id), ); - const allFresh = - primaryLayers.length > 0 && primaryLayers.every((l) => l.isFresh); const hasData = dbTotalFeatures > 0; - const canExportLocal = allFresh && hasData; + const canExportLocal = hasData; const oldestSyncDate = primaryLayers.reduce( (oldest, l) => {