@vivix-labs/studio-workbench 1.0.0-beta.4 → 1.0.0-beta.6
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/assets/create-custom-view-WUWJL7YC.svg +5 -0
- package/dist/assets/delete-4Y3OUMEL.svg +8 -0
- package/dist/assets/download-VTKCEAZG.svg +6 -0
- package/dist/assets/favorite-6GMNHJCN.svg +5 -0
- package/dist/assets/filter-JSDZZVGN.svg +5 -0
- package/dist/assets/inria-serif-latin-400-italic-ZCFRMMVP.woff2 +0 -0
- package/dist/assets/inter-latin-900-normal-FKACR3DR.woff2 +0 -0
- package/dist/assets/select-items-GJZIVO37.svg +6 -0
- package/dist/client.bundle.js +1651 -765
- package/dist/client.css +768 -116
- package/dist/server.js +76 -15
- package/dist/shared.d.ts +5 -0
- package/dist/shared.js +2 -1
- package/package.json +23 -23
- package/presets/table.json +4 -4
- package/presets/user-base.json +13 -9
- package/skills/SKILL.md +9 -0
- package/dist/assets/download-4AAENLS6.svg +0 -4
package/dist/server.js
CHANGED
|
@@ -3,7 +3,7 @@ import { createReadStream } from "fs";
|
|
|
3
3
|
import { stat } from "fs/promises";
|
|
4
4
|
import { Readable as Readable2 } from "stream";
|
|
5
5
|
import { defineOperation } from "vivix-studio/sdk/server";
|
|
6
|
-
import { z as
|
|
6
|
+
import { z as z4 } from "vivix-studio/sdk/shared";
|
|
7
7
|
|
|
8
8
|
// packages/studio-workbench/src/shared.ts
|
|
9
9
|
import { z } from "vivix-studio/sdk/shared";
|
|
@@ -18,7 +18,8 @@ var Config = z.object({
|
|
|
18
18
|
libraryInstance: z.string().min(1).nullable().default(null),
|
|
19
19
|
libraryServiceInstance: z.string().min(1).nullable().default(null),
|
|
20
20
|
views: z.object({
|
|
21
|
-
assetList: uiReference.optional()
|
|
21
|
+
assetList: uiReference.optional(),
|
|
22
|
+
projectCreator: uiReference.optional()
|
|
22
23
|
}).strict().default({}),
|
|
23
24
|
dashboard: z.array(uiReference).optional(),
|
|
24
25
|
savedViews: z.array(z.union([uiReference, savedProjectView])).default([]),
|
|
@@ -112,6 +113,42 @@ function saveView(data, input, call) {
|
|
|
112
113
|
return { id: record.objectId, revision: record.revision, view };
|
|
113
114
|
}
|
|
114
115
|
|
|
116
|
+
// packages/studio-workbench/src/project-visibility.ts
|
|
117
|
+
import { z as z3 } from "vivix-studio/sdk/shared";
|
|
118
|
+
var namespace = "@vivix/table-workbench/hidden-projects/1";
|
|
119
|
+
var name = "Hidden workspace projects";
|
|
120
|
+
var projectIds = z3.array(z3.uuid());
|
|
121
|
+
function settings(data) {
|
|
122
|
+
for (let offset = 0; ; ) {
|
|
123
|
+
const page = data.list({ typeId: "extensions.document", search: name, limit: 200, offset });
|
|
124
|
+
const record = page.items.find(({ data: data2 }) => data2.payload?.namespace === namespace);
|
|
125
|
+
if (record || page.nextOffset === null) return record;
|
|
126
|
+
offset = page.nextOffset;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
function listHiddenProjects(data) {
|
|
130
|
+
return projectIds.parse(settings(data)?.data.payload.projectIds ?? []);
|
|
131
|
+
}
|
|
132
|
+
function setProjectHidden(data, input, call) {
|
|
133
|
+
const record = settings(data);
|
|
134
|
+
const current = projectIds.parse(record?.data.payload.projectIds ?? []);
|
|
135
|
+
const hidden = new Set(current);
|
|
136
|
+
if (hidden.has(input.projectId) === input.hidden) return current;
|
|
137
|
+
if (input.hidden) hidden.add(input.projectId);
|
|
138
|
+
else hidden.delete(input.projectId);
|
|
139
|
+
const next = [...hidden];
|
|
140
|
+
data.documents(
|
|
141
|
+
record ? "update" : "create",
|
|
142
|
+
{
|
|
143
|
+
...record && { objectId: record.objectId, expectedRevision: record.revision },
|
|
144
|
+
name,
|
|
145
|
+
payload: { namespace, projectIds: next }
|
|
146
|
+
},
|
|
147
|
+
call
|
|
148
|
+
);
|
|
149
|
+
return next;
|
|
150
|
+
}
|
|
151
|
+
|
|
115
152
|
// packages/studio-workbench/src/export.ts
|
|
116
153
|
import archiver from "archiver";
|
|
117
154
|
import { Readable } from "stream";
|
|
@@ -121,8 +158,8 @@ function failure(code, message) {
|
|
|
121
158
|
}
|
|
122
159
|
function archiveNames(entries) {
|
|
123
160
|
const used = /* @__PURE__ */ new Set();
|
|
124
|
-
return entries.map(({ name }, index) => {
|
|
125
|
-
const base =
|
|
161
|
+
return entries.map(({ name: name2 }, index) => {
|
|
162
|
+
const base = name2.replace(/[\\/\u0000-\u001f\u007f:]/g, "_").replace(/^\.+/, "").trim().slice(0, 180) || `asset-${index + 1}`;
|
|
126
163
|
const dot = base.lastIndexOf(".");
|
|
127
164
|
const stem = dot > 0 ? base.slice(0, dot) : base;
|
|
128
165
|
const extension = dot > 0 ? base.slice(dot) : "";
|
|
@@ -281,7 +318,7 @@ function activate(ctx) {
|
|
|
281
318
|
if ((ctx.scope?.kind || "project") === "project" && !ctx.config.studioInstance)
|
|
282
319
|
throw Error("A project workbench requires studioInstance.");
|
|
283
320
|
if (ctx.scope?.kind === "user") {
|
|
284
|
-
const clipId =
|
|
321
|
+
const clipId = z4.enum(homeClips);
|
|
285
322
|
ctx.onDispose(
|
|
286
323
|
ctx.http.register({
|
|
287
324
|
id: "home-media",
|
|
@@ -313,9 +350,9 @@ function activate(ctx) {
|
|
|
313
350
|
actorId,
|
|
314
351
|
access: []
|
|
315
352
|
});
|
|
316
|
-
const saveInput =
|
|
317
|
-
id:
|
|
318
|
-
expectedRevision:
|
|
353
|
+
const saveInput = z4.object({
|
|
354
|
+
id: z4.uuid().optional(),
|
|
355
|
+
expectedRevision: z4.number().int().positive().optional(),
|
|
319
356
|
view: customViewSchema
|
|
320
357
|
}).strict();
|
|
321
358
|
ctx.handle(
|
|
@@ -323,8 +360,8 @@ function activate(ctx) {
|
|
|
323
360
|
id: "views.list",
|
|
324
361
|
title: "Custom Views",
|
|
325
362
|
description: "List persisted Custom Views for this page.",
|
|
326
|
-
input:
|
|
327
|
-
output:
|
|
363
|
+
input: z4.object({ source: z4.enum(pageSources) }).strict(),
|
|
364
|
+
output: z4.any(),
|
|
328
365
|
effects: ["read"],
|
|
329
366
|
confirm: "none"
|
|
330
367
|
}),
|
|
@@ -336,24 +373,48 @@ function activate(ctx) {
|
|
|
336
373
|
title: "Save Custom View",
|
|
337
374
|
description: "Persist the SQL, parameters and columns with revision checks.",
|
|
338
375
|
input: saveInput,
|
|
339
|
-
output:
|
|
376
|
+
output: z4.any(),
|
|
340
377
|
effects: ["write"],
|
|
341
378
|
confirm: "none"
|
|
342
379
|
}),
|
|
343
380
|
(input, call) => saveView(dataFor(call.actor.id), input, { ...call, scope })
|
|
344
381
|
);
|
|
382
|
+
ctx.handle(
|
|
383
|
+
defineOperation({
|
|
384
|
+
id: "workspace.hiddenProjects",
|
|
385
|
+
title: "Hidden workspace projects",
|
|
386
|
+
description: "Read project IDs hidden from this user workbench.",
|
|
387
|
+
input: z4.object({}).strict(),
|
|
388
|
+
output: projectIds,
|
|
389
|
+
effects: ["read"],
|
|
390
|
+
confirm: "none"
|
|
391
|
+
}),
|
|
392
|
+
(_input, call) => listHiddenProjects(dataFor(call.actor.id))
|
|
393
|
+
);
|
|
394
|
+
ctx.handle(
|
|
395
|
+
defineOperation({
|
|
396
|
+
id: "workspace.setProjectHidden",
|
|
397
|
+
title: "Set workspace project visibility",
|
|
398
|
+
description: "Hide or restore a project in the user workbench.",
|
|
399
|
+
input: z4.object({ projectId: z4.uuid(), hidden: z4.boolean() }).strict(),
|
|
400
|
+
output: projectIds,
|
|
401
|
+
effects: ["write"],
|
|
402
|
+
confirm: "none"
|
|
403
|
+
}),
|
|
404
|
+
(input, call) => setProjectHidden(dataFor(call.actor.id), input, { ...call, scope })
|
|
405
|
+
);
|
|
345
406
|
if (!ctx.config.studioInstance) return;
|
|
346
407
|
const coordinator = ctx.plugins.get(ctx.config.studioInstance);
|
|
347
408
|
const exports = createExportService(coordinator.global);
|
|
348
409
|
ctx.onDispose(() => exports.dispose());
|
|
349
|
-
const ref =
|
|
410
|
+
const ref = z4.object({ storeId: z4.uuid(), objectId: z4.uuid(), versionId: z4.uuid() }).strict();
|
|
350
411
|
ctx.handle(
|
|
351
412
|
defineOperation({
|
|
352
413
|
id: "exports.prepare",
|
|
353
414
|
title: "Prepare download",
|
|
354
415
|
description: "Prepare one exact selection of saved asset versions for streaming.",
|
|
355
|
-
input:
|
|
356
|
-
output:
|
|
416
|
+
input: z4.object({ refs: z4.array(ref).min(1).max(100) }).strict(),
|
|
417
|
+
output: z4.object({ exportId: z4.uuid(), expiresAt: z4.number().int() }).strict(),
|
|
357
418
|
effects: ["read"],
|
|
358
419
|
confirm: "none"
|
|
359
420
|
}),
|
|
@@ -367,7 +428,7 @@ function activate(ctx) {
|
|
|
367
428
|
if (contentType?.split(";")[0]?.trim() !== "application/x-www-form-urlencoded")
|
|
368
429
|
throw Error("Use the prepared download form.");
|
|
369
430
|
const fields = new URLSearchParams(await new Response(body).text());
|
|
370
|
-
const input =
|
|
431
|
+
const input = z4.object({ exportId: z4.uuid() }).strict().parse(Object.fromEntries(fields));
|
|
371
432
|
if ([...fields].length !== 1) throw Error("The prepared download form is invalid.");
|
|
372
433
|
return exports.response(input.exportId, signal);
|
|
373
434
|
}
|
package/dist/shared.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ type CardProps = {
|
|
|
18
18
|
openProjects(): void;
|
|
19
19
|
openAssets(ref?: VersionRef): void;
|
|
20
20
|
projects: readonly HomeProject[];
|
|
21
|
+
hiddenProjectIds?: readonly string[];
|
|
21
22
|
ready: boolean;
|
|
22
23
|
};
|
|
23
24
|
declare const Config: z.ZodObject<{
|
|
@@ -33,6 +34,10 @@ declare const Config: z.ZodObject<{
|
|
|
33
34
|
plugin: z.ZodString;
|
|
34
35
|
id: z.ZodString;
|
|
35
36
|
}, z.core.$strict>>;
|
|
37
|
+
projectCreator: z.ZodOptional<z.ZodObject<{
|
|
38
|
+
plugin: z.ZodString;
|
|
39
|
+
id: z.ZodString;
|
|
40
|
+
}, z.core.$strict>>;
|
|
36
41
|
}, z.core.$strict>>;
|
|
37
42
|
dashboard: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
38
43
|
plugin: z.ZodString;
|
package/dist/shared.js
CHANGED
|
@@ -11,7 +11,8 @@ var Config = z.object({
|
|
|
11
11
|
libraryInstance: z.string().min(1).nullable().default(null),
|
|
12
12
|
libraryServiceInstance: z.string().min(1).nullable().default(null),
|
|
13
13
|
views: z.object({
|
|
14
|
-
assetList: uiReference.optional()
|
|
14
|
+
assetList: uiReference.optional(),
|
|
15
|
+
projectCreator: uiReference.optional()
|
|
15
16
|
}).strict().default({}),
|
|
16
17
|
dashboard: z.array(uiReference).optional(),
|
|
17
18
|
savedViews: z.array(z.union([uiReference, savedProjectView])).default([]),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vivix-labs/studio-workbench",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -53,28 +53,28 @@
|
|
|
53
53
|
},
|
|
54
54
|
"vivixStudio": {
|
|
55
55
|
"runtimePlugins": {
|
|
56
|
-
"@vivix-labs/ads-compare": "1.0.0-beta.
|
|
57
|
-
"@vivix-labs/ads-storyboard": "1.0.0-beta.
|
|
58
|
-
"@vivix-labs/creative-data": "1.0.0-beta.
|
|
59
|
-
"@vivix-labs/dashboard-assets": "1.0.0-beta.
|
|
60
|
-
"@vivix-labs/dashboard-projects": "1.0.0-beta.
|
|
61
|
-
"@vivix-labs/magic-edit": "1.0.0-beta.
|
|
62
|
-
"@vivix-labs/material-library": "1.0.0-beta.
|
|
63
|
-
"@vivix-labs/media-tools": "1.0.0-beta.
|
|
64
|
-
"@vivix-labs/project-studio": "1.0.0-beta.
|
|
65
|
-
"@vivix-labs/short-drama-characters": "1.0.0-beta.
|
|
66
|
-
"@vivix-labs/short-drama-compare": "1.0.0-beta.
|
|
67
|
-
"@vivix-labs/short-drama-production": "1.0.0-beta.
|
|
68
|
-
"@vivix-labs/short-drama-script-editor": "1.0.0-beta.
|
|
69
|
-
"@vivix-labs/short-drama-social-preview": "1.0.0-beta.
|
|
70
|
-
"@vivix-labs/short-drama-storyboard": "1.0.0-beta.
|
|
71
|
-
"@vivix-labs/short-drama-workbench": "1.0.0-beta.
|
|
72
|
-
"@vivix-labs/studio-asset-list": "1.0.0-beta.
|
|
73
|
-
"@vivix-labs/studio-workbench": "1.0.0-beta.
|
|
74
|
-
"@vivix-labs/vivix-api": "1.0.0-beta.
|
|
75
|
-
"@vivix-labs/ads-workbench": "1.0.0-beta.
|
|
76
|
-
"@vivix-labs/chat-components": "1.0.0-beta.
|
|
77
|
-
"@vivix-labs/short-drama-authoring": "1.0.0-beta.
|
|
56
|
+
"@vivix-labs/ads-compare": "1.0.0-beta.6",
|
|
57
|
+
"@vivix-labs/ads-storyboard": "1.0.0-beta.6",
|
|
58
|
+
"@vivix-labs/creative-data": "1.0.0-beta.6",
|
|
59
|
+
"@vivix-labs/dashboard-assets": "1.0.0-beta.6",
|
|
60
|
+
"@vivix-labs/dashboard-projects": "1.0.0-beta.6",
|
|
61
|
+
"@vivix-labs/magic-edit": "1.0.0-beta.6",
|
|
62
|
+
"@vivix-labs/material-library": "1.0.0-beta.6",
|
|
63
|
+
"@vivix-labs/media-tools": "1.0.0-beta.6",
|
|
64
|
+
"@vivix-labs/project-studio": "1.0.0-beta.6",
|
|
65
|
+
"@vivix-labs/short-drama-characters": "1.0.0-beta.6",
|
|
66
|
+
"@vivix-labs/short-drama-compare": "1.0.0-beta.6",
|
|
67
|
+
"@vivix-labs/short-drama-production": "1.0.0-beta.6",
|
|
68
|
+
"@vivix-labs/short-drama-script-editor": "1.0.0-beta.6",
|
|
69
|
+
"@vivix-labs/short-drama-social-preview": "1.0.0-beta.6",
|
|
70
|
+
"@vivix-labs/short-drama-storyboard": "1.0.0-beta.6",
|
|
71
|
+
"@vivix-labs/short-drama-workbench": "1.0.0-beta.6",
|
|
72
|
+
"@vivix-labs/studio-asset-list": "1.0.0-beta.6",
|
|
73
|
+
"@vivix-labs/studio-workbench": "1.0.0-beta.6",
|
|
74
|
+
"@vivix-labs/vivix-api": "1.0.0-beta.6",
|
|
75
|
+
"@vivix-labs/ads-workbench": "1.0.0-beta.6",
|
|
76
|
+
"@vivix-labs/chat-components": "1.0.0-beta.6",
|
|
77
|
+
"@vivix-labs/short-drama-authoring": "1.0.0-beta.6"
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
}
|
package/presets/table.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
{
|
|
8
8
|
"id": "api",
|
|
9
9
|
"package": "@vivix-labs/vivix-api",
|
|
10
|
-
"version": "1.0.0-beta.
|
|
10
|
+
"version": "1.0.0-beta.6",
|
|
11
11
|
"enabled": true,
|
|
12
12
|
"config": {},
|
|
13
13
|
"requiredAccess": ["official.request"]
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
{
|
|
16
16
|
"id": "studio",
|
|
17
17
|
"package": "@vivix-labs/project-studio",
|
|
18
|
-
"version": "1.0.0-beta.
|
|
18
|
+
"version": "1.0.0-beta.6",
|
|
19
19
|
"enabled": true,
|
|
20
20
|
"config": {
|
|
21
21
|
"role": "project",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
{
|
|
30
30
|
"id": "library",
|
|
31
31
|
"package": "@vivix-labs/material-library",
|
|
32
|
-
"version": "1.0.0-beta.
|
|
32
|
+
"version": "1.0.0-beta.6",
|
|
33
33
|
"enabled": true,
|
|
34
34
|
"config": {
|
|
35
35
|
"role": "client",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
{
|
|
40
40
|
"id": "workbench",
|
|
41
41
|
"package": "@vivix-labs/studio-workbench",
|
|
42
|
-
"version": "1.0.0-beta.
|
|
42
|
+
"version": "1.0.0-beta.6",
|
|
43
43
|
"enabled": true,
|
|
44
44
|
"config": {
|
|
45
45
|
"studioInstance": "studio",
|
package/presets/user-base.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
{
|
|
8
8
|
"id": "data",
|
|
9
9
|
"package": "@vivix-labs/creative-data",
|
|
10
|
-
"version": "1.0.0-beta.
|
|
10
|
+
"version": "1.0.0-beta.6",
|
|
11
11
|
"enabled": true,
|
|
12
12
|
"config": {},
|
|
13
13
|
"requiredAccess": ["project.content.read"]
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
{
|
|
16
16
|
"id": "library",
|
|
17
17
|
"package": "@vivix-labs/material-library",
|
|
18
|
-
"version": "1.0.0-beta.
|
|
18
|
+
"version": "1.0.0-beta.6",
|
|
19
19
|
"enabled": true,
|
|
20
20
|
"config": {
|
|
21
21
|
"role": "service",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
{
|
|
27
27
|
"id": "api",
|
|
28
28
|
"package": "@vivix-labs/vivix-api",
|
|
29
|
-
"version": "1.0.0-beta.
|
|
29
|
+
"version": "1.0.0-beta.6",
|
|
30
30
|
"enabled": true,
|
|
31
31
|
"config": {},
|
|
32
32
|
"requiredAccess": ["official.request"]
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
{
|
|
35
35
|
"id": "coordinator",
|
|
36
36
|
"package": "@vivix-labs/project-studio",
|
|
37
|
-
"version": "1.0.0-beta.
|
|
37
|
+
"version": "1.0.0-beta.6",
|
|
38
38
|
"enabled": true,
|
|
39
39
|
"config": {
|
|
40
40
|
"role": "coordinator",
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
{
|
|
48
48
|
"id": "magic-edit",
|
|
49
49
|
"package": "@vivix-labs/magic-edit",
|
|
50
|
-
"version": "1.0.0-beta.
|
|
50
|
+
"version": "1.0.0-beta.6",
|
|
51
51
|
"enabled": true,
|
|
52
52
|
"config": {}
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"id": "dashboard-projects",
|
|
56
56
|
"package": "@vivix-labs/dashboard-projects",
|
|
57
|
-
"version": "1.0.0-beta.
|
|
57
|
+
"version": "1.0.0-beta.6",
|
|
58
58
|
"enabled": true,
|
|
59
59
|
"config": {
|
|
60
60
|
"studioInstance": "coordinator"
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
{
|
|
64
64
|
"id": "dashboard-assets",
|
|
65
65
|
"package": "@vivix-labs/dashboard-assets",
|
|
66
|
-
"version": "1.0.0-beta.
|
|
66
|
+
"version": "1.0.0-beta.6",
|
|
67
67
|
"enabled": true,
|
|
68
68
|
"config": {
|
|
69
69
|
"studioInstance": "coordinator"
|
|
@@ -72,14 +72,14 @@
|
|
|
72
72
|
{
|
|
73
73
|
"id": "asset-list",
|
|
74
74
|
"package": "@vivix-labs/studio-asset-list",
|
|
75
|
-
"version": "1.0.0-beta.
|
|
75
|
+
"version": "1.0.0-beta.6",
|
|
76
76
|
"enabled": true,
|
|
77
77
|
"config": {}
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
"id": "workbench",
|
|
81
81
|
"package": "@vivix-labs/studio-workbench",
|
|
82
|
-
"version": "1.0.0-beta.
|
|
82
|
+
"version": "1.0.0-beta.6",
|
|
83
83
|
"enabled": true,
|
|
84
84
|
"config": {
|
|
85
85
|
"studioInstance": "coordinator",
|
|
@@ -99,6 +99,10 @@
|
|
|
99
99
|
}
|
|
100
100
|
],
|
|
101
101
|
"views": {
|
|
102
|
+
"projectCreator": {
|
|
103
|
+
"plugin": "dashboard-projects",
|
|
104
|
+
"id": "create-project"
|
|
105
|
+
},
|
|
102
106
|
"assetList": {
|
|
103
107
|
"plugin": "asset-list",
|
|
104
108
|
"id": "asset-list"
|
package/skills/SKILL.md
CHANGED
|
@@ -34,6 +34,15 @@ revision and set `changes.coverRef` to a saved image's exact VersionRef from tha
|
|
|
34
34
|
project, or to `null` to remove it. Verify the saved reference and refresh Manage
|
|
35
35
|
Projects to see it on both the project card and sidebar.
|
|
36
36
|
|
|
37
|
+
## Remove or restore a project in the workbench
|
|
38
|
+
|
|
39
|
+
Remove project hides the project from the sidebar, Home project cards, and
|
|
40
|
+
Manage Projects. The local directory, registration, and saved content remain
|
|
41
|
+
available. For a request to restore a project by name, match its registered
|
|
42
|
+
ID and discover `workspace.hiddenProjects` and `workspace.setProjectHidden`
|
|
43
|
+
on the user-scope workbench instance. Read the hidden IDs, set
|
|
44
|
+
`hidden: false` for the matching ID, and verify it is no longer hidden.
|
|
45
|
+
|
|
37
46
|
## Refresh the affected workbench
|
|
38
47
|
|
|
39
48
|
After an operation succeeds and changes data shown in an open workbench, check that the
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="white" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round">
|
|
2
|
-
<path d="M8 1.5v9m-3.5-3.5L8 10.5 11.5 7"/>
|
|
3
|
-
<path d="M2 10.5v1.75A1.75 1.75 0 0 0 3.75 14h8.5A1.75 1.75 0 0 0 14 12.25V10.5"/>
|
|
4
|
-
</svg>
|