feat(editor): Show new executions as Queued in the UI, until they actually start (#10204)
This commit is contained in:
committed by
GitHub
parent
5a51b1db5e
commit
44728d7242
@@ -9,7 +9,7 @@ describe('useExecutionHelpers()', () => {
|
||||
['waiting', 'waiting', i18n.baseText('executionsList.waiting')],
|
||||
['canceled', 'unknown', i18n.baseText('executionsList.canceled')],
|
||||
['running', 'running', i18n.baseText('executionsList.running')],
|
||||
['new', 'running', i18n.baseText('executionsList.running')],
|
||||
['new', 'new', i18n.baseText('executionsList.new')],
|
||||
['success', 'success', i18n.baseText('executionsList.succeeded')],
|
||||
['error', 'error', i18n.baseText('executionsList.error')],
|
||||
['crashed', 'error', i18n.baseText('executionsList.error')],
|
||||
|
||||
@@ -7,6 +7,7 @@ export interface IExecutionUIData {
|
||||
label: string;
|
||||
startTime: string;
|
||||
runningTime: string;
|
||||
showTimestamp: boolean;
|
||||
}
|
||||
|
||||
export function useExecutionHelpers() {
|
||||
@@ -18,14 +19,20 @@ export function useExecutionHelpers() {
|
||||
startTime: formatDate(execution.startedAt),
|
||||
label: 'Status unknown',
|
||||
runningTime: '',
|
||||
showTimestamp: true,
|
||||
};
|
||||
|
||||
if (execution.status === 'waiting') {
|
||||
if (execution.status === 'new') {
|
||||
status.name = 'new';
|
||||
status.label = i18n.baseText('executionsList.new');
|
||||
status.showTimestamp = false;
|
||||
} else if (execution.status === 'waiting') {
|
||||
status.name = 'waiting';
|
||||
status.label = i18n.baseText('executionsList.waiting');
|
||||
status.showTimestamp = false;
|
||||
} else if (execution.status === 'canceled') {
|
||||
status.label = i18n.baseText('executionsList.canceled');
|
||||
} else if (execution.status === 'running' || execution.status === 'new') {
|
||||
} else if (execution.status === 'running') {
|
||||
status.name = 'running';
|
||||
status.label = i18n.baseText('executionsList.running');
|
||||
} else if (execution.status === 'success') {
|
||||
|
||||
Reference in New Issue
Block a user