Skip to content

[Refactor] Split widget route templates and views #121

Closed

Description

@Prateep07

Summary

Split widget route-template and view handling into cohesive modules while preserving the current rendered output and import paths.

Scope

  • nitrostack/widgets/route_templates.py: separate generic, pizza, and flight/order templates; keep a small route dispatcher.
  • nitrostack/widgets/views.py: separate route/view dispatch from response and preview handling.
  • Preserve existing imports with facade re-exports where callers may rely on them.
  • Keep each resulting hand-maintained Python module at or below 500 physical lines. Move static HTML/JavaScript into non-Python assets where appropriate, or document a specific exception.

Acceptance criteria

  • Widget rendering behavior and existing supported imports are preserved.
  • Resulting modules have cohesive responsibilities and no unnecessary import cycles.
  • No unrelated behavior changes.

Out of scope

Tests and example-related files are excluded from this work.

Activity

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

    @manish-wekan
    Collaborator

    Fixed by #133, merged to develop in c22877a. route_templates.py is now 101 lines and views.py is 78.

    ~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