diff --git a/src/modules/geoportal/v2/cf-order-modal.tsx b/src/modules/geoportal/v2/cf-order-modal.tsx index 6b86f04..4859c6e 100644 --- a/src/modules/geoportal/v2/cf-order-modal.tsx +++ b/src/modules/geoportal/v2/cf-order-modal.tsx @@ -65,7 +65,11 @@ interface Props { } const POLL_INTERVAL_MS = 3_000; -const POLL_TIMEOUT_MS = 90_000; +// ANCPI orders regularly take 60-180s end-to-end (depends on cart load +// + ANCPI document queue); a 90s timeout was firing before the order +// finished even when the queue completed correctly. 180s catches the +// long tail without giving the user a "stuck forever" feel. +const POLL_TIMEOUT_MS = 180_000; export function CfOrderModal({ open, @@ -484,7 +488,7 @@ export function CfOrderModal({ /> {phase === "processing" && (

- Poate dura până la 60 de secunde. Poți închide fereastra — + Poate dura până la 3 minute. Poți închide fereastra — comanda continuă în fundal.

)} diff --git a/src/modules/parcel-sync/components/cf-api-base.ts b/src/modules/parcel-sync/components/cf-api-base.ts index 321e905..2e69413 100644 --- a/src/modules/parcel-sync/components/cf-api-base.ts +++ b/src/modules/parcel-sync/components/cf-api-base.ts @@ -14,8 +14,15 @@ import type { CfExtractRow } from "@/lib/gis-api-client"; -export function cfApiBase(useGisAc: boolean): string { - return useGisAc ? "/api/cf" : "/api/ancpi"; +export function cfApiBase(_useGisAc: boolean): string { + // Temporarily pinned to legacy /api/ancpi until Faza H lands. + // Background: pilot users (useGisAc=true) were routed to /api/cf + // which proxies to gis-api → gis_core."CfExtract". But the ePay queue + // still writes only to architools_postgres."CfExtract" (legacy). Pilot + // users were missing their own fresh orders in the listing + catalog + // checks. Until the queue mirrors writes to gis-api, every caller + // uses the legacy endpoint so the read source matches the write source. + return "/api/ancpi"; } // UI-side row shape (mirrors what epay-tab.tsx already expects).