-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflow History - make filters multi-select (#750)
Make filters multi-select, and rename query params accordingly Show filters by default Fix npm audit issue by updating a package
- Loading branch information
1 parent
7412bd2
commit 89c3811
Showing
15 changed files
with
118 additions
and
140 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 7 additions & 26 deletions
33
...flow-history/workflow-history-filters-status/workflow-history-filters-status.constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,10 @@ | ||
import { WORKFLOW_EVENT_STATUS } from '../workflow-history-event-status-badge/workflow-history-event-status-badge.constants'; | ||
import { type WorkflowEventStatus } from '../workflow-history-event-status-badge/workflow-history-event-status-badge.types'; | ||
|
||
export const WORKFLOW_HISTORY_EVENT_FILTERING_STATUS_OPTIONS = [ | ||
{ | ||
label: 'On Going', | ||
id: WORKFLOW_EVENT_STATUS.ONGOING, | ||
}, | ||
|
||
{ | ||
label: 'Waiting', | ||
id: WORKFLOW_EVENT_STATUS.WAITING, | ||
}, | ||
{ | ||
label: 'Canceled', | ||
id: WORKFLOW_EVENT_STATUS.CANCELED, | ||
}, | ||
{ | ||
label: 'Failed', | ||
id: WORKFLOW_EVENT_STATUS.FAILED, | ||
}, | ||
{ | ||
label: 'Completed', | ||
id: WORKFLOW_EVENT_STATUS.COMPLETED, | ||
}, | ||
] as const satisfies { | ||
id: WorkflowEventStatus; | ||
label: string; | ||
}[]; | ||
export const WORKFLOW_HISTORY_EVENT_FILTERING_STATUS_LABELS_MAP = { | ||
[WORKFLOW_EVENT_STATUS.ONGOING]: 'On Going', | ||
[WORKFLOW_EVENT_STATUS.WAITING]: 'Waiting', | ||
[WORKFLOW_EVENT_STATUS.CANCELED]: 'Canceled', | ||
[WORKFLOW_EVENT_STATUS.FAILED]: 'Failed', | ||
[WORKFLOW_EVENT_STATUS.COMPLETED]: 'Completed', | ||
} as const satisfies Record<WorkflowEventStatus, string>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...workflow-history/workflow-history-filters-status/workflow-history-filters-status.types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { type WorkflowEventStatus } from '../workflow-history-event-status-badge/workflow-history-event-status-badge.types'; | ||
|
||
export type WorkflowHistoryFiltersStatusValue = { | ||
historyEventStatus: WorkflowEventStatus | undefined; | ||
historyEventStatuses: WorkflowEventStatus[] | undefined; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 11 additions & 32 deletions
43
...workflow-history/workflow-history-filters-type/workflow-history-filters-type.constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.