@acmekit/dashboard 2.13.35 → 2.13.36

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.
Files changed (39) hide show
  1. package/package.json +9 -9
  2. package/src/components/layout/main-layout/main-layout.tsx +1 -28
  3. package/src/dashboard-app/routes/get-route.map.tsx +0 -71
  4. package/src/hooks/api/workflow-executions.tsx +1 -145
  5. package/src/i18n/translations/$schema.json +4 -534
  6. package/src/i18n/translations/en.json +3 -132
  7. package/src/routes/workflow-executions/constants.ts +0 -16
  8. package/src/routes/workflow-executions/utils.ts +14 -170
  9. package/src/routes/workflow-executions/workflow-execution-detail/breadcrumb.tsx +1 -7
  10. package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-history-section/workflow-execution-history-section.tsx +6 -157
  11. package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-payload-section/workflow-execution-payload-section.tsx +6 -122
  12. package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-timeline-section/workflow-execution-timeline-section.tsx +1 -7
  13. package/src/routes/workflow-executions/workflow-execution-detail/workflow-detail.tsx +1 -46
  14. package/src/routes/workflow-executions/workflow-execution-list/components/workflow-execution-list-table/use-workflow-execution-table-columns.tsx +0 -7
  15. package/src/routes/workflow-executions/workflow-execution-list/components/workflow-execution-list-table/use-workflow-execution-table-filters.tsx +1 -7
  16. package/src/routes/workflow-executions/workflow-execution-list/components/workflow-execution-list-table/use-workflow-execution-table-query.tsx +2 -4
  17. package/src/routes/workflow-executions/workflow-execution-list/components/workflow-execution-list-table/workflow-execution-list-table.tsx +1 -17
  18. package/src/routes/workflow-executions/workflow-execution-list/workflow-execution-list.tsx +1 -1
  19. package/src/hooks/api/workflow-definitions.tsx +0 -79
  20. package/src/hooks/api/workflow-metrics.tsx +0 -48
  21. package/src/hooks/use-workflow-sse.tsx +0 -78
  22. package/src/routes/workflow-analytics/workflow-analytics.tsx +0 -167
  23. package/src/routes/workflow-definitions/workflow-definition-detail/workflow-definition-detail.tsx +0 -98
  24. package/src/routes/workflow-definitions/workflow-definition-list/components/workflow-definition-list-table/use-workflow-definition-table-columns.tsx +0 -78
  25. package/src/routes/workflow-definitions/workflow-definition-list/components/workflow-definition-list-table/workflow-definition-list-table.tsx +0 -65
  26. package/src/routes/workflow-definitions/workflow-definition-list/workflow-definition-list.tsx +0 -15
  27. package/src/routes/workflow-executions/workflow-execution-complete-step/workflow-execution-complete-step.tsx +0 -270
  28. package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-action-bar/index.ts +0 -1
  29. package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-action-bar/workflow-execution-action-bar.tsx +0 -212
  30. package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-error-card/index.ts +0 -1
  31. package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-error-card/workflow-execution-error-card.tsx +0 -59
  32. package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-waiting-banner/index.ts +0 -1
  33. package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-waiting-banner/workflow-execution-waiting-banner.tsx +0 -63
  34. package/src/routes/workflow-executions/workflow-execution-list/components/workflow-execution-list-table/workflow-execution-auto-refresh.tsx +0 -73
  35. package/src/routes/workflow-executions/workflow-execution-list/components/workflow-execution-list-table/workflow-execution-row-actions.tsx +0 -116
  36. package/src/routes/workflow-executions/workflow-execution-list/components/workflow-execution-list-table/workflow-execution-saved-views.tsx +0 -84
  37. package/src/routes/workflow-executions/workflow-execution-rerun/workflow-execution-rerun.tsx +0 -159
  38. package/src/routes/workflow-executions/workflow-execution-run/workflow-execution-run.tsx +0 -139
  39. package/src/routes/workflow-scheduled/workflow-scheduled-list.tsx +0 -269
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acmekit/dashboard",
3
- "version": "2.13.35",
3
+ "version": "2.13.36",
4
4
  "scripts": {
5
5
  "generate:static": "node ./scripts/generate-currencies.js && prettier --write ./src/lib/currencies.ts",
6
6
  "dev": "../../../node_modules/.bin/vite",
@@ -39,10 +39,10 @@
39
39
  "dist"
40
40
  ],
41
41
  "dependencies": {
42
- "@acmekit/admin-shared": "2.13.35",
43
- "@acmekit/icons": "2.13.35",
44
- "@acmekit/js-sdk": "2.13.35",
45
- "@acmekit/ui": "4.1.31",
42
+ "@acmekit/admin-shared": "2.13.36",
43
+ "@acmekit/icons": "2.13.36",
44
+ "@acmekit/js-sdk": "2.13.36",
45
+ "@acmekit/ui": "4.1.32",
46
46
  "@ariakit/react": "^0.4.15",
47
47
  "@babel/runtime": "^7.26.10",
48
48
  "@dnd-kit/core": "^6.1.0",
@@ -80,10 +80,10 @@
80
80
  "zod": "3.25.76"
81
81
  },
82
82
  "devDependencies": {
83
- "@acmekit/admin-shared": "2.13.35",
84
- "@acmekit/admin-vite-plugin": "2.13.35",
85
- "@acmekit/types": "2.13.35",
86
- "@acmekit/ui-preset": "2.13.35"
83
+ "@acmekit/admin-shared": "2.13.36",
84
+ "@acmekit/admin-vite-plugin": "2.13.36",
85
+ "@acmekit/types": "2.13.36",
86
+ "@acmekit/ui-preset": "2.13.36"
87
87
  },
88
88
  "packageManager": "yarn@3.2.1"
89
89
  }
@@ -1,5 +1,4 @@
1
1
  import {
2
- Bolt,
3
2
  ChevronDownMini,
4
3
  CogSixTooth,
5
4
  EllipsisHorizontal,
@@ -129,33 +128,7 @@ const Header = () => {
129
128
  }
130
129
 
131
130
  const useCoreRoutes = (): Omit<INavItem, "pathname">[] => {
132
- const { t } = useTranslation()
133
-
134
- return [
135
- {
136
- icon: <Bolt />,
137
- label: t("workflowExecutions.domain"),
138
- to: "/settings/workflows",
139
- items: [
140
- {
141
- label: t("workflowExecutions.tabs.executions"),
142
- to: "/settings/workflows",
143
- },
144
- {
145
- label: t("workflowExecutions.tabs.definitions"),
146
- to: "/settings/workflows/definitions",
147
- },
148
- {
149
- label: t("workflowExecutions.tabs.scheduled"),
150
- to: "/settings/workflows/scheduled",
151
- },
152
- {
153
- label: t("workflowExecutions.tabs.analytics"),
154
- to: "/settings/workflows/analytics",
155
- },
156
- ],
157
- },
158
- ]
131
+ return []
159
132
  }
160
133
 
161
134
  const Searchbar = () => {
@@ -186,15 +186,6 @@ const defaultSettingsRouteChildren: RouteObject[] = [
186
186
  path: "",
187
187
  lazy: () =>
188
188
  import("../../routes/workflow-executions/workflow-execution-list"),
189
- children: [
190
- {
191
- path: "run",
192
- lazy: () =>
193
- import(
194
- "../../routes/workflow-executions/workflow-execution-run/workflow-execution-run"
195
- ),
196
- },
197
- ],
198
189
  },
199
190
  {
200
191
  path: ":id",
@@ -212,68 +203,6 @@ const defaultSettingsRouteChildren: RouteObject[] = [
212
203
  },
213
204
  }
214
205
  },
215
- children: [
216
- {
217
- path: "rerun",
218
- lazy: () =>
219
- import(
220
- "../../routes/workflow-executions/workflow-execution-rerun/workflow-execution-rerun"
221
- ),
222
- },
223
- {
224
- path: "complete-step",
225
- lazy: () =>
226
- import(
227
- "../../routes/workflow-executions/workflow-execution-complete-step/workflow-execution-complete-step"
228
- ),
229
- },
230
- ],
231
- },
232
- {
233
- path: "definitions",
234
- element: <Outlet />,
235
- handle: {
236
- breadcrumb: () => t("workflowExecutions.definitions.domain"),
237
- },
238
- children: [
239
- {
240
- path: "",
241
- lazy: () =>
242
- import(
243
- "../../routes/workflow-definitions/workflow-definition-list/workflow-definition-list"
244
- ),
245
- },
246
- {
247
- path: ":id",
248
- lazy: () =>
249
- import(
250
- "../../routes/workflow-definitions/workflow-definition-detail/workflow-definition-detail"
251
- ),
252
- children: [
253
- {
254
- path: "run",
255
- lazy: () =>
256
- import(
257
- "../../routes/workflow-executions/workflow-execution-run/workflow-execution-run"
258
- ),
259
- },
260
- ],
261
- },
262
- ],
263
- },
264
- {
265
- path: "analytics",
266
- lazy: () =>
267
- import(
268
- "../../routes/workflow-analytics/workflow-analytics"
269
- ),
270
- },
271
- {
272
- path: "scheduled",
273
- lazy: () =>
274
- import(
275
- "../../routes/workflow-scheduled/workflow-scheduled-list"
276
- ),
277
206
  },
278
207
  ],
279
208
  },
@@ -1,12 +1,5 @@
1
- import {
2
- QueryKey,
3
- UseMutationOptions,
4
- UseQueryOptions,
5
- useMutation,
6
- useQuery,
7
- } from "@tanstack/react-query"
1
+ import { QueryKey, UseQueryOptions, useQuery } from "@tanstack/react-query"
8
2
  import { sdk } from "../../lib/client"
9
- import { queryClient } from "../../lib/query-client"
10
3
  import { queryKeysFactory } from "../../lib/query-key-factory"
11
4
  import { HttpTypes } from "@acmekit/types"
12
5
  import { FetchError } from "@acmekit/js-sdk"
@@ -57,140 +50,3 @@ export const useWorkflowExecution = (
57
50
 
58
51
  return { ...data, ...rest }
59
52
  }
60
-
61
- export const useRunWorkflow = (
62
- workflowId: string,
63
- options?: UseMutationOptions<
64
- Record<string, unknown>,
65
- FetchError,
66
- { input?: Record<string, unknown>; transaction_id?: string }
67
- >
68
- ) => {
69
- return useMutation({
70
- mutationFn: (payload) =>
71
- sdk.admin.workflowExecution.run(workflowId, payload),
72
- onSuccess: (data, variables, context) => {
73
- queryClient.invalidateQueries({
74
- queryKey: workflowExecutionsQueryKeys.lists(),
75
- })
76
- options?.onSuccess?.(data, variables, context)
77
- },
78
- ...options,
79
- })
80
- }
81
-
82
- export const useCancelWorkflowExecution = (
83
- workflowId: string,
84
- transactionId: string,
85
- options?: UseMutationOptions<
86
- Record<string, unknown>,
87
- FetchError,
88
- { reason?: string } | void
89
- >
90
- ) => {
91
- return useMutation({
92
- mutationFn: (payload) =>
93
- sdk.admin.workflowExecution.cancel(
94
- workflowId,
95
- transactionId,
96
- (payload as { reason?: string }) || {}
97
- ),
98
- onSuccess: (data, variables, context) => {
99
- queryClient.invalidateQueries({
100
- queryKey: workflowExecutionsQueryKeys.lists(),
101
- })
102
- queryClient.invalidateQueries({
103
- queryKey: workflowExecutionsQueryKeys.details(),
104
- })
105
- options?.onSuccess?.(data, variables, context)
106
- },
107
- ...options,
108
- })
109
- }
110
-
111
- export const useRetryStep = (
112
- workflowId: string,
113
- transactionId: string,
114
- options?: UseMutationOptions<
115
- Record<string, unknown>,
116
- FetchError,
117
- { step_id: string; action?: string }
118
- >
119
- ) => {
120
- return useMutation({
121
- mutationFn: (payload) =>
122
- sdk.admin.workflowExecution.retryStep(
123
- workflowId,
124
- transactionId,
125
- payload
126
- ),
127
- onSuccess: (data, variables, context) => {
128
- queryClient.invalidateQueries({
129
- queryKey: workflowExecutionsQueryKeys.lists(),
130
- })
131
- queryClient.invalidateQueries({
132
- queryKey: workflowExecutionsQueryKeys.details(),
133
- })
134
- options?.onSuccess?.(data, variables, context)
135
- },
136
- ...options,
137
- })
138
- }
139
-
140
- export const useSetStepSuccess = (
141
- workflowId: string,
142
- options?: UseMutationOptions<
143
- Record<string, unknown>,
144
- FetchError,
145
- {
146
- transaction_id: string
147
- step_id: string
148
- response?: Record<string, unknown>
149
- action?: string
150
- }
151
- >
152
- ) => {
153
- return useMutation({
154
- mutationFn: (payload) =>
155
- sdk.admin.workflowExecution.setStepSuccess(workflowId, payload),
156
- onSuccess: (data, variables, context) => {
157
- queryClient.invalidateQueries({
158
- queryKey: workflowExecutionsQueryKeys.lists(),
159
- })
160
- queryClient.invalidateQueries({
161
- queryKey: workflowExecutionsQueryKeys.details(),
162
- })
163
- options?.onSuccess?.(data, variables, context)
164
- },
165
- ...options,
166
- })
167
- }
168
-
169
- export const useSetStepFailure = (
170
- workflowId: string,
171
- options?: UseMutationOptions<
172
- Record<string, unknown>,
173
- FetchError,
174
- {
175
- transaction_id: string
176
- step_id: string
177
- response?: Record<string, unknown>
178
- action?: string
179
- }
180
- >
181
- ) => {
182
- return useMutation({
183
- mutationFn: (payload) =>
184
- sdk.admin.workflowExecution.setStepFailure(workflowId, payload),
185
- onSuccess: (data, variables, context) => {
186
- queryClient.invalidateQueries({
187
- queryKey: workflowExecutionsQueryKeys.lists(),
188
- })
189
- queryClient.invalidateQueries({
190
- queryKey: workflowExecutionsQueryKeys.details(),
191
- })
192
- options?.onSuccess?.(data, variables, context)
193
- },
194
- ...options,
195
- })
196
- }