Remove repository mode, distribution source, storage engine, and license status entries from version info modal
CI Test Suite / Run Component Tests & Pipeline Verification (push) Successful in 2m8s

This commit is contained in:
2026-10-11 11:10:44 +02:00
parent 52519e258e
commit 62d4993e74
2 changed files with 5 additions and 21 deletions
+1 -17
View File
@@ -2082,14 +2082,6 @@ class WebUIRenderer:
</div> </div>
<div style="background: #0b0f19; border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin-bottom: 18px; font-size: 12px; line-height: 1.8;"> <div style="background: #0b0f19; border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin-bottom: 18px; font-size: 12px; line-height: 1.8;">
<div style="display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 6px; margin-bottom: 6px;">
<span style="color: var(--text-muted);">Repository Update Mode:</span>
<strong style="color: #fff;">{update_mode.upper()}</strong>
</div>
<div style="display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 6px; margin-bottom: 6px;">
<span style="color: var(--text-muted);">Distribution Source:</span>
<span style="color: #38bdf8; font-family: 'JetBrains Mono', monospace; font-size: 11px; word-break: break-all;">{html.escape(str(upstream_url))}</span>
</div>
<div style="display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 6px; margin-bottom: 6px;"> <div style="display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 6px; margin-bottom: 6px;">
<span style="color: var(--text-muted);">Python Environment:</span> <span style="color: var(--text-muted);">Python Environment:</span>
<span style="color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 11px;">Python {sys.version.split()[0]} ({platform.architecture()[0]})</span> <span style="color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 11px;">Python {sys.version.split()[0]} ({platform.architecture()[0]})</span>
@@ -2098,18 +2090,10 @@ class WebUIRenderer:
<span style="color: var(--text-muted);">Host Platform &amp; OS:</span> <span style="color: var(--text-muted);">Host Platform &amp; OS:</span>
<span style="color: #fff;">{html.escape(platform.platform())}</span> <span style="color: #fff;">{html.escape(platform.platform())}</span>
</div> </div>
<div style="display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 6px; margin-bottom: 6px;"> <div style="display: flex; justify-content: space-between;">
<span style="color: var(--text-muted);">Cryptographic Transport:</span> <span style="color: var(--text-muted);">Cryptographic Transport:</span>
<span style="color: #34d399; font-weight: 600;">TLS 1.3 mTLS Encrypted</span> <span style="color: #34d399; font-weight: 600;">TLS 1.3 mTLS Encrypted</span>
</div> </div>
<div style="display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 6px; margin-bottom: 6px;">
<span style="color: var(--text-muted);">Storage Backend Engine:</span>
<span style="color: #fff;">{config.get('storage_engine', 'sqlite').upper()} ({config.get('db_path', 'logar_state.db')})</span>
</div>
<div style="display: flex; justify-content: space-between;">
<span style="color: var(--text-muted);">License Status &amp; Seats:</span>
<span style="color: #c084fc; font-weight: 600;">{summary['status']} ({summary['active_seats']}/{summary['max_seats']} Seats)</span>
</div>
</div> </div>
<div style="display: flex; justify-content: space-between; align-items: center; gap: 10px;"> <div style="display: flex; justify-content: space-between; align-items: center; gap: 10px;">
@@ -273,13 +273,13 @@ class TestServerRolesAndBestPractices(unittest.TestCase):
self.assertIn(f"v{LOGAR_VERSION}", res_webui.text) self.assertIn(f"v{LOGAR_VERSION}", res_webui.text)
self.assertIn("Server Hub Release", res_webui.text) self.assertIn("Server Hub Release", res_webui.text)
self.assertIn("Hosted Client Binaries", res_webui.text) self.assertIn("Hosted Client Binaries", res_webui.text)
self.assertIn("Repository Update Mode:", res_webui.text)
self.assertIn("Distribution Source:", res_webui.text)
self.assertIn("Python Environment:", res_webui.text) self.assertIn("Python Environment:", res_webui.text)
self.assertIn("Host Platform &amp; OS:", res_webui.text) self.assertIn("Host Platform &amp; OS:", res_webui.text)
self.assertIn("TLS 1.3 mTLS Encrypted", res_webui.text) self.assertIn("TLS 1.3 mTLS Encrypted", res_webui.text)
self.assertIn("Storage Backend Engine:", res_webui.text) self.assertNotIn("Repository Update Mode:", res_webui.text)
self.assertIn("License Status &amp; Seats:", res_webui.text) self.assertNotIn("Distribution Source:", res_webui.text)
self.assertNotIn("Storage Backend Engine:", res_webui.text)
self.assertNotIn("License Status &amp; Seats:", res_webui.text)
# Check /client-info redirects to /webui#server-roles and shows the version info modal # Check /client-info redirects to /webui#server-roles and shows the version info modal
res_client_info = auth_client.get("/client-info", follow_redirects=True) res_client_info = auth_client.get("/client-info", follow_redirects=True)