fix: show remoteGisCount (505) as cu geometrie, add no-geom cleanup step
- UI: scan card now shows remoteGisCount instead of matchedCount (withGeometry) as the primary 'cu geometrie' number — this is the true GIS layer feature count - UI: workflow preview step 1 shows remoteGisCount for download count - UI: mismatch note reworded as secondary detail about cross-reference matching - Import: automatic cleanup step at start of syncNoGeometryParcels - Builds valid immovablePk set from fresh list (active + identification/area) - Deletes stale NO_GEOMETRY records not in the valid set - Reports cleaned count in result + progress note - NoGeomSyncResult type: added 'cleaned' field - Gitignore: temp-db-check.cjs
This commit is contained in:
@@ -282,10 +282,14 @@ export async function POST(req: Request) {
|
||||
pushProgress();
|
||||
} else {
|
||||
noGeomImported = noGeomResult.imported;
|
||||
const cleanedNote =
|
||||
noGeomResult.cleaned > 0
|
||||
? `, ${noGeomResult.cleaned} vechi șterse`
|
||||
: "";
|
||||
note =
|
||||
noGeomImported > 0
|
||||
? `${noGeomImported} parcele noi fără geometrie importate`
|
||||
: "Nicio parcelă nouă fără geometrie";
|
||||
? `${noGeomImported} parcele noi fără geometrie importate${cleanedNote}`
|
||||
: `Nicio parcelă nouă fără geometrie${cleanedNote}`;
|
||||
pushProgress();
|
||||
}
|
||||
updatePhaseProgress(1, 1);
|
||||
|
||||
Reference in New Issue
Block a user