#20923 - Convert extras to new declarative UI layout #69

Closed
opened 2026-04-05 16:21:28 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @bctiemann on 3/26/2026

#20923 (partial — extras app)

Summary

  • Migrates all extras app object detail views to the new declarative UI layout system
  • Moves panel/column layout definitions from HTML templates into Python view and panel classes in extras/views.py and extras/ui/panels.py
  • Moves TextCodePanel to netbox.ui.panels as a shared, reusable panel available to plugin authors; adds an explicit show_sync_warning=False kwarg to opt in to sync-state warning display
  • Removes the now-redundant SyncCodePanel and its orphaned sync_code.html template
  • Normalizes field labels to sentence case throughout the new panel definitions
  • Follows the same pattern established in netbox-community/netbox#21754 (core) and netbox-community/netbox#21745 (tenancy)

Test plan

  • All extras view tests pass (extras.tests.test_views)
*Originally created by @bctiemann on 3/26/2026* #20923 (partial — extras app) ## Summary - Migrates all `extras` app object detail views to the new declarative UI layout system - Moves panel/column layout definitions from HTML templates into Python view and panel classes in `extras/views.py` and `extras/ui/panels.py` - Moves `TextCodePanel` to `netbox.ui.panels` as a shared, reusable panel available to plugin authors; adds an explicit `show_sync_warning=False` kwarg to opt in to sync-state warning display - Removes the now-redundant `SyncCodePanel` and its orphaned `sync_code.html` template - Normalizes field labels to sentence case throughout the new panel definitions - Follows the same pattern established in netbox-community/netbox#21754 (core) and netbox-community/netbox#21745 (tenancy) ## Test plan - [x] All extras view tests pass (`extras.tests.test_views`)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#69