[PR #14098] [MERGED] 12216 Add color to circuit-type and add to SVG rendering #14319

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/14098
Author: @arthanson
Created: 10/21/2023
Status: Merged
Merged: 10/24/2023
Merged by: @jeremystretch

Base: featureHead: 12216-circuit-color


📝 Commits (5)

  • 2ebcf3d 12216 add color to model
  • 846accf 12216 add forms, serializers for color
  • 1244aa5 12216 color to detail view, add type to svg
  • 22f9241 12216 add color to svg
  • f6e6e77 12216 review changes

📊 Changes

11 files changed (+65 additions, -10 deletions)

View changed files

📝 netbox/circuits/api/serializers.py (+1 -1)
📝 netbox/circuits/filtersets.py (+1 -1)
📝 netbox/circuits/forms/bulk_edit.py (+7 -3)
📝 netbox/circuits/forms/bulk_import.py (+5 -1)
📝 netbox/circuits/forms/filtersets.py (+10 -1)
📝 netbox/circuits/forms/model_forms.py (+2 -2)
netbox/circuits/migrations/0043_circuittype_color.py (+18 -0)
📝 netbox/circuits/models/circuits.py (+6 -0)
📝 netbox/circuits/tables/circuits.py (+2 -1)
📝 netbox/dcim/svg/cables.py (+3 -0)
📝 netbox/templates/circuits/circuittype.html (+10 -0)

📄 Description

Fixes: #12216

  • Extending the circuit type model to include a color value (identical to how device roles are color-coded);
  • Updating the cable trace view to reflect the circuit type's color and name.
    Monosnap Cable Trace for Circuit Termination 1002840283: Termination Z | NetBox 2023-10-20 15-09-54

🔄 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/14098 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 10/21/2023 **Status:** ✅ Merged **Merged:** 10/24/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `12216-circuit-color` --- ### 📝 Commits (5) - [`2ebcf3d`](https://github.com/netbox-community/netbox/commit/2ebcf3deeb0dc13044528ab5cc24ef39b7a0b6f6) 12216 add color to model - [`846accf`](https://github.com/netbox-community/netbox/commit/846accf37cdaa5c6178f187bb0f4c129773eff71) 12216 add forms, serializers for color - [`1244aa5`](https://github.com/netbox-community/netbox/commit/1244aa56b077a43f1fa260a963bc511b8d050ca5) 12216 color to detail view, add type to svg - [`22f9241`](https://github.com/netbox-community/netbox/commit/22f92417a8580e7af66bc0ad0a465d923cc52b95) 12216 add color to svg - [`f6e6e77`](https://github.com/netbox-community/netbox/commit/f6e6e7778bcb9d6491b4e835c21fdb13331a4d59) 12216 review changes ### 📊 Changes **11 files changed** (+65 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `netbox/circuits/api/serializers.py` (+1 -1) 📝 `netbox/circuits/filtersets.py` (+1 -1) 📝 `netbox/circuits/forms/bulk_edit.py` (+7 -3) 📝 `netbox/circuits/forms/bulk_import.py` (+5 -1) 📝 `netbox/circuits/forms/filtersets.py` (+10 -1) 📝 `netbox/circuits/forms/model_forms.py` (+2 -2) ➕ `netbox/circuits/migrations/0043_circuittype_color.py` (+18 -0) 📝 `netbox/circuits/models/circuits.py` (+6 -0) 📝 `netbox/circuits/tables/circuits.py` (+2 -1) 📝 `netbox/dcim/svg/cables.py` (+3 -0) 📝 `netbox/templates/circuits/circuittype.html` (+10 -0) </details> ### 📄 Description ### Fixes: #12216 * Extending the circuit type model to include a color value (identical to how device roles are color-coded); * Updating the cable trace view to reflect the circuit type's color and name. ![Monosnap Cable Trace for Circuit Termination 1002840283: Termination Z | NetBox 2023-10-20 15-09-54](https://github.com/netbox-community/netbox/assets/99642/99e831a3-49f2-41c3-8c94-e67aef75977a) --- <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:23:48 +01:00
adam closed this issue 2025-12-29 23:23:48 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14319