[PR #19294] [MERGED] Closes #17151: Use ColoredLabelColumn for Type Column in Circuits Table #15600

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/19294
Author: @pheus
Created: 4/23/2025
Status: Merged
Merged: 4/24/2025
Merged by: @jeremystretch

Base: mainHead: 17151-add-color-background-for-circuits-type


📝 Commits (1)

  • 7e52552 feat(circuits): Use ColoredLabelColumn for type column

📊 Changes

1 file changed (+1 additions, -2 deletions)

View changed files

📝 netbox/circuits/tables/circuits.py (+1 -2)

📄 Description

Fixes: #17151 add color backgrounds for circuit type

This PR updates the type column in the Circuits table to use ColoredLabelColumn, which applies the configured color for each Circuit Type as a background. This improves visual clarity and consistency with how Rack Roles are displayed.

As part of this change, the now-redundant linkify=True attribute has been removed from the column definition, since ColoredLabelColumn already provides clickable labels by default.


🔄 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/19294 **Author:** [@pheus](https://github.com/pheus) **Created:** 4/23/2025 **Status:** ✅ Merged **Merged:** 4/24/2025 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `main` ← **Head:** `17151-add-color-background-for-circuits-type` --- ### 📝 Commits (1) - [`7e52552`](https://github.com/netbox-community/netbox/commit/7e525529d687222fd139b32699b4365b4b69d3b4) feat(circuits): Use ColoredLabelColumn for type column ### 📊 Changes **1 file changed** (+1 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/circuits/tables/circuits.py` (+1 -2) </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: #17151 add color backgrounds for circuit type This PR updates the `type` column in the Circuits table to use `ColoredLabelColumn`, which applies the configured color for each Circuit Type as a background. This improves visual clarity and consistency with how Rack Roles are displayed. As part of this change, the now-redundant `linkify=True` attribute has been removed from the column definition, since `ColoredLabelColumn` already provides clickable labels by default. --- <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:22:56 +01:00
adam closed this issue 2025-12-30 00:22:56 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15600