Add gauge lab + maintenance asset references with enable/disable toggles

Dedicated assets.gaugelabreference and assets.maintenancereference columns
(distinct from assetnumber), surfaced on equipment. Add global per-identifier
enable/disable settings (gauge/maintenance/FQDN) read via a shared composable
and toggled in System Settings.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
cproudlock
2026-06-26 08:35:03 -04:00
parent f1b3b65532
commit 4626280dc4
5 changed files with 172 additions and 1 deletions

View File

@@ -134,6 +134,28 @@ def create_setting():
def seed_default_settings():
"""Seed default settings if they don't exist."""
defaults = [
# Asset identifier feature toggles (global, per identifier)
{
'key': 'identifier_gaugelabreference_enabled',
'value': 'true',
'valuetype': 'boolean',
'category': 'identifiers',
'description': 'Show the Gauge Lab Reference identifier on assets'
},
{
'key': 'identifier_maintenancereference_enabled',
'value': 'true',
'valuetype': 'boolean',
'category': 'identifiers',
'description': 'Show the Maintenance Reference identifier on assets'
},
{
'key': 'identifier_fqdn_enabled',
'value': 'true',
'valuetype': 'boolean',
'category': 'identifiers',
'description': 'Show the FQDN / hostname identifier on assets'
},
# Zabbix integration
{
'key': 'zabbix_enabled',