fix(core): tui summary should not show canceled during run-one because tasks are skipped (#31014)

This commit is contained in:
Craigory Coppola 2025-05-02 16:17:53 -04:00 committed by GitHub
parent 6e1f304898
commit 0a4f682ef7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -167,7 +167,7 @@ export function getTuiTerminalSummaryLifeCycle({
);
}
lines = [output.colors.green(lines.join(EOL))];
} else if (totalCompletedTasks + stoppedTasks.size === totalTasks) {
} else if (inProgressTasks.size === 0) {
let text = `Ran target ${output.bold(
targets[0]
)} for project ${output.bold(initiatingProject)}`;
@ -190,7 +190,7 @@ export function getTuiTerminalSummaryLifeCycle({
const viewLogs = viewLogsFooterRows(totalFailedTasks);
lines = [
lines.push(
output.colors.red(
[
output.applyNxPrefix(
@ -209,11 +209,10 @@ export function getTuiTerminalSummaryLifeCycle({
)}`,
...viewLogs,
].join(EOL)
),
];
)
);
} else {
lines = [
...output.getVerticalSeparatorLines('red'),
lines.push(
output.applyNxPrefix(
'red',
output.colors.red(
@ -221,8 +220,8 @@ export function getTuiTerminalSummaryLifeCycle({
targets[0]
)} for project ${output.bold(initiatingProject)}`
) + output.dim(` (${timeTakenText})`)
),
];
)
);
}
// adds some vertical space after the summary to avoid bunching against terminal