mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(editor): Refactor and unify executions views (no-changelog) (#8538)
This commit is contained in:
@@ -2,8 +2,19 @@ import type { ExecutionStatus, IDataObject } from 'n8n-workflow';
|
||||
import type { ExecutionFilterType, ExecutionsQueryFilter } from '@/Interface';
|
||||
import { isEmpty } from '@/utils/typesUtils';
|
||||
|
||||
export function getDefaultExecutionFilters(): ExecutionFilterType {
|
||||
return {
|
||||
workflowId: 'all',
|
||||
status: 'all',
|
||||
startDate: '',
|
||||
endDate: '',
|
||||
tags: [],
|
||||
metadata: [],
|
||||
};
|
||||
}
|
||||
|
||||
export const executionFilterToQueryFilter = (
|
||||
filter: ExecutionFilterType,
|
||||
filter: Partial<ExecutionFilterType>,
|
||||
): ExecutionsQueryFilter => {
|
||||
const queryFilter: IDataObject = {};
|
||||
if (filter.workflowId !== 'all') {
|
||||
|
||||
Reference in New Issue
Block a user