fix(f4): align verification and web contracts with legacy cleanup

This commit is contained in:
2026-09-08 13:44:51 -03:00
parent 100d457484
commit 95a41f39d7
3 changed files with 9 additions and 9 deletions
+9 -6
View File
@@ -8,18 +8,21 @@ PAGE="$ROOT/web-v2/src/pages/InventoryCreatePage.tsx"
for file in "$LAYOUT" "$APP" "$PAGE"; do
test -f "$file" || {
echo "F3.1 WEB contract: falta $file"
echo "F4 WEB contract: falta $file"
exit 1
}
done
if grep -Fq "label: 'Relevamientos'" "$LAYOUT"; then
echo "F3.1 WEB contract: Relevamientos no debe volver al menú principal"
echo "F4 WEB contract: Relevamientos no debe volver al menú principal"
exit 1
fi
if grep -Fq 'path="/relevamiento/*"' "$APP"; then
echo "F4 WEB contract: Survey/Relevamiento no debe volver a exponer rutas activas"
exit 1
fi
grep -Fq 'path="/relevamiento/*"' "$APP"
grep -Fq 'Navigate to="/inventarios" replace' "$APP"
grep -Fq 'path="/inventarios/nuevo"' "$APP"
grep -Fq 'InventoryCreatePage' "$APP"
@@ -28,10 +31,10 @@ for kind in AREA YACIMIENTO INSTALACION SUBINSTALACION; do
done
if grep -Fq "kind: 'EQUIPO'" "$PAGE"; then
echo "F3.1 WEB contract: el alta guiada no debe restaurar EQUIPO como quinto nivel estructural"
echo "F4 WEB contract: el alta guiada no debe restaurar EQUIPO como quinto nivel estructural"
exit 1
fi
grep -Fq 'getInventoryFamilyFindings' "$PAGE"
echo 'F3.1 WEB contract: OK'
echo 'F4 WEB contract: OK'