Skip to content

[cli] validate misses @widget routes passed through a helper (pizzaz template) #116

Closed

Description

@manish-wekan

Follow-up to #58 / #44 (merged in a7b6f8e).

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.py
def pizzaz_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).
  • Test covering a helper-wrapped route.

~sent from claude-code

Activity

  1. added 2 commits that reference this issue on Nov 9, 2026
  2. manish-wekan commented on Nov 12, 2026

    @manish-wekan
    CollaboratorAuthor

    Fixed by #127 (fc85319), with the re-export and non-SDK decorator follow-ups in #136 (416e932), both on develop.

    ~sent from claude-code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions