@jskit-ai/workspaces-web 0.1.138 → 0.1.139-oldline.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/package.descriptor.mjs +492 -0
- package/package.json +9 -564
- package/src/client/account-settings/accountSettingsInvitesRuntime.js +2 -2
- package/src/client/account-settings/useAccountSettingsInvitesSectionRuntime.js +3 -3
- package/src/client/components/MembersAdminClientElement.vue +1 -1
- package/src/client/components/{WorkspaceProfileSurfaceSwitchMenuItem.vue → UsersProfileSurfaceSwitchMenuItem.vue} +1 -1
- package/src/client/components/{WorkspaceMembersMenuItem.vue → UsersWorkspaceMembersMenuItem.vue} +2 -2
- package/src/client/components/{WorkspacePermissionMenuItem.vue → UsersWorkspacePermissionMenuItem.vue} +3 -3
- package/src/client/components/{WorkspaceSelector.vue → UsersWorkspaceSelector.vue} +1 -1
- package/src/client/components/{WorkspaceSettingsMenuItem.vue → UsersWorkspaceSettingsMenuItem.vue} +2 -2
- package/src/client/components/WorkspaceInviteLanding.vue +4 -4
- package/src/client/components/WorkspaceMembersClientElement.vue +6 -6
- package/src/client/components/WorkspacesClientElement.vue +13 -13
- package/src/client/composables/useWorkspaceRouteContext.js +1 -1
- package/src/client/lib/httpClient.js +10 -0
- package/src/client/lib/permissions.js +27 -0
- package/src/client/lib/surfaceAccessPolicy.js +1 -4
- package/src/client/providers/WorkspacesWebClientProvider.js +11 -11
- package/src/client/runtime/bootstrapPlacementRuntime.js +1 -1
- package/src/client/runtime/bootstrapPlacementRuntimeHelpers.js +2 -2
- package/test/{packageMetadataOwnership.test.js → packageDescriptorOwnership.test.js} +2 -4
- package/test/settingsPlacementContract.test.js +20 -22
- package/test/{workspaceSelectorContract.test.js → usersWorkspaceSelectorContract.test.js} +3 -3
- /package/src/client/components/{WorkspaceToolsWidget.vue → UsersWorkspaceToolsWidget.vue} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/workspaces-web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.139-oldline.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --test"
|
|
@@ -14,574 +14,19 @@
|
|
|
14
14
|
"./client/composables/useWorkspaceRouteContext": "./src/client/composables/useWorkspaceRouteContext.js"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@
|
|
18
|
-
"@jskit-ai/
|
|
19
|
-
"@jskit-ai/
|
|
20
|
-
"@jskit-ai/
|
|
21
|
-
"@jskit-ai/
|
|
22
|
-
"@jskit-ai/users-
|
|
23
|
-
"@jskit-ai/
|
|
24
|
-
"@
|
|
17
|
+
"@mdi/js": "^7.4.47",
|
|
18
|
+
"@jskit-ai/auth-web": "0.1.148",
|
|
19
|
+
"@jskit-ai/http-runtime": "0.1.146",
|
|
20
|
+
"@jskit-ai/kernel": "0.1.147",
|
|
21
|
+
"@jskit-ai/shell-web": "0.1.148",
|
|
22
|
+
"@jskit-ai/users-core": "0.1.161",
|
|
23
|
+
"@jskit-ai/users-web": "0.1.178-oldline.3",
|
|
24
|
+
"@jskit-ai/workspaces-core": "0.1.138-oldline.1"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@tanstack/vue-query": "^5.90.5",
|
|
28
28
|
"vue": "^3.5.13",
|
|
29
29
|
"vue-router": "^5.0.4",
|
|
30
30
|
"vuetify": "^4.0.0"
|
|
31
|
-
},
|
|
32
|
-
"description": "Workspace web module: workspace selector, tools widget, workspace surfaces, members UI, and settings hosts.",
|
|
33
|
-
"jskit": {
|
|
34
|
-
"kind": "runtime",
|
|
35
|
-
"capabilities": {
|
|
36
|
-
"provides": [
|
|
37
|
-
"workspaces.web"
|
|
38
|
-
],
|
|
39
|
-
"requires": [
|
|
40
|
-
"runtime.http-web",
|
|
41
|
-
"users.web",
|
|
42
|
-
"workspaces.core"
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
"runtime": {
|
|
46
|
-
"server": {
|
|
47
|
-
"providers": []
|
|
48
|
-
},
|
|
49
|
-
"client": {
|
|
50
|
-
"providers": [
|
|
51
|
-
{
|
|
52
|
-
"entrypoint": "src/client/providers/WorkspacesWebClientProvider.js",
|
|
53
|
-
"export": "WorkspacesWebClientProvider"
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"metadata": {
|
|
59
|
-
"apiSummary": {
|
|
60
|
-
"surfaces": [
|
|
61
|
-
{
|
|
62
|
-
"subpath": "./client",
|
|
63
|
-
"summary": "Exports workspaces-web client provider registration surface."
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"subpath": "./client/components/AccountSettingsInvitesSection",
|
|
67
|
-
"summary": "Exports the default account invites section component used by multihoming installs."
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"subpath": "./client/components/WorkspaceInviteLanding",
|
|
71
|
-
"summary": "Exports the default public workspace invite landing component."
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"subpath": "./client/providers/WorkspacesWebClientProvider",
|
|
75
|
-
"summary": "Exports workspaces-web client provider class."
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"subpath": "./client/composables/useWorkspaceRouteContext",
|
|
79
|
-
"summary": "Exports workspace route context composable."
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
"containerTokens": {
|
|
83
|
-
"server": [],
|
|
84
|
-
"client": [
|
|
85
|
-
"workspaces.web.profile.menu.surface-switch-item",
|
|
86
|
-
"workspaces.web.workspace.selector",
|
|
87
|
-
"workspaces.web.workspace.tools.widget",
|
|
88
|
-
"workspaces.web.workspace-settings.menu-item",
|
|
89
|
-
"workspaces.web.workspace-members.menu-item",
|
|
90
|
-
"workspaces.web.members-admin.element",
|
|
91
|
-
"workspaces.web.bootstrap-placement.runtime",
|
|
92
|
-
"workspaces.web.scope-support"
|
|
93
|
-
]
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
"ui": {
|
|
97
|
-
"placements": {
|
|
98
|
-
"outlets": [
|
|
99
|
-
{
|
|
100
|
-
"target": "admin-settings:primary-menu",
|
|
101
|
-
"surfaces": [
|
|
102
|
-
"admin"
|
|
103
|
-
],
|
|
104
|
-
"source": "templates/src/pages/admin/workspace/settings.vue"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"target": "admin-cog:primary-menu",
|
|
108
|
-
"surfaces": [
|
|
109
|
-
"admin"
|
|
110
|
-
],
|
|
111
|
-
"source": "src/client/components/WorkspaceToolsWidget.vue"
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
"topology": {
|
|
115
|
-
"placements": [
|
|
116
|
-
{
|
|
117
|
-
"id": "page.section-nav",
|
|
118
|
-
"owner": "admin-settings",
|
|
119
|
-
"description": "Navigation between workspace admin settings child pages.",
|
|
120
|
-
"surfaces": [
|
|
121
|
-
"admin"
|
|
122
|
-
],
|
|
123
|
-
"variants": {
|
|
124
|
-
"compact": {
|
|
125
|
-
"outlet": "admin-settings:primary-menu",
|
|
126
|
-
"renderers": {
|
|
127
|
-
"link": "local.main.ui.surface-aware-menu-link-item"
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
"medium": {
|
|
131
|
-
"outlet": "admin-settings:primary-menu",
|
|
132
|
-
"renderers": {
|
|
133
|
-
"link": "local.main.ui.surface-aware-menu-link-item"
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
"expanded": {
|
|
137
|
-
"outlet": "admin-settings:primary-menu",
|
|
138
|
-
"renderers": {
|
|
139
|
-
"link": "local.main.ui.surface-aware-menu-link-item"
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"id": "admin.tools-menu",
|
|
146
|
-
"description": "Admin surface tools menu actions.",
|
|
147
|
-
"surfaces": [
|
|
148
|
-
"admin"
|
|
149
|
-
],
|
|
150
|
-
"variants": {
|
|
151
|
-
"compact": {
|
|
152
|
-
"outlet": "admin-cog:primary-menu",
|
|
153
|
-
"renderers": {
|
|
154
|
-
"link": "local.main.ui.surface-aware-menu-link-item"
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
"medium": {
|
|
158
|
-
"outlet": "admin-cog:primary-menu",
|
|
159
|
-
"renderers": {
|
|
160
|
-
"link": "local.main.ui.surface-aware-menu-link-item"
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
"expanded": {
|
|
164
|
-
"outlet": "admin-cog:primary-menu",
|
|
165
|
-
"renderers": {
|
|
166
|
-
"link": "local.main.ui.surface-aware-menu-link-item"
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
]
|
|
172
|
-
},
|
|
173
|
-
"contributions": [
|
|
174
|
-
{
|
|
175
|
-
"id": "workspaces.workspace.menu.app",
|
|
176
|
-
"target": "shell.primary-nav",
|
|
177
|
-
"kind": "link",
|
|
178
|
-
"surfaces": [
|
|
179
|
-
"app"
|
|
180
|
-
],
|
|
181
|
-
"order": 50,
|
|
182
|
-
"when": "auth.authenticated === true",
|
|
183
|
-
"source": "mutations.text#workspaces-web-placement-block"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"id": "workspaces.workspace.menu.admin",
|
|
187
|
-
"target": "shell.primary-nav",
|
|
188
|
-
"kind": "link",
|
|
189
|
-
"surfaces": [
|
|
190
|
-
"admin"
|
|
191
|
-
],
|
|
192
|
-
"order": 60,
|
|
193
|
-
"when": "auth.authenticated === true",
|
|
194
|
-
"source": "mutations.text#workspaces-web-placement-block"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"id": "workspaces.profile.menu.surface-switch",
|
|
198
|
-
"target": "auth.profile-menu",
|
|
199
|
-
"kind": "component",
|
|
200
|
-
"surfaces": [
|
|
201
|
-
"*"
|
|
202
|
-
],
|
|
203
|
-
"order": 100,
|
|
204
|
-
"componentToken": "workspaces.web.profile.menu.surface-switch-item",
|
|
205
|
-
"when": "auth.authenticated === true",
|
|
206
|
-
"source": "mutations.text#workspaces-web-profile-surface-switch-placement"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"id": "workspaces.workspace.selector",
|
|
210
|
-
"target": "shell.identity",
|
|
211
|
-
"kind": "component",
|
|
212
|
-
"surfaces": [
|
|
213
|
-
"*"
|
|
214
|
-
],
|
|
215
|
-
"order": 200,
|
|
216
|
-
"componentToken": "workspaces.web.workspace.selector",
|
|
217
|
-
"when": "auth.authenticated === true",
|
|
218
|
-
"source": "mutations.text#workspaces-web-placement-block"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"id": "workspaces.account.invites.cue",
|
|
222
|
-
"target": "shell.status",
|
|
223
|
-
"kind": "component",
|
|
224
|
-
"surfaces": [
|
|
225
|
-
"*"
|
|
226
|
-
],
|
|
227
|
-
"order": 850,
|
|
228
|
-
"componentToken": "local.main.account.pending-invites.cue",
|
|
229
|
-
"when": "auth.authenticated === true",
|
|
230
|
-
"source": "mutations.text#workspaces-web-placement-block"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"id": "workspaces.account.settings.invites",
|
|
234
|
-
"target": "settings.sections",
|
|
235
|
-
"owner": "account-settings",
|
|
236
|
-
"kind": "component",
|
|
237
|
-
"surfaces": [
|
|
238
|
-
"account"
|
|
239
|
-
],
|
|
240
|
-
"order": 400,
|
|
241
|
-
"componentToken": "local.main.account-settings.section.invites",
|
|
242
|
-
"when": "auth.authenticated === true && workspaceInvitesEnabled === true",
|
|
243
|
-
"source": "mutations.text#workspaces-web-account-settings-placement"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
"id": "workspaces.workspace.tools.widget",
|
|
247
|
-
"target": "shell.status",
|
|
248
|
-
"kind": "component",
|
|
249
|
-
"surfaces": [
|
|
250
|
-
"admin"
|
|
251
|
-
],
|
|
252
|
-
"order": 900,
|
|
253
|
-
"componentToken": "workspaces.web.workspace.tools.widget",
|
|
254
|
-
"source": "mutations.text#workspaces-web-placement-block"
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
"id": "workspaces.workspace.menu.workspace-settings",
|
|
258
|
-
"target": "admin.tools-menu",
|
|
259
|
-
"kind": "component",
|
|
260
|
-
"surfaces": [
|
|
261
|
-
"admin"
|
|
262
|
-
],
|
|
263
|
-
"order": 100,
|
|
264
|
-
"componentToken": "workspaces.web.workspace-settings.menu-item",
|
|
265
|
-
"source": "mutations.text#workspaces-web-placement-block"
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
"id": "workspaces.workspace.menu.members",
|
|
269
|
-
"target": "admin.tools-menu",
|
|
270
|
-
"kind": "component",
|
|
271
|
-
"surfaces": [
|
|
272
|
-
"admin"
|
|
273
|
-
],
|
|
274
|
-
"order": 200,
|
|
275
|
-
"componentToken": "workspaces.web.workspace-members.menu-item",
|
|
276
|
-
"source": "mutations.text#workspaces-web-placement-block"
|
|
277
|
-
}
|
|
278
|
-
]
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
|
-
"mutations": {
|
|
283
|
-
"dependencies": {
|
|
284
|
-
"runtime": {
|
|
285
|
-
"@jskit-ai/auth-web": "0.1.159",
|
|
286
|
-
"@jskit-ai/http-web": "0.1.4",
|
|
287
|
-
"@jskit-ai/workspaces-core": "0.1.137",
|
|
288
|
-
"@jskit-ai/users-web": "0.1.177"
|
|
289
|
-
},
|
|
290
|
-
"dev": {}
|
|
291
|
-
},
|
|
292
|
-
"packageJson": {
|
|
293
|
-
"scripts": {
|
|
294
|
-
"dev:app": "VITE_SURFACE=app vite",
|
|
295
|
-
"dev:admin": "VITE_SURFACE=admin vite",
|
|
296
|
-
"build:app": "VITE_SURFACE=app vite build",
|
|
297
|
-
"build:admin": "VITE_SURFACE=admin vite build"
|
|
298
|
-
}
|
|
299
|
-
},
|
|
300
|
-
"procfile": {},
|
|
301
|
-
"files": [
|
|
302
|
-
{
|
|
303
|
-
"from": "templates/packages/main/src/client/components/AccountPendingInvitesCue.vue",
|
|
304
|
-
"to": "packages/main/src/client/components/AccountPendingInvitesCue.vue",
|
|
305
|
-
"ownership": "app",
|
|
306
|
-
"reason": "Install app-owned account pending invites cue component scaffold.",
|
|
307
|
-
"category": "workspaces-web",
|
|
308
|
-
"id": "workspaces-web-main-component-account-pending-invites-cue"
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
"from": "templates/packages/main/src/client/components/AccountSettingsInvitesSection.vue",
|
|
312
|
-
"to": "packages/main/src/client/components/AccountSettingsInvitesSection.vue",
|
|
313
|
-
"ownership": "app",
|
|
314
|
-
"reason": "Install app-owned account invites section scaffold for multihoming account settings.",
|
|
315
|
-
"category": "workspaces-web",
|
|
316
|
-
"id": "workspaces-web-main-component-account-settings-invites-section"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"from": "templates/src/pages/invite/[token].vue",
|
|
320
|
-
"to": "src/pages/invite/[token].vue",
|
|
321
|
-
"ownership": "app",
|
|
322
|
-
"reason": "Install public workspace invite acceptance route scaffold.",
|
|
323
|
-
"category": "workspaces-web",
|
|
324
|
-
"id": "workspaces-web-page-public-invite"
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
"from": "templates/src/components/WorkspaceNotFoundCard.vue",
|
|
328
|
-
"to": "src/components/WorkspaceNotFoundCard.vue",
|
|
329
|
-
"ownership": "app",
|
|
330
|
-
"reason": "Install app-owned workspace not-found card component used by workspace-dependent surfaces.",
|
|
331
|
-
"category": "workspaces-web",
|
|
332
|
-
"id": "workspaces-web-component-workspace-not-found-card",
|
|
333
|
-
"when": {
|
|
334
|
-
"config": "tenancyMode",
|
|
335
|
-
"in": [
|
|
336
|
-
"personal",
|
|
337
|
-
"workspaces"
|
|
338
|
-
]
|
|
339
|
-
}
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
"from": "templates/src/composables/useWorkspaceNotFoundState.js",
|
|
343
|
-
"to": "src/composables/useWorkspaceNotFoundState.js",
|
|
344
|
-
"ownership": "app",
|
|
345
|
-
"reason": "Install app-owned workspace bootstrap status composable for workspace-dependent surfaces.",
|
|
346
|
-
"category": "workspaces-web",
|
|
347
|
-
"id": "workspaces-web-composable-workspace-not-found-state",
|
|
348
|
-
"when": {
|
|
349
|
-
"config": "tenancyMode",
|
|
350
|
-
"in": [
|
|
351
|
-
"personal",
|
|
352
|
-
"workspaces"
|
|
353
|
-
]
|
|
354
|
-
}
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
"from": "templates/src/surfaces/app/root.vue",
|
|
358
|
-
"toSurface": "app",
|
|
359
|
-
"toSurfaceRoot": true,
|
|
360
|
-
"ownership": "app",
|
|
361
|
-
"reason": "Install workspace app surface wrapper shell for workspaces-web.",
|
|
362
|
-
"category": "workspaces-web",
|
|
363
|
-
"id": "workspaces-web-page-app-wrapper",
|
|
364
|
-
"when": {
|
|
365
|
-
"config": "tenancyMode",
|
|
366
|
-
"in": [
|
|
367
|
-
"personal",
|
|
368
|
-
"workspaces"
|
|
369
|
-
]
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
"from": "templates/src/surfaces/app/index.vue",
|
|
374
|
-
"toSurface": "app",
|
|
375
|
-
"toSurfacePath": "index.vue",
|
|
376
|
-
"ownership": "app",
|
|
377
|
-
"reason": "Install workspace app surface starter page scaffold for workspaces-web.",
|
|
378
|
-
"category": "workspaces-web",
|
|
379
|
-
"id": "workspaces-web-page-app-index",
|
|
380
|
-
"when": {
|
|
381
|
-
"config": "tenancyMode",
|
|
382
|
-
"in": [
|
|
383
|
-
"personal",
|
|
384
|
-
"workspaces"
|
|
385
|
-
]
|
|
386
|
-
}
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
"from": "templates/src/surfaces/admin/root.vue",
|
|
390
|
-
"toSurface": "admin",
|
|
391
|
-
"toSurfaceRoot": true,
|
|
392
|
-
"ownership": "app",
|
|
393
|
-
"reason": "Install workspace admin surface wrapper shell for workspaces-web.",
|
|
394
|
-
"category": "workspaces-web",
|
|
395
|
-
"id": "workspaces-web-page-admin-wrapper",
|
|
396
|
-
"when": {
|
|
397
|
-
"config": "tenancyMode",
|
|
398
|
-
"in": [
|
|
399
|
-
"personal",
|
|
400
|
-
"workspaces"
|
|
401
|
-
]
|
|
402
|
-
}
|
|
403
|
-
},
|
|
404
|
-
{
|
|
405
|
-
"from": "templates/src/surfaces/admin/index.vue",
|
|
406
|
-
"toSurface": "admin",
|
|
407
|
-
"toSurfacePath": "index.vue",
|
|
408
|
-
"ownership": "app",
|
|
409
|
-
"reason": "Install workspace admin surface starter page scaffold for workspaces-web.",
|
|
410
|
-
"category": "workspaces-web",
|
|
411
|
-
"id": "workspaces-web-page-admin-index",
|
|
412
|
-
"when": {
|
|
413
|
-
"config": "tenancyMode",
|
|
414
|
-
"in": [
|
|
415
|
-
"personal",
|
|
416
|
-
"workspaces"
|
|
417
|
-
]
|
|
418
|
-
}
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
"from": "templates/src/pages/admin/members/index.vue",
|
|
422
|
-
"toSurface": "admin",
|
|
423
|
-
"toSurfacePath": "members/index.vue",
|
|
424
|
-
"ownership": "app",
|
|
425
|
-
"reason": "Install admin members starter page scaffold for workspaces-web members UI.",
|
|
426
|
-
"category": "workspaces-web",
|
|
427
|
-
"id": "workspaces-web-page-admin-members",
|
|
428
|
-
"when": {
|
|
429
|
-
"config": "tenancyMode",
|
|
430
|
-
"in": [
|
|
431
|
-
"personal",
|
|
432
|
-
"workspaces"
|
|
433
|
-
]
|
|
434
|
-
}
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
"from": "templates/src/pages/admin/workspace/settings.vue",
|
|
438
|
-
"toSurface": "admin",
|
|
439
|
-
"toSurfacePath": "workspace/settings.vue",
|
|
440
|
-
"ownership": "app",
|
|
441
|
-
"reason": "Install workspace settings shell route scaffold for workspaces-web workspace admin UI.",
|
|
442
|
-
"category": "workspaces-web",
|
|
443
|
-
"id": "workspaces-web-page-admin-workspace-settings-shell",
|
|
444
|
-
"when": {
|
|
445
|
-
"config": "tenancyMode",
|
|
446
|
-
"in": [
|
|
447
|
-
"personal",
|
|
448
|
-
"workspaces"
|
|
449
|
-
]
|
|
450
|
-
}
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
"from": "templates/src/pages/admin/workspace/settings/index.vue",
|
|
454
|
-
"toSurface": "admin",
|
|
455
|
-
"toSurfacePath": "workspace/settings/index.vue",
|
|
456
|
-
"ownership": "app",
|
|
457
|
-
"reason": "Install workspace settings index stub scaffold for app-owned landing or redirect behavior.",
|
|
458
|
-
"category": "workspaces-web",
|
|
459
|
-
"id": "workspaces-web-page-admin-workspace-settings",
|
|
460
|
-
"when": {
|
|
461
|
-
"config": "tenancyMode",
|
|
462
|
-
"in": [
|
|
463
|
-
"personal",
|
|
464
|
-
"workspaces"
|
|
465
|
-
]
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
],
|
|
469
|
-
"text": [
|
|
470
|
-
{
|
|
471
|
-
"op": "append-text",
|
|
472
|
-
"file": "src/placement.js",
|
|
473
|
-
"position": "bottom",
|
|
474
|
-
"skipIfContains": "id: \"workspaces.profile.menu.surface-switch\"",
|
|
475
|
-
"value": "\naddPlacement({\n id: \"workspaces.profile.menu.surface-switch\",\n target: \"auth.profile-menu\",\n kind: \"component\",\n surfaces: [\"*\"],\n order: 100,\n componentToken: \"workspaces.web.profile.menu.surface-switch-item\",\n when: ({ auth }) => auth?.authenticated === true\n});\n",
|
|
476
|
-
"reason": "Append workspaces-web profile surface switch placement into app-owned placement registry.",
|
|
477
|
-
"category": "workspaces-web",
|
|
478
|
-
"id": "workspaces-web-profile-surface-switch-placement",
|
|
479
|
-
"when": {
|
|
480
|
-
"config": "tenancyMode",
|
|
481
|
-
"in": [
|
|
482
|
-
"personal",
|
|
483
|
-
"workspaces"
|
|
484
|
-
]
|
|
485
|
-
}
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
"op": "append-text",
|
|
489
|
-
"file": "src/placement.js",
|
|
490
|
-
"position": "bottom",
|
|
491
|
-
"skipIfContains": "id: \"workspaces.workspace.selector\"",
|
|
492
|
-
"value": "\naddPlacement({\n id: \"workspaces.workspace.menu.app\",\n target: \"shell.primary-nav\",\n kind: \"link\",\n surfaces: [\"app\"],\n order: 50,\n props: {\n label: \"Home\",\n surface: \"app\",\n scopedSuffix: \"/\",\n unscopedSuffix: \"/\",\n exact: true\n },\n when: ({ auth }) => auth?.authenticated === true\n});\n\naddPlacement({\n id: \"workspaces.workspace.menu.admin\",\n target: \"shell.primary-nav\",\n kind: \"link\",\n surfaces: [\"admin\"],\n order: 60,\n props: {\n label: \"Home\",\n surface: \"admin\",\n scopedSuffix: \"/\",\n unscopedSuffix: \"/\",\n exact: true\n },\n when: ({ auth }) => auth?.authenticated === true\n});\n\naddPlacement({\n id: \"workspaces.workspace.selector\",\n target: \"shell.identity\",\n kind: \"component\",\n surfaces: [\"*\"],\n order: 200,\n componentToken: \"workspaces.web.workspace.selector\",\n props: {\n allowOnNonWorkspaceSurface: true,\n targetSurfaceId: \"app\"\n },\n when: ({ auth }) => auth?.authenticated === true\n});\n\naddPlacement({\n id: \"workspaces.account.invites.cue\",\n target: \"shell.status\",\n kind: \"component\",\n surfaces: [\"*\"],\n order: 850,\n componentToken: \"local.main.account.pending-invites.cue\",\n when: ({ auth }) => auth?.authenticated === true\n});\n\naddPlacement({\n id: \"workspaces.workspace.tools.widget\",\n target: \"shell.status\",\n kind: \"component\",\n surfaces: [\"admin\"],\n order: 900,\n componentToken: \"workspaces.web.workspace.tools.widget\"\n});\n\naddPlacement({\n id: \"workspaces.workspace.menu.workspace-settings\",\n target: \"admin.tools-menu\",\n kind: \"component\",\n surfaces: [\"admin\"],\n order: 100,\n componentToken: \"workspaces.web.workspace-settings.menu-item\"\n});\n\naddPlacement({\n id: \"workspaces.workspace.menu.members\",\n target: \"admin.tools-menu\",\n kind: \"component\",\n surfaces: [\"admin\"],\n order: 200,\n componentToken: \"workspaces.web.workspace-members.menu-item\"\n});\n",
|
|
493
|
-
"reason": "Append workspace placement entries into app-owned placement registry.",
|
|
494
|
-
"category": "workspaces-web",
|
|
495
|
-
"id": "workspaces-web-placement-block",
|
|
496
|
-
"when": {
|
|
497
|
-
"config": "tenancyMode",
|
|
498
|
-
"in": [
|
|
499
|
-
"personal",
|
|
500
|
-
"workspaces"
|
|
501
|
-
]
|
|
502
|
-
}
|
|
503
|
-
},
|
|
504
|
-
{
|
|
505
|
-
"op": "append-text",
|
|
506
|
-
"file": "src/placementTopology.js",
|
|
507
|
-
"position": "bottom",
|
|
508
|
-
"skipIfContains": "id: \"admin.tools-menu\"",
|
|
509
|
-
"value": "\naddPlacementTopology({\n id: \"page.section-nav\",\n owner: \"admin-settings\",\n description: \"Navigation between workspace admin settings child pages.\",\n surfaces: [\"admin\"],\n variants: {\n compact: {\n outlet: \"admin-settings:primary-menu\",\n renderers: {\n link: \"local.main.ui.surface-aware-menu-link-item\"\n }\n },\n medium: {\n outlet: \"admin-settings:primary-menu\",\n renderers: {\n link: \"local.main.ui.surface-aware-menu-link-item\"\n }\n },\n expanded: {\n outlet: \"admin-settings:primary-menu\",\n renderers: {\n link: \"local.main.ui.surface-aware-menu-link-item\"\n }\n }\n }\n});\n\naddPlacementTopology({\n id: \"admin.tools-menu\",\n description: \"Admin surface tools menu actions.\",\n surfaces: [\"admin\"],\n variants: {\n compact: {\n outlet: \"admin-cog:primary-menu\",\n renderers: {\n link: \"local.main.ui.surface-aware-menu-link-item\"\n }\n },\n medium: {\n outlet: \"admin-cog:primary-menu\",\n renderers: {\n link: \"local.main.ui.surface-aware-menu-link-item\"\n }\n },\n expanded: {\n outlet: \"admin-cog:primary-menu\",\n renderers: {\n link: \"local.main.ui.surface-aware-menu-link-item\"\n }\n }\n }\n});\n",
|
|
510
|
-
"reason": "Append workspaces-web admin semantic topology into app-owned placement topology.",
|
|
511
|
-
"category": "workspaces-web",
|
|
512
|
-
"id": "workspaces-web-admin-placement-topology",
|
|
513
|
-
"when": {
|
|
514
|
-
"config": "tenancyMode",
|
|
515
|
-
"in": [
|
|
516
|
-
"personal",
|
|
517
|
-
"workspaces"
|
|
518
|
-
]
|
|
519
|
-
}
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
"op": "append-text",
|
|
523
|
-
"file": "src/placement.js",
|
|
524
|
-
"position": "bottom",
|
|
525
|
-
"skipIfContains": "id: \"workspaces.account.settings.invites\"",
|
|
526
|
-
"value": "\naddPlacement({\n id: \"workspaces.account.settings.invites\",\n target: \"settings.sections\",\n owner: \"account-settings\",\n kind: \"component\",\n surfaces: [\"account\"],\n order: 400,\n componentToken: \"local.main.account-settings.section.invites\",\n props: {\n title: \"Invites\",\n value: \"invites\",\n usesSharedRuntime: false\n },\n when: ({ auth, workspaceInvitesEnabled }) => auth?.authenticated === true && workspaceInvitesEnabled === true\n});\n",
|
|
527
|
-
"reason": "Append workspaces-web account settings invites section placement into app-owned placement registry.",
|
|
528
|
-
"category": "workspaces-web",
|
|
529
|
-
"id": "workspaces-web-account-settings-placement",
|
|
530
|
-
"when": {
|
|
531
|
-
"config": "tenancyMode",
|
|
532
|
-
"in": [
|
|
533
|
-
"personal",
|
|
534
|
-
"workspaces"
|
|
535
|
-
]
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
],
|
|
539
|
-
"source": [
|
|
540
|
-
{
|
|
541
|
-
"op": "ensure-import",
|
|
542
|
-
"file": "packages/main/src/client/providers/MainClientProvider.js",
|
|
543
|
-
"defaultImport": "AccountPendingInvitesCue",
|
|
544
|
-
"from": "../components/AccountPendingInvitesCue.vue",
|
|
545
|
-
"reason": "Bind app-owned account pending invites cue component into local main client provider imports.",
|
|
546
|
-
"category": "workspaces-web",
|
|
547
|
-
"id": "workspaces-web-main-client-provider-account-invites-import"
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
"op": "ensure-import",
|
|
551
|
-
"file": "packages/main/src/client/providers/MainClientProvider.js",
|
|
552
|
-
"defaultImport": "AccountSettingsInvitesSection",
|
|
553
|
-
"from": "../components/AccountSettingsInvitesSection.vue",
|
|
554
|
-
"reason": "Bind app-owned account invites section component into local main client provider imports.",
|
|
555
|
-
"category": "workspaces-web",
|
|
556
|
-
"id": "workspaces-web-main-client-provider-account-settings-section-import"
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
"op": "ensure-call",
|
|
560
|
-
"file": "packages/main/src/client/providers/MainClientProvider.js",
|
|
561
|
-
"callee": "registerMainClientComponent",
|
|
562
|
-
"args": [
|
|
563
|
-
"\"local.main.account.pending-invites.cue\"",
|
|
564
|
-
"() => AccountPendingInvitesCue"
|
|
565
|
-
],
|
|
566
|
-
"beforeClass": "MainClientProvider",
|
|
567
|
-
"reason": "Bind app-owned account pending invites cue component token into local main client provider registry.",
|
|
568
|
-
"category": "workspaces-web",
|
|
569
|
-
"id": "workspaces-web-main-client-provider-account-invites-register"
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
"op": "ensure-call",
|
|
573
|
-
"file": "packages/main/src/client/providers/MainClientProvider.js",
|
|
574
|
-
"callee": "registerMainClientComponent",
|
|
575
|
-
"args": [
|
|
576
|
-
"\"local.main.account-settings.section.invites\"",
|
|
577
|
-
"() => AccountSettingsInvitesSection"
|
|
578
|
-
],
|
|
579
|
-
"beforeClass": "MainClientProvider",
|
|
580
|
-
"reason": "Bind app-owned account invites section component token into local main client provider registry.",
|
|
581
|
-
"category": "workspaces-web",
|
|
582
|
-
"id": "workspaces-web-main-client-provider-account-settings-section-register"
|
|
583
|
-
}
|
|
584
|
-
]
|
|
585
|
-
}
|
|
586
31
|
}
|
|
587
32
|
}
|
|
@@ -50,7 +50,7 @@ function createAccountSettingsInvitesRuntime({
|
|
|
50
50
|
message: normalizedDecision === "accept" ? "Invitation accepted." : "Invitation refused.",
|
|
51
51
|
severity: "success",
|
|
52
52
|
channel: "snackbar",
|
|
53
|
-
dedupeKey: `
|
|
53
|
+
dedupeKey: `users-web.account-settings-runtime:invite-${normalizedDecision}:${token}`
|
|
54
54
|
});
|
|
55
55
|
} catch (error) {
|
|
56
56
|
const statusCode = resolveErrorStatusCode(error);
|
|
@@ -63,7 +63,7 @@ function createAccountSettingsInvitesRuntime({
|
|
|
63
63
|
: String(error?.message || fallbackMessage),
|
|
64
64
|
severity: "error",
|
|
65
65
|
channel: "banner",
|
|
66
|
-
dedupeKey: `
|
|
66
|
+
dedupeKey: `users-web.account-settings-runtime:invite-${normalizedDecision}-error:${token}`
|
|
67
67
|
});
|
|
68
68
|
} finally {
|
|
69
69
|
inviteAction.value = {
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
} from "@jskit-ai/shell-web/client/placement";
|
|
7
7
|
import { useShellWebErrorRuntime } from "@jskit-ai/shell-web/client/error";
|
|
8
8
|
import { ROUTE_VISIBILITY_PUBLIC } from "@jskit-ai/kernel/shared/support/visibility";
|
|
9
|
-
import { useCommand } from "@jskit-ai/
|
|
10
|
-
import { usePaths } from "@jskit-ai/
|
|
11
|
-
import { useView } from "@jskit-ai/
|
|
9
|
+
import { useCommand } from "@jskit-ai/users-web/client/composables/useCommand";
|
|
10
|
+
import { usePaths } from "@jskit-ai/users-web/client/composables/usePaths";
|
|
11
|
+
import { useView } from "@jskit-ai/users-web/client/composables/useView";
|
|
12
12
|
import { normalizeRecordId } from "@jskit-ai/kernel/shared/support/normalize";
|
|
13
13
|
import { WORKSPACE_INVITE_REDEEM_TRANSPORT } from "@jskit-ai/workspaces-core/shared/jsonApiTransports";
|
|
14
14
|
import { useWorkspaceSurfaceId } from "../composables/useWorkspaceSurfaceId.js";
|
|
@@ -195,7 +195,7 @@ import { computed, toRefs, unref } from "vue";
|
|
|
195
195
|
import { mdiContentCopy } from "@mdi/js";
|
|
196
196
|
import { formatDateTime as formatKernelDateTime } from "@jskit-ai/kernel/shared/support";
|
|
197
197
|
import { normalizeRecordId } from "@jskit-ai/kernel/shared/support/normalize";
|
|
198
|
-
import { requireBoolean, requireFunction, requireRecord } from "@jskit-ai/
|
|
198
|
+
import { requireBoolean, requireFunction, requireRecord } from "@jskit-ai/users-web/client/support/contractGuards";
|
|
199
199
|
|
|
200
200
|
const props = defineProps({
|
|
201
201
|
forms: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed } from "vue";
|
|
3
|
-
import { useSurfaceRouteContext } from "@jskit-ai/
|
|
3
|
+
import { useSurfaceRouteContext } from "@jskit-ai/users-web/client/composables/useSurfaceRouteContext";
|
|
4
4
|
import { resolveProfileSurfaceMenuLinks } from "../lib/profileSurfaceMenuLinks.js";
|
|
5
5
|
|
|
6
6
|
const props = defineProps({
|
package/src/client/components/{WorkspaceMembersMenuItem.vue → UsersWorkspaceMembersMenuItem.vue}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { mdiAccountGroupOutline } from "@mdi/js";
|
|
3
|
-
import
|
|
3
|
+
import UsersWorkspacePermissionMenuItem from "./UsersWorkspacePermissionMenuItem.vue";
|
|
4
4
|
|
|
5
5
|
const props = defineProps({
|
|
6
6
|
label: {
|
|
@@ -25,7 +25,7 @@ const MEMBERS_MENU_PERMISSIONS = Object.freeze(["workspace.members.view", "works
|
|
|
25
25
|
</script>
|
|
26
26
|
|
|
27
27
|
<template>
|
|
28
|
-
<
|
|
28
|
+
<UsersWorkspacePermissionMenuItem
|
|
29
29
|
:label="props.label"
|
|
30
30
|
:to="props.to"
|
|
31
31
|
:icon="props.icon"
|