Skip to content

v0.60.0

Choose a tag to compare

@gnacho gnacho released this 03 Sep 16:26
· 41 commits to main since this release
ece3153

Fixes

Services and Ports pages no longer go blank on gateway routers (#218)

On the first real gateway in production both pages crashed the whole React tree: the firewall probe looked for .type='zone' keys that uci show never emits (sections print as firewall.@zone[0]=zone), so zones/rules were always null on any gateway, and five more port probes (PoE, PoE watchdog, LAG, port templates, VLANs) returned null slices that the UI mapped over. All probes now parse the real uci show shape, always answer with empty arrays instead of null, and the consuming components guard with ?? []. Saved port templates also list back correctly now (same parsing bug, latent).

En el primer router gateway real de producción ambas páginas tumbaban el árbol de React entero: el sondeo de cortafuegos buscaba claves .type='zone' que uci show nunca emite (las secciones se imprimen como firewall.@zone[0]=zone), así que zonas/reglas eran siempre null en cualquier gateway, y otros cinco sondeos de puertos (PoE, watchdog PoE, LAG, plantillas de puertos, VLANs) devolvían slices null sobre los que pintaba la UI. Todos los sondeos ahora parsean el formato real de uci show, responden siempre con arrays vacíos en vez de null, y los componentes se blindan con ?? []. Las plantillas de puertos guardadas también vuelven a listarse correctamente (mismo bug de parseo, latente).

Validation

  • Real gateway (GL.iNet MT6000, OpenWrt 25.12.5): firewall lists 6 real zones and 23 rules; all six endpoints return arrays; full 11-page sweep renders with zero console errors.

Validado en gateway real (GL.iNet MT6000, OpenWrt 25.12.5): el cortafuegos lista 6 zonas reales y 23 reglas; los seis endpoints devuelven arrays; el barrido completo de 11 páginas renderiza sin un solo error de consola.