UNPKG

@orchestrator-ui/orchestrator-ui-components

Version:

Library of UI Components used to display the workflow orchestrator frontend

52 lines (49 loc) 1.83 kB
import { WfoFilterTab } from '@/components'; import { ProcessListItem } from '@/components'; export enum WfoWorkflowsListTabType { ACTIVE = 'ACTIVE', COMPLETED = 'COMPLETED', } export const defaultWorkflowsListTabs: WfoFilterTab< WfoWorkflowsListTabType, ProcessListItem >[] = [ { id: WfoWorkflowsListTabType.ACTIVE, translationKey: 'active', alwaysOnFilters: [ { // Todo: isTask is not a key of Process // However, backend still supports it. Field should not be a keyof ProcessListItem (or process) // https://github.com/workfloworchestrator/orchestrator-ui/issues/290 // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore waiting for fix in backend field: 'isTask', value: 'false', }, { field: 'lastStatus', value: 'created-running-suspended-waiting-failed-resumed-inconsistent_data-api_unavailable-awaiting_callback', }, ], }, { id: WfoWorkflowsListTabType.COMPLETED, translationKey: 'completed', alwaysOnFilters: [ { // Todo: isTask is not a key of Process // However, backend still supports it. Field should not be a keyof ProcessListItem (or process) // https://github.com/workfloworchestrator/orchestrator-ui/issues/290 // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore waiting for fix in backend field: 'isTask', value: 'false', }, { field: 'lastStatus', value: 'completed-aborted', }, ], }, ];