Enable pinning objects to a user's home page #5886

Closed
opened 2025-12-29 19:33:52 +01:00 by adam · 7 comments
Owner

Originally created by @jeremystretch on GitHub (Jan 5, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.1.4

Feature type

New functionality

Proposed functionality

Include a "pin to homepage" button on the view for (almost?) every object. When clicked, a new record will be created associating the object with the current user as a "pinned" or "favorite" object. The NetBox home page will be extended to display a list of all such objects for the current user. Objects can be "unpinned" from this list as needed.

This idea was originally proposed by @bogdancordos in #8235.

Use case

This allows a user to compile a list of commonly-viewed objects for near- or long-term use.

It's also somewhat related to #7855, which proposes displaying a history of recently viewed objects.

Database changes

I imagine the introduction of a simple new model within the users app (e.g. UserFavorite) mapping the user object to the "pinned" object via a generic foreign key. We would probably want to track creation date, and possibly assign a numeric weight to aid in reordering objects, depending on how much functionality is needed.

External dependencies

No response

Originally created by @jeremystretch on GitHub (Jan 5, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.1.4 ### Feature type New functionality ### Proposed functionality Include a "pin to homepage" button on the view for (almost?) every object. When clicked, a new record will be created associating the object with the current user as a "pinned" or "favorite" object. The NetBox home page will be extended to display a list of all such objects for the current user. Objects can be "unpinned" from this list as needed. This idea was originally proposed by @bogdancordos in #8235. ### Use case This allows a user to compile a list of commonly-viewed objects for near- or long-term use. It's also somewhat related to #7855, which proposes displaying a history of recently viewed objects. ### Database changes I imagine the introduction of a simple new model within the users app (e.g. `UserFavorite`) mapping the user object to the "pinned" object via a generic foreign key. We would probably want to track creation date, and _possibly_ assign a numeric weight to aid in reordering objects, depending on how much functionality is needed. ### External dependencies _No response_
adam added the status: acceptedtype: feature labels 2025-12-29 19:33:52 +01:00
adam closed this issue 2025-12-29 19:33:52 +01:00
Author
Owner

@hagbarddenstore commented on GitHub (Jan 5, 2022):

It would be really nice if this feature also includes models defined in plugins.

@hagbarddenstore commented on GitHub (Jan 5, 2022): It would be really nice if this feature also includes models defined in plugins.
Author
Owner

@ghost commented on GitHub (Jan 6, 2022):

One small option that would be nice to add to this (although I understand if it doesn't fit the spirit of this): It would be nice to be able to click on a "favorite" on the homepage (or a button on that favorite) and jump directly to the DNS name/IP of that object if there is one. This would make it easy to quickly jump to those items. You would have to assume the protocol, but http/https is probably safe coming from the web.

@ghost commented on GitHub (Jan 6, 2022): One small option that would be nice to add to this (although I understand if it doesn't fit the spirit of this): It would be nice to be able to click on a "favorite" on the homepage (or a button on that favorite) and jump directly to the DNS name/IP of that object if there is one. This would make it easy to quickly jump to those items. You would have to assume the protocol, but http/https is probably safe coming from the web.
Author
Owner

@bogdancordos commented on GitHub (Jan 6, 2022):

One small option that would be nice to add to this (although I understand if it doesn't fit the spirit of this): It would be nice to be able to click on a "favorite" on the homepage (or a button on that favorite) and jump directly to the DNS name/IP of that object if there is one. This would make it easy to quickly jump to those items. You would have to assume the protocol, but http/https is probably safe coming from the web.

I guess you can create a custom link for DCIM > device based on the object name or IP. You can even create a link for each protocol you want to connect to those objects PROT://{{ obj.name }} .

@bogdancordos commented on GitHub (Jan 6, 2022): > One small option that would be nice to add to this (although I understand if it doesn't fit the spirit of this): It would be nice to be able to click on a "favorite" on the homepage (or a button on that favorite) and jump directly to the DNS name/IP of that object if there is one. This would make it easy to quickly jump to those items. You would have to assume the protocol, but http/https is probably safe coming from the web. I guess you can create a custom link for DCIM > device based on the object name or IP. You can even create a link for each protocol you want to connect to those objects PROT://{{ obj.name }} .
Author
Owner

@jeremystretch commented on GitHub (Jan 6, 2022):

You can even create a link for each protocol you want to connect to those objects PROT://{{ obj.name }} .

Just a note: These links will depend on browser support. So for example if you made an ssh:// link, clicking it wouldn't do anything unless you had something installed or configured in your browser to open an SSH client for it.

@jeremystretch commented on GitHub (Jan 6, 2022): > You can even create a link for each protocol you want to connect to those objects PROT://{{ obj.name }} . Just a note: These links will depend on browser support. So for example if you made an `ssh://` link, clicking it wouldn't do anything unless you had something installed or configured in your browser to open an SSH client for it.
Author
Owner

@ghost commented on GitHub (Jan 6, 2022):

One small option that would be nice to add to this (although I understand if it doesn't fit the spirit of this): It would be nice to be able to click on a "favorite" on the homepage (or a button on that favorite) and jump directly to the DNS name/IP of that object if there is one. This would make it easy to quickly jump to those items. You would have to assume the protocol, but http/https is probably safe coming from the web.

I guess you can create a custom link for DCIM > device based on the object name or IP. You can even create a link for each protocol you want to connect to those objects PROT://{{ obj.name }} .

Thats a good idea I haven't thought of that. However I guess we'd want those custom links to someone be surfaced on the favorite on homepage.

@ghost commented on GitHub (Jan 6, 2022): > > One small option that would be nice to add to this (although I understand if it doesn't fit the spirit of this): It would be nice to be able to click on a "favorite" on the homepage (or a button on that favorite) and jump directly to the DNS name/IP of that object if there is one. This would make it easy to quickly jump to those items. You would have to assume the protocol, but http/https is probably safe coming from the web. > > I guess you can create a custom link for DCIM > device based on the object name or IP. You can even create a link for each protocol you want to connect to those objects PROT://{{ obj.name }} . Thats a good idea I haven't thought of that. However I guess we'd want those custom links to someone be surfaced on the favorite on homepage.
Author
Owner

@github-actions[bot] commented on GitHub (Mar 8, 2022):

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] commented on GitHub (Mar 8, 2022): 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](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@jeremystretch commented on GitHub (Jun 2, 2022):

Blocked by #9416

@jeremystretch commented on GitHub (Jun 2, 2022): Blocked by #9416
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5886