From 730eee6c8a9c7cf2e98afe3c4226c0a9da4683d3 Mon Sep 17 00:00:00 2001 From: AI Assistant Date: Mon, 30 Mar 2026 01:59:07 +0300 Subject: [PATCH] feat(wds): add manual sync trigger button with force-run mode - triggerForceSync() resets error steps, clears lastSessionDate, starts sync immediately - Force mode uses extended night window (22:00-05:00) instead of weekend-only - API action 'trigger' starts sync in background, returns immediately - 'Porneste sync' button in header (hidden when already running) - Respects __parcelSyncRunning guard to prevent concurrent runs Co-Authored-By: Claude Opus 4.6 (1M context) --- src/app/(modules)/wds/page.tsx | 16 ++++ src/app/api/eterra/weekend-sync/route.ts | 15 +++- .../parcel-sync/services/weekend-deep-sync.ts | 73 +++++++++++++++++-- 3 files changed, 98 insertions(+), 6 deletions(-) diff --git a/src/app/(modules)/wds/page.tsx b/src/app/(modules)/wds/page.tsx index 8b33469..4571891 100644 --- a/src/app/(modules)/wds/page.tsx +++ b/src/app/(modules)/wds/page.tsx @@ -16,6 +16,7 @@ import { AlertTriangle, WifiOff, Activity, + Play, } from "lucide-react"; import { Button } from "@/shared/components/ui/button"; import { Input } from "@/shared/components/ui/input"; @@ -251,6 +252,21 @@ export default function WeekendDeepSyncPage() { {lastRefresh.toLocaleTimeString("ro-RO", { hour: "2-digit", minute: "2-digit", second: "2-digit" })} )} + {syncStatus !== "running" && ( + + )}