[PR #11823] [MERGED] Closes #9416: Dashboard widgets #13850

Closed
opened 2025-12-29 23:21:09 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/11823
Author: @jeremystretch
Created: 2/24/2023
Status: Merged
Merged: 2/24/2023
Merged by: @jeremystretch

Base: featureHead: 9416-dashboard-widgets


📝 Commits (10+)

  • b25c349 Replace masonry with gridstack
  • fc36297 Initial work on dashboard widgets
  • 029d22e Implement function to save dashboard layout
  • 0bfd986 Define a default dashboard
  • f876e9e Clean up widgets
  • 7e1f4ef Implement widget configuration views & forms
  • 289836f Permit merging dict value with existing dict in user config
  • f521268 Add widget deletion view
  • b6e1744 Enable HTMX for widget configuration
  • 98732f0 Implement view to add dashboard widgets

📊 Changes

40 files changed (+788 additions, -310 deletions)

View changed files

📝 netbox/extras/api/serializers.py (+11 -0)
📝 netbox/extras/api/urls.py (+6 -1)
📝 netbox/extras/api/views.py (+13 -0)
📝 netbox/extras/apps.py (+1 -1)
📝 netbox/extras/constants.py (+45 -0)
netbox/extras/dashboard/__init__.py (+2 -0)
netbox/extras/dashboard/forms.py (+38 -0)
netbox/extras/dashboard/utils.py (+76 -0)
netbox/extras/dashboard/widgets.py (+119 -0)
netbox/extras/migrations/0087_dashboard.py (+25 -0)
📝 netbox/extras/models/__init__.py (+2 -0)
netbox/extras/models/dashboard.py (+70 -0)
netbox/extras/templatetags/dashboard.py (+11 -0)
📝 netbox/extras/urls.py (+5 -0)
📝 netbox/extras/views.py (+129 -1)
📝 netbox/netbox/registry.py (+1 -0)
📝 netbox/netbox/views/misc.py (+4 -87)
📝 netbox/project-static/dist/config.js (+2 -19)
📝 netbox/project-static/dist/config.js.map (+2 -2)
📝 netbox/project-static/dist/lldp.js (+2 -19)

...and 20 more files

📄 Description

Closes: #9416

  • Replace Masonry with GridStack.js
  • Introduce Dashboard model under extras to store dashboard layout & configuration
  • Create some initial DashboardWidget classes
  • Add UI views to add, configured, and delete widget instances
  • Define a default dashboard configuration

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/11823 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 2/24/2023 **Status:** ✅ Merged **Merged:** 2/24/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `9416-dashboard-widgets` --- ### 📝 Commits (10+) - [`b25c349`](https://github.com/netbox-community/netbox/commit/b25c349a278720c3dad880748997e8bd4d02083b) Replace masonry with gridstack - [`fc36297`](https://github.com/netbox-community/netbox/commit/fc362979ad8626784e1d7bd6e5f7896ab55c6b07) Initial work on dashboard widgets - [`029d22e`](https://github.com/netbox-community/netbox/commit/029d22e4950ee19252d9512d422bd0f7fb62c6ba) Implement function to save dashboard layout - [`0bfd986`](https://github.com/netbox-community/netbox/commit/0bfd986f08520ea1f8496761df4d5917e8a26bd8) Define a default dashboard - [`f876e9e`](https://github.com/netbox-community/netbox/commit/f876e9ed043ef0733e9f22d554f33d0f8689ded7) Clean up widgets - [`7e1f4ef`](https://github.com/netbox-community/netbox/commit/7e1f4ef07e84df4447814af2b5114034b0863b73) Implement widget configuration views & forms - [`289836f`](https://github.com/netbox-community/netbox/commit/289836f9f6273ae0fbee8818a279c9e7d5d1ff7d) Permit merging dict value with existing dict in user config - [`f521268`](https://github.com/netbox-community/netbox/commit/f521268a28f9171735946a0cf5e3e1b2e8e7dd2c) Add widget deletion view - [`b6e1744`](https://github.com/netbox-community/netbox/commit/b6e17448ff4553dfe7b2ecd0c9e08ab50d23f9c6) Enable HTMX for widget configuration - [`98732f0`](https://github.com/netbox-community/netbox/commit/98732f05aa272f5fdf36a29110ae354bb173922d) Implement view to add dashboard widgets ### 📊 Changes **40 files changed** (+788 additions, -310 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/api/serializers.py` (+11 -0) 📝 `netbox/extras/api/urls.py` (+6 -1) 📝 `netbox/extras/api/views.py` (+13 -0) 📝 `netbox/extras/apps.py` (+1 -1) 📝 `netbox/extras/constants.py` (+45 -0) ➕ `netbox/extras/dashboard/__init__.py` (+2 -0) ➕ `netbox/extras/dashboard/forms.py` (+38 -0) ➕ `netbox/extras/dashboard/utils.py` (+76 -0) ➕ `netbox/extras/dashboard/widgets.py` (+119 -0) ➕ `netbox/extras/migrations/0087_dashboard.py` (+25 -0) 📝 `netbox/extras/models/__init__.py` (+2 -0) ➕ `netbox/extras/models/dashboard.py` (+70 -0) ➕ `netbox/extras/templatetags/dashboard.py` (+11 -0) 📝 `netbox/extras/urls.py` (+5 -0) 📝 `netbox/extras/views.py` (+129 -1) 📝 `netbox/netbox/registry.py` (+1 -0) 📝 `netbox/netbox/views/misc.py` (+4 -87) 📝 `netbox/project-static/dist/config.js` (+2 -19) 📝 `netbox/project-static/dist/config.js.map` (+2 -2) 📝 `netbox/project-static/dist/lldp.js` (+2 -19) _...and 20 more files_ </details> ### 📄 Description ### Closes: #9416 - Replace Masonry with GridStack.js - Introduce Dashboard model under `extras` to store dashboard layout & configuration - Create some initial DashboardWidget classes - Add UI views to add, configured, and delete widget instances - Define a default dashboard configuration --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:21:09 +01:00
adam closed this issue 2025-12-29 23:21:09 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13850