netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Allow plugins to inject sub-tabs on object detail views

Open jeremystretch opened this issue 3 years ago • 1 comments

NetBox version

v3.2.0

Feature type

New functionality

Proposed functionality

Object detail views typically have several tabs: the primary object details, the object change log, and the journal, for example. Some objects have additional tabs. This proposal (borne from discussion in WG8333) seeks to allow plugins to inject arbitrary additional tabs for particular objects.

The exact implementation is open for discussion, but it seems reasonable to assume that a plugin could register one or more (name, view) tuples to specific NetBox models identified by their app label and model name.

One likely blocker here is that we'll need to come up with a way to programmatically declare sub-tabs under a view, but this would serve the existing changelog & journal views as well.

Use case

Provides a greater degree of integration with core NetBox models and more convenient navigation for the user.

Database changes

No response

External dependencies

No response

jeremystretch avatar Apr 07 '22 20:04 jeremystretch

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide.

github-actions[bot] avatar Jun 07 '22 04:06 github-actions[bot]

Such a good addition to the plugin API!

kkthxbye-code avatar Oct 07 '22 19:10 kkthxbye-code

Not only that, it also allows us to clean up quite a bit of cruft and redundancy internally!

jeremystretch avatar Oct 07 '22 19:10 jeremystretch