fix(parcel-sync): auto-scan no-geometry + redesign UI card

- Auto-scan triggers when UAT selected + connected (no manual click needed)
- Three states: scanning spinner, found N parcels (amber alert card), all OK (green check)
- Checkbox more prominent: only shown when no-geom parcels exist
- Re-scan button available, scan result cached per siruta
- AlertTriangle icon for visual warning
This commit is contained in:
AI Assistant
2026-03-07 13:06:45 +02:00
parent 30915e8628
commit 5861e06ddb
3 changed files with 138 additions and 60 deletions
+10
View File
@@ -0,0 +1,10 @@
const { PrismaClient } = require('@prisma/client');
const p = new PrismaClient();
async function main() {
await p['']('ALTER TABLE "GisFeature" ADD COLUMN IF NOT EXISTS "geometrySource" TEXT');
console.log('OK: geometrySource column added');
await p['']('CREATE INDEX IF NOT EXISTS "GisFeature_geometrySource_idx" ON "GisFeature" ("geometrySource")');
console.log('OK: index created');
await p['']();
}
main().catch(e => { console.log('ERR:', e.message); p[''](); });