Closes #20924: Ready UI components for use by plugins #16

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

Originally created by @jeremystretch on 4/2/2026

Closes: #20924

The goal of this PR is to ready the various UI components initially implemented in NetBox v4.5 for use by plugins in NetBox v4.6 by ensuring they are robust and reasonably complete. Although this PR is fairly broad, all changes herein are driven by this common goal.

  • Enable iterating directly against layouts/rows/columns to access child objects
  • Support optional column grid width assignment
  • Introduce the should_render() method on Panel to simplify conditional rendering
  • Fix potential issues with resolving models before the application has fully initialized
  • Standardize the get_config() and render() signatures for Panel subclasses
  • Replace bare instances of the base Panel class with model-specific subclasses
  • Add missing PluginContentPanel inclusions
  • Cleanly handle exceptions that arise when rendering plugin content embedded in core views
  • Update the plugins UI documentation
  • Complete object attribute tests
*Originally created by @jeremystretch on 4/2/2026* ### Closes: #20924 The goal of this PR is to ready the various UI components initially implemented in NetBox v4.5 for use by plugins in NetBox v4.6 by ensuring they are robust and reasonably complete. Although this PR is fairly broad, all changes herein are driven by this common goal. - Enable iterating directly against layouts/rows/columns to access child objects - Support optional column grid width assignment - Introduce the `should_render()` method on Panel to simplify conditional rendering - Fix potential issues with resolving models before the application has fully initialized - Standardize the `get_config()` and `render()` signatures for Panel subclasses - Replace bare instances of the base Panel class with model-specific subclasses - Add missing PluginContentPanel inclusions - Cleanly handle exceptions that arise when rendering plugin content embedded in core views - Update the plugins UI documentation - Complete object attribute tests
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#16