@parallelworks/tandem-web 0.171.1 → 0.171.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/components/AccessGrants.js +6 -6
- package/components/ActivityTimeline.js +57 -57
- package/components/ActorAvatar.js +4 -4
- package/components/AgentWork.js +494 -494
- package/components/AppLauncher.js +7 -7
- package/components/AreaLink.js +13 -13
- package/components/AreaTiles.js +13 -13
- package/components/AreaWork.js +22 -22
- package/components/Attachments.js +29 -29
- package/components/BlockHandle.js +3 -3
- package/components/BugRotation.js +8 -8
- package/components/CodeHostSettings.js +38 -38
- package/components/CollabEditor.js +13 -13
- package/components/CommandPalette.js +206 -206
- package/components/CustomFields.js +95 -95
- package/components/CustomerRequests.js +11 -11
- package/components/DashboardPanel.js +23 -23
- package/components/DateChip.js +21 -21
- package/components/DocHistory.js +14 -14
- package/components/DocIcon.js +4 -4
- package/components/DocIconPicker.js +4 -4
- package/components/DocLinkPicker.js +22 -22
- package/components/DocLook.js +16 -16
- package/components/DocProperties.js +81 -81
- package/components/DocTable.js +53 -53
- package/components/DocsTree.js +179 -179
- package/components/Editor.js +69 -69
- package/components/FavoritesNav.js +78 -78
- package/components/GitHub.js +87 -87
- package/components/Graph.js +14 -14
- package/components/HostActions.js +21 -21
- package/components/HostPanel.js +6 -6
- package/components/HoverCards.js +74 -74
- package/components/IssueBoard.js +13 -10
- package/components/IssueBreakdown.js +31 -31
- package/components/IssueCode.js +19 -19
- package/components/IssueEvent.js +12 -12
- package/components/IssueFilters.js +39 -39
- package/components/IssueGroup.js +16 -16
- package/components/IssueImport.js +13 -13
- package/components/IssueInsights.js +20 -20
- package/components/IssueListBlock.js +81 -81
- package/components/IssueRelations.js +34 -34
- package/components/IssueRow.js +31 -31
- package/components/IssueSentry.js +4 -4
- package/components/IssueTemplates.js +23 -23
- package/components/IssueTypes.js +40 -40
- package/components/MarkdownTransfer.js +10 -10
- package/components/MentionPicker.js +19 -19
- package/components/NewIssueDialog.js +53 -53
- package/components/NewProjectDialog.js +82 -82
- package/components/PersonActivity.js +13 -13
- package/components/PersonHoverCard.js +44 -44
- package/components/Planning.js +16 -16
- package/components/Reports.js +8 -8
- package/components/SettingsNav.js +15 -15
- package/components/ShareDialog.js +8 -8
- package/components/SharedViewer.js +23 -23
- package/components/SlashMenu.js +26 -26
- package/components/SubPages.js +10 -10
- package/components/TeamForm.js +9 -9
- package/components/TeamRepositories.js +21 -21
- package/components/TeamWorkflow.js +6 -6
- package/components/UnlinkedMentions.js +29 -29
- package/components/Updates.js +8 -8
- package/components/Widgets.js +4 -4
- package/components/WorkCounts.js +12 -12
- package/components/cycleCrumb.js +8 -8
- package/components/editorPlugins.js +101 -101
- package/components/settings.js +6 -6
- package/components/video.js +7 -7
- package/hostedApp.js +24 -24
- package/index.js +18 -18
- package/lib/assignees.js +3 -3
- package/lib/attachments.js +12 -12
- package/lib/boardMove.js +27 -27
- package/lib/collab.js +1 -1
- package/lib/docs.js +115 -115
- package/lib/githubLink.js +7 -7
- package/lib/issueList.js +51 -51
- package/lib/issueMenu.js +117 -117
- package/lib/knowledge.js +134 -134
- package/lib/live.js +38 -38
- package/lib/notifications.js +47 -47
- package/lib/views.js +31 -31
- package/package.json +24 -24
- package/pages/area.js +64 -64
- package/pages/areas.js +199 -199
- package/pages/decisions.js +51 -51
- package/pages/issues.js +120 -120
- package/pages/projects.js +238 -238
- package/pages/triage.js +109 -109
- package/routes/_workspace/agents/_slug2.js +127 -127
- package/routes/_workspace/agents/index2.js +22 -22
- package/routes/_workspace/dashboards/_dashboardId2.js +84 -84
- package/routes/_workspace/dashboards/index2.js +34 -34
- package/routes/_workspace/docs/_doc2.js +267 -267
- package/routes/_workspace/docs/space2._space.js +31 -31
- package/routes/_workspace/docs2.js +4 -4
- package/routes/_workspace/graph2.js +11 -11
- package/routes/_workspace/graph3.js +11 -11
- package/routes/_workspace/issues/_identifier2.js +477 -477
- package/routes/_workspace/issues/index.js +13 -13
- package/routes/_workspace/knowledge/_term2.js +175 -175
- package/routes/_workspace/knowledge/_term3.js +4 -4
- package/routes/_workspace/knowledge/index.js +12 -12
- package/routes/_workspace/knowledge/index2.js +117 -117
- package/routes/_workspace/measures2.js +8 -8
- package/routes/_workspace/measures3.js +29 -29
- package/routes/_workspace/notifications2.js +263 -263
- package/routes/_workspace/people/_username.js +10 -10
- package/routes/_workspace/people/_username2.js +41 -41
- package/routes/_workspace/projects/_projectId3.js +303 -303
- package/routes/_workspace/projects/_projectId4.js +4 -4
- package/routes/_workspace/projects/_projectId_3.milestones._milestoneId.js +28 -28
- package/routes/_workspace/projects/_projectId_4.milestones._milestoneId.js +4 -4
- package/routes/_workspace/projects/index.js +8 -8
- package/routes/_workspace/settings/account2.js +8 -8
- package/routes/_workspace/settings/audit-log2.js +8 -8
- package/routes/_workspace/settings/audit-log3.js +155 -155
- package/routes/_workspace/settings/connections2.js +4 -4
- package/routes/_workspace/settings/fields2.js +5 -5
- package/routes/_workspace/settings/github2.js +11 -11
- package/routes/_workspace/settings/gitlab2.js +5 -5
- package/routes/_workspace/settings/groups2.js +52 -52
- package/routes/_workspace/settings/import2.js +39 -39
- package/routes/_workspace/settings/index2.js +5 -5
- package/routes/_workspace/settings/intercom2.js +11 -11
- package/routes/_workspace/settings/labels2.js +33 -33
- package/routes/_workspace/settings/members2.js +81 -81
- package/routes/_workspace/settings/notifications2.js +46 -46
- package/routes/_workspace/settings/parallelworks2.js +20 -20
- package/routes/_workspace/settings/roles2.js +41 -41
- package/routes/_workspace/settings/runners2.js +15 -15
- package/routes/_workspace/settings/sentry2.js +15 -15
- package/routes/_workspace/settings/sessions2.js +9 -9
- package/routes/_workspace/settings/sessions3.js +4 -4
- package/routes/_workspace/settings/slack2.js +12 -12
- package/routes/_workspace/settings/sso2.js +37 -37
- package/routes/_workspace/settings/sso3.js +7 -7
- package/routes/_workspace/settings/teams2.js +29 -29
- package/routes/_workspace/settings/tokens2.js +32 -32
- package/routes/_workspace/settings/tokens3.js +4 -4
- package/routes/_workspace/settings/webhooks2.js +41 -41
- package/routes/_workspace/settings/zendesk2.js +11 -11
- package/routes/_workspace/teams/_key/cycles/_number2.js +33 -33
- package/routes/_workspace/teams/_key/cycles/_number3.js +7 -7
- package/routes/_workspace/teams/_key/cycles/index2.js +37 -37
- package/routes/_workspace/teams/_key/issues.js +10 -10
- package/routes/_workspace/teams/_key/projects.js +6 -6
- package/routes/_workspace/teams/_key/settings2.js +396 -396
- package/routes/_workspace2.js +308 -308
- package/routes/_workspace3.js +8 -8
- package/routes/device2.js +4 -4
- package/routes/device3.js +4 -4
- package/routes/docs/_tag/_endpoint2.js +3 -3
- package/routes/docs/_tag/index2.js +3 -3
- package/routes/docs/route2.js +7 -7
- package/routes/index2.js +5 -5
- package/routes/login2.js +10 -10
- package/routes/new2.js +12 -12
- package/routes/new3.js +5 -5
- package/routes/request2._token.js +6 -6
- package/routes/share2._secret.js +4 -4
package/components/Editor.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { Callout as e } from "./callout.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
2
|
+
import { Columns as t } from "./columns.js";
|
|
3
|
+
import { DateChip as n } from "./DateChip.js";
|
|
4
|
+
import { DocButton as r } from "./DocButton.js";
|
|
5
|
+
import { DocLinkPicker as i } from "./DocLinkPicker.js";
|
|
6
|
+
import { DocViewBlock as a } from "./DocViewBlock.js";
|
|
7
|
+
import { AttachmentFiles as o, AttachmentImage as s, DocLinkIcons as c, DocLinks as l, IssueMentions as u, KnowledgeTerms as d, LinkedIssues as f, PeopleMentions as p, TeamNames as m, recordingText as h } from "./editorPlugins.js";
|
|
8
|
+
import { FigmaEmbedBlock as g } from "./Figma.js";
|
|
9
|
+
import { IssueListBlock as _ } from "./IssueListBlock.js";
|
|
10
|
+
import { LinkCard as v } from "./LinkCard.js";
|
|
11
|
+
import { MentionPicker as y } from "./MentionPicker.js";
|
|
12
|
+
import { Diagrams as b, MathBlock as x, MathInline as ee } from "./mathDiagrams.js";
|
|
13
|
+
import { SlashMenu as te } from "./SlashMenu.js";
|
|
14
|
+
import { SubPages as ne } from "./SubPages.js";
|
|
15
|
+
import { MarkdownTable as S } from "./table.js";
|
|
16
|
+
import { DetailsContent as C, DetailsSummary as w, Toggle as T } from "./toggle.js";
|
|
17
17
|
import { VideoBlock as E } from "./video.js";
|
|
18
18
|
import { useEffect as D, useRef as O } from "react";
|
|
19
19
|
import { useTranslations as k } from "use-intl";
|
|
@@ -61,53 +61,53 @@ var ue = le({
|
|
|
61
61
|
xml: ce,
|
|
62
62
|
yaml: Z
|
|
63
63
|
});
|
|
64
|
-
function Q({ editable:
|
|
64
|
+
function Q({ editable: i = !0, placeholder: h = "", collaborative: y = !1 } = {}) {
|
|
65
65
|
return [
|
|
66
66
|
V.configure({
|
|
67
67
|
link: {
|
|
68
|
-
openOnClick: !
|
|
68
|
+
openOnClick: !i,
|
|
69
69
|
autolink: !0
|
|
70
70
|
},
|
|
71
71
|
codeBlock: !1,
|
|
72
72
|
blockquote: !1,
|
|
73
|
-
...
|
|
74
|
-
...
|
|
73
|
+
...i && !y ? {} : { trailingNode: !1 },
|
|
74
|
+
...y ? { undoRedo: !1 } : {}
|
|
75
75
|
}),
|
|
76
76
|
N.configure({ lowlight: ue }),
|
|
77
77
|
e,
|
|
78
78
|
F,
|
|
79
79
|
P.configure({ nested: !0 }),
|
|
80
|
-
|
|
80
|
+
T,
|
|
81
|
+
ne,
|
|
81
82
|
w,
|
|
82
|
-
|
|
83
|
+
C,
|
|
83
84
|
t,
|
|
84
|
-
i,
|
|
85
85
|
I.configure({ table: !1 }),
|
|
86
|
-
|
|
86
|
+
S.configure({
|
|
87
87
|
resizable: !1,
|
|
88
88
|
allowTableNodeSelection: !1
|
|
89
89
|
}),
|
|
90
|
-
L.configure({ placeholder:
|
|
90
|
+
L.configure({ placeholder: h }),
|
|
91
91
|
R,
|
|
92
|
-
|
|
93
|
-
u,
|
|
92
|
+
d,
|
|
94
93
|
l,
|
|
95
94
|
c,
|
|
96
95
|
s,
|
|
96
|
+
o,
|
|
97
|
+
f,
|
|
97
98
|
p,
|
|
98
99
|
m,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
o,
|
|
103
|
-
b,
|
|
100
|
+
u,
|
|
101
|
+
a,
|
|
102
|
+
r,
|
|
104
103
|
v,
|
|
104
|
+
g,
|
|
105
105
|
E,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
106
|
+
ee,
|
|
107
|
+
x,
|
|
108
|
+
b,
|
|
109
|
+
_,
|
|
110
|
+
n
|
|
111
111
|
];
|
|
112
112
|
}
|
|
113
113
|
function $(e) {
|
|
@@ -125,66 +125,66 @@ function $(e) {
|
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
function de({ value: e, onChange: t, onSubmit: n, onBlur: r, onFocus:
|
|
129
|
-
|
|
130
|
-
let
|
|
128
|
+
function de({ value: e, onChange: t, onSubmit: n, onBlur: r, onFocus: a, placeholder: o, editable: s = !0, autofocus: c = !1, className: l = "", label: u, onFiles: d, onEditor: f }) {
|
|
129
|
+
h.linkHint = k("video")("linkHint");
|
|
130
|
+
let p = O({
|
|
131
131
|
onChange: t,
|
|
132
132
|
onSubmit: n,
|
|
133
133
|
onBlur: r,
|
|
134
|
-
onFocus:
|
|
134
|
+
onFocus: a
|
|
135
135
|
});
|
|
136
|
-
|
|
136
|
+
p.current = {
|
|
137
137
|
onChange: t,
|
|
138
138
|
onSubmit: n,
|
|
139
139
|
onBlur: r,
|
|
140
|
-
onFocus:
|
|
140
|
+
onFocus: a
|
|
141
141
|
};
|
|
142
|
-
let
|
|
143
|
-
|
|
144
|
-
let
|
|
142
|
+
let m = O(d);
|
|
143
|
+
m.current = d;
|
|
144
|
+
let g = B({
|
|
145
145
|
extensions: Q({
|
|
146
|
-
editable:
|
|
147
|
-
placeholder:
|
|
146
|
+
editable: s,
|
|
147
|
+
placeholder: o ?? ""
|
|
148
148
|
}),
|
|
149
149
|
content: e,
|
|
150
150
|
contentType: "markdown",
|
|
151
|
-
editable:
|
|
152
|
-
autofocus:
|
|
151
|
+
editable: s,
|
|
152
|
+
autofocus: c ? "end" : !1,
|
|
153
153
|
immediatelyRender: !0,
|
|
154
154
|
injectCSS: !1,
|
|
155
155
|
editorProps: {
|
|
156
156
|
attributes: {
|
|
157
|
-
class: `prose-issue ${
|
|
158
|
-
...
|
|
159
|
-
...
|
|
157
|
+
class: `prose-issue ${l}`,
|
|
158
|
+
...u ? { "aria-label": u } : {},
|
|
159
|
+
...s ? {
|
|
160
160
|
"aria-multiline": "true",
|
|
161
161
|
role: "textbox"
|
|
162
162
|
} : {}
|
|
163
163
|
},
|
|
164
|
-
...$(
|
|
165
|
-
handleKeyDown: (e, t) => t.key === "Enter" && (t.metaKey || t.ctrlKey) &&
|
|
164
|
+
...$(m),
|
|
165
|
+
handleKeyDown: (e, t) => t.key === "Enter" && (t.metaKey || t.ctrlKey) && p.current.onSubmit ? (t.preventDefault(), p.current.onSubmit(), !0) : !1
|
|
166
166
|
},
|
|
167
|
-
onUpdate: ({ editor: e }) =>
|
|
168
|
-
onBlur: ({ editor: e }) =>
|
|
169
|
-
onFocus: () =>
|
|
167
|
+
onUpdate: ({ editor: e }) => p.current.onChange?.(e.getMarkdown()),
|
|
168
|
+
onBlur: ({ editor: e }) => p.current.onBlur?.(e.getMarkdown()),
|
|
169
|
+
onFocus: () => p.current.onFocus?.()
|
|
170
170
|
});
|
|
171
171
|
D(() => {
|
|
172
|
-
|
|
172
|
+
g && !g.isFocused && g.getMarkdown() !== e && g.commands.setContent(e, {
|
|
173
173
|
contentType: "markdown",
|
|
174
174
|
emitUpdate: !1
|
|
175
175
|
});
|
|
176
|
-
}, [
|
|
177
|
-
|
|
178
|
-
}, [
|
|
179
|
-
let
|
|
180
|
-
return
|
|
181
|
-
/* @__PURE__ */ j(z, { editor:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
editor:
|
|
185
|
-
onFiles:
|
|
176
|
+
}, [g, e]), D(() => {
|
|
177
|
+
g?.setEditable(s);
|
|
178
|
+
}, [g, s]);
|
|
179
|
+
let _ = O(f);
|
|
180
|
+
return _.current = f, D(() => (_.current?.(g), () => _.current?.(null)), [g]), /* @__PURE__ */ M(A, { children: [
|
|
181
|
+
/* @__PURE__ */ j(z, { editor: g }),
|
|
182
|
+
s && /* @__PURE__ */ j(i, { editor: g }),
|
|
183
|
+
s && /* @__PURE__ */ j(te, {
|
|
184
|
+
editor: g,
|
|
185
|
+
onFiles: m
|
|
186
186
|
}),
|
|
187
|
-
|
|
187
|
+
s && /* @__PURE__ */ j(y, { editor: g })
|
|
188
188
|
] });
|
|
189
189
|
}
|
|
190
190
|
export { de as Editor, Q as contentExtensions, $ as fileHandlers };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { docRef as e } from "../lib/docs.js";
|
|
2
2
|
import { useFavorites as t } from "../lib/favorites.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { useNavigate as n } from "../lib/router.js";
|
|
4
|
+
import { teamPath as r } from "../lib/teamPaths.js";
|
|
5
|
+
import { DocIcon as i } from "./DocIcon.js";
|
|
6
|
+
import { EntityIcon as a } from "./EntityIcon.js";
|
|
7
|
+
import { CycleIcon as o, FileTextIcon as s, InboxIcon as c, LibraryIcon as l, ListViewIcon as u, ProjectIcon as d, StatusIcon as f, UserIcon as p } from "./icons.js";
|
|
8
8
|
import { menuDivider as m, useOpenMenu as h } from "@parallelworks/ui";
|
|
9
9
|
import { useState as g } from "react";
|
|
10
10
|
import { useTranslations as _ } from "use-intl";
|
|
@@ -13,88 +13,88 @@ import { MoreButton as y } from "@parallelworks/ui/list";
|
|
|
13
13
|
import { AppFrameNavGroup as b, AppFrameNavItem as x } from "@parallelworks/ui/app-frame";
|
|
14
14
|
// src/components/FavoritesNav.tsx
|
|
15
15
|
var S = (...e) => e.filter(Boolean).join(" ");
|
|
16
|
-
function C(
|
|
17
|
-
switch (
|
|
16
|
+
function C(t, n, m, h) {
|
|
17
|
+
switch (t.kind) {
|
|
18
18
|
case "issue": return {
|
|
19
|
-
href: `/${
|
|
20
|
-
label:
|
|
21
|
-
icon:
|
|
22
|
-
category:
|
|
23
|
-
step:
|
|
19
|
+
href: `/${n}/issues/${t.issue?.identifier ?? ""}`,
|
|
20
|
+
label: t.issue ? `${t.issue.identifier} ${t.issue.title}` : h("issue"),
|
|
21
|
+
icon: t.issue ? /* @__PURE__ */ v(f, {
|
|
22
|
+
category: t.issue.status.category,
|
|
23
|
+
step: t.issue.status.step
|
|
24
24
|
}) : null
|
|
25
25
|
};
|
|
26
26
|
case "team": return {
|
|
27
|
-
href:
|
|
28
|
-
label:
|
|
29
|
-
icon:
|
|
30
|
-
icon:
|
|
31
|
-
color:
|
|
32
|
-
name:
|
|
27
|
+
href: r(n, t.team?.key ?? "", "issues"),
|
|
28
|
+
label: t.team?.name ?? h("team"),
|
|
29
|
+
icon: t.team ? /* @__PURE__ */ v(a, {
|
|
30
|
+
icon: t.team.icon,
|
|
31
|
+
color: t.team.color,
|
|
32
|
+
name: t.team.name
|
|
33
33
|
}) : null
|
|
34
34
|
};
|
|
35
35
|
case "doc": return {
|
|
36
|
-
href: `/${
|
|
37
|
-
label:
|
|
38
|
-
icon: /* @__PURE__ */ v(
|
|
39
|
-
icon:
|
|
36
|
+
href: `/${n}/docs/${t.doc ? e(t.doc) : ""}`,
|
|
37
|
+
label: t.doc?.title ?? h("doc"),
|
|
38
|
+
icon: /* @__PURE__ */ v(i, {
|
|
39
|
+
icon: t.doc?.icon,
|
|
40
40
|
className: "size-4"
|
|
41
41
|
})
|
|
42
42
|
};
|
|
43
43
|
case "project": return {
|
|
44
|
-
href: `/${
|
|
45
|
-
label:
|
|
46
|
-
icon:
|
|
47
|
-
icon:
|
|
48
|
-
color:
|
|
49
|
-
name:
|
|
50
|
-
}) : /* @__PURE__ */ v(
|
|
44
|
+
href: `/${n}/projects/${t.plan?.ref ?? t.target}`,
|
|
45
|
+
label: t.plan?.name ?? h("project"),
|
|
46
|
+
icon: t.plan?.icon || t.plan?.color ? /* @__PURE__ */ v(a, {
|
|
47
|
+
icon: t.plan.icon ?? "",
|
|
48
|
+
color: t.plan.color ?? "",
|
|
49
|
+
name: t.plan.name
|
|
50
|
+
}) : /* @__PURE__ */ v(d, { className: "size-4" })
|
|
51
51
|
};
|
|
52
52
|
case "cycle": return {
|
|
53
|
-
href: `${
|
|
54
|
-
label:
|
|
55
|
-
team:
|
|
56
|
-
number:
|
|
53
|
+
href: `${r(n, t.team?.key ?? "", "cycles")}/${t.plan?.ref ?? ""}`,
|
|
54
|
+
label: t.plan ? t.plan.name || h("cycleOf", {
|
|
55
|
+
team: t.team?.key ?? "",
|
|
56
|
+
number: t.plan.ref
|
|
57
57
|
}) : h("cycle"),
|
|
58
|
-
icon: /* @__PURE__ */ v(
|
|
58
|
+
icon: /* @__PURE__ */ v(o, { className: "size-4" })
|
|
59
59
|
};
|
|
60
60
|
case "view": return {
|
|
61
|
-
href:
|
|
62
|
-
label:
|
|
63
|
-
icon: /* @__PURE__ */ v(
|
|
61
|
+
href: t.target,
|
|
62
|
+
label: t.label || h("view"),
|
|
63
|
+
icon: /* @__PURE__ */ v(u, { className: "size-4" })
|
|
64
64
|
};
|
|
65
|
-
case "page": return
|
|
66
|
-
href: `/${
|
|
65
|
+
case "page": return t.target === "decisions" ? {
|
|
66
|
+
href: `/${n}/decisions`,
|
|
67
67
|
label: h("decisions"),
|
|
68
|
-
icon: /* @__PURE__ */ v(
|
|
69
|
-
} :
|
|
70
|
-
href: `/${
|
|
68
|
+
icon: /* @__PURE__ */ v(c, { className: "size-4" })
|
|
69
|
+
} : t.target === "agents" ? {
|
|
70
|
+
href: `/${n}/agents`,
|
|
71
71
|
label: h("agents"),
|
|
72
|
-
icon: /* @__PURE__ */ v(
|
|
73
|
-
} :
|
|
74
|
-
href: `/${
|
|
72
|
+
icon: /* @__PURE__ */ v(p, { className: "size-4" })
|
|
73
|
+
} : t.target === "projects" ? {
|
|
74
|
+
href: `/${n}/projects`,
|
|
75
75
|
label: h("projects"),
|
|
76
|
-
icon: /* @__PURE__ */ v(
|
|
77
|
-
} :
|
|
78
|
-
href: `/${
|
|
76
|
+
icon: /* @__PURE__ */ v(d, { className: "size-4" })
|
|
77
|
+
} : t.target === "knowledge" ? {
|
|
78
|
+
href: `/${n}/knowledge`,
|
|
79
79
|
label: h("knowledge"),
|
|
80
|
-
icon: /* @__PURE__ */ v(
|
|
81
|
-
} :
|
|
82
|
-
href: `/${
|
|
80
|
+
icon: /* @__PURE__ */ v(l, { className: "size-4" })
|
|
81
|
+
} : t.target === "docs" ? {
|
|
82
|
+
href: `/${n}/docs`,
|
|
83
83
|
label: h("docs"),
|
|
84
|
-
icon: /* @__PURE__ */ v(
|
|
85
|
-
} :
|
|
86
|
-
href: `/${
|
|
84
|
+
icon: /* @__PURE__ */ v(s, { className: "size-4" })
|
|
85
|
+
} : t.target === "my-issues" ? {
|
|
86
|
+
href: `/${n}/issues?assignee=${m}`,
|
|
87
87
|
label: h("myIssues"),
|
|
88
|
-
icon: /* @__PURE__ */ v(
|
|
88
|
+
icon: /* @__PURE__ */ v(p, { className: "size-4" })
|
|
89
89
|
} : {
|
|
90
|
-
href: `/${
|
|
90
|
+
href: `/${n}/issues`,
|
|
91
91
|
label: h("issues"),
|
|
92
|
-
icon: /* @__PURE__ */ v(
|
|
92
|
+
icon: /* @__PURE__ */ v(u, { className: "size-4" })
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
function w({ workspace:
|
|
97
|
-
let { favorites: a, remove: o, move: s } = t(
|
|
96
|
+
function w({ workspace: e, myUsername: r, currentHref: i }) {
|
|
97
|
+
let { favorites: a, remove: o, move: s } = t(e), c = h(), l = _("favorites"), u = _("common"), d = n(), [f, p] = g(null), [w, T] = g(null);
|
|
98
98
|
if (a.length === 0) return null;
|
|
99
99
|
let E = (e, t) => [
|
|
100
100
|
{
|
|
@@ -123,34 +123,34 @@ function w({ workspace: n, myUsername: r, currentHref: i }) {
|
|
|
123
123
|
return /* @__PURE__ */ v(b, {
|
|
124
124
|
label: l("title"),
|
|
125
125
|
collapsible: !1,
|
|
126
|
-
children: a.map((
|
|
127
|
-
let
|
|
126
|
+
children: a.map((t) => {
|
|
127
|
+
let n = C(t, e, r, l);
|
|
128
128
|
return /* @__PURE__ */ v(x, {
|
|
129
|
-
label:
|
|
130
|
-
icon:
|
|
131
|
-
href:
|
|
132
|
-
selected:
|
|
129
|
+
label: n.label,
|
|
130
|
+
icon: n.icon,
|
|
131
|
+
href: n.href,
|
|
132
|
+
selected: n.href === i,
|
|
133
133
|
draggable: !0,
|
|
134
|
-
onDragStart: (
|
|
135
|
-
p(
|
|
134
|
+
onDragStart: (e) => {
|
|
135
|
+
p(t.id), e.dataTransfer.effectAllowed = "move";
|
|
136
136
|
},
|
|
137
|
-
onDragOver: (
|
|
138
|
-
|
|
137
|
+
onDragOver: (e) => {
|
|
138
|
+
e.preventDefault(), T(t.id);
|
|
139
139
|
},
|
|
140
|
-
onDragLeave: () => T((
|
|
141
|
-
onDrop: (
|
|
142
|
-
|
|
140
|
+
onDragLeave: () => T((e) => e === t.id ? null : e),
|
|
141
|
+
onDrop: (e) => {
|
|
142
|
+
e.preventDefault(), D(t.id), p(null), T(null);
|
|
143
143
|
},
|
|
144
144
|
onDragEnd: () => {
|
|
145
145
|
p(null), T(null);
|
|
146
146
|
},
|
|
147
|
-
onContextMenu: (
|
|
148
|
-
className: S(f ===
|
|
147
|
+
onContextMenu: (e) => c(e, E(t, n.href)),
|
|
148
|
+
className: S(f === t.id && "opacity-40", w === t.id && f !== t.id && "ring-1 ring-primary/60"),
|
|
149
149
|
action: /* @__PURE__ */ v(y, {
|
|
150
|
-
items: () => E(
|
|
151
|
-
label: u("moreActionsFor", { name:
|
|
150
|
+
items: () => E(t, n.href),
|
|
151
|
+
label: u("moreActionsFor", { name: n.label })
|
|
152
152
|
})
|
|
153
|
-
},
|
|
153
|
+
}, t.id);
|
|
154
154
|
})
|
|
155
155
|
});
|
|
156
156
|
}
|