feat(ui,docs): add auto_update feature flag integration, UI card, and documentation
CI Test Suite / Run Component Tests & Pipeline Verification (push) Successful in 2m17s
Build and Push LOGAR Runner / Build & Push Runner Image (push) Successful in 7m27s
Release Binaries & Packages / Build & Release Standalone Binaries (Linux & Windows Cross-Compilation) (push) Failing after 5m16s

This commit is contained in:
2026-10-03 23:11:17 +02:00
parent 2d7357394f
commit ea2ff1c4a9
2 changed files with 53 additions and 6 deletions
+20 -1
View File
@@ -177,6 +177,7 @@ class WebUIRenderer:
summary = LicenseManager.get_license_summary(server_state=state, db_path=db_path)
is_db_unlocked = LicenseManager.is_feature_licensed("enterprise_db", db_path=db_path, server_state=state)
is_auto_update_unlocked = LicenseManager.is_feature_licensed("auto_update", db_path=db_path, server_state=state)
queue_stats = ingest_queue.get_stats() if ingest_queue else {
"queue_size": 0, "total_ingested": 0, "total_flushed": 0, "dropped_count": 0,
"last_flush_time": "Never", "avg_flush_latency_ms": 0.0, "flush_count": 0,
@@ -400,6 +401,21 @@ class WebUIRenderer:
</div>
</div>
""")
elif feat == "auto_update":
feature_cards.append("""
<div style="background: #0f172a; padding: 14px 18px; border-radius: 8px; border: 1px solid rgba(16, 185, 129, 0.35); display: flex; align-items: flex-start; gap: 14px;">
<div style="font-size: 22px; line-height: 1;">🔄</div>
<div>
<div style="display: flex; align-items: center; gap: 8px; margin-bottom: 3px;">
<strong style="color: #34d399; font-size: 14px;">auto_update</strong>
<span class="badge badge-active" style="font-size: 10px;">AUTHORIZED</span>
</div>
<div style="font-size: 12px; color: var(--text-muted); line-height: 1.4;">
<strong>Fleet Auto-Update &amp; Package Distribution:</strong> Unlocks automated background client binary synchronization, version checks, and fleet-wide package orchestration.
</div>
</div>
</div>
""")
else:
esc_feat = html.escape(str(feat))
feat_title = html.escape(str(feat).replace("_", " ").title())
@@ -650,7 +666,10 @@ class WebUIRenderer:
<div class="card-title" style="font-size: 15px;">📦 Client Package Distribution Repository</div>
<div class="subtitle" style="margin-top: 4px;">Hosted binaries for edge forwarders to automatically download and hot-upgrade</div>
</div>
<span class="badge badge-active">Target: v{hosted_client_ver}</span>
<div style="display: flex; align-items: center; gap: 8px;">
{('<span class="badge badge-active" style="font-size: 11px;">🔄 FLEET AUTO-UPDATE LICENSED</span>' if is_auto_update_unlocked else '<span class="badge" style="background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); font-size: 11px;">STANDARD DISTRIBUTION</span>')}
<span class="badge badge-active">Target: v{hosted_client_ver}</span>
</div>
</div>
<div style="overflow-x: auto; margin-bottom: 24px;">
<table>