diff --git a/.env.example b/.env.example index cfa6bf11..9da8cc0f 100644 --- a/.env.example +++ b/.env.example @@ -12,6 +12,7 @@ ENABLE_SUPPORT_MENU_ITEM=true SUPPORT_MENU_ITEM_URL="https://workfloworchestrator.org/orchestrator-core/reference-docs/tldr/" ENABLE_AO_STACK_STATUS=true AO_STACK_STATUS_URL=https://status.orchestration.surf/status/prd +START_WORKFLOW_FILTERS="active|pre_production|phase_out" # Disable cache - usefull when in development NEXT_PUBLIC_DISABLE_CACHE=false @@ -34,4 +35,3 @@ KEYCLOAK_ADMIN=admin KEYCLOAK_ADMIN_PASSWORD=admin KEYCLOAK_PORT=8085 - diff --git a/configuration/configuration.ts b/configuration/configuration.ts index 2be3e9e9..07766352 100644 --- a/configuration/configuration.ts +++ b/configuration/configuration.ts @@ -1,8 +1,8 @@ import { Environment, + OrchestratorConfig, getEnvironmentVariables, } from '@orchestrator-ui/orchestrator-ui-components'; -import type { OrchestratorConfig } from '@orchestrator-ui/orchestrator-ui-components'; export const getInitialOrchestratorConfig = (): OrchestratorConfig => { const { @@ -21,6 +21,7 @@ export const getInitialOrchestratorConfig = (): OrchestratorConfig => { SUPPORT_MENU_ITEM_URL, ENABLE_AO_STACK_STATUS, AO_STACK_STATUS_URL, + START_WORKFLOW_FILTERS, } = getEnvironmentVariables([ 'USE_THEME_TOGGLE', 'ENVIRONMENT_NAME', @@ -37,10 +38,14 @@ export const getInitialOrchestratorConfig = (): OrchestratorConfig => { 'SUPPORT_MENU_ITEM_URL', 'ENABLE_AO_STACK_STATUS', 'AO_STACK_STATUS_URL', + 'START_WORKFLOW_FILTERS', ]); const graphqlEndpointCore = `${ORCHESTRATOR_GRAPHQL_HOST}${ORCHESTRATOR_GRAPHQL_PATH}`; const orchestratorApiBaseUrl = `${ORCHESTRATOR_API_HOST}${ORCHESTRATOR_API_PATH}`; + const startWorkflowFilters = START_WORKFLOW_FILTERS?.trim() + ? START_WORKFLOW_FILTERS.replaceAll('_', ' ').split('|') + : undefined; return { orchestratorApiBaseUrl, @@ -58,5 +63,6 @@ export const getInitialOrchestratorConfig = (): OrchestratorConfig => { supportMenuItemUrl: SUPPORT_MENU_ITEM_URL, enableAoStackStatus: ENABLE_AO_STACK_STATUS?.toLowerCase() === 'true', aoStackStatusUrl: AO_STACK_STATUS_URL, + startWorkflowFilters, }; }; diff --git a/package-lock.json b/package-lock.json index 66c57607..17621572 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6198,9 +6198,9 @@ } }, "node_modules/@orchestrator-ui/orchestrator-ui-components": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/@orchestrator-ui/orchestrator-ui-components/-/orchestrator-ui-components-7.3.1.tgz", - "integrity": "sha512-k6MIyMTdzrzy/aeRnxNZUH7Z3K6POIE/xeScSRUUyvwFQhoR0MsQDiWtdBuIgUlHHBucO24SVqxt/Chtx7/MnQ==", + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/@orchestrator-ui/orchestrator-ui-components/-/orchestrator-ui-components-7.4.1.tgz", + "integrity": "sha512-BYUnLWepGVEwzK4av3sfTEF0pkaJUYWBnm9gsk9BMN39o+nLCoFe1BxffTduHIn17Pf9xNvLzteYeFPz0/IBVg==", "license": "Apache-2.0", "dependencies": { "@ag-ui/client": "0.0.39",