Skip to content

Commit 952ae5e

Browse files
authored
Bump dependencies (#3176)
* Bump dependencies * Fix each_key_duplicate error in integration tests
1 parent 44f326b commit 952ae5e

File tree

9 files changed

+364
-414
lines changed

9 files changed

+364
-414
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@
142142
"@storybook/test": "^8.6.11",
143143
"@storybook/test-runner": "^0.22.0",
144144
"@sveltejs/adapter-static": "^3.0.8",
145-
"@sveltejs/adapter-vercel": "^4.0.0",
146-
"@sveltejs/kit": "2.49.5",
147-
"@sveltejs/vite-plugin-svelte": "^5.0.3",
145+
"@sveltejs/adapter-vercel": "^6.3.2",
146+
"@sveltejs/kit": "2.53.0",
147+
"@sveltejs/vite-plugin-svelte": "^6.2.4",
148148
"@temporalio/activity": "1.15.0",
149149
"@temporalio/client": "1.15.0",
150150
"@temporalio/common": "1.15.0",
@@ -219,7 +219,7 @@
219219
"stylelint": "^17.0.0",
220220
"stylelint-config-recommended": "^18.0.0",
221221
"stylelint-config-standard": "^40.0.0",
222-
"svelte": "5.46.4",
222+
"svelte": "5.53.3",
223223
"svelte-check": "^4.1.5",
224224
"svelte-eslint-parser": "^1.4.1",
225225
"svelte-highlight": "^7.8.2",
@@ -232,19 +232,19 @@
232232
"typescript": "^5.2.2",
233233
"typescript-eslint": "^8.54.0",
234234
"unist-util-visit": "^5.0.0",
235-
"vite": "^6.2.4",
235+
"vite": "^6.3.0",
236236
"vitest": "^3.1.1",
237237
"vitest-localstorage-mock": "^0.1.2",
238238
"wait-port": "^1.0.4",
239-
"webpack": "^5.76.0",
239+
"webpack": "^5.105.2",
240240
"yargs": "^17.7.2",
241241
"zx": "^8.8.5"
242242
},
243243
"peerDependencies": {
244-
"@sveltejs/kit": "^2.20.2",
244+
"@sveltejs/kit": "^2.53.0",
245245
"date-fns": "2.29.x",
246246
"date-fns-tz": "1.3.x",
247-
"svelte": "^5.25.5"
247+
"svelte": "^5.53.3"
248248
},
249249
"pnpm": {
250250
"overrides": {

pnpm-lock.yaml

Lines changed: 278 additions & 333 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/components/schedule/schedule-recent-runs.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
{translate('common.view-all-runs')}
4646
</Link>
4747
</div>
48-
{#each sortRecentRuns(recentRuns) as run (run?.startWorkflowResult?.workflowId)}
48+
{#each sortRecentRuns(recentRuns) as run, i (`${run?.startWorkflowResult?.workflowId ?? i}:${run?.startWorkflowResult?.runId ?? i + 1}`)}
4949
{#await fetchWorkflowForSchedule({ namespace, workflowId: decodeURIForSvelte(run.startWorkflowResult.workflowId), runId: run.startWorkflowResult.runId }, fetch) then workflow}
5050
<div class="row">
5151
<div class="w-28">

src/lib/components/workflow/configurable-table-headers-drawer/orderable-list.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<svelte:fragment slot="heading">
3434
{type} <span class="font-normal">(in view)</span>
3535
</svelte:fragment>
36-
{#each columnsInUse as { label }, index (label)}
36+
{#each columnsInUse as { label }, index (`${label}:${index}`)}
3737
<OrderableListItem
3838
{index}
3939
{label}

src/lib/components/workflow/search-attribute-input/index.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
bind:value={_label}
6363
onChange={handleAttributeChange}
6464
>
65-
{#each $customSearchAttributeOptions as { value, label, type } (label)}
65+
{#each $customSearchAttributeOptions as { value, label, type } (value)}
6666
<Option disabled={isDisabled(value)} {value} description={type}
6767
>{label}</Option
6868
>

src/lib/components/workflow/workflow-callback.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<Alert icon="nexus" intent={failed ? 'error' : 'info'} {title}>
4646
<div class="flex flex-col gap-2 pt-2">
4747
{#if links.length}
48-
{#each links as link (link.workflowEvent?.eventRef?.eventId || link.workflowEvent?.requestIdRef.requestId)}
48+
{#each links as link, i (link.workflowEvent?.eventRef?.eventId || link.workflowEvent?.requestIdRef?.requestId || i)}
4949
<EventLink {link} />
5050
<EventLink
5151
{link}

src/lib/components/workflow/workflows-summary-configurable-table.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
<TableHeaderCell {column} />
103103
{/each}
104104
</TableHeaderRow>
105-
{#each visibleItems as workflow (workflow.id + workflow.runId)}
105+
{#each visibleItems as workflow (`${workflow.id}:${workflow.runId}`)}
106106
<TableRow
107107
{workflow}
108108
{viewChildren}
@@ -113,7 +113,7 @@
113113
{/each}
114114
</TableRow>
115115
{#if childrenActive(workflow)}
116-
{#each childrenActive(workflow).children as child}
116+
{#each childrenActive(workflow).children as child (`${child.id}:${child.runId}`)}
117117
<TableRow workflow={child} child>
118118
{#each columns as column}
119119
<TableBodyCell workflow={child} {column} />

src/routes/(app)/namespaces/[namespace]/archival/_archival-table.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<TableHeaderCell {column} />
3838
{/each}
3939
</tr>
40-
{#each visibleItems as workflow (workflow.id + workflow.runId)}
40+
{#each visibleItems as workflow (`${workflow.id}:${workflow.runId}`)}
4141
<tr data-testid="workflows-summary-configurable-table-row" class="dense">
4242
{#each columns as column}
4343
<TableBodyCell {workflow} {column} archival />

tests/test-utilities/mocks/workflows.ts

Lines changed: 71 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -2,87 +2,92 @@ import type { Page } from '@playwright/test';
22

33
export const WORKFLOWS_API = /\/api\/v1\/namespaces\/[^/]+\/workflows/;
44

5-
const mockWorkflow = {
6-
execution: {
7-
workflowId: '002c98_Running',
8-
runId: '54a1a2c3-9322-4f75-88ea-bf5660c251d0',
9-
},
10-
type: {
11-
name: 'ImportantWorkflowType',
12-
},
13-
startTime: '2022-03-23T18:06:01.726484047Z',
14-
closeTime: null,
15-
status: 'Running',
16-
historyLength: '0',
17-
parentNamespaceId: '',
18-
parentExecution: null,
19-
executionTime: '2022-03-23T18:06:01.726484047Z',
20-
memo: {
21-
fields: {},
22-
},
23-
searchAttributes: {
24-
indexedFields: {
25-
BinaryChecksums: {
26-
metadata: {
27-
encoding: 'anNvbi9wbGFpbg==',
28-
type: 'S2V5d29yZA==',
5+
const createMockWorkflow = () => {
6+
const runId = crypto.randomUUID();
7+
return {
8+
execution: {
9+
workflowId: `${runId.slice(0, 6)}_Running`,
10+
runId,
11+
},
12+
type: {
13+
name: 'ImportantWorkflowType',
14+
},
15+
startTime: '2022-03-23T18:06:01.726484047Z',
16+
closeTime: null,
17+
status: 'Running',
18+
historyLength: '0',
19+
parentNamespaceId: '',
20+
parentExecution: null,
21+
executionTime: '2022-03-23T18:06:01.726484047Z',
22+
memo: {
23+
fields: {},
24+
},
25+
searchAttributes: {
26+
indexedFields: {
27+
BinaryChecksums: {
28+
metadata: {
29+
encoding: 'anNvbi9wbGFpbg==',
30+
type: 'S2V5d29yZA==',
31+
},
32+
data: 'WyIzMmUwNDI1OWUzYTFlMTM3ZmE2Njg5M2JiNjE3OTc5YSJd',
2933
},
30-
data: 'WyIzMmUwNDI1OWUzYTFlMTM3ZmE2Njg5M2JiNjE3OTc5YSJd',
31-
},
32-
CustomBoolField: {
33-
metadata: {
34-
encoding: 'anNvbi9wbGFpbg==',
35-
type: 'Qm9vbA==',
34+
CustomBoolField: {
35+
metadata: {
36+
encoding: 'anNvbi9wbGFpbg==',
37+
type: 'Qm9vbA==',
38+
},
39+
data: 'dHJ1ZQ==',
3640
},
37-
data: 'dHJ1ZQ==',
38-
},
39-
CustomDatetimeField: {
40-
metadata: {
41-
encoding: 'anNvbi9wbGFpbg==',
42-
type: 'RGF0ZXRpbWU=',
41+
CustomDatetimeField: {
42+
metadata: {
43+
encoding: 'anNvbi9wbGFpbg==',
44+
type: 'RGF0ZXRpbWU=',
45+
},
46+
data: 'IjIwMjItMDMtMjNUMTg6MDY6MDEuNzIwMTM3WiI=',
4347
},
44-
data: 'IjIwMjItMDMtMjNUMTg6MDY6MDEuNzIwMTM3WiI=',
45-
},
46-
CustomDoubleField: {
47-
metadata: {
48-
encoding: 'anNvbi9wbGFpbg==',
49-
type: 'RG91Ymxl',
48+
CustomDoubleField: {
49+
metadata: {
50+
encoding: 'anNvbi9wbGFpbg==',
51+
type: 'RG91Ymxl',
52+
},
53+
data: 'MA==',
5054
},
51-
data: 'MA==',
52-
},
53-
CustomIntField: {
54-
metadata: {
55-
encoding: 'anNvbi9wbGFpbg==',
56-
type: 'SW50',
55+
CustomIntField: {
56+
metadata: {
57+
encoding: 'anNvbi9wbGFpbg==',
58+
type: 'SW50',
59+
},
60+
data: 'MA==',
5761
},
58-
data: 'MA==',
59-
},
60-
CustomKeywordField: {
61-
metadata: {
62-
encoding: 'anNvbi9wbGFpbg==',
63-
type: 'S2V5d29yZA==',
62+
CustomKeywordField: {
63+
metadata: {
64+
encoding: 'anNvbi9wbGFpbg==',
65+
type: 'S2V5d29yZA==',
66+
},
67+
data: 'InJhaW5ib3ctc3RhdHVzZXMtMDAyYzk4Ig==',
6468
},
65-
data: 'InJhaW5ib3ctc3RhdHVzZXMtMDAyYzk4Ig==',
66-
},
67-
CustomStringField: {
68-
metadata: {
69-
encoding: 'anNvbi9wbGFpbg==',
70-
type: 'VGV4dA==',
69+
CustomStringField: {
70+
metadata: {
71+
encoding: 'anNvbi9wbGFpbg==',
72+
type: 'VGV4dA==',
73+
},
74+
data: 'InJhaW5ib3cgc3RhdHVzZXMgMDAyYzk4IFJ1bm5pbmci',
7175
},
72-
data: 'InJhaW5ib3cgc3RhdHVzZXMgMDAyYzk4IFJ1bm5pbmci',
7376
},
7477
},
75-
},
76-
autoResetPoints: null,
77-
taskQueue: 'rainbow-statuses',
78-
stateTransitionCount: '0',
78+
autoResetPoints: null,
79+
taskQueue: 'rainbow-statuses',
80+
stateTransitionCount: '0',
81+
};
7982
};
8083

84+
const mockWorkflows = Array.from({ length: 3 }, () => createMockWorkflow());
85+
8186
export const mockWorkflowsApi = (page: Page) => {
8287
return page.route(WORKFLOWS_API, (route) => {
8388
return route.fulfill({
8489
json: {
85-
executions: [mockWorkflow, mockWorkflow, mockWorkflow],
90+
executions: mockWorkflows,
8691
nextPageToken: null,
8792
},
8893
});

0 commit comments

Comments
 (0)