@igstack/app-catalog-frontend-core 6.13.1 → 6.14.0
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/dist/esm/modules/appCatalog/ui/pages/ServiceDesksPage.d.ts +4 -3
- package/dist/esm/modules/appCatalog/ui/pages/ServiceDesksPage.js +63 -49
- package/dist/esm/modules/appCatalog/ui/pages/ServiceDesksPage.js.map +1 -1
- package/dist/esm/modules/appCatalog/ui/serviceDesks/ServiceDeskCard.d.ts +9 -10
- package/dist/esm/modules/appCatalog/ui/serviceDesks/ServiceDeskCard.js +39 -61
- package/dist/esm/modules/appCatalog/ui/serviceDesks/ServiceDeskCard.js.map +1 -1
- package/dist/esm/modules/appCatalog/ui/serviceDesks/ServiceDeskDetail.d.ts +3 -4
- package/dist/esm/modules/appCatalog/ui/serviceDesks/ServiceDeskDetail.js +9 -42
- package/dist/esm/modules/appCatalog/ui/serviceDesks/ServiceDeskDetail.js.map +1 -1
- package/dist/esm/modules/appCatalog/ui/serviceDesks/searchServiceDesks.d.ts +13 -0
- package/dist/esm/modules/appCatalog/ui/serviceDesks/searchServiceDesks.js +26 -0
- package/dist/esm/modules/appCatalog/ui/serviceDesks/searchServiceDesks.js.map +1 -1
- package/dist/esm/routeTree.gen.d.ts +34 -8
- package/dist/esm/routeTree.gen.js +13 -3
- package/dist/esm/routeTree.gen.js.map +1 -1
- package/dist/esm/routes/_layout/service-desks.$slug.d.ts +13 -0
- package/dist/esm/routes/_layout/service-desks._slug.js +14 -0
- package/dist/esm/routes/_layout/service-desks._slug.js.map +1 -0
- package/dist/esm/routes/_layout/service-desks.d.ts +0 -1
- package/dist/esm/routes/_layout/service-desks.js +5 -9
- package/dist/esm/routes/_layout/service-desks.js.map +1 -1
- package/package.json +4 -4
- package/src/modules/appCatalog/ui/pages/ServiceDesksPage.tsx +103 -61
- package/src/modules/appCatalog/ui/serviceDesks/ServiceDeskCard.tsx +40 -59
- package/src/modules/appCatalog/ui/serviceDesks/ServiceDeskDetail.tsx +17 -59
- package/src/modules/appCatalog/ui/serviceDesks/searchServiceDesks.ts +36 -0
- package/src/routeTree.gen.ts +35 -5
- package/src/routes/_layout/service-desks.$slug.tsx +17 -0
- package/src/routes/_layout/service-desks.tsx +3 -7
package/src/routeTree.gen.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { Route as LayoutServiceDesksRouteImport } from './routes/_layout/service
|
|
|
18
18
|
import { Route as AuthCallbackRouteImport } from './routes/auth.callback'
|
|
19
19
|
import { Route as LayoutAppSlugRouteImport } from './routes/_layout/app.$slug'
|
|
20
20
|
import { Route as LayoutCommunitySlugRouteImport } from './routes/_layout/community.$slug'
|
|
21
|
+
import { Route as LayoutServiceDesksSlugRouteImport } from './routes/_layout/service-desks.$slug'
|
|
21
22
|
import { Route as LayoutCatalogAppsIndexRouteImport } from './routes/_layout/catalog.apps.index'
|
|
22
23
|
import { Route as LayoutAppSlugSubSubSlugRouteImport } from './routes/_layout/app.$slug_.sub.$subSlug'
|
|
23
24
|
|
|
@@ -65,6 +66,11 @@ const LayoutCommunitySlugRoute = LayoutCommunitySlugRouteImport.update({
|
|
|
65
66
|
path: '/$slug',
|
|
66
67
|
getParentRoute: () => LayoutCommunityRoute,
|
|
67
68
|
} as any)
|
|
69
|
+
const LayoutServiceDesksSlugRoute = LayoutServiceDesksSlugRouteImport.update({
|
|
70
|
+
id: '/$slug',
|
|
71
|
+
path: '/$slug',
|
|
72
|
+
getParentRoute: () => LayoutServiceDesksRoute,
|
|
73
|
+
} as any)
|
|
68
74
|
const LayoutCatalogAppsIndexRoute = LayoutCatalogAppsIndexRouteImport.update({
|
|
69
75
|
id: '/catalog/apps/',
|
|
70
76
|
path: '/catalog/apps/',
|
|
@@ -81,10 +87,11 @@ export interface FileRoutesByFullPath {
|
|
|
81
87
|
'/community': typeof LayoutCommunityRouteWithChildren
|
|
82
88
|
'/login': typeof LayoutLoginRoute
|
|
83
89
|
'/mcp': typeof LayoutMcpRoute
|
|
84
|
-
'/service-desks': typeof
|
|
90
|
+
'/service-desks': typeof LayoutServiceDesksRouteWithChildren
|
|
85
91
|
'/auth/callback': typeof AuthCallbackRoute
|
|
86
92
|
'/app/$slug': typeof LayoutAppSlugRoute
|
|
87
93
|
'/community/$slug': typeof LayoutCommunitySlugRoute
|
|
94
|
+
'/service-desks/$slug': typeof LayoutServiceDesksSlugRoute
|
|
88
95
|
'/catalog/apps/': typeof LayoutCatalogAppsIndexRoute
|
|
89
96
|
'/app/$slug/sub/$subSlug': typeof LayoutAppSlugSubSubSlugRoute
|
|
90
97
|
}
|
|
@@ -92,11 +99,12 @@ export interface FileRoutesByTo {
|
|
|
92
99
|
'/community': typeof LayoutCommunityRouteWithChildren
|
|
93
100
|
'/login': typeof LayoutLoginRoute
|
|
94
101
|
'/mcp': typeof LayoutMcpRoute
|
|
95
|
-
'/service-desks': typeof
|
|
102
|
+
'/service-desks': typeof LayoutServiceDesksRouteWithChildren
|
|
96
103
|
'/auth/callback': typeof AuthCallbackRoute
|
|
97
104
|
'/': typeof LayoutIndexRoute
|
|
98
105
|
'/app/$slug': typeof LayoutAppSlugRoute
|
|
99
106
|
'/community/$slug': typeof LayoutCommunitySlugRoute
|
|
107
|
+
'/service-desks/$slug': typeof LayoutServiceDesksSlugRoute
|
|
100
108
|
'/catalog/apps': typeof LayoutCatalogAppsIndexRoute
|
|
101
109
|
'/app/$slug/sub/$subSlug': typeof LayoutAppSlugSubSubSlugRoute
|
|
102
110
|
}
|
|
@@ -106,11 +114,12 @@ export interface FileRoutesById {
|
|
|
106
114
|
'/_layout/community': typeof LayoutCommunityRouteWithChildren
|
|
107
115
|
'/_layout/login': typeof LayoutLoginRoute
|
|
108
116
|
'/_layout/mcp': typeof LayoutMcpRoute
|
|
109
|
-
'/_layout/service-desks': typeof
|
|
117
|
+
'/_layout/service-desks': typeof LayoutServiceDesksRouteWithChildren
|
|
110
118
|
'/auth/callback': typeof AuthCallbackRoute
|
|
111
119
|
'/_layout/': typeof LayoutIndexRoute
|
|
112
120
|
'/_layout/app/$slug': typeof LayoutAppSlugRoute
|
|
113
121
|
'/_layout/community/$slug': typeof LayoutCommunitySlugRoute
|
|
122
|
+
'/_layout/service-desks/$slug': typeof LayoutServiceDesksSlugRoute
|
|
114
123
|
'/_layout/catalog/apps/': typeof LayoutCatalogAppsIndexRoute
|
|
115
124
|
'/_layout/app/$slug_/sub/$subSlug': typeof LayoutAppSlugSubSubSlugRoute
|
|
116
125
|
}
|
|
@@ -125,6 +134,7 @@ export interface FileRouteTypes {
|
|
|
125
134
|
| '/auth/callback'
|
|
126
135
|
| '/app/$slug'
|
|
127
136
|
| '/community/$slug'
|
|
137
|
+
| '/service-desks/$slug'
|
|
128
138
|
| '/catalog/apps/'
|
|
129
139
|
| '/app/$slug/sub/$subSlug'
|
|
130
140
|
fileRoutesByTo: FileRoutesByTo
|
|
@@ -137,6 +147,7 @@ export interface FileRouteTypes {
|
|
|
137
147
|
| '/'
|
|
138
148
|
| '/app/$slug'
|
|
139
149
|
| '/community/$slug'
|
|
150
|
+
| '/service-desks/$slug'
|
|
140
151
|
| '/catalog/apps'
|
|
141
152
|
| '/app/$slug/sub/$subSlug'
|
|
142
153
|
id:
|
|
@@ -150,6 +161,7 @@ export interface FileRouteTypes {
|
|
|
150
161
|
| '/_layout/'
|
|
151
162
|
| '/_layout/app/$slug'
|
|
152
163
|
| '/_layout/community/$slug'
|
|
164
|
+
| '/_layout/service-desks/$slug'
|
|
153
165
|
| '/_layout/catalog/apps/'
|
|
154
166
|
| '/_layout/app/$slug_/sub/$subSlug'
|
|
155
167
|
fileRoutesById: FileRoutesById
|
|
@@ -224,6 +236,13 @@ declare module '@tanstack/react-router' {
|
|
|
224
236
|
preLoaderRoute: typeof LayoutCommunitySlugRouteImport
|
|
225
237
|
parentRoute: typeof LayoutCommunityRoute
|
|
226
238
|
}
|
|
239
|
+
'/_layout/service-desks/$slug': {
|
|
240
|
+
id: '/_layout/service-desks/$slug'
|
|
241
|
+
path: '/$slug'
|
|
242
|
+
fullPath: '/service-desks/$slug'
|
|
243
|
+
preLoaderRoute: typeof LayoutServiceDesksSlugRouteImport
|
|
244
|
+
parentRoute: typeof LayoutServiceDesksRoute
|
|
245
|
+
}
|
|
227
246
|
'/_layout/catalog/apps/': {
|
|
228
247
|
id: '/_layout/catalog/apps/'
|
|
229
248
|
path: '/catalog/apps'
|
|
@@ -253,11 +272,22 @@ const LayoutCommunityRouteWithChildren = LayoutCommunityRoute._addFileChildren(
|
|
|
253
272
|
LayoutCommunityRouteChildren,
|
|
254
273
|
)
|
|
255
274
|
|
|
275
|
+
interface LayoutServiceDesksRouteChildren {
|
|
276
|
+
LayoutServiceDesksSlugRoute: typeof LayoutServiceDesksSlugRoute
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
const LayoutServiceDesksRouteChildren: LayoutServiceDesksRouteChildren = {
|
|
280
|
+
LayoutServiceDesksSlugRoute: LayoutServiceDesksSlugRoute,
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
const LayoutServiceDesksRouteWithChildren =
|
|
284
|
+
LayoutServiceDesksRoute._addFileChildren(LayoutServiceDesksRouteChildren)
|
|
285
|
+
|
|
256
286
|
interface LayoutRouteChildren {
|
|
257
287
|
LayoutCommunityRoute: typeof LayoutCommunityRouteWithChildren
|
|
258
288
|
LayoutLoginRoute: typeof LayoutLoginRoute
|
|
259
289
|
LayoutMcpRoute: typeof LayoutMcpRoute
|
|
260
|
-
LayoutServiceDesksRoute: typeof
|
|
290
|
+
LayoutServiceDesksRoute: typeof LayoutServiceDesksRouteWithChildren
|
|
261
291
|
LayoutIndexRoute: typeof LayoutIndexRoute
|
|
262
292
|
LayoutAppSlugRoute: typeof LayoutAppSlugRoute
|
|
263
293
|
LayoutCatalogAppsIndexRoute: typeof LayoutCatalogAppsIndexRoute
|
|
@@ -268,7 +298,7 @@ const LayoutRouteChildren: LayoutRouteChildren = {
|
|
|
268
298
|
LayoutCommunityRoute: LayoutCommunityRouteWithChildren,
|
|
269
299
|
LayoutLoginRoute: LayoutLoginRoute,
|
|
270
300
|
LayoutMcpRoute: LayoutMcpRoute,
|
|
271
|
-
LayoutServiceDesksRoute:
|
|
301
|
+
LayoutServiceDesksRoute: LayoutServiceDesksRouteWithChildren,
|
|
272
302
|
LayoutIndexRoute: LayoutIndexRoute,
|
|
273
303
|
LayoutAppSlugRoute: LayoutAppSlugRoute,
|
|
274
304
|
LayoutCatalogAppsIndexRoute: LayoutCatalogAppsIndexRoute,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createFileRoute } from '@tanstack/react-router'
|
|
2
|
+
import { z } from 'zod'
|
|
3
|
+
|
|
4
|
+
const searchSchema = z.object({
|
|
5
|
+
/** The card's tab, owned by DetailTabs. */
|
|
6
|
+
tab: z.string().optional(),
|
|
7
|
+
})
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* One form's card, `/service-desks/<desk key>-<form id>`. Renders nothing: the
|
|
11
|
+
* parent `/service-desks` route owns the page and reads the slug from the
|
|
12
|
+
* router, so opening a card never remounts the list or loses the search.
|
|
13
|
+
*/
|
|
14
|
+
export const Route = createFileRoute('/_layout/service-desks/$slug')({
|
|
15
|
+
component: () => null,
|
|
16
|
+
validateSearch: searchSchema,
|
|
17
|
+
})
|
|
@@ -7,16 +7,12 @@ import { ServiceDesksPage } from '~/modules/appCatalog/ui/pages/ServiceDesksPage
|
|
|
7
7
|
// text lives in sessionStorage now).
|
|
8
8
|
const searchSchema = z.object({
|
|
9
9
|
q: z.string().optional(),
|
|
10
|
-
/** The desk whose card is open (its approval-method slug). */
|
|
11
|
-
desk: z.string().optional(),
|
|
12
10
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* as `"69"`, quotes and all, and a hand-typed `form=69` reads back as one.
|
|
11
|
+
* Legacy card address, `?desk=<method slug>&form=<id>`, shipped briefly before
|
|
12
|
+
* cards moved to `/service-desks/<slug>`. Read once and redirected.
|
|
16
13
|
*/
|
|
14
|
+
desk: z.string().optional(),
|
|
17
15
|
form: z.union([z.number(), z.string()]).optional(),
|
|
18
|
-
/** The card's tab, owned by DetailTabs. */
|
|
19
|
-
tab: z.string().optional(),
|
|
20
16
|
})
|
|
21
17
|
|
|
22
18
|
export const Route = createFileRoute('/_layout/service-desks')({
|