zidane-ui 9.5.2 → 9.6.1
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/adapters/index.d.ts +2 -1
- package/dist/adapters/index.js +2 -1
- package/dist/adapters/server-git-host.js +67 -0
- package/dist/adapters/server-host.js +9 -0
- package/dist/adapters/server-oauth-flow.d.ts +2 -2
- package/dist/adapters/server-oauth-flow.js +1 -1
- package/dist/adapters/server-projects.d.ts +53 -2
- package/dist/adapters/server-projects.js +4 -3
- package/dist/adapters/server-session-host.js +112 -4
- package/dist/channels/BindingEditorDialog.js +1 -1
- package/dist/channels/ChannelDefaultsSection.js +1 -1
- package/dist/channels/ChannelsSettingsSection.js +1 -1
- package/dist/channels/ConnectionSetupDialog.js +1 -1
- package/dist/channels/HeldRepliesList.js +1 -1
- package/dist/channels/ProjectChannelsSection.js +1 -1
- package/dist/chat/HostTranscript.js +1 -0
- package/dist/chat/SessionGroupHeader.js +2 -2
- package/dist/chat/composer/ComposerBadges.d.ts +27 -1
- package/dist/chat/composer/ComposerBadges.js +41 -5
- package/dist/chat/composer/ConversationBadges.d.ts +6 -0
- package/dist/chat/composer/ConversationBadges.js +70 -3
- package/dist/chat/composer/DraftPickers.js +4 -0
- package/dist/chat/composer/ServerScopeToggle.d.ts +16 -1
- package/dist/chat/composer/ServerScopeToggle.js +90 -47
- package/dist/chat/composer/index.d.ts +2 -2
- package/dist/chat/composer/use-draft-target.d.ts +18 -2
- package/dist/chat/composer/use-draft-target.js +74 -7
- package/dist/chat/composer/use-new-session-defaults.d.ts +3 -1
- package/dist/chat/composer/use-new-session-defaults.js +19 -14
- package/dist/chat/composer/use-send-prompt.js +2 -2
- package/dist/chat/headless/composer/index.d.ts +2 -2
- package/dist/chat/headless/composer/index.js +2 -2
- package/dist/chat/headless/composer/labels-chrome.d.ts +7 -0
- package/dist/chat/headless/composer/labels-chrome.js +7 -0
- package/dist/chat/headless/composer/labels-editor.d.ts +4 -0
- package/dist/chat/headless/composer/labels-editor.js +4 -0
- package/dist/chat/headless/composer/models.d.ts +2 -0
- package/dist/chat/headless/composer/new-session-defaults.d.ts +12 -1
- package/dist/chat/headless/composer/new-session-defaults.js +30 -1
- package/dist/chat/headless/draft-target.d.ts +27 -6
- package/dist/chat/headless/draft-target.js +36 -3
- package/dist/chat/headless/host.d.ts +7 -0
- package/dist/chat/headless/index.d.ts +4 -4
- package/dist/chat/headless/index.js +29 -29
- package/dist/chat/headless/labels.d.ts +4 -0
- package/dist/chat/headless/send-flow.d.ts +2 -0
- package/dist/chat/headless/send-flow.js +2 -1
- package/dist/chat/headless/session-list.d.ts +4 -0
- package/dist/chat/headless/sidebar/index.d.ts +2 -2
- package/dist/chat/headless/sidebar/labels.d.ts +9 -1
- package/dist/chat/headless/sidebar/labels.js +4 -0
- package/dist/chat/headless/sidebar/rows.d.ts +48 -7
- package/dist/chat/headless/sidebar/rows.js +121 -22
- package/dist/chat/headless/sidebar/types.d.ts +5 -0
- package/dist/chat/headless/transcript/fold-actions.d.ts +8 -3
- package/dist/chat/headless/transcript/fold-actions.js +29 -1
- package/dist/chat/index.d.ts +2 -2
- package/dist/chat/index.js +2 -2
- package/dist/chat/rich-composer/RichComposer.js +58 -11
- package/dist/chat/rich-composer/composer-controls.d.ts +5 -1
- package/dist/chat/rich-composer/composer-controls.js +4 -4
- package/dist/chat/rich-composer/composer-keys.js +2 -2
- package/dist/chat/rich-composer/draft-collab.d.ts +91 -0
- package/dist/chat/rich-composer/draft-collab.js +310 -0
- package/dist/chat/rich-composer/use-composer-editor.d.ts +2 -0
- package/dist/chat/rich-composer/use-draft-collab.d.ts +53 -0
- package/dist/chat/rich-composer/use-draft-collab.js +92 -0
- package/dist/chat/rich-composer/use-draft-mirror.d.ts +11 -0
- package/dist/chat/rich-composer/use-draft-mirror.js +38 -9
- package/dist/chat/sidebar/InboxList.js +1 -1
- package/dist/chat/sidebar/ProjectIcon.d.ts +6 -2
- package/dist/chat/sidebar/ProjectIcon.js +7 -3
- package/dist/chat/sidebar/SessionSidebar.d.ts +30 -1
- package/dist/chat/sidebar/SessionSidebar.js +79 -7
- package/dist/chat/sidebar/SidebarGroupHeader.d.ts +12 -4
- package/dist/chat/sidebar/SidebarGroupHeader.js +70 -28
- package/dist/chat/sidebar/index.d.ts +2 -2
- package/dist/chat/transcript/actions.d.ts +6 -0
- package/dist/chat/transcript/fold.d.ts +2 -1
- package/dist/chat/transcript/fold.js +26 -1
- package/dist/chat/transcript/index.js +3 -3
- package/dist/chat/transcript/notices.d.ts +5 -2
- package/dist/chat/transcript/notices.js +23 -3
- package/dist/chat/transcript/script-input.d.ts +1 -1
- package/dist/components/Avatar.d.ts +36 -0
- package/dist/components/Avatar.js +56 -0
- package/dist/components/AvatarStack.d.ts +58 -0
- package/dist/components/AvatarStack.js +187 -0
- package/dist/components/Tabs.d.ts +6 -1
- package/dist/components/Tabs.js +43 -39
- package/dist/core.css +19 -1
- package/dist/dist/{index-DPbpsCtl.d.ts → index-ChabiHpR.d.ts} +1 -1
- package/dist/dist/index.d.ts +1 -1
- package/dist/git/headless/environment.d.ts +15 -0
- package/dist/git/headless/environment.js +18 -1
- package/dist/git/headless/github.d.ts +11 -0
- package/dist/git/headless/github.js +15 -0
- package/dist/git/headless/host.d.ts +109 -0
- package/dist/git/headless/index.d.ts +5 -4
- package/dist/git/headless/index.js +4 -3
- package/dist/git/headless/labels.d.ts +16 -1
- package/dist/git/headless/labels.js +25 -1
- package/dist/git/testing/contract.d.ts +22 -4
- package/dist/git/testing/contract.js +173 -3
- package/dist/git/testing/index.d.ts +22 -1
- package/dist/git/testing/index.js +135 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/labels.d.ts +4 -0
- package/dist/labels.js +4 -0
- package/dist/onboarding/headless/labels.d.ts +4 -0
- package/dist/session/DraftPeopleStack.d.ts +24 -0
- package/dist/session/DraftPeopleStack.js +48 -0
- package/dist/session/NewProjectDialog.d.ts +28 -8
- package/dist/session/NewProjectDialog.js +225 -40
- package/dist/session/PersonCard.d.ts +29 -0
- package/dist/session/PersonCard.js +199 -0
- package/dist/session/ProjectArtifactsSection.d.ts +4 -1
- package/dist/session/ProjectArtifactsSection.js +149 -34
- package/dist/session/ProjectHome.d.ts +1 -1
- package/dist/session/ProjectHome.js +23 -4
- package/dist/session/ProjectName.d.ts +11 -6
- package/dist/session/ProjectName.js +27 -13
- package/dist/session/ProjectPeopleStack.d.ts +26 -0
- package/dist/session/ProjectPeopleStack.js +56 -0
- package/dist/session/ProjectPublishDialog.js +9 -3
- package/dist/session/ProjectSettingsDialog.d.ts +1 -1
- package/dist/session/ProjectSettingsDialog.js +171 -66
- package/dist/session/ProjectShareDialog.d.ts +1 -1
- package/dist/session/ProjectShareDialog.js +16 -6
- package/dist/session/ProjectToolsSection.js +88 -96
- package/dist/session/ProjectUsage.d.ts +4 -1
- package/dist/session/ProjectUsage.js +13 -4
- package/dist/session/SessionDetailsDialog.d.ts +5 -1
- package/dist/session/SessionDetailsDialog.js +67 -10
- package/dist/session/SessionPeopleStack.js +19 -37
- package/dist/session/SessionProjectPicker.d.ts +54 -0
- package/dist/session/SessionProjectPicker.js +175 -0
- package/dist/session/SessionProvider.d.ts +15 -1
- package/dist/session/SessionProvider.js +28 -6
- package/dist/session/UsageSection.d.ts +2 -4
- package/dist/session/UsageSection.js +57 -55
- package/dist/session/headless/draft-collab.d.ts +55 -0
- package/dist/session/headless/draft-collab.js +127 -0
- package/dist/session/headless/draft-room.d.ts +124 -0
- package/dist/session/headless/draft-room.js +340 -0
- package/dist/session/headless/drafts.d.ts +93 -0
- package/dist/session/headless/drafts.js +79 -0
- package/dist/session/headless/fixture-drafts.d.ts +54 -0
- package/dist/session/headless/fixture-drafts.js +286 -0
- package/dist/session/headless/fixture-host.d.ts +18 -2
- package/dist/session/headless/fixture-host.js +41 -7
- package/dist/session/headless/fixture-projects.d.ts +6 -4
- package/dist/session/headless/fixture-projects.js +25 -4
- package/dist/session/headless/host.d.ts +34 -6
- package/dist/session/headless/index.d.ts +6 -3
- package/dist/session/headless/index.js +6 -3
- package/dist/session/headless/labels.d.ts +47 -2
- package/dist/session/headless/labels.js +17 -1
- package/dist/session/headless/people.d.ts +27 -3
- package/dist/session/headless/people.js +38 -20
- package/dist/session/headless/project-artifact-labels.d.ts +7 -0
- package/dist/session/headless/project-artifact-labels.js +7 -0
- package/dist/session/headless/project-artifacts.d.ts +8 -0
- package/dist/session/headless/project-artifacts.js +15 -1
- package/dist/session/headless/project-labels.d.ts +25 -0
- package/dist/session/headless/project-labels.js +25 -0
- package/dist/session/headless/shared-with.d.ts +28 -0
- package/dist/session/headless/shared-with.js +51 -0
- package/dist/session/host-context.d.ts +11 -0
- package/dist/session/host-context.js +14 -0
- package/dist/session/index.d.ts +7 -3
- package/dist/session/index.js +6 -2
- package/dist/session/new-project-parts.d.ts +67 -0
- package/dist/session/new-project-parts.js +470 -0
- package/dist/session/project-artifact-parts.d.ts +2 -1
- package/dist/session/project-artifact-parts.js +5 -2
- package/dist/session/project-people.d.ts +14 -0
- package/dist/session/project-people.js +86 -0
- package/dist/session/share-people.d.ts +12 -0
- package/dist/session/share-people.js +1 -1
- package/dist/session/testing/contract.d.ts +6 -3
- package/dist/session/testing/contract.js +24 -3
- package/dist/session/testing/drafts.contract.d.ts +30 -0
- package/dist/session/testing/drafts.contract.js +126 -0
- package/dist/session/testing/index.d.ts +2 -1
- package/dist/session/testing/index.js +2 -1
- package/dist/session/use-home-projects.d.ts +11 -2
- package/dist/session/use-home-projects.js +142 -5
- package/dist/session/useDraftCollab.d.ts +24 -0
- package/dist/session/useDraftCollab.js +78 -0
- package/dist/settings/headless/search.d.ts +1 -1
- package/dist/settings/index.js +9 -9
- package/dist/settings/sections/index.js +1 -1
- package/dist/settings/sections/providers/CredentialSources.d.ts +5 -5
- package/dist/settings/sections/providers/CredentialSources.js +5 -22
- package/dist/settings/sections/providers/labels.d.ts +1 -9
- package/dist/settings/sections/providers/labels.js +1 -9
- package/dist/styles.css +20 -9
- package/package.json +4 -3
- package/src/styles/sidebar.css +2 -3
|
@@ -11,17 +11,24 @@ import { IconButton } from "../components/IconButton.js";
|
|
|
11
11
|
import { Notice } from "../components/Notice.js";
|
|
12
12
|
import { errorMessage } from "../components/report-error.js";
|
|
13
13
|
import { Skeleton } from "../components/Skeleton.js";
|
|
14
|
+
import { CountBadge } from "../components/TabPill.js";
|
|
15
|
+
import { Tabs } from "../components/Tabs.js";
|
|
14
16
|
import { useTooltip } from "../components/Tooltip.js";
|
|
15
17
|
import { useDisplayPath } from "../hooks/useDisplayPath.js";
|
|
18
|
+
import { scrollRootOf } from "../hooks/useNearViewport.js";
|
|
16
19
|
import { AgentDefaultsRows, agentDefaultsOf } from "../settings/sections/models/AgentDefaults.js";
|
|
17
20
|
import { useSettings } from "../settings/SettingsProvider.js";
|
|
18
21
|
import { managesProject } from "./headless/projects.js";
|
|
22
|
+
import { useCarrySessionHost } from "./host-context.js";
|
|
23
|
+
import { useArtifactsRead } from "./project-artifact-parts.js";
|
|
19
24
|
import { useContentRead } from "./project-content-parts.js";
|
|
20
25
|
import { ProjectFilesProvider, useLocalProjectFileOpener } from "./project-files.js";
|
|
21
26
|
import { FolderMissingActions } from "./project-folder-actions.js";
|
|
27
|
+
import { ProjectPeopleList } from "./project-people.js";
|
|
22
28
|
import { ROW, SectionFailure } from "./project-settings-parts.js";
|
|
23
29
|
import { ProjectArtifactsSection } from "./ProjectArtifactsSection.js";
|
|
24
30
|
import { ProjectBudgetsSection } from "./ProjectBudgetsSection.js";
|
|
31
|
+
import { ProjectContextSection } from "./ProjectContextSection.js";
|
|
25
32
|
import { ProjectInstructionsSection } from "./ProjectInstructionsSection.js";
|
|
26
33
|
import { ProjectBadge, projectIconOf } from "./ProjectName.js";
|
|
27
34
|
import { ProjectOrchestratorSection } from "./ProjectOrchestratorSection.js";
|
|
@@ -33,7 +40,7 @@ import { ProjectToolsSection } from "./ProjectToolsSection.js";
|
|
|
33
40
|
import { useSessionProjects } from "./SessionProvider.js";
|
|
34
41
|
import { useFolderMissing } from "./use-folder-missing.js";
|
|
35
42
|
import { useSessionLabels } from "./useSessionLabels.js";
|
|
36
|
-
import { useCallback, useEffect, useRef, useState } from "react";
|
|
43
|
+
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
37
44
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
38
45
|
import { PROJECT_NAME_MAX } from "zidane/chat/pure";
|
|
39
46
|
// src/session/ProjectSettingsDialog.tsx
|
|
@@ -101,6 +108,7 @@ function ProjectSettingsDialog({ projectId, onClose, ...actions }) {
|
|
|
101
108
|
return icon ? { icon } : {};
|
|
102
109
|
};
|
|
103
110
|
const said = (section) => failure?.section === section ? /* @__PURE__ */ jsx(SectionFailure, { failure }) : null;
|
|
111
|
+
const artifacts = useArtifactsRead(projects?.artifacts, projectId, true);
|
|
104
112
|
const props = {
|
|
105
113
|
run,
|
|
106
114
|
fail,
|
|
@@ -110,10 +118,13 @@ function ProjectSettingsDialog({ projectId, onClose, ...actions }) {
|
|
|
110
118
|
return /* @__PURE__ */ jsxs(ModalShell, {
|
|
111
119
|
size: "large",
|
|
112
120
|
title: labels.projectSettings,
|
|
113
|
-
...project ? {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
121
|
+
...project ? {
|
|
122
|
+
description: /* @__PURE__ */ jsx(ProjectBadge, {
|
|
123
|
+
name: project.name,
|
|
124
|
+
...iconOf(project)
|
|
125
|
+
}),
|
|
126
|
+
className: "h-[85dvh]"
|
|
127
|
+
} : {},
|
|
117
128
|
onClose,
|
|
118
129
|
children: [
|
|
119
130
|
projects && typeof read === "object" && /* @__PURE__ */ jsx(Notice, {
|
|
@@ -131,9 +142,9 @@ function ProjectSettingsDialog({ projectId, onClose, ...actions }) {
|
|
|
131
142
|
children: labels.projectSettingsLoadFailed
|
|
132
143
|
}),
|
|
133
144
|
projects && !project && read === "reading" && /* @__PURE__ */ jsx(SettingsLoading, {}),
|
|
134
|
-
projects && project && /* @__PURE__ */
|
|
135
|
-
|
|
136
|
-
children: [
|
|
145
|
+
projects && project && /* @__PURE__ */ jsx(SettingsTabs, {
|
|
146
|
+
artifacts,
|
|
147
|
+
general: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
137
148
|
sharing && place !== void 0 && !grants.manage && /* @__PURE__ */ jsx(Notice, {
|
|
138
149
|
tone: "info",
|
|
139
150
|
compact: true,
|
|
@@ -150,21 +161,35 @@ function ProjectSettingsDialog({ projectId, onClose, ...actions }) {
|
|
|
150
161
|
projects,
|
|
151
162
|
actions
|
|
152
163
|
}),
|
|
153
|
-
/* @__PURE__ */ jsx(
|
|
154
|
-
...props,
|
|
164
|
+
/* @__PURE__ */ jsx(SharingSection, {
|
|
155
165
|
project,
|
|
156
166
|
projects
|
|
157
167
|
}),
|
|
158
|
-
/* @__PURE__ */ jsx(
|
|
168
|
+
sharing?.setSessionAccess && /* @__PURE__ */ jsx(ProjectSessionAccessSection, {
|
|
159
169
|
...props,
|
|
160
170
|
project,
|
|
161
|
-
|
|
171
|
+
sharing: {
|
|
172
|
+
...sharing,
|
|
173
|
+
setSessionAccess: sharing.setSessionAccess
|
|
174
|
+
}
|
|
162
175
|
}),
|
|
163
|
-
|
|
176
|
+
/* @__PURE__ */ jsx(DeleteSection, {
|
|
164
177
|
...props,
|
|
165
178
|
project,
|
|
166
179
|
projects,
|
|
167
|
-
|
|
180
|
+
actions
|
|
181
|
+
})
|
|
182
|
+
] }),
|
|
183
|
+
agent: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
184
|
+
/* @__PURE__ */ jsx(DefaultsSection, {
|
|
185
|
+
...props,
|
|
186
|
+
project,
|
|
187
|
+
projects
|
|
188
|
+
}),
|
|
189
|
+
/* @__PURE__ */ jsx(ContentSections, {
|
|
190
|
+
...props,
|
|
191
|
+
project,
|
|
192
|
+
projects
|
|
168
193
|
}),
|
|
169
194
|
/* @__PURE__ */ jsx(ProjectOrchestratorSection, {
|
|
170
195
|
...props,
|
|
@@ -180,30 +205,91 @@ function ProjectSettingsDialog({ projectId, onClose, ...actions }) {
|
|
|
180
205
|
projectId: project.id,
|
|
181
206
|
projectName: project.name,
|
|
182
207
|
canManage: grants.manage
|
|
183
|
-
}),
|
|
184
|
-
/* @__PURE__ */ jsx(SharingSection, {
|
|
185
|
-
project,
|
|
186
|
-
projects
|
|
187
|
-
}),
|
|
188
|
-
sharing?.setSessionAccess && /* @__PURE__ */ jsx(ProjectSessionAccessSection, {
|
|
189
|
-
...props,
|
|
190
|
-
project,
|
|
191
|
-
sharing: {
|
|
192
|
-
...sharing,
|
|
193
|
-
setSessionAccess: sharing.setSessionAccess
|
|
194
|
-
}
|
|
195
|
-
}),
|
|
196
|
-
/* @__PURE__ */ jsx(DeleteSection, {
|
|
197
|
-
...props,
|
|
198
|
-
project,
|
|
199
|
-
projects,
|
|
200
|
-
actions
|
|
201
208
|
})
|
|
202
|
-
]
|
|
209
|
+
] }),
|
|
210
|
+
artifactsTab: projects.artifacts && /* @__PURE__ */ jsx(ProjectArtifactsSection, {
|
|
211
|
+
...props,
|
|
212
|
+
project,
|
|
213
|
+
projects,
|
|
214
|
+
artifacts: projects.artifacts,
|
|
215
|
+
read: artifacts
|
|
216
|
+
})
|
|
203
217
|
})
|
|
204
218
|
]
|
|
205
219
|
});
|
|
206
220
|
}
|
|
221
|
+
/**
|
|
222
|
+
* The track's box: on the body's edges (its 20px sides, its 16px top), on the dialog's tone, over what scrolls under it.
|
|
223
|
+
* A sticky box keeps clear of its scroller's padding: `-top-4` holds it on the body's top edge.
|
|
224
|
+
*/
|
|
225
|
+
const TRACK = "sticky -top-4 z-[2] -mx-5 -mt-4 px-5 pt-4 pb-3 bg-[var(--zg-overlay)] border-0 border-b border-solid";
|
|
226
|
+
/**
|
|
227
|
+
* The tabs of the dialog, on a track that stays at the top of the body. A hairline parts it from the rows only once
|
|
228
|
+
* they scroll under it; a tab picked shows from its top.
|
|
229
|
+
*/
|
|
230
|
+
function SettingsTabs({ general, agent, artifactsTab, artifacts }) {
|
|
231
|
+
const labels = useSessionLabels();
|
|
232
|
+
const [tab, setTab] = useState("general");
|
|
233
|
+
const probe = useRef(null);
|
|
234
|
+
const root = useRef(null);
|
|
235
|
+
const [scrolled, setScrolled] = useState(false);
|
|
236
|
+
useLayoutEffect(() => {
|
|
237
|
+
const el = probe.current && scrollRootOf(probe.current);
|
|
238
|
+
root.current = el ?? null;
|
|
239
|
+
if (!el) return void 0;
|
|
240
|
+
const read = () => setScrolled(el.scrollTop > 0);
|
|
241
|
+
read();
|
|
242
|
+
el.addEventListener("scroll", read, { passive: true });
|
|
243
|
+
return () => el.removeEventListener("scroll", read);
|
|
244
|
+
}, []);
|
|
245
|
+
const pick = (id) => {
|
|
246
|
+
setTab(id);
|
|
247
|
+
if (root.current) root.current.scrollTop = 0;
|
|
248
|
+
};
|
|
249
|
+
const count = artifacts.rows?.length;
|
|
250
|
+
const items = [
|
|
251
|
+
{
|
|
252
|
+
id: "general",
|
|
253
|
+
label: labels.projectTabGeneral,
|
|
254
|
+
content: /* @__PURE__ */ jsx("div", {
|
|
255
|
+
className: "flex flex-col gap-5",
|
|
256
|
+
children: general
|
|
257
|
+
})
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
id: "agent",
|
|
261
|
+
label: labels.projectTabAgent,
|
|
262
|
+
content: /* @__PURE__ */ jsx("div", {
|
|
263
|
+
className: "flex flex-col gap-5",
|
|
264
|
+
children: agent
|
|
265
|
+
})
|
|
266
|
+
},
|
|
267
|
+
...artifactsTab ? [{
|
|
268
|
+
id: "artifacts",
|
|
269
|
+
label: /* @__PURE__ */ jsxs("span", {
|
|
270
|
+
className: "inline-flex items-center gap-1.5",
|
|
271
|
+
children: [labels.projectTabArtifacts, count !== void 0 && count > 0 && /* @__PURE__ */ jsx(CountBadge, {
|
|
272
|
+
text: String(count),
|
|
273
|
+
tone: "neutral"
|
|
274
|
+
})]
|
|
275
|
+
}),
|
|
276
|
+
content: artifactsTab
|
|
277
|
+
}] : []
|
|
278
|
+
];
|
|
279
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
280
|
+
ref: probe,
|
|
281
|
+
"aria-hidden": true,
|
|
282
|
+
className: "block h-0"
|
|
283
|
+
}), /* @__PURE__ */ jsx(Tabs, {
|
|
284
|
+
items,
|
|
285
|
+
value: tab,
|
|
286
|
+
onChange: pick,
|
|
287
|
+
size: "md",
|
|
288
|
+
ariaLabel: labels.projectSettingsTabs,
|
|
289
|
+
className: "!gap-0",
|
|
290
|
+
listClassName: `${TRACK} ${scrolled ? "border-[var(--zg-hairline)]" : "border-transparent"}`
|
|
291
|
+
})] });
|
|
292
|
+
}
|
|
207
293
|
/** The rows of a reading dialog, at the size of the sections that come: the dialog does not jump when they land. */
|
|
208
294
|
function SettingsLoading() {
|
|
209
295
|
const labels = useSessionLabels();
|
|
@@ -551,6 +637,7 @@ function ContentSections(props) {
|
|
|
551
637
|
}
|
|
552
638
|
function WithContent(props) {
|
|
553
639
|
const read = useContentRead(props.content, props.project.id);
|
|
640
|
+
const blocks = read.view?.contextBlocks;
|
|
554
641
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
555
642
|
/* @__PURE__ */ jsx(ProjectInstructionsSection, {
|
|
556
643
|
...props,
|
|
@@ -563,13 +650,21 @@ function WithContent(props) {
|
|
|
563
650
|
/* @__PURE__ */ jsx(ProjectToolsSection, {
|
|
564
651
|
...props,
|
|
565
652
|
read
|
|
653
|
+
}),
|
|
654
|
+
blocks && /* @__PURE__ */ jsx(ProjectContextSection, {
|
|
655
|
+
...props,
|
|
656
|
+
blocks
|
|
566
657
|
})
|
|
567
658
|
] });
|
|
568
659
|
}
|
|
569
|
-
/**
|
|
660
|
+
/**
|
|
661
|
+
* Share, with the people who share the project while the host has sharing (read again once the Share dialog closes);
|
|
662
|
+
* Publish while a server can take it, and the servers the project is published to (named once the host lists them).
|
|
663
|
+
*/
|
|
570
664
|
function SharingSection({ project, projects }) {
|
|
571
665
|
const labels = useSessionLabels();
|
|
572
666
|
const share = useProjectShare();
|
|
667
|
+
const [peopleReads, setPeopleReads] = useState(0);
|
|
573
668
|
const publish = useProjectPublish();
|
|
574
669
|
const published = project.published ?? [];
|
|
575
670
|
const targets = projects.publish?.targets;
|
|
@@ -591,34 +686,42 @@ function SharingSection({ project, projects }) {
|
|
|
591
686
|
});
|
|
592
687
|
return /* @__PURE__ */ jsxs(FormSection, {
|
|
593
688
|
title: labels.projectSharing,
|
|
594
|
-
children: [
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
689
|
+
children: [
|
|
690
|
+
share && /* @__PURE__ */ jsxs("div", {
|
|
691
|
+
className: ROW,
|
|
692
|
+
children: [/* @__PURE__ */ jsx(RowText, {
|
|
693
|
+
label: labels.projectPeople,
|
|
694
|
+
description: labels.projectShareHint,
|
|
695
|
+
truncate: false
|
|
696
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
697
|
+
type: "button",
|
|
698
|
+
className: button,
|
|
699
|
+
onClick: () => share(project.id, project.name, () => setPeopleReads((n) => n + 1)),
|
|
700
|
+
children: labels.projectShare
|
|
701
|
+
})]
|
|
702
|
+
}),
|
|
703
|
+
projects.sharing && /* @__PURE__ */ jsx(ProjectPeopleList, {
|
|
704
|
+
projectId: project.id,
|
|
705
|
+
sharing: projects.sharing,
|
|
706
|
+
reads: peopleReads
|
|
707
|
+
}),
|
|
708
|
+
(canPublish || published.length > 0) && /* @__PURE__ */ jsxs("div", {
|
|
709
|
+
className: ROW,
|
|
710
|
+
children: [/* @__PURE__ */ jsx(RowText, {
|
|
711
|
+
label: labels.projectServers,
|
|
712
|
+
description: published.length > 0 ? /* @__PURE__ */ jsx("span", {
|
|
713
|
+
"data-testid": "project-published",
|
|
714
|
+
children: labels.projectPublishedTo(published.map((p) => names[p.hostId] ?? p.hostId).join(", "))
|
|
715
|
+
}) : labels.projectPublishHint,
|
|
716
|
+
truncate: false
|
|
717
|
+
}), canPublish && /* @__PURE__ */ jsx("button", {
|
|
718
|
+
type: "button",
|
|
719
|
+
className: button,
|
|
720
|
+
onClick: () => publish(project.id),
|
|
721
|
+
children: labels.projectPublish
|
|
722
|
+
})]
|
|
723
|
+
})
|
|
724
|
+
]
|
|
622
725
|
});
|
|
623
726
|
}
|
|
624
727
|
/** Delete, the owner's: asked once, then the app leaves what showed the project. */
|
|
@@ -653,7 +756,7 @@ function DeleteSection({ project, projects, run, grants, said, actions }) {
|
|
|
653
756
|
}), said("delete")] });
|
|
654
757
|
}
|
|
655
758
|
/**
|
|
656
|
-
* Opens a project's settings on the modal layer. `undefined` without `SessionHost.projects` or a modal layer. A local
|
|
759
|
+
* Opens a project's settings on the modal layer, over the caller's host. `undefined` without `SessionHost.projects` or a modal layer. A local
|
|
657
760
|
* file it names (a `file` artifact, an instructions file) opens where the caller would open it (`./project-files`),
|
|
658
761
|
* once the dialog has closed.
|
|
659
762
|
*
|
|
@@ -666,8 +769,9 @@ function useProjectSettings(actions = {}) {
|
|
|
666
769
|
const close = modal?.close;
|
|
667
770
|
const { onLocated, onDetached, onDeleted } = actions;
|
|
668
771
|
const openFile = useLocalProjectFileOpener();
|
|
772
|
+
const carry = useCarrySessionHost();
|
|
669
773
|
const show = useCallback((projectId) => {
|
|
670
|
-
open?.(/* @__PURE__ */ jsx(ProjectFilesProvider, {
|
|
774
|
+
open?.(carry(/* @__PURE__ */ jsx(ProjectFilesProvider, {
|
|
671
775
|
open: openFile && ((path, event) => {
|
|
672
776
|
close?.();
|
|
673
777
|
openFile(path, event);
|
|
@@ -679,14 +783,15 @@ function useProjectSettings(actions = {}) {
|
|
|
679
783
|
...onDetached ? { onDetached } : {},
|
|
680
784
|
...onDeleted ? { onDeleted } : {}
|
|
681
785
|
})
|
|
682
|
-
}));
|
|
786
|
+
})));
|
|
683
787
|
}, [
|
|
684
788
|
open,
|
|
685
789
|
close,
|
|
686
790
|
onLocated,
|
|
687
791
|
onDetached,
|
|
688
792
|
onDeleted,
|
|
689
|
-
openFile
|
|
793
|
+
openFile,
|
|
794
|
+
carry
|
|
690
795
|
]);
|
|
691
796
|
return projects && open ? show : void 0;
|
|
692
797
|
}
|
|
@@ -33,4 +33,4 @@ export interface ProjectShareDialogProps {
|
|
|
33
33
|
*/
|
|
34
34
|
export declare function ProjectShareDialog({ projectId, name, onClose, className, style }: ProjectShareDialogProps): import("react").JSX.Element | null;
|
|
35
35
|
/** Opens a project's share dialog; `undefined` without `SessionHost.projects.sharing` or a modal layer (hide the control). */
|
|
36
|
-
export declare function useProjectShare(): ((projectId: string, name?: string) => void) | undefined;
|
|
36
|
+
export declare function useProjectShare(): ((projectId: string, name?: string, onClosed?: () => void) => void) | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useOptionalModal } from "../app/ModalProvider.js";
|
|
2
2
|
import { buttonClass } from "../components/button.js";
|
|
3
3
|
import { Notice } from "../components/Notice.js";
|
|
4
|
+
import { useCarrySessionHost } from "./host-context.js";
|
|
4
5
|
import { useSessionProjects } from "./SessionProvider.js";
|
|
5
6
|
import { ShareInviteRow, ShareLeave, ShareLoading, ShareMembers, ShareOpenRow, SharePanel, ShareRetry, ShareTransferBar, ShareTransferOpen, useShareDialog } from "./share-people.js";
|
|
6
7
|
import { useSessionLabels } from "./useSessionLabels.js";
|
|
@@ -174,17 +175,26 @@ function useProjectShare() {
|
|
|
174
175
|
const modal = useOptionalModal();
|
|
175
176
|
const openLayer = modal?.openLayer;
|
|
176
177
|
const closeLayer = modal?.closeLayer;
|
|
177
|
-
const
|
|
178
|
+
const carry = useCarrySessionHost();
|
|
179
|
+
const open = useCallback((projectId, name, onClosed) => {
|
|
178
180
|
if (!openLayer || !closeLayer) return;
|
|
179
|
-
|
|
181
|
+
const close = () => {
|
|
182
|
+
closeLayer();
|
|
183
|
+
onClosed?.();
|
|
184
|
+
};
|
|
185
|
+
openLayer(carry(/* @__PURE__ */ jsx(ProjectShareDialog, {
|
|
180
186
|
projectId,
|
|
181
187
|
...name ? { name } : {},
|
|
182
|
-
onClose:
|
|
183
|
-
}), {
|
|
184
|
-
onDismiss: () =>
|
|
188
|
+
onClose: close
|
|
189
|
+
})), {
|
|
190
|
+
onDismiss: () => onClosed?.(),
|
|
185
191
|
labelledBy: TITLE_ID
|
|
186
192
|
});
|
|
187
|
-
}, [
|
|
193
|
+
}, [
|
|
194
|
+
openLayer,
|
|
195
|
+
closeLayer,
|
|
196
|
+
carry
|
|
197
|
+
]);
|
|
188
198
|
return sharing && openLayer && closeLayer ? open : void 0;
|
|
189
199
|
}
|
|
190
200
|
export { ProjectShareDialog, useProjectShare };
|
|
@@ -10,7 +10,6 @@ import { useSectionLabels } from "../settings/sections/use-section-labels.js";
|
|
|
10
10
|
import { AddRecordButton, InheritRow, ItemRow, ListSearch, ReadState, RecordRow, SourceBadges, ToolRecordEditor, recordsOf, sourcesOf, useListSearch } from "./project-content-parts.js";
|
|
11
11
|
import { ProjectMcpAdd } from "./project-mcp-add.js";
|
|
12
12
|
import { McpMark, ROW, SectionRetry, useHostRead } from "./project-settings-parts.js";
|
|
13
|
-
import { ProjectContextSection } from "./ProjectContextSection.js";
|
|
14
13
|
import { useSessionLabels } from "./useSessionLabels.js";
|
|
15
14
|
import { createElement, useMemo, useState } from "react";
|
|
16
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -139,104 +138,97 @@ function ProjectToolsSection({ content, read, project, projects, run, fail, gran
|
|
|
139
138
|
onOpen: () => setAdding(true)
|
|
140
139
|
})]
|
|
141
140
|
});
|
|
142
|
-
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
141
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs(FormSection, {
|
|
142
|
+
title: labels.projectTools,
|
|
143
|
+
help: labels.projectToolsHelp,
|
|
144
|
+
trailing,
|
|
145
|
+
children: [
|
|
146
|
+
content && /* @__PURE__ */ jsx(InheritRow, {
|
|
147
|
+
...props,
|
|
148
|
+
kind: "tools",
|
|
149
|
+
section: "tools"
|
|
150
|
+
}),
|
|
151
|
+
content && /* @__PURE__ */ jsx(InheritRow, {
|
|
152
|
+
...props,
|
|
153
|
+
kind: "plugins",
|
|
154
|
+
section: "tools"
|
|
155
|
+
}),
|
|
156
|
+
servers && answer === null && /* @__PURE__ */ jsx(McpLoading, {}),
|
|
157
|
+
answer && "detail" in answer && /* @__PURE__ */ jsx(SectionRetry, {
|
|
158
|
+
message: labels.projectMcpsLoadFailed,
|
|
159
|
+
detail: answer.detail,
|
|
160
|
+
retry: servers.retry
|
|
161
|
+
}),
|
|
162
|
+
read && /* @__PURE__ */ jsx(ReadState, { read }),
|
|
163
|
+
names && names.length > 0 && /* @__PURE__ */ jsx(ToolList, {
|
|
164
|
+
label: labels.projectMcpServers,
|
|
165
|
+
summary: labels.projectMcpsSummary(names.filter((n) => !offMcps.includes(n)).length, names.length),
|
|
166
|
+
searchLabel: labels.projectContentSearch.tool,
|
|
167
|
+
items: names,
|
|
168
|
+
words: (name) => [name, sources.find((s) => s.name === name)?.path],
|
|
169
|
+
children: (name) => {
|
|
170
|
+
const record = records.find((r) => r.name === name);
|
|
171
|
+
const source = sources.find((s) => s.name === name);
|
|
172
|
+
if (record && content) return /* @__PURE__ */ createElement(RecordRow, {
|
|
173
|
+
...props,
|
|
174
|
+
key: name,
|
|
175
|
+
content,
|
|
176
|
+
item: record,
|
|
177
|
+
section: "tools",
|
|
178
|
+
mark: /* @__PURE__ */ jsx(McpMark, { name }),
|
|
179
|
+
trailing: mcpSwitch(name),
|
|
180
|
+
editor: (onSave, close) => /* @__PURE__ */ jsx(ToolRecordEditor, {
|
|
178
181
|
item: record,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
trailing: mcpSwitch(name),
|
|
182
|
-
editor: (onSave, close) => /* @__PURE__ */ jsx(ToolRecordEditor, {
|
|
183
|
-
item: record,
|
|
184
|
-
onSave,
|
|
185
|
-
onCancel: close
|
|
186
|
-
})
|
|
187
|
-
});
|
|
188
|
-
return /* @__PURE__ */ jsx(ItemRow, {
|
|
189
|
-
mark: /* @__PURE__ */ jsx(McpMark, { name }),
|
|
190
|
-
name,
|
|
191
|
-
badges: source && /* @__PURE__ */ jsx(SourceBadges, { source }),
|
|
192
|
-
dim: source?.off || offMcps.includes(name),
|
|
193
|
-
actions: mcpSwitch(name)
|
|
194
|
-
}, name);
|
|
195
|
-
}
|
|
196
|
-
}),
|
|
197
|
-
adding && addNew && /* @__PURE__ */ jsx(ProjectMcpAdd, {
|
|
198
|
-
names: names ?? [],
|
|
199
|
-
onAdd: (config) => addNew({
|
|
200
|
-
kind: "tool",
|
|
201
|
-
name: config.name,
|
|
202
|
-
body: config
|
|
203
|
-
}),
|
|
204
|
-
onCancel: () => setAdding(false)
|
|
205
|
-
}),
|
|
206
|
-
native.length > 0 && /* @__PURE__ */ jsx(ToolList, {
|
|
207
|
-
label: labels.projectNativeTools,
|
|
208
|
-
summary: labels.projectMcpsSummary(native.filter((t) => !offTools.includes(t.name)).length, native.length),
|
|
209
|
-
searchLabel: labels.projectNativeToolsSearch,
|
|
210
|
-
items: native,
|
|
211
|
-
words: (tool) => [tool.name, tool.description],
|
|
212
|
-
children: (tool) => /* @__PURE__ */ jsx(ItemRow, {
|
|
213
|
-
mono: true,
|
|
214
|
-
name: tool.name,
|
|
215
|
-
description: tool.description,
|
|
216
|
-
dim: offTools.includes(tool.name),
|
|
217
|
-
actions: /* @__PURE__ */ jsx(ToggleSwitch, {
|
|
218
|
-
on: !offTools.includes(tool.name),
|
|
219
|
-
label: labels.projectMcpToggle(tool.name),
|
|
220
|
-
disabled: !writeTools,
|
|
221
|
-
onChange: (on) => writeTools?.((list) => toggle(list, tool.name, on))
|
|
182
|
+
onSave,
|
|
183
|
+
onCancel: close
|
|
222
184
|
})
|
|
223
|
-
}
|
|
185
|
+
});
|
|
186
|
+
return /* @__PURE__ */ jsx(ItemRow, {
|
|
187
|
+
mark: /* @__PURE__ */ jsx(McpMark, { name }),
|
|
188
|
+
name,
|
|
189
|
+
badges: source && /* @__PURE__ */ jsx(SourceBadges, { source }),
|
|
190
|
+
dim: source?.off || offMcps.includes(name),
|
|
191
|
+
actions: mcpSwitch(name)
|
|
192
|
+
}, name);
|
|
193
|
+
}
|
|
194
|
+
}),
|
|
195
|
+
adding && addNew && /* @__PURE__ */ jsx(ProjectMcpAdd, {
|
|
196
|
+
names: names ?? [],
|
|
197
|
+
onAdd: (config) => addNew({
|
|
198
|
+
kind: "tool",
|
|
199
|
+
name: config.name,
|
|
200
|
+
body: config
|
|
224
201
|
}),
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
202
|
+
onCancel: () => setAdding(false)
|
|
203
|
+
}),
|
|
204
|
+
native.length > 0 && /* @__PURE__ */ jsx(ToolList, {
|
|
205
|
+
label: labels.projectNativeTools,
|
|
206
|
+
summary: labels.projectMcpsSummary(native.filter((t) => !offTools.includes(t.name)).length, native.length),
|
|
207
|
+
searchLabel: labels.projectNativeToolsSearch,
|
|
208
|
+
items: native,
|
|
209
|
+
words: (tool) => [tool.name, tool.description],
|
|
210
|
+
children: (tool) => /* @__PURE__ */ jsx(ItemRow, {
|
|
211
|
+
mono: true,
|
|
212
|
+
name: tool.name,
|
|
213
|
+
description: tool.description,
|
|
214
|
+
dim: offTools.includes(tool.name),
|
|
215
|
+
actions: /* @__PURE__ */ jsx(ToggleSwitch, {
|
|
216
|
+
on: !offTools.includes(tool.name),
|
|
217
|
+
label: labels.projectMcpToggle(tool.name),
|
|
218
|
+
disabled: !writeTools,
|
|
219
|
+
onChange: (on) => writeTools?.((list) => toggle(list, tool.name, on))
|
|
220
|
+
})
|
|
221
|
+
}, tool.name)
|
|
222
|
+
}),
|
|
223
|
+
said("mcps"),
|
|
224
|
+
said("tools")
|
|
225
|
+
]
|
|
226
|
+
}), signOut && names && names.length > 0 && /* @__PURE__ */ jsx(SharedSignIns, {
|
|
227
|
+
...props,
|
|
228
|
+
names,
|
|
229
|
+
shared: view.resolved.values.sharedMcps ?? [],
|
|
230
|
+
signOut
|
|
231
|
+
})] });
|
|
240
232
|
}
|
|
241
233
|
/**
|
|
242
234
|
* The servers whose sign-in the project shares (`sharedMcps`): each with its switch, and while it is shared whether
|
|
@@ -57,5 +57,8 @@ export interface ProjectUsageDialogProps {
|
|
|
57
57
|
* @param props - {@link ProjectUsageDialogProps}.
|
|
58
58
|
*/
|
|
59
59
|
export declare function ProjectUsageDialog({ projectId, onClose }: ProjectUsageDialogProps): import("react").JSX.Element | null;
|
|
60
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* Opens a project's Usage view on the app's modal layer, over the caller's host: `undefined` without one, or without
|
|
62
|
+
* `SessionProjects.usage`.
|
|
63
|
+
*/
|
|
61
64
|
export declare function useProjectUsage(): ((projectId: string) => void) | undefined;
|
|
@@ -10,6 +10,7 @@ import { Skeleton } from "../components/Skeleton.js";
|
|
|
10
10
|
import { useTooltip } from "../components/Tooltip.js";
|
|
11
11
|
import { formatUsd, tightestBudget } from "./headless/project-usage.js";
|
|
12
12
|
import { managesProject } from "./headless/projects.js";
|
|
13
|
+
import { useCarrySessionHost } from "./host-context.js";
|
|
13
14
|
import { useSessionProjects } from "./SessionProvider.js";
|
|
14
15
|
import { useSessionLabels } from "./useSessionLabels.js";
|
|
15
16
|
import { useCallback, useEffect, useState } from "react";
|
|
@@ -327,18 +328,26 @@ function UsageBody({ view, groupBy }) {
|
|
|
327
328
|
})
|
|
328
329
|
] });
|
|
329
330
|
}
|
|
330
|
-
/**
|
|
331
|
+
/**
|
|
332
|
+
* Opens a project's Usage view on the app's modal layer, over the caller's host: `undefined` without one, or without
|
|
333
|
+
* `SessionProjects.usage`.
|
|
334
|
+
*/
|
|
331
335
|
function useProjectUsage() {
|
|
332
336
|
const usage = useSessionProjects()?.usage;
|
|
333
337
|
const modal = useOptionalModal();
|
|
338
|
+
const carry = useCarrySessionHost();
|
|
334
339
|
const open = modal?.open;
|
|
335
340
|
const close = modal?.close;
|
|
336
341
|
const show = useCallback((projectId) => {
|
|
337
|
-
open?.(/* @__PURE__ */ jsx(ProjectUsageDialog, {
|
|
342
|
+
open?.(carry(/* @__PURE__ */ jsx(ProjectUsageDialog, {
|
|
338
343
|
projectId,
|
|
339
344
|
onClose: () => close?.()
|
|
340
|
-
}));
|
|
341
|
-
}, [
|
|
345
|
+
})));
|
|
346
|
+
}, [
|
|
347
|
+
open,
|
|
348
|
+
close,
|
|
349
|
+
carry
|
|
350
|
+
]);
|
|
342
351
|
return usage && open ? show : void 0;
|
|
343
352
|
}
|
|
344
353
|
export { BudgetBar, ProjectSpendChip, ProjectUsageDialog, useProjectUsage };
|