[PR #19333] [MERGED] Fixes #17405: Added plugin icon to plugin list/detail #15619

Closed
opened 2025-12-30 00:23:02 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/19333
Author: @jnovinger
Created: 4/25/2025
Status: Merged
Merged: 4/30/2025
Merged by: @bctiemann

Base: mainHead: 17405-plugin-icons


📝 Commits (4)

  • afc7b35 Added plugin icon to plugin list/detail
  • 9173a11 Update compiled static files with updated NPM deps
  • 32a4d74 Fix KeyError
  • e2e42ac Add grayscale image filter

📊 Changes

5 files changed (+24 additions, -4 deletions)

View changed files

📝 netbox/core/plugins.py (+2 -0)
📝 netbox/core/tables/plugins.py (+8 -2)
📝 netbox/project-static/dist/netbox.css (+1 -1)
📝 netbox/project-static/styles/custom/_misc.scss (+12 -0)
📝 netbox/templates/core/plugin.html (+1 -1)

📄 Description

Fixes: #17405

  • uses new icon URL value from the plugins catalog API
  • applies minimal styling to keep image display from being to large relative to nearby text
  • assumes icons are black and white and inverts the image via CSS for dark mode

🔄 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/19333 **Author:** [@jnovinger](https://github.com/jnovinger) **Created:** 4/25/2025 **Status:** ✅ Merged **Merged:** 4/30/2025 **Merged by:** [@bctiemann](https://github.com/bctiemann) **Base:** `main` ← **Head:** `17405-plugin-icons` --- ### 📝 Commits (4) - [`afc7b35`](https://github.com/netbox-community/netbox/commit/afc7b35af0af73d33fa4701ba27082bcae22b9d2) Added plugin icon to plugin list/detail - [`9173a11`](https://github.com/netbox-community/netbox/commit/9173a113b7e0913bcdc5218dcf369f6e8e33644e) Update compiled static files with updated NPM deps - [`32a4d74`](https://github.com/netbox-community/netbox/commit/32a4d743ee0c682769fadb4bc7b935815ba572c5) Fix KeyError - [`e2e42ac`](https://github.com/netbox-community/netbox/commit/e2e42acf4292814e9cd03a81ae982b96318177b3) Add grayscale image filter ### 📊 Changes **5 files changed** (+24 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `netbox/core/plugins.py` (+2 -0) 📝 `netbox/core/tables/plugins.py` (+8 -2) 📝 `netbox/project-static/dist/netbox.css` (+1 -1) 📝 `netbox/project-static/styles/custom/_misc.scss` (+12 -0) 📝 `netbox/templates/core/plugin.html` (+1 -1) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #17405 - uses new `icon` URL value from the [plugins catalog API](https://api.netbox.oss.netboxlabs.com/v1/plugins/) - applies minimal styling to keep image display from being to large relative to nearby text - assumes icons are black and white and inverts the image via CSS for dark mode <!-- Please include a summary of the proposed changes below. --> --- <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-30 00:23:02 +01:00
adam closed this issue 2025-12-30 00:23:02 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15619