fix(parcel-sync): fix unicode escapes in JSX + refresh on bg sync complete

- Replace \u00ce with actual Î character in JSX text (was rendering as literal \u00cenchide)
- Add onSyncRefresh + onDbRefresh calls when closing bg sync card
- Ensures DB freshness badge updates after background sync completes

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
AI Assistant
2026-03-26 21:10:34 +02:00
parent 3b456eb481
commit 318cb6037e
@@ -927,7 +927,7 @@ export function ExportTab({
</li>
)}
<li>
\u00cembogățire CF, proprietari, adrese {" "}
Îmbogățire CF, proprietari, adrese {" "}
<span className="font-medium text-teal-600 dark:text-teal-400">
{(() => {
// What will be in DB after sync + optional no-geom import:
@@ -1121,7 +1121,7 @@ export function ExportTab({
{noGeomScan.qualityBreakdown.empty > 0
? `Din ${noGeomScan.noGeomCount.toLocaleString("ro-RO")} fără geometrie, ~${noGeomScan.qualityBreakdown.useful.toLocaleString("ro-RO")} vor fi importate (imobile electronice cu CF). ${noGeomScan.qualityBreakdown.empty.toLocaleString("ro-RO")} vor fi filtrate (fără carte funciară, inactive sau fără date).`
: "Vor fi importate în DB și incluse în CSV + Magic GPKG (coloana HAS_GEOMETRY=0/1)."}{" "}
\u00cen GPKG de bază apar doar cele cu geometrie.
În GPKG de bază apar doar cele cu geometrie.
</p>
)}
{workflowPreview}
@@ -1422,9 +1422,11 @@ export function ExportTab({
setBgJobId(null);
setBgProgress(null);
setBgPhaseTrail([]);
onSyncRefresh();
onDbRefresh();
}}
>
\u00cenchide
Închide
</Button>
</div>
)}