Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/deployment/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 5 additions & 1 deletion keep-ui/features/alerts/alert-menu/ui/alert-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<ViewedAlert[]>(
`viewed-alerts-${presetName}`,
Expand Down
2 changes: 2 additions & 0 deletions keep-ui/shared/lib/server/getConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
};
}
1 change: 1 addition & 0 deletions keep-ui/types/internal-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Loading