Skip to content

Commit 7f0e9cf

Browse files
authored
Rename stack trace url path to kebab case (#710)
* change stack trace page to kebab case * fix lint
1 parent a80db2c commit 7f0e9cf

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/views/workflow-page/config/workflow-page-tabs-contents-map.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const workflowPageTabsContentsMapConfig = {
99
summary: WorkflowSummaryTab,
1010
history: WorkflowHistory,
1111
queries: WorkflowQueries,
12-
stackTrace: WorkflowStackTrace,
12+
'stack-trace': WorkflowStackTrace,
1313
} as const satisfies WorkflowPageTabsContentsMap;
1414

1515
export default workflowPageTabsContentsMapConfig;

src/views/workflow-page/config/workflow-page-tabs-error.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const workflowPageTabsErrorConfig: WorkflowPageTabsErrorConfig = {
88
getWorkflowPageErrorConfig(err, 'Failed to load workflow history'),
99
queries: (err) =>
1010
getWorkflowPageErrorConfig(err, 'Failed to load workflow queries'),
11-
stackTrace: (err) =>
11+
'stack-trace': (err) =>
1212
getWorkflowPageErrorConfig(err, 'Failed to load workflow stack trace'),
1313
} as const;
1414

src/views/workflow-page/config/workflow-page-tabs.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const workflowPageTabsConfig = [
2626
artwork: MdOutlineManageSearch,
2727
},
2828
{
29-
key: 'stackTrace',
29+
key: 'stack-trace',
3030
title: 'Stack Trace',
3131
artwork: MdOutlineTerminal,
3232
},

src/views/workflow-page/workflow-page-tabs-error/__tests__/workflow-page-tabs-error.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jest.mock(
3333
queries: () => ({
3434
message: 'queries error',
3535
}),
36-
stackTrace: () => ({
37-
message: 'stackTrace error',
36+
'stack-trace': () => ({
37+
message: 'stack trace error',
3838
}),
3939
}) as const satisfies WorkflowPageTabsErrorConfig
4040
);

src/views/workflow-stack-trace/__tests__/workflow-stack-trace.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ async function setup({
119119
cluster: 'test-cluster',
120120
runId: 'test-runid',
121121
workflowId: 'test-workflowId',
122-
workflowTab: 'stackTrace',
122+
workflowTab: 'stack-trace',
123123
}}
124124
/>
125125
</Suspense>,

0 commit comments

Comments
 (0)