diff --git a/docs/deployment/configuration.mdx b/docs/deployment/configuration.mdx index fa884cb0b6..df507130dd 100644 --- a/docs/deployment/configuration.mdx +++ b/docs/deployment/configuration.mdx @@ -333,6 +333,7 @@ These endpoints are rate-limited according to the `KEEP_LIMIT_CONCURRENCY` setti | **HIDE_NAVBAR_EXTRACTION** | Hides the extraction page from the navigation bar in the UI | No | None | "true" | | **HIDE_NAVBAR_MAINTENANCE_WINDOW** | Hides the maintenance window page from the navigation bar in the UI | No | None | "true" | | **HIDE_NAVBAR_AI_PLUGINS** | Hides the AI plugins page from the navigation bar in the UI | No | None | "true" | +| **KEEP_WF_LIST_EXTENDED_INFO** | Use a list instead a button to show the complete execution list | No | "true" | "true", "false" | ### Authentication diff --git a/keep-ui/features/alerts/alert-menu/ui/alert-menu.tsx b/keep-ui/features/alerts/alert-menu/ui/alert-menu.tsx index 6bffe3f249..32b6479b5a 100644 --- a/keep-ui/features/alerts/alert-menu/ui/alert-menu.tsx +++ b/keep-ui/features/alerts/alert-menu/ui/alert-menu.tsx @@ -46,6 +46,7 @@ import { TooltipPosition, } from "@/components/ui/ImagePreviewTooltip"; import { useExpandedRows } from "@/utils/hooks/useExpandedRows"; +import { useConfig } from "@/utils/hooks/useConfig"; interface Props { alert: AlertDto; @@ -84,7 +85,10 @@ export function AlertMenu({ }: Props) { const api = useApi(); const router = useRouter(); - const { data: executions } = useWorkflowExecutions(); + const { data: appConfig } = useConfig(); + const { data: executions } = appConfig?.KEEP_WF_LIST_EXTENDED_INFO === true + ? useWorkflowExecutions() + : { data: [] }; const [rowStyle] = useAlertRowStyle(); const [viewedAlerts, setViewedAlerts] = useLocalStorage( `viewed-alerts-${presetName}`, diff --git a/keep-ui/shared/lib/server/getConfig.ts b/keep-ui/shared/lib/server/getConfig.ts index c915c08d88..cbe4b54e37 100644 --- a/keep-ui/shared/lib/server/getConfig.ts +++ b/keep-ui/shared/lib/server/getConfig.ts @@ -84,5 +84,7 @@ export function getConfig(): InternalConfig { // Ticketing integration KEEP_TICKETING_ENABLED: process.env.KEEP_TICKETING_ENABLED?.toLowerCase() === "true", + KEEP_WF_LIST_EXTENDED_INFO: + process.env.KEEP_WF_LIST_EXTENDED_INFO?.toLowerCase() === "true", }; } diff --git a/keep-ui/types/internal-config.ts b/keep-ui/types/internal-config.ts index cc4df331c6..81e81dfb3f 100644 --- a/keep-ui/types/internal-config.ts +++ b/keep-ui/types/internal-config.ts @@ -39,4 +39,5 @@ export interface InternalConfig { HIDE_NAVBAR_AI_PLUGINS: boolean; // Add ticketing options to the incident view, defaults to false KEEP_TICKETING_ENABLED: boolean; + KEEP_WF_LIST_EXTENDED_INFO: boolean; }