From fc66b57e7886b1af3ecef61d9c684d5b64beb239 Mon Sep 17 00:00:00 2001 From: PTah Date: Mon, 22 Jun 2026 10:31:38 +1000 Subject: [PATCH] fix(frontend): match sessions panel height to agent config until loaded (0.20.30) Co-authored-by: Cursor --- backend/app/version.py | 2 +- backend/tests/test_health.py | 4 +- frontend/src/components/HostSessionsPanel.vue | 115 ++++++++++++++++-- frontend/src/version.ts | 2 +- frontend/src/views/HostDetailView.vue | 11 +- 5 files changed, 110 insertions(+), 24 deletions(-) diff --git a/backend/app/version.py b/backend/app/version.py index c1ff5de..f743d38 100644 --- a/backend/app/version.py +++ b/backend/app/version.py @@ -1,5 +1,5 @@ """Единый источник версии SAC (API, health, логи, OpenAPI).""" APP_NAME = "Security Alert Center" -APP_VERSION = "0.20.29" +APP_VERSION = "0.20.30" APP_VERSION_LABEL = f"{APP_NAME} v.{APP_VERSION}" diff --git a/backend/tests/test_health.py b/backend/tests/test_health.py index 03800f8..3191769 100644 --- a/backend/tests/test_health.py +++ b/backend/tests/test_health.py @@ -4,6 +4,6 @@ from app.version import APP_NAME, APP_VERSION, APP_VERSION_LABEL def test_version_constants(): - assert APP_VERSION == "0.20.29" + assert APP_VERSION == "0.20.30" assert APP_NAME == "Security Alert Center" - assert APP_VERSION_LABEL == "Security Alert Center v.0.20.29" + assert APP_VERSION_LABEL == "Security Alert Center v.0.20.30" diff --git a/frontend/src/components/HostSessionsPanel.vue b/frontend/src/components/HostSessionsPanel.vue index 1f08663..87235b8 100644 --- a/frontend/src/components/HostSessionsPanel.vue +++ b/frontend/src/components/HostSessionsPanel.vue @@ -1,5 +1,10 @@ - + diff --git a/frontend/src/version.ts b/frontend/src/version.ts index d1089f1..70f9fb9 100644 --- a/frontend/src/version.ts +++ b/frontend/src/version.ts @@ -1,4 +1,4 @@ /** Fallback до загрузки /health; при релизе держите в sync с backend/app/version.py */ export const APP_NAME = "Security Alert Center"; -export const APP_VERSION = "0.20.29"; +export const APP_VERSION = "0.20.30"; export const APP_VERSION_LABEL = `${APP_NAME} v.${APP_VERSION}`; diff --git a/frontend/src/views/HostDetailView.vue b/frontend/src/views/HostDetailView.vue index e2c3a5a..cec78b6 100644 --- a/frontend/src/views/HostDetailView.vue +++ b/frontend/src/views/HostDetailView.vue @@ -144,7 +144,7 @@
-
+

Desired config (poll агента)

Агент заберёт настройки при следующем poll. Revision: {{ host.agent_config_revision ?? 0 }}

@@ -167,7 +167,7 @@
- +
@@ -305,6 +305,7 @@ const HOST_ACTION_FEEDBACK_MS = 30_000; const props = defineProps<{ id: string }>(); const route = useRoute(); +const agentConfigSectionRef = ref(null); const host = ref(null); const events = ref(null); const loading = ref(false); @@ -860,12 +861,6 @@ watch( align-items: flex-start; } -.host-config-sessions-row > .host-agent-config, -.host-config-sessions-row > .host-sessions { - flex: 1 1 22rem; - min-width: min(100%, 22rem); -} - .agent-config-form { display: flex; flex-direction: column;