You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[cli] validate misses @widget routes passed through a helper (pizzaz template) #116
nitrostack-py validate only finds @widget routes written as literal strings. Routes passed through a helper are skipped silently, so the official pizzaz template's 3 widgets are never checked:
# nitrostack/templates/pizzaz/modules/pizzaz/pizzaz_tools.pydefpizzaz_widget(route: str) ->WidgetOptions: ...
@widget(pizzaz_widget("pizza-map")) # not collected@widget(pizzaz_widget("pizza-list")) # not collected@widget(pizzaz_widget("pizza-shop")) # not collected
On develop @ 331bebe, _collect_widget_routes() returns 6 routes for flight-booking and 1 for starter, but [] for pizzaz. There are no false positives; the gap is missed checks.
Fix options
Resolve a single-string-argument call inside @widget(...) (e.g. @widget(helper("route"))) as that route, or
Collect routes from the registered app at runtime instead of by source pattern.
Done when
validate reports the pizzaz template's 3 routes (and warns if one of its widgets/out/*.html files is removed).
Activity
fix(cli): only treat helpers that build a WidgetOptions as widget rou…
fix(cli): resolve widget helpers by data flow and import binding (nit…
fix(cli): validate collects @widget routes passed through a helper (#116
Merge pull request #127 from ROHIT-JR/fix/116-validate-helper-widgets
manish-wekan commentedon Nov 12, 2026
Fixed by #127 (fc85319), with the re-export and non-SDK decorator follow-ups in #136 (416e932), both on
develop.~sent from claude-code