From 3bd025f6cc5fa0037756c936fb65b0fbba66b066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20S=C3=A1nchez?= Date: Thu, 13 Aug 2026 09:09:56 -0600 Subject: [PATCH] fix[frontend](soar): added horizontal scroll to soar table and fix bulk edition payload --- .../features/soar/components/FlowEditor.tsx | 4 +- .../src/features/soar/pages/FlowsPage.tsx | 66 ++++++++++--------- 2 files changed, 36 insertions(+), 34 deletions(-) diff --git a/frontend/src/features/soar/components/FlowEditor.tsx b/frontend/src/features/soar/components/FlowEditor.tsx index 62ecfd7a7..1db6842df 100644 --- a/frontend/src/features/soar/components/FlowEditor.tsx +++ b/frontend/src/features/soar/components/FlowEditor.tsx @@ -167,7 +167,7 @@ export function FlowEditor({ f = { ...r.form, active: form.active } } const input = formToInput(f) - return broadcast(BULK_PATHS.soarRules.create, selector, input) + return broadcast(BULK_PATHS.soarRules.create, selector, { rule: input }) } const broadcastUpdate = async (selector: { tenantIds: string[]; allTenants: boolean }) => { @@ -179,7 +179,7 @@ export function FlowEditor({ f = { ...r.form, active: form.active } } const input = formToInput(f) - return broadcast(BULK_PATHS.soarRules.update, selector, { relPath: flow.relPath, ...input }) + return broadcast(BULK_PATHS.soarRules.update, selector, { relPath: flow.relPath, rule: input }) } const broadcastDelete = async (selector: { tenantIds: string[]; allTenants: boolean }) => { diff --git a/frontend/src/features/soar/pages/FlowsPage.tsx b/frontend/src/features/soar/pages/FlowsPage.tsx index 6236b855d..69325f0c9 100644 --- a/frontend/src/features/soar/pages/FlowsPage.tsx +++ b/frontend/src/features/soar/pages/FlowsPage.tsx @@ -188,38 +188,40 @@ export function FlowsPage() {
-
-
{t('soar.cols.flow')}
-
{t('soar.cols.platform')}
-
{t('soar.cols.conditions')}
-
{t('soar.cols.commands')}
-
{t('soar.cols.lastRun')}
-
{t('soar.cols.active')}
-
-
-
- {loading && items.length === 0 ? ( -
{t('soar.loading')}
- ) : error ? ( -
- {t('soar.loadError')} - -
- ) : items.length === 0 ? ( -
{t('soar.empty')}
- ) : ( - <> - {items.map((f) => ( - setEditing({ flow: f, creating: false })} onToggle={() => toggleActive(f)} t={t} /> - ))} - setPage((p) => p + 1)} - hasMore={items.length < total} - loading={loading} - endLabel={t('common.allLoaded', { count: total })} - /> - - )} +
+
+
+
{t('soar.cols.flow')}
+
{t('soar.cols.platform')}
+
{t('soar.cols.conditions')}
+
{t('soar.cols.commands')}
+
{t('soar.cols.lastRun')}
+
{t('soar.cols.active')}
+
+
+ {loading && items.length === 0 ? ( +
{t('soar.loading')}
+ ) : error ? ( +
+ {t('soar.loadError')} + +
+ ) : items.length === 0 ? ( +
{t('soar.empty')}
+ ) : ( + <> + {items.map((f) => ( + setEditing({ flow: f, creating: false })} onToggle={() => toggleActive(f)} t={t} /> + ))} + setPage((p) => p + 1)} + hasMore={items.length < total} + loading={loading} + endLabel={t('common.allLoaded', { count: total })} + /> + + )} +