@shipfox/client-workflows 12.0.0 → 12.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +20 -0
- package/dist/components/job-graph/job-node.d.ts.map +1 -1
- package/dist/components/job-graph/job-node.js +3 -2
- package/dist/components/job-graph/job-node.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/components/job-graph/job-node.test.tsx +12 -0
- package/src/components/job-graph/job-node.tsx +7 -2
- package/tsconfig.build.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipfox/client-workflows",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "12.0.
|
|
4
|
+
"version": "12.0.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/ShipfoxHQ/shipfox.git",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@swc/helpers": "^0.5.17",
|
|
29
29
|
"date-fns": "^4.1.0",
|
|
30
|
-
"@shipfox/api-definitions-dto": "
|
|
31
|
-
"@shipfox/client-api": "6.0.1",
|
|
32
|
-
"@shipfox/client-logs": "11.0.0",
|
|
33
|
-
"@shipfox/client-projects": "12.0.0",
|
|
30
|
+
"@shipfox/api-definitions-dto": "11.0.0",
|
|
34
31
|
"@shipfox/api-workflows-dto": "10.0.0",
|
|
35
|
-
"@shipfox/client-
|
|
32
|
+
"@shipfox/client-api": "6.0.1",
|
|
33
|
+
"@shipfox/client-logs": "12.0.1",
|
|
34
|
+
"@shipfox/client-projects": "12.0.2",
|
|
35
|
+
"@shipfox/client-shell": "12.0.2",
|
|
36
|
+
"@shipfox/client-triggers": "12.0.2",
|
|
36
37
|
"@shipfox/client-ui": "6.0.2",
|
|
37
|
-
"@shipfox/react-ui": "0.3.7"
|
|
38
|
-
"@shipfox/client-shell": "12.0.0"
|
|
38
|
+
"@shipfox/react-ui": "0.3.7"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@tanstack/react-query": "^5.101.0",
|
|
@@ -285,6 +285,18 @@ describe('JobNode status indicator', () => {
|
|
|
285
285
|
|
|
286
286
|
expect(await screen.findByRole('tooltip')).toHaveTextContent('Running');
|
|
287
287
|
});
|
|
288
|
+
|
|
289
|
+
test('shows a running execution as running while the job is still pending', () => {
|
|
290
|
+
const node = makeNode({
|
|
291
|
+
name: 'deploy',
|
|
292
|
+
status: 'pending',
|
|
293
|
+
job_executions: [workflowJobExecutionDto({status: 'running'})],
|
|
294
|
+
});
|
|
295
|
+
|
|
296
|
+
renderNode(node);
|
|
297
|
+
|
|
298
|
+
expect(screen.getByRole('button', {name: 'deploy, Running'})).toBeInTheDocument();
|
|
299
|
+
});
|
|
288
300
|
});
|
|
289
301
|
|
|
290
302
|
describe('JobNode execution count indicator', () => {
|
|
@@ -69,7 +69,12 @@ export function JobNode({
|
|
|
69
69
|
ref?: Ref<HTMLButtonElement>;
|
|
70
70
|
}) {
|
|
71
71
|
useTimeTick();
|
|
72
|
-
const
|
|
72
|
+
const status =
|
|
73
|
+
node.status === 'pending' &&
|
|
74
|
+
node.jobExecutions.some((jobExecution) => jobExecution.status === 'running')
|
|
75
|
+
? 'running'
|
|
76
|
+
: node.status;
|
|
77
|
+
const visual = getWorkflowStatusVisual(status);
|
|
73
78
|
const accessibleLabel = [
|
|
74
79
|
node.displayName,
|
|
75
80
|
visual.label,
|
|
@@ -106,7 +111,7 @@ export function JobNode({
|
|
|
106
111
|
/>
|
|
107
112
|
) : null}
|
|
108
113
|
<div className="flex min-w-0 flex-1 items-center gap-8">
|
|
109
|
-
<WorkflowStatusIcon status={
|
|
114
|
+
<WorkflowStatusIcon status={status} jobMode={node.mode} size={14} />
|
|
110
115
|
<JobLabel label={node.displayName} />
|
|
111
116
|
</div>
|
|
112
117
|
<JobDurationLabel duration={node.displayDuration} />
|