Plugin Version
v0.6.0
Proposed functionality
Add a color field type to the Custom Objects field-type enum (cot_schema_v1.json, field_types.py), backed by NetBox's existing ColorField (from utilities.fields), reusing NetBox's built-in color-picker widget and swatch rendering, and NetBox's standard ColorChoices set.
Use case
NetBox plugins commonly use ColorField for labeling/categorization — for example netbox-public-clouds' CloudPlatform.color and CloudVMType.color (ColorField(default=ColorChoices.COLOR_GREY)). Today, modeling this in Custom Objects requires either:
- a
text field with a hex-format regex, which loses the swatch/color-picker UI entirely, or
- a
select field bound to a custom choice set populated with NetBox's ColorChoices values, which gives a colored badge on detail views but not a free-form color picker.
A first-class color field type would let Custom Objects fully replace this common plugin pattern rather than approximating it. This gap affects 3 of the 9 plugins surveyed.
External dependencies
None — reuses NetBox's existing ColorField and widget.
Plugin Version
v0.6.0
Proposed functionality
Add a
colorfield type to the Custom Objects field-type enum (cot_schema_v1.json,field_types.py), backed by NetBox's existingColorField(fromutilities.fields), reusing NetBox's built-in color-picker widget and swatch rendering, and NetBox's standardColorChoicesset.Use case
NetBox plugins commonly use
ColorFieldfor labeling/categorization — for example netbox-public-clouds'CloudPlatform.colorandCloudVMType.color(ColorField(default=ColorChoices.COLOR_GREY)). Today, modeling this in Custom Objects requires either:textfield with a hex-format regex, which loses the swatch/color-picker UI entirely, orselectfield bound to a custom choice set populated with NetBox'sColorChoicesvalues, which gives a colored badge on detail views but not a free-form color picker.A first-class
colorfield type would let Custom Objects fully replace this common plugin pattern rather than approximating it. This gap affects 3 of the 9 plugins surveyed.External dependencies
None — reuses NetBox's existing
ColorFieldand widget.