Skip to content

Comments

Add per-type typed tabs (2.0.1)#1

Open
Kani999 wants to merge 3 commits intomasterfrom
tab_per_type
Open

Add per-type typed tabs (2.0.1)#1
Kani999 wants to merge 3 commits intomasterfrom
tab_per_type

Conversation

@Kani999
Copy link
Collaborator

@Kani999 Kani999 commented Feb 25, 2026

Summary

  • Typed tabs (per-type): each Custom Object Type gets its own tab with full-featured list view — type-specific columns, filterset sidebar, bulk edit/delete, configure table, and HTMX pagination
  • New config: typed_models and typed_weight settings; renamed modelscombined_models, labelcombined_label, weightcombined_weight
  • Refactored views into views/ package (combined.py, typed.py); templates reorganized into combined/ and typed/ subdirectories
  • Third-party plugin model support for both tab modes

Test plan

  • ruff check and ruff format --check pass
  • All 50 unit tests pass (python -m pytest tests/ -v)
  • Combined tab still works as before on Device/Site/Rack detail pages
  • Typed tabs appear when typed_models is configured (e.g. ['dcim.*'])
  • Typed tab features: columns, filters, bulk actions, configure table, HTMX pagination
  • Per-row edit/delete return URL preserves tab context
  • Typed tab hidden when no objects of that type exist (hide_if_empty)

🤖 Generated with Claude Code

Each Custom Object Type now gets its own tab with type-specific columns,
filterset sidebar, bulk actions, configure table, and HTMX pagination.
Refactored views into a package (combined.py, typed.py), reorganized
templates, renamed config keys (models→combined_models, etc.), expanded
test suite to 50 tests, and updated CHANGELOG/README/version.
Wrap DB queries in register_typed_tabs() with try/except for
OperationalError/ProgrammingError so Docker builds (collectstatic)
don't crash when no database is available.
@Kani999 Kani999 changed the title Add per-type typed tabs (2.0.0b1) Add per-type typed tabs (2.0.1) Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant