@parallelworks/tandem-web 0.139.0 → 0.139.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/components/AppRoot.js +9 -8
- package/components/settings.js +10 -10
- package/hostedApp.js +47 -45
- package/lib/pageTitle.js +22 -10
- package/package.json +1 -1
- package/pages/areas.js +112 -112
- package/pages/decisions.js +36 -36
- package/pages/issues.js +34 -34
- package/pages/projects.js +109 -109
- package/pages/triage.js +64 -64
- package/routes/_workspace/agents/_slug2.js +21 -21
- package/routes/_workspace/agents/index2.js +16 -16
- package/routes/_workspace/areas/_area2.js +105 -105
- package/routes/_workspace/docs/_doc2.js +185 -185
- package/routes/_workspace/graph3.js +8 -8
- package/routes/_workspace/issues/_identifier2.js +484 -484
- package/routes/_workspace/knowledge/_term2.js +166 -166
- package/routes/_workspace/knowledge/index2.js +33 -33
- package/routes/_workspace/measures3.js +18 -18
- package/routes/_workspace/notifications2.js +112 -112
- package/routes/_workspace/people/_username2.js +36 -36
- package/routes/_workspace/projects/_projectId3.js +215 -215
- package/routes/_workspace/teams/_key/cycles/_number2.js +16 -16
- package/routes/_workspace/teams/_key/cycles/index2.js +38 -38
- package/routes/_workspace/teams/_key/settings2.js +131 -131
- package/routes/docs/route2.js +5 -5
- package/routes/new2.js +8 -8
- package/routes/request2._token.js +4 -4
|
@@ -1,314 +1,314 @@
|
|
|
1
1
|
import { api as e, unwrap as t } from "../../../api/client.js";
|
|
2
2
|
import { branchName as n } from "../../../lib/branch.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
3
|
+
import { usePageTitle as r } from "../../../lib/pageTitle.js";
|
|
4
|
+
import { Link as i, useNavigate as a } from "../../../lib/router.js";
|
|
5
|
+
import { areasQuery as o, attachmentsQuery as s, commentsQuery as c, cyclesQuery as l, eventsQuery as u, issueDocsQuery as d, issueLinksQuery as f, issueQuery as p, labelsQuery as m, meQuery as h, projectsQuery as g, reactionsQuery as _, statusesQuery as v, teamsQuery as y } from "../../../api/queries.js";
|
|
6
|
+
import { AreaIcon as b, BranchIcon as x, CalendarIcon as S, CloseIcon as C, CycleIcon as w, EstimateIcon as T, FileTextIcon as E, InboxIcon as D, PriorityIcon as O, ProjectIcon as k, StatusIcon as ee, TriageIcon as A, usePriorityNames as j } from "../../../components/icons.js";
|
|
7
|
+
import { Route as M } from "./_identifier.js";
|
|
8
|
+
import { copyItem as N } from "../../../lib/menus.js";
|
|
9
|
+
import { docRef as P, useDocMenu as F } from "../../../lib/docs.js";
|
|
10
|
+
import { invalidateIssueViews as I, useUpdateIssue as te } from "../../../api/mutations.js";
|
|
10
11
|
import { useTime as ne } from "../../../lib/time.js";
|
|
11
|
-
import { DueDate as
|
|
12
|
+
import { DueDate as L, ProjectStatusIcon as re, SlaBadge as ie, scalePoints as ae, useEstimateLabel as oe } from "../../../components/Planning.js";
|
|
12
13
|
import { connectorActor as se, usePeople as ce } from "../../../lib/people.js";
|
|
13
14
|
import { PickManyBox as le, usePickMany as ue } from "../../../lib/pickMany.js";
|
|
14
15
|
import { assigneeKey as de, parseAssigneeKey as fe, useAssigneeOptions as pe } from "../../../lib/assignees.js";
|
|
15
16
|
import { issueURL as me, useIssueMenu as he } from "../../../lib/issueMenu.js";
|
|
16
17
|
import { rememberPage as ge } from "../../../lib/recent.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import { MoreButton as xt } from "@parallelworks/ui/list";
|
|
18
|
+
import { issueScope as _e, useCan as ve, useCanTriage as ye } from "../../../lib/roles.js";
|
|
19
|
+
import { useConfirm as be } from "../../../lib/confirm.js";
|
|
20
|
+
import { useLinkedIssues as xe } from "../../../lib/linkedIssues.js";
|
|
21
|
+
import { PersonHoverCard as Se } from "../../../components/PersonHoverCard.js";
|
|
22
|
+
import { AttachButton as Ce, IssueAttachments as we, UploadStatus as Te, useAttachmentUpload as Ee } from "../../../components/Attachments.js";
|
|
23
|
+
import { actorAvatar as De } from "../../../lib/avatar.js";
|
|
24
|
+
import { Editor as R } from "../../../components/Editor.js";
|
|
25
|
+
import { useOthersOn as Oe, useReportLocation as ke } from "../../../lib/live.js";
|
|
26
|
+
import { useReadIssueNotifications as Ae } from "../../../lib/notifications.js";
|
|
27
|
+
import { useShortcuts as je } from "../../../lib/shortcuts.js";
|
|
28
|
+
import { AgentPage as Me } from "../../../components/AgentPage.js";
|
|
29
|
+
import { AgentWork as Ne } from "../../../components/AgentWork.js";
|
|
30
|
+
import { FavoriteStar as Pe } from "../../../components/FavoriteStar.js";
|
|
31
|
+
import { caretColor as Fe, useCollabSession as Ie } from "../../../lib/collab.js";
|
|
32
|
+
import { CollabEditor as Le } from "../../../components/CollabEditor.js";
|
|
33
|
+
import { FieldNote as Re, Viewers as ze } from "../../../components/Presence.js";
|
|
34
|
+
import { Timeline as Be } from "../../../components/ActivityTimeline.js";
|
|
35
|
+
import { CustomerRequests as Ve } from "../../../components/CustomerRequests.js";
|
|
36
|
+
import { IssueLinkChips as He, IssueLinks as Ue, SharedThreadHeader as We } from "../../../components/GitHub.js";
|
|
37
|
+
import { IssueCode as Ge } from "../../../components/IssueCode.js";
|
|
38
|
+
import { EventLine as Ke } from "../../../components/IssueEvent.js";
|
|
39
|
+
import { ParentProperty as qe, SubIssuesAndRelations as Je } from "../../../components/IssueRelations.js";
|
|
40
|
+
import { Reactions as Ye } from "../../../components/Reactions.js";
|
|
41
|
+
import { TimeInStatus as Xe } from "../../../components/Reports.js";
|
|
42
|
+
import { SubscribeButton as Ze } from "../../../components/SubscribeButton.js";
|
|
43
|
+
import { Widgets as Qe } from "../../../components/Widgets.js";
|
|
44
|
+
import { Avatar as $e, Button as z, Callout as et, Card as tt, Combobox as B, CopyButton as nt, DatePicker as rt, ErrorText as it, IconButton as at, Kbd as ot, RelativeTime as st, Select as V, TitleInput as ct, Tooltip as lt, buttonClasses as ut, menuDivider as dt, toast as ft, useOpenMenu as H } from "@parallelworks/ui";
|
|
45
|
+
import { createContext as pt, useCallback as mt, useContext as ht, useEffect as gt, useMemo as _t, useRef as U, useState as W } from "react";
|
|
46
|
+
import { useErrorMessage as vt } from "@parallelworks/problem/react";
|
|
47
|
+
import { useTranslations as G } from "use-intl";
|
|
48
|
+
import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
|
|
49
|
+
import { useMutation as Y, useQuery as X, useQueryClient as Z, useSuspenseQuery as Q } from "@tanstack/react-query";
|
|
50
|
+
import { ArchiveIcon as yt } from "@parallelworks/ui/icons";
|
|
51
|
+
import { MoreButton as bt } from "@parallelworks/ui/list";
|
|
52
52
|
// src/routes/$workspace/issues/$identifier.tsx?tsr-split=component
|
|
53
|
-
function
|
|
54
|
-
let
|
|
55
|
-
|
|
56
|
-
identifier:
|
|
57
|
-
...
|
|
58
|
-
}),
|
|
59
|
-
let
|
|
60
|
-
|
|
61
|
-
window.location.pathname.endsWith(`/issues/${
|
|
53
|
+
function xt() {
|
|
54
|
+
let o = G("issue"), s = ne(), c = vt(), l = G("common"), { workspace: u, identifier: d } = M.useParams(), { data: m } = Q(p(u, d)), { data: g } = Q(y(u)), { data: _ } = Q(h), { data: v = [] } = X(f(u, d)), [b, S] = W();
|
|
55
|
+
ke({
|
|
56
|
+
identifier: m.identifier,
|
|
57
|
+
...b && { field: b }
|
|
58
|
+
}), r(`${m.identifier} ${m.title}`), Ae(u, m.identifier);
|
|
59
|
+
let C = a(), w = n(m.identifier, m.title);
|
|
60
|
+
gt(() => {
|
|
61
|
+
window.location.pathname.endsWith(`/issues/${w}`) || C({
|
|
62
62
|
to: "/$workspace/issues/$identifier",
|
|
63
63
|
params: {
|
|
64
|
-
workspace:
|
|
65
|
-
identifier:
|
|
64
|
+
workspace: u,
|
|
65
|
+
identifier: m.identifier
|
|
66
66
|
},
|
|
67
67
|
search: !0,
|
|
68
68
|
hash: !0,
|
|
69
69
|
replace: !0
|
|
70
70
|
});
|
|
71
71
|
}, [
|
|
72
|
+
w,
|
|
72
73
|
C,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
p.identifier
|
|
74
|
+
u,
|
|
75
|
+
m.identifier
|
|
76
76
|
]);
|
|
77
|
-
let
|
|
77
|
+
let T = ve(u, "delete_issues", _e(m)), E = Z(), { confirm: D, dialog: O } = be(), k = Y({
|
|
78
78
|
mutationFn: async () => t(await e.POST("/api/v1/workspaces/{workspace}/issues/{identifier}/restore", { params: { path: {
|
|
79
|
-
workspace:
|
|
80
|
-
identifier:
|
|
79
|
+
workspace: u,
|
|
80
|
+
identifier: m.identifier
|
|
81
81
|
} } })),
|
|
82
82
|
onSuccess: (e) => {
|
|
83
|
-
|
|
83
|
+
E.setQueryData(p(u, m.identifier).queryKey, e), I(E, u, m.identifier);
|
|
84
84
|
}
|
|
85
|
-
}),
|
|
85
|
+
}), ee = Y({
|
|
86
86
|
mutationFn: async () => t(await e.DELETE("/api/v1/workspaces/{workspace}/issues/{identifier}", { params: { path: {
|
|
87
|
-
workspace:
|
|
88
|
-
identifier:
|
|
87
|
+
workspace: u,
|
|
88
|
+
identifier: m.identifier
|
|
89
89
|
} } })),
|
|
90
90
|
onSuccess: () => {
|
|
91
|
-
|
|
92
|
-
let e =
|
|
93
|
-
|
|
91
|
+
ft.success(o("deleted", { identifier: m.identifier })), I(E, u);
|
|
92
|
+
let e = g.find((e) => e.id === m.teamId)?.key;
|
|
93
|
+
C(e ? {
|
|
94
94
|
to: "/$workspace/teams/$key/issues",
|
|
95
95
|
params: {
|
|
96
|
-
workspace:
|
|
96
|
+
workspace: u,
|
|
97
97
|
key: e
|
|
98
98
|
}
|
|
99
99
|
} : {
|
|
100
100
|
to: "/$workspace/issues",
|
|
101
|
-
params: { workspace:
|
|
101
|
+
params: { workspace: u }
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
}), A =
|
|
104
|
+
}), A = mt((e) => C({
|
|
105
105
|
to: "/$workspace/issues/$identifier",
|
|
106
106
|
params: {
|
|
107
|
-
workspace:
|
|
107
|
+
workspace: u,
|
|
108
108
|
identifier: e
|
|
109
109
|
}
|
|
110
|
-
}), [
|
|
111
|
-
|
|
112
|
-
ge(
|
|
110
|
+
}), [C, u]);
|
|
111
|
+
xe(u, m.body, A), gt(() => {
|
|
112
|
+
ge(u, {
|
|
113
113
|
kind: "issue",
|
|
114
|
-
href: `/${
|
|
115
|
-
label: `${
|
|
114
|
+
href: `/${u}/issues/${m.identifier}`,
|
|
115
|
+
label: `${m.identifier} ${m.title}`
|
|
116
116
|
});
|
|
117
117
|
}, [
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
u,
|
|
119
|
+
m.identifier,
|
|
120
|
+
m.title
|
|
121
121
|
]);
|
|
122
|
-
let j =
|
|
123
|
-
return
|
|
124
|
-
s: () =>
|
|
125
|
-
p: () =>
|
|
126
|
-
a: () =>
|
|
127
|
-
l: () =>
|
|
128
|
-
Escape: () =>
|
|
122
|
+
let j = Oe({ issue: m.identifier }, _?.user.username), N = g.find((e) => e.id === m.teamId), P = te(u, d), [F, L] = W(null), re = H(), ie = he(u);
|
|
123
|
+
return je({
|
|
124
|
+
s: () => L("status"),
|
|
125
|
+
p: () => L("priority"),
|
|
126
|
+
a: () => L("assignees"),
|
|
127
|
+
l: () => L("labels"),
|
|
128
|
+
Escape: () => C({
|
|
129
129
|
to: "/$workspace/issues",
|
|
130
|
-
params: { workspace:
|
|
130
|
+
params: { workspace: u }
|
|
131
131
|
})
|
|
132
|
-
},
|
|
132
|
+
}, F === null), /* @__PURE__ */ J("div", {
|
|
133
133
|
className: "flex h-full flex-col",
|
|
134
134
|
children: [
|
|
135
|
-
/* @__PURE__ */
|
|
135
|
+
/* @__PURE__ */ J("header", {
|
|
136
136
|
className: "flex h-12 shrink-0 items-center gap-2 border-b border-border px-4 text-sm md:px-5",
|
|
137
|
-
onContextMenu: (e) => re(e, ie([
|
|
137
|
+
onContextMenu: (e) => re(e, ie([m])),
|
|
138
138
|
children: [
|
|
139
|
-
/* @__PURE__ */
|
|
140
|
-
to:
|
|
139
|
+
/* @__PURE__ */ q(i, {
|
|
140
|
+
to: N ? "/$workspace/teams/$key/issues" : "/$workspace/issues",
|
|
141
141
|
params: {
|
|
142
|
-
workspace:
|
|
143
|
-
key:
|
|
142
|
+
workspace: u,
|
|
143
|
+
key: N?.key ?? ""
|
|
144
144
|
},
|
|
145
145
|
className: "text-muted-foreground hover:text-foreground",
|
|
146
|
-
children:
|
|
146
|
+
children: N?.name ?? o("issues")
|
|
147
147
|
}),
|
|
148
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ q("span", {
|
|
149
149
|
className: "text-muted-foreground",
|
|
150
150
|
"aria-hidden": "true",
|
|
151
151
|
children: "/"
|
|
152
152
|
}),
|
|
153
|
-
/* @__PURE__ */
|
|
153
|
+
/* @__PURE__ */ q("span", {
|
|
154
154
|
className: "shrink-0 font-medium whitespace-nowrap",
|
|
155
|
-
children:
|
|
155
|
+
children: m.identifier
|
|
156
156
|
}),
|
|
157
|
-
/* @__PURE__ */
|
|
158
|
-
workspace:
|
|
157
|
+
/* @__PURE__ */ q(Pe, {
|
|
158
|
+
workspace: u,
|
|
159
159
|
kind: "issue",
|
|
160
|
-
target:
|
|
160
|
+
target: m.id
|
|
161
161
|
}),
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
workspace:
|
|
164
|
-
identifier:
|
|
162
|
+
/* @__PURE__ */ q(Ze, {
|
|
163
|
+
workspace: u,
|
|
164
|
+
identifier: m.identifier
|
|
165
165
|
}),
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
-
text: n(
|
|
168
|
-
label:
|
|
169
|
-
icon: /* @__PURE__ */
|
|
166
|
+
/* @__PURE__ */ q(nt, {
|
|
167
|
+
text: n(m.identifier, m.title),
|
|
168
|
+
label: o("copyBranchName"),
|
|
169
|
+
icon: /* @__PURE__ */ q(x, {}),
|
|
170
170
|
size: "sm",
|
|
171
171
|
variant: "ghost",
|
|
172
|
-
success:
|
|
173
|
-
failure:
|
|
172
|
+
success: o("copiedBranchName", { name: n(m.identifier, m.title) }),
|
|
173
|
+
failure: o("copyFailed"),
|
|
174
174
|
className: "max-sm:hidden"
|
|
175
175
|
}),
|
|
176
|
-
/* @__PURE__ */
|
|
177
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ q(He, { links: v }),
|
|
177
|
+
/* @__PURE__ */ J("span", {
|
|
178
178
|
className: "ml-auto flex items-center gap-3",
|
|
179
179
|
children: [
|
|
180
|
-
|
|
180
|
+
P.isPending && /* @__PURE__ */ q("span", {
|
|
181
181
|
className: "text-xs text-muted-foreground",
|
|
182
|
-
children:
|
|
182
|
+
children: l("saving")
|
|
183
183
|
}),
|
|
184
|
-
/* @__PURE__ */
|
|
185
|
-
workspace:
|
|
184
|
+
/* @__PURE__ */ q(ze, {
|
|
185
|
+
workspace: u,
|
|
186
186
|
others: j
|
|
187
187
|
}),
|
|
188
|
-
/* @__PURE__ */
|
|
189
|
-
items: () => [...ie([
|
|
190
|
-
label:
|
|
188
|
+
/* @__PURE__ */ q(bt, {
|
|
189
|
+
items: () => [...ie([m]), ...T ? [{
|
|
190
|
+
label: o("deleteIssue"),
|
|
191
191
|
destructive: !0,
|
|
192
|
-
onClick: () =>
|
|
193
|
-
title:
|
|
194
|
-
description:
|
|
195
|
-
confirmLabel:
|
|
196
|
-
onConfirm: () =>
|
|
192
|
+
onClick: () => D({
|
|
193
|
+
title: o("deleteTitle", { identifier: m.identifier }),
|
|
194
|
+
description: o("deleteDescription"),
|
|
195
|
+
confirmLabel: o("deleteIssue"),
|
|
196
|
+
onConfirm: () => ee.mutateAsync()
|
|
197
197
|
})
|
|
198
198
|
}] : []],
|
|
199
|
-
label:
|
|
199
|
+
label: l("moreActionsFor", { name: m.identifier }),
|
|
200
200
|
visible: !0
|
|
201
201
|
})
|
|
202
202
|
]
|
|
203
203
|
}),
|
|
204
|
-
|
|
204
|
+
P.isError && /* @__PURE__ */ q(it, {
|
|
205
205
|
inline: !0,
|
|
206
206
|
className: "ml-auto text-xs",
|
|
207
|
-
children:
|
|
207
|
+
children: c(P.error)
|
|
208
208
|
})
|
|
209
209
|
]
|
|
210
210
|
}),
|
|
211
|
-
|
|
212
|
-
/* @__PURE__ */
|
|
211
|
+
O,
|
|
212
|
+
/* @__PURE__ */ J("div", {
|
|
213
213
|
className: "flex min-h-0 flex-1 flex-col overflow-y-auto md:flex-row md:overflow-hidden",
|
|
214
|
-
children: [/* @__PURE__ */
|
|
214
|
+
children: [/* @__PURE__ */ q("div", {
|
|
215
215
|
className: "min-w-0 md:flex-1 md:overflow-y-auto",
|
|
216
|
-
children: /* @__PURE__ */
|
|
216
|
+
children: /* @__PURE__ */ J("article", {
|
|
217
217
|
className: "w-full px-4 pt-6 pb-24 md:px-8 md:pt-8",
|
|
218
218
|
children: [
|
|
219
|
-
/* @__PURE__ */
|
|
220
|
-
value:
|
|
219
|
+
/* @__PURE__ */ J(Lt.Provider, {
|
|
220
|
+
value: S,
|
|
221
221
|
children: [
|
|
222
|
-
|
|
223
|
-
workspace:
|
|
224
|
-
issue:
|
|
222
|
+
m.triage && /* @__PURE__ */ q(St, {
|
|
223
|
+
workspace: u,
|
|
224
|
+
issue: m
|
|
225
225
|
}),
|
|
226
|
-
|
|
226
|
+
m.archivedAt && /* @__PURE__ */ q(et, {
|
|
227
227
|
tone: "muted",
|
|
228
|
-
icon: /* @__PURE__ */
|
|
228
|
+
icon: /* @__PURE__ */ q(yt, {}),
|
|
229
229
|
className: "mb-5",
|
|
230
|
-
children: /* @__PURE__ */
|
|
230
|
+
children: /* @__PURE__ */ J("span", {
|
|
231
231
|
className: "flex flex-wrap items-center gap-x-3 gap-y-1",
|
|
232
|
-
children: [
|
|
232
|
+
children: [o("archivedNote", { when: s.day(m.archivedAt.slice(0, 10)) }), /* @__PURE__ */ q(z, {
|
|
233
233
|
type: "button",
|
|
234
234
|
size: "sm",
|
|
235
|
-
onClick: () =>
|
|
236
|
-
loading:
|
|
237
|
-
children:
|
|
235
|
+
onClick: () => k.mutate(),
|
|
236
|
+
loading: k.isPending,
|
|
237
|
+
children: o("restore")
|
|
238
238
|
})]
|
|
239
239
|
})
|
|
240
240
|
}),
|
|
241
|
-
/* @__PURE__ */
|
|
242
|
-
issue:
|
|
243
|
-
onSave: (e) =>
|
|
241
|
+
/* @__PURE__ */ q(Ct, {
|
|
242
|
+
issue: m,
|
|
243
|
+
onSave: (e) => P.mutate({ title: e })
|
|
244
244
|
}),
|
|
245
|
-
/* @__PURE__ */
|
|
246
|
-
workspace:
|
|
245
|
+
/* @__PURE__ */ q(Re, {
|
|
246
|
+
workspace: u,
|
|
247
247
|
others: j,
|
|
248
248
|
field: "title"
|
|
249
249
|
}),
|
|
250
|
-
/* @__PURE__ */
|
|
251
|
-
workspace:
|
|
252
|
-
issue:
|
|
250
|
+
/* @__PURE__ */ q(wt, {
|
|
251
|
+
workspace: u,
|
|
252
|
+
issue: m
|
|
253
253
|
}),
|
|
254
|
-
/* @__PURE__ */
|
|
255
|
-
workspace:
|
|
254
|
+
/* @__PURE__ */ q(Re, {
|
|
255
|
+
workspace: u,
|
|
256
256
|
others: j,
|
|
257
257
|
field: "body"
|
|
258
258
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
260
|
-
workspace:
|
|
261
|
-
issue:
|
|
259
|
+
/* @__PURE__ */ q(Je, {
|
|
260
|
+
workspace: u,
|
|
261
|
+
issue: m
|
|
262
262
|
}),
|
|
263
|
-
/* @__PURE__ */
|
|
264
|
-
workspace:
|
|
265
|
-
identifier:
|
|
266
|
-
enabled: !!
|
|
263
|
+
/* @__PURE__ */ q(Ve, {
|
|
264
|
+
workspace: u,
|
|
265
|
+
identifier: m.identifier,
|
|
266
|
+
enabled: !!N?.customerRequestsEnabled
|
|
267
267
|
}),
|
|
268
|
-
/* @__PURE__ */
|
|
269
|
-
workspace:
|
|
270
|
-
identifier:
|
|
268
|
+
/* @__PURE__ */ q(Tt, {
|
|
269
|
+
workspace: u,
|
|
270
|
+
identifier: d
|
|
271
271
|
}),
|
|
272
|
-
/* @__PURE__ */
|
|
273
|
-
workspace:
|
|
274
|
-
identifier:
|
|
275
|
-
title:
|
|
272
|
+
/* @__PURE__ */ q(Ge, {
|
|
273
|
+
workspace: u,
|
|
274
|
+
identifier: d,
|
|
275
|
+
title: m.title
|
|
276
276
|
}),
|
|
277
|
-
/* @__PURE__ */
|
|
278
|
-
workspace:
|
|
279
|
-
identifier:
|
|
277
|
+
/* @__PURE__ */ q(Ne, {
|
|
278
|
+
workspace: u,
|
|
279
|
+
identifier: d
|
|
280
280
|
}),
|
|
281
|
-
/* @__PURE__ */
|
|
282
|
-
workspace:
|
|
283
|
-
identifier:
|
|
281
|
+
/* @__PURE__ */ q(jt, {
|
|
282
|
+
workspace: u,
|
|
283
|
+
identifier: d,
|
|
284
284
|
others: j
|
|
285
285
|
})
|
|
286
286
|
]
|
|
287
287
|
}),
|
|
288
|
-
/* @__PURE__ */
|
|
289
|
-
workspace:
|
|
290
|
-
identifier:
|
|
288
|
+
/* @__PURE__ */ q(At, {
|
|
289
|
+
workspace: u,
|
|
290
|
+
identifier: d
|
|
291
291
|
}),
|
|
292
|
-
/* @__PURE__ */
|
|
293
|
-
workspace:
|
|
294
|
-
identifier:
|
|
292
|
+
/* @__PURE__ */ q(we, {
|
|
293
|
+
workspace: u,
|
|
294
|
+
identifier: d
|
|
295
295
|
})
|
|
296
296
|
]
|
|
297
297
|
})
|
|
298
|
-
}), /* @__PURE__ */
|
|
299
|
-
workspace:
|
|
300
|
-
issue:
|
|
301
|
-
team:
|
|
302
|
-
open:
|
|
303
|
-
setOpen:
|
|
304
|
-
update: (e) =>
|
|
298
|
+
}), /* @__PURE__ */ q(Et, {
|
|
299
|
+
workspace: u,
|
|
300
|
+
issue: m,
|
|
301
|
+
team: N,
|
|
302
|
+
open: F,
|
|
303
|
+
setOpen: L,
|
|
304
|
+
update: (e) => P.mutate(e)
|
|
305
305
|
})]
|
|
306
306
|
})
|
|
307
307
|
]
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
|
-
function
|
|
311
|
-
let i =
|
|
310
|
+
function St({ workspace: n, issue: r }) {
|
|
311
|
+
let i = G("triage"), a = vt(), o = Z(), s = ye(n, r.teamId), c = Y({
|
|
312
312
|
mutationFn: async (i) => t(await e.POST("/api/v1/workspaces/{workspace}/issues/{identifier}/triage", {
|
|
313
313
|
params: { path: {
|
|
314
314
|
workspace: n,
|
|
@@ -322,27 +322,27 @@ function Ct({ workspace: n, issue: r }) {
|
|
|
322
322
|
"issues"
|
|
323
323
|
] })
|
|
324
324
|
});
|
|
325
|
-
return /* @__PURE__ */
|
|
325
|
+
return /* @__PURE__ */ J("div", {
|
|
326
326
|
className: "mb-5 flex flex-wrap items-center gap-3 rounded-xl border border-border bg-muted/40 px-4 py-3",
|
|
327
327
|
children: [
|
|
328
|
-
/* @__PURE__ */
|
|
329
|
-
/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ q(A, { className: "size-4 shrink-0 text-muted-foreground" }),
|
|
329
|
+
/* @__PURE__ */ q("p", {
|
|
330
330
|
className: "min-w-0 flex-1 text-sm",
|
|
331
331
|
children: i("waiting")
|
|
332
332
|
}),
|
|
333
|
-
c.error && /* @__PURE__ */
|
|
333
|
+
c.error && /* @__PURE__ */ q("span", {
|
|
334
334
|
className: "text-xs text-danger",
|
|
335
335
|
children: a(c.error)
|
|
336
336
|
}),
|
|
337
|
-
s && /* @__PURE__ */
|
|
337
|
+
s && /* @__PURE__ */ J("span", {
|
|
338
338
|
className: "flex gap-2",
|
|
339
|
-
children: [/* @__PURE__ */
|
|
339
|
+
children: [/* @__PURE__ */ q(z, {
|
|
340
340
|
variant: "outline",
|
|
341
341
|
size: "sm",
|
|
342
342
|
disabled: c.isPending,
|
|
343
343
|
onClick: () => c.mutate("decline"),
|
|
344
344
|
children: i("decline")
|
|
345
|
-
}), /* @__PURE__ */
|
|
345
|
+
}), /* @__PURE__ */ q(z, {
|
|
346
346
|
variant: "primary",
|
|
347
347
|
size: "sm",
|
|
348
348
|
loading: c.isPending && c.variables === "accept",
|
|
@@ -353,12 +353,12 @@ function Ct({ workspace: n, issue: r }) {
|
|
|
353
353
|
]
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
|
-
function
|
|
357
|
-
let n =
|
|
358
|
-
return /* @__PURE__ */
|
|
356
|
+
function Ct({ issue: e, onSave: t }) {
|
|
357
|
+
let n = G("issue"), r = ht(Lt);
|
|
358
|
+
return /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q("h1", {
|
|
359
359
|
className: "sr-only",
|
|
360
360
|
children: e.title
|
|
361
|
-
}), /* @__PURE__ */
|
|
361
|
+
}), /* @__PURE__ */ q(ct, {
|
|
362
362
|
value: e.title,
|
|
363
363
|
onCommit: t,
|
|
364
364
|
onFocus: () => r("title"),
|
|
@@ -366,24 +366,24 @@ function wt({ issue: e, onSave: t }) {
|
|
|
366
366
|
"aria-label": n("title")
|
|
367
367
|
})] });
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
let n =
|
|
369
|
+
function wt({ workspace: e, issue: t }) {
|
|
370
|
+
let n = G("issue"), r = G("common"), i = ht(Lt), { data: a } = Q(h), o = U(null), s = _t(() => ({
|
|
371
371
|
name: a?.user.name ?? n("someone"),
|
|
372
|
-
color:
|
|
372
|
+
color: Fe(a?.user.username ?? "")
|
|
373
373
|
}), [
|
|
374
374
|
a?.user.name,
|
|
375
375
|
a?.user.username,
|
|
376
376
|
n
|
|
377
|
-
]), { session: c, error: l } =
|
|
377
|
+
]), { session: c, error: l } = Ie({
|
|
378
378
|
workspace: e,
|
|
379
379
|
target: { issue: t.identifier },
|
|
380
380
|
user: s,
|
|
381
381
|
getMarkdown: o
|
|
382
|
-
}), u =
|
|
383
|
-
return /* @__PURE__ */
|
|
382
|
+
}), u = U(null), d = Ee(e, t.identifier), { data: f = [] } = X(_(e, t.identifier)), p = ve(e, "comment", _e(t));
|
|
383
|
+
return /* @__PURE__ */ J("div", {
|
|
384
384
|
className: "group mt-4 min-h-32",
|
|
385
385
|
children: [
|
|
386
|
-
c ? /* @__PURE__ */
|
|
386
|
+
c ? /* @__PURE__ */ q(Le, {
|
|
387
387
|
session: c,
|
|
388
388
|
user: s,
|
|
389
389
|
getMarkdown: o,
|
|
@@ -396,23 +396,23 @@ function Tt({ workspace: e, issue: t }) {
|
|
|
396
396
|
placeholder: n("addDescription"),
|
|
397
397
|
label: r("description"),
|
|
398
398
|
className: "min-h-32"
|
|
399
|
-
}, `${c.generation}:${c.doc.guid}`) : /* @__PURE__ */
|
|
399
|
+
}, `${c.generation}:${c.doc.guid}`) : /* @__PURE__ */ q(R, {
|
|
400
400
|
value: t.body,
|
|
401
401
|
editable: !1,
|
|
402
402
|
className: "min-h-32"
|
|
403
403
|
}),
|
|
404
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ q(it, {
|
|
405
405
|
className: "mt-1",
|
|
406
406
|
children: l
|
|
407
407
|
}),
|
|
408
|
-
c && /* @__PURE__ */
|
|
408
|
+
c && /* @__PURE__ */ J("div", {
|
|
409
409
|
className: "mt-1 flex items-center justify-end gap-2",
|
|
410
|
-
children: [/* @__PURE__ */
|
|
410
|
+
children: [/* @__PURE__ */ q(Te, {
|
|
411
411
|
pending: d.pending,
|
|
412
412
|
error: d.error
|
|
413
|
-
}), /* @__PURE__ */
|
|
413
|
+
}), /* @__PURE__ */ q(Ce, { onFiles: (e) => d.upload(u.current, e) })]
|
|
414
414
|
}),
|
|
415
|
-
/* @__PURE__ */
|
|
415
|
+
/* @__PURE__ */ q(Ye, {
|
|
416
416
|
workspace: e,
|
|
417
417
|
identifier: t.identifier,
|
|
418
418
|
reactions: f,
|
|
@@ -422,25 +422,25 @@ function Tt({ workspace: e, issue: t }) {
|
|
|
422
422
|
]
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
|
-
function
|
|
426
|
-
let n =
|
|
427
|
-
return
|
|
425
|
+
function Tt({ workspace: e, identifier: t }) {
|
|
426
|
+
let n = G("issue"), { data: r } = Q(d(e, t)), a = H(), o = F(e);
|
|
427
|
+
return r.length === 0 ? null : /* @__PURE__ */ J("section", {
|
|
428
428
|
className: "mt-6",
|
|
429
429
|
"aria-label": n("docs"),
|
|
430
|
-
children: [/* @__PURE__ */
|
|
430
|
+
children: [/* @__PURE__ */ q("h2", {
|
|
431
431
|
className: "text-xs font-medium text-muted-foreground",
|
|
432
432
|
children: n("docs")
|
|
433
|
-
}), /* @__PURE__ */
|
|
433
|
+
}), /* @__PURE__ */ q("ul", {
|
|
434
434
|
className: "mt-1 flex flex-wrap gap-1.5",
|
|
435
|
-
children:
|
|
435
|
+
children: r.map((t) => /* @__PURE__ */ q("li", { children: /* @__PURE__ */ J(i, {
|
|
436
436
|
to: "/$workspace/docs/$doc",
|
|
437
437
|
params: {
|
|
438
438
|
workspace: e,
|
|
439
|
-
doc:
|
|
439
|
+
doc: P(t)
|
|
440
440
|
},
|
|
441
441
|
onContextMenu: (e) => a(e, o(t)),
|
|
442
|
-
className: `${
|
|
443
|
-
children: [/* @__PURE__ */
|
|
442
|
+
className: `${ut({ size: "sm" })} max-w-72`,
|
|
443
|
+
children: [/* @__PURE__ */ q(E, { className: "size-3.5 text-muted-foreground" }), /* @__PURE__ */ q("span", {
|
|
444
444
|
className: "truncate",
|
|
445
445
|
children: t.title
|
|
446
446
|
})]
|
|
@@ -448,58 +448,58 @@ function Et({ workspace: e, identifier: t }) {
|
|
|
448
448
|
})]
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
|
-
function
|
|
452
|
-
let l =
|
|
453
|
-
...
|
|
451
|
+
function Et({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c }) {
|
|
452
|
+
let l = G("relations"), u = i?.key, d = G("issue.properties"), p = G("common"), h = j(), { data: g = [] } = X({
|
|
453
|
+
...v(n, u ?? ""),
|
|
454
454
|
enabled: !!u
|
|
455
|
-
}), { data:
|
|
455
|
+
}), { data: _ = [] } = X(m(n)), { data: y = [] } = X(f(n, r.identifier)), { nameOf: b, actorName: x, avatarOf: S } = ce(n), C = Z(), w = Y({
|
|
456
456
|
mutationFn: async (r) => t(await e.POST("/api/v1/workspaces/{workspace}/labels", {
|
|
457
457
|
params: { path: { workspace: n } },
|
|
458
458
|
body: {
|
|
459
459
|
name: r,
|
|
460
|
-
color:
|
|
460
|
+
color: Dt[_.length % Dt.length] ?? "#d73a4a"
|
|
461
461
|
}
|
|
462
462
|
})),
|
|
463
463
|
onSuccess: (e) => {
|
|
464
|
-
C.invalidateQueries({ queryKey:
|
|
464
|
+
C.invalidateQueries({ queryKey: m(n).queryKey }), c({ addLabels: [e.id] });
|
|
465
465
|
}
|
|
466
|
-
}), T = r.assignees.map(de), E = pe(n, !0),
|
|
466
|
+
}), T = r.assignees.map(de), E = pe(n, !0), D = (e) => (t) => s(t ? e : null), k = ue(o === "assignees", () => s(null)), A = ue(o === "labels", () => s(null)), M = "flex h-8 w-full items-center gap-2 rounded-md px-2 text-sm hover:bg-muted", N = H(), P = he(n), F = a(), I = (e, t) => {
|
|
467
467
|
e.stopPropagation(), N(e, t);
|
|
468
468
|
};
|
|
469
|
-
return /* @__PURE__ */
|
|
469
|
+
return /* @__PURE__ */ J("aside", {
|
|
470
470
|
className: "order-first grid shrink-0 grid-cols-2 gap-4 border-b border-border px-4 py-4 md:order-none md:block md:w-72 md:space-y-5 md:overflow-y-auto md:border-b-0 md:border-l md:py-6",
|
|
471
|
-
"aria-label":
|
|
471
|
+
"aria-label": d("title"),
|
|
472
472
|
onContextMenu: (e) => N(e, P([r])),
|
|
473
473
|
children: [
|
|
474
|
-
/* @__PURE__ */
|
|
475
|
-
label:
|
|
474
|
+
/* @__PURE__ */ q($, {
|
|
475
|
+
label: p("status"),
|
|
476
476
|
shortcut: "S",
|
|
477
|
-
children: /* @__PURE__ */
|
|
478
|
-
"aria-label":
|
|
477
|
+
children: /* @__PURE__ */ q(B, {
|
|
478
|
+
"aria-label": p("status"),
|
|
479
479
|
open: o === "status",
|
|
480
|
-
onOpenChange:
|
|
480
|
+
onOpenChange: D("status"),
|
|
481
481
|
items: g.map((e) => ({
|
|
482
482
|
value: e.id,
|
|
483
483
|
label: e.name,
|
|
484
|
-
icon: /* @__PURE__ */
|
|
484
|
+
icon: /* @__PURE__ */ q(ee, { category: e.category })
|
|
485
485
|
})),
|
|
486
486
|
value: r.status.id,
|
|
487
487
|
onValueChange: (e) => e !== null && e !== r.status.id && c({ statusId: e }),
|
|
488
|
-
placeholder:
|
|
489
|
-
trigger: /* @__PURE__ */
|
|
488
|
+
placeholder: d("changeStatus"),
|
|
489
|
+
trigger: /* @__PURE__ */ J("button", {
|
|
490
490
|
type: "button",
|
|
491
491
|
className: M,
|
|
492
|
-
children: [/* @__PURE__ */
|
|
492
|
+
children: [/* @__PURE__ */ q(ee, { category: r.status.category }), r.status.name]
|
|
493
493
|
})
|
|
494
494
|
})
|
|
495
495
|
}),
|
|
496
|
-
/* @__PURE__ */
|
|
497
|
-
label:
|
|
496
|
+
/* @__PURE__ */ q($, {
|
|
497
|
+
label: p("priority"),
|
|
498
498
|
shortcut: "P",
|
|
499
|
-
children: /* @__PURE__ */
|
|
500
|
-
"aria-label":
|
|
499
|
+
children: /* @__PURE__ */ q(B, {
|
|
500
|
+
"aria-label": p("priority"),
|
|
501
501
|
open: o === "priority",
|
|
502
|
-
onOpenChange:
|
|
502
|
+
onOpenChange: D("priority"),
|
|
503
503
|
items: [
|
|
504
504
|
1,
|
|
505
505
|
2,
|
|
@@ -509,26 +509,26 @@ function Dt({ workspace: n, issue: r, team: a, open: o, setOpen: s, update: c })
|
|
|
509
509
|
].map((e) => ({
|
|
510
510
|
value: String(e),
|
|
511
511
|
label: h[e] ?? "",
|
|
512
|
-
icon: /* @__PURE__ */
|
|
512
|
+
icon: /* @__PURE__ */ q(O, { priority: e })
|
|
513
513
|
})),
|
|
514
514
|
value: String(r.priority),
|
|
515
515
|
onValueChange: (e) => e !== null && c({ priority: Number(e) }),
|
|
516
|
-
placeholder:
|
|
517
|
-
trigger: /* @__PURE__ */
|
|
516
|
+
placeholder: d("setPriority"),
|
|
517
|
+
trigger: /* @__PURE__ */ J("button", {
|
|
518
518
|
type: "button",
|
|
519
519
|
className: M,
|
|
520
|
-
children: [/* @__PURE__ */
|
|
520
|
+
children: [/* @__PURE__ */ q(O, { priority: r.priority }), h[r.priority]]
|
|
521
521
|
})
|
|
522
522
|
})
|
|
523
523
|
}),
|
|
524
|
-
/* @__PURE__ */
|
|
525
|
-
label:
|
|
524
|
+
/* @__PURE__ */ q($, {
|
|
525
|
+
label: d("assignees"),
|
|
526
526
|
shortcut: "A",
|
|
527
|
-
children: /* @__PURE__ */
|
|
528
|
-
"aria-label":
|
|
527
|
+
children: /* @__PURE__ */ q(B, {
|
|
528
|
+
"aria-label": d("assignees"),
|
|
529
529
|
multiple: !0,
|
|
530
530
|
open: o === "assignees",
|
|
531
|
-
onOpenChange:
|
|
531
|
+
onOpenChange: D("assignees"),
|
|
532
532
|
items: E,
|
|
533
533
|
value: T,
|
|
534
534
|
onValueChange: (e) => {
|
|
@@ -536,26 +536,26 @@ function Dt({ workspace: n, issue: r, team: a, open: o, setOpen: s, update: c })
|
|
|
536
536
|
c({
|
|
537
537
|
...t.length > 0 && { addAssignees: t.map(fe) },
|
|
538
538
|
...n.length > 0 && { removeAssignees: n.map(fe) }
|
|
539
|
-
}),
|
|
539
|
+
}), k();
|
|
540
540
|
},
|
|
541
|
-
placeholder:
|
|
542
|
-
trigger: /* @__PURE__ */
|
|
541
|
+
placeholder: d("assignTo"),
|
|
542
|
+
trigger: /* @__PURE__ */ J("button", {
|
|
543
543
|
type: "button",
|
|
544
544
|
className: `${M} h-auto min-h-8 flex-wrap py-1`,
|
|
545
|
-
children: [r.assignees.length === 0 && /* @__PURE__ */
|
|
545
|
+
children: [r.assignees.length === 0 && /* @__PURE__ */ q("span", {
|
|
546
546
|
className: "text-muted-foreground",
|
|
547
|
-
children:
|
|
547
|
+
children: d("unassigned")
|
|
548
548
|
}), r.assignees.map((e) => {
|
|
549
549
|
let t = b(e.kind, e.handle);
|
|
550
|
-
return /* @__PURE__ */
|
|
551
|
-
onContextMenu: (r) =>
|
|
552
|
-
label:
|
|
550
|
+
return /* @__PURE__ */ q("span", {
|
|
551
|
+
onContextMenu: (r) => I(r, [{
|
|
552
|
+
label: d("unassign", { name: t }),
|
|
553
553
|
onClick: () => c({ removeAssignees: [{
|
|
554
554
|
kind: e.kind,
|
|
555
555
|
handle: e.handle
|
|
556
556
|
}] })
|
|
557
557
|
}, {
|
|
558
|
-
label:
|
|
558
|
+
label: d("viewTheirIssues"),
|
|
559
559
|
onClick: () => F({
|
|
560
560
|
to: "/$workspace/issues",
|
|
561
561
|
params: { workspace: n },
|
|
@@ -566,13 +566,13 @@ function Dt({ workspace: n, issue: r, team: a, open: o, setOpen: s, update: c })
|
|
|
566
566
|
})
|
|
567
567
|
}]),
|
|
568
568
|
className: "flex items-center gap-1.5",
|
|
569
|
-
children: /* @__PURE__ */
|
|
569
|
+
children: /* @__PURE__ */ J(Se, {
|
|
570
570
|
workspace: n,
|
|
571
571
|
kind: e.kind,
|
|
572
572
|
handle: e.handle,
|
|
573
573
|
className: "flex items-center gap-1.5",
|
|
574
|
-
children: [/* @__PURE__ */
|
|
575
|
-
...
|
|
574
|
+
children: [/* @__PURE__ */ q($e, {
|
|
575
|
+
...De(e.kind),
|
|
576
576
|
name: t,
|
|
577
577
|
src: S(e.kind, e.handle),
|
|
578
578
|
size: "xs",
|
|
@@ -584,20 +584,20 @@ function Dt({ workspace: n, issue: r, team: a, open: o, setOpen: s, update: c })
|
|
|
584
584
|
})
|
|
585
585
|
})
|
|
586
586
|
}),
|
|
587
|
-
/* @__PURE__ */
|
|
588
|
-
label:
|
|
587
|
+
/* @__PURE__ */ q($, {
|
|
588
|
+
label: p("labels"),
|
|
589
589
|
shortcut: "L",
|
|
590
|
-
children: /* @__PURE__ */
|
|
591
|
-
"aria-label":
|
|
590
|
+
children: /* @__PURE__ */ q(B, {
|
|
591
|
+
"aria-label": p("labels"),
|
|
592
592
|
multiple: !0,
|
|
593
593
|
open: o === "labels",
|
|
594
|
-
onOpenChange:
|
|
595
|
-
items:
|
|
594
|
+
onOpenChange: D("labels"),
|
|
595
|
+
items: _.map((e) => ({
|
|
596
596
|
value: e.id,
|
|
597
597
|
label: e.name,
|
|
598
|
-
icon: /* @__PURE__ */
|
|
598
|
+
icon: /* @__PURE__ */ J("span", {
|
|
599
599
|
className: "flex items-center gap-2",
|
|
600
|
-
children: [/* @__PURE__ */
|
|
600
|
+
children: [/* @__PURE__ */ q(le, {}), /* @__PURE__ */ q("span", {
|
|
601
601
|
className: "size-2.5 rounded-full",
|
|
602
602
|
style: { background: e.color }
|
|
603
603
|
})]
|
|
@@ -605,7 +605,7 @@ function Dt({ workspace: n, issue: r, team: a, open: o, setOpen: s, update: c })
|
|
|
605
605
|
})),
|
|
606
606
|
value: r.labels.map((e) => e.id),
|
|
607
607
|
onValueChange: (e) => {
|
|
608
|
-
|
|
608
|
+
A();
|
|
609
609
|
let t = r.labels.map((e) => e.id), n = e.filter((e) => !t.includes(e)), i = t.filter((t) => !e.includes(t));
|
|
610
610
|
c({
|
|
611
611
|
...n.length > 0 && { addLabels: n },
|
|
@@ -613,19 +613,19 @@ function Dt({ workspace: n, issue: r, team: a, open: o, setOpen: s, update: c })
|
|
|
613
613
|
});
|
|
614
614
|
},
|
|
615
615
|
onCreate: (e) => w.mutate(e),
|
|
616
|
-
placeholder:
|
|
617
|
-
trigger: /* @__PURE__ */
|
|
616
|
+
placeholder: d("addLabels"),
|
|
617
|
+
trigger: /* @__PURE__ */ J("button", {
|
|
618
618
|
type: "button",
|
|
619
619
|
className: `${M} h-auto min-h-8 flex-wrap py-1`,
|
|
620
|
-
children: [r.labels.length === 0 && /* @__PURE__ */
|
|
620
|
+
children: [r.labels.length === 0 && /* @__PURE__ */ q("span", {
|
|
621
621
|
className: "text-muted-foreground",
|
|
622
|
-
children:
|
|
623
|
-
}), r.labels.map((e) => /* @__PURE__ */
|
|
624
|
-
onContextMenu: (t) =>
|
|
625
|
-
label:
|
|
622
|
+
children: d("noLabels")
|
|
623
|
+
}), r.labels.map((e) => /* @__PURE__ */ J("span", {
|
|
624
|
+
onContextMenu: (t) => I(t, [{
|
|
625
|
+
label: d("removeLabel", { name: e.name }),
|
|
626
626
|
onClick: () => c({ removeLabels: [e.id] })
|
|
627
627
|
}, {
|
|
628
|
-
label:
|
|
628
|
+
label: d("viewLabelIssues"),
|
|
629
629
|
onClick: () => F({
|
|
630
630
|
to: "/$workspace/issues",
|
|
631
631
|
params: { workspace: n },
|
|
@@ -634,10 +634,10 @@ function Dt({ workspace: n, issue: r, team: a, open: o, setOpen: s, update: c })
|
|
|
634
634
|
}]),
|
|
635
635
|
title: e.name,
|
|
636
636
|
className: "inline-flex max-w-full min-w-0 items-center gap-1 rounded-full border border-border px-2 py-0.5 text-xs",
|
|
637
|
-
children: [/* @__PURE__ */
|
|
637
|
+
children: [/* @__PURE__ */ q("span", {
|
|
638
638
|
className: "size-2 shrink-0 rounded-full",
|
|
639
639
|
style: { background: e.color }
|
|
640
|
-
}), /* @__PURE__ */
|
|
640
|
+
}), /* @__PURE__ */ q("span", {
|
|
641
641
|
className: "truncate",
|
|
642
642
|
children: e.name
|
|
643
643
|
})]
|
|
@@ -645,57 +645,57 @@ function Dt({ workspace: n, issue: r, team: a, open: o, setOpen: s, update: c })
|
|
|
645
645
|
})
|
|
646
646
|
})
|
|
647
647
|
}),
|
|
648
|
-
/* @__PURE__ */
|
|
648
|
+
/* @__PURE__ */ q($, {
|
|
649
649
|
label: l("parent"),
|
|
650
|
-
children: /* @__PURE__ */
|
|
650
|
+
children: /* @__PURE__ */ q(qe, {
|
|
651
651
|
workspace: n,
|
|
652
652
|
issue: r,
|
|
653
653
|
row: M
|
|
654
654
|
})
|
|
655
655
|
}),
|
|
656
|
-
/* @__PURE__ */
|
|
656
|
+
/* @__PURE__ */ q(kt, {
|
|
657
657
|
workspace: n,
|
|
658
658
|
issue: r,
|
|
659
|
-
team:
|
|
659
|
+
team: i,
|
|
660
660
|
update: c,
|
|
661
661
|
row: M
|
|
662
662
|
}),
|
|
663
|
-
/* @__PURE__ */
|
|
664
|
-
label:
|
|
665
|
-
children: /* @__PURE__ */
|
|
663
|
+
/* @__PURE__ */ q($, {
|
|
664
|
+
label: d("created"),
|
|
665
|
+
children: /* @__PURE__ */ J("p", {
|
|
666
666
|
className: "flex items-center gap-2 px-2 text-sm",
|
|
667
|
-
children: [/* @__PURE__ */
|
|
667
|
+
children: [/* @__PURE__ */ q(Se, {
|
|
668
668
|
workspace: n,
|
|
669
669
|
kind: r.creator.kind,
|
|
670
670
|
handle: r.creator.handle,
|
|
671
|
-
children: /* @__PURE__ */
|
|
672
|
-
...
|
|
671
|
+
children: /* @__PURE__ */ q($e, {
|
|
672
|
+
...De(r.creator.kind),
|
|
673
673
|
name: x(r.creator),
|
|
674
674
|
src: S(r.creator.kind, r.creator.handle),
|
|
675
675
|
size: "xs",
|
|
676
676
|
tooltip: r.creator.kind !== "user"
|
|
677
677
|
})
|
|
678
|
-
}), /* @__PURE__ */
|
|
678
|
+
}), /* @__PURE__ */ q(st, {
|
|
679
679
|
value: r.createdAt,
|
|
680
680
|
exact: "medium"
|
|
681
681
|
})]
|
|
682
682
|
})
|
|
683
683
|
}),
|
|
684
|
-
/* @__PURE__ */
|
|
685
|
-
label:
|
|
686
|
-
children: /* @__PURE__ */
|
|
684
|
+
/* @__PURE__ */ q($, {
|
|
685
|
+
label: d("timeInStatus"),
|
|
686
|
+
children: /* @__PURE__ */ q(Xe, {
|
|
687
687
|
workspace: n,
|
|
688
688
|
identifier: r.identifier
|
|
689
689
|
})
|
|
690
690
|
}),
|
|
691
|
-
y.length > 0 && /* @__PURE__ */
|
|
692
|
-
label:
|
|
693
|
-
children: /* @__PURE__ */
|
|
691
|
+
y.length > 0 && /* @__PURE__ */ q($, {
|
|
692
|
+
label: d("syncedWith"),
|
|
693
|
+
children: /* @__PURE__ */ q(Ue, { links: y })
|
|
694
694
|
})
|
|
695
695
|
]
|
|
696
696
|
});
|
|
697
697
|
}
|
|
698
|
-
var
|
|
698
|
+
var Dt = [
|
|
699
699
|
"#d73a4a",
|
|
700
700
|
"#2f8a57",
|
|
701
701
|
"#8250df",
|
|
@@ -704,63 +704,63 @@ var Ot = [
|
|
|
704
704
|
"#57606a",
|
|
705
705
|
"#1a7f37"
|
|
706
706
|
];
|
|
707
|
-
function
|
|
708
|
-
let
|
|
707
|
+
function Ot({ workspace: e, origin: t, className: n }) {
|
|
708
|
+
let r = "size-3.5 shrink-0 text-muted-foreground", a = t.title.replace(/[*_`#>[\]]/g, "").replace(/\s+/g, " ").trim();
|
|
709
709
|
switch (t.kind) {
|
|
710
|
-
case "decision": return /* @__PURE__ */
|
|
710
|
+
case "decision": return /* @__PURE__ */ J(i, {
|
|
711
711
|
to: "/$workspace/issues/$identifier",
|
|
712
712
|
params: {
|
|
713
713
|
workspace: e,
|
|
714
714
|
identifier: t.key
|
|
715
715
|
},
|
|
716
716
|
className: n,
|
|
717
|
-
children: [/* @__PURE__ */
|
|
717
|
+
children: [/* @__PURE__ */ q(D, { className: r }), /* @__PURE__ */ q(lt, {
|
|
718
718
|
content: a,
|
|
719
719
|
overflowOnly: !0,
|
|
720
|
-
children: /* @__PURE__ */
|
|
720
|
+
children: /* @__PURE__ */ q("span", {
|
|
721
721
|
className: "truncate",
|
|
722
722
|
children: a
|
|
723
723
|
})
|
|
724
724
|
})]
|
|
725
725
|
});
|
|
726
|
-
case "area": return /* @__PURE__ */
|
|
726
|
+
case "area": return /* @__PURE__ */ J(i, {
|
|
727
727
|
to: "/$workspace/areas/$area",
|
|
728
728
|
params: {
|
|
729
729
|
workspace: e,
|
|
730
730
|
area: t.key
|
|
731
731
|
},
|
|
732
732
|
className: n,
|
|
733
|
-
children: [/* @__PURE__ */
|
|
733
|
+
children: [/* @__PURE__ */ q(b, { className: r }), /* @__PURE__ */ q("span", {
|
|
734
734
|
className: "truncate",
|
|
735
735
|
children: a
|
|
736
736
|
})]
|
|
737
737
|
});
|
|
738
|
-
default: return /* @__PURE__ */
|
|
738
|
+
default: return /* @__PURE__ */ J(i, {
|
|
739
739
|
to: "/$workspace/docs/$doc",
|
|
740
740
|
params: {
|
|
741
741
|
workspace: e,
|
|
742
742
|
doc: t.key
|
|
743
743
|
},
|
|
744
744
|
className: n,
|
|
745
|
-
children: [/* @__PURE__ */
|
|
745
|
+
children: [/* @__PURE__ */ q(E, { className: r }), /* @__PURE__ */ q("span", {
|
|
746
746
|
className: "truncate",
|
|
747
747
|
children: a
|
|
748
748
|
})]
|
|
749
749
|
});
|
|
750
750
|
}
|
|
751
751
|
}
|
|
752
|
-
function
|
|
753
|
-
let
|
|
754
|
-
...
|
|
752
|
+
function kt({ workspace: e, issue: t, team: n, update: r, row: i }) {
|
|
753
|
+
let a = G("planning"), s = G("flow"), c = ne(), u = oe(), { data: d = [] } = X(g(e)), f = d.find((e) => e.id === t.project?.id), { data: p = [] } = X({
|
|
754
|
+
...l(e, n?.key ?? ""),
|
|
755
755
|
enabled: !!n?.cyclesEnabled
|
|
756
|
-
}), m = n?.estimateScale ?? "none",
|
|
756
|
+
}), m = n?.estimateScale ?? "none", h = t.status.category === "completed" || t.status.category === "canceled", _ = (e) => e.name ? a("cycleNamed", {
|
|
757
757
|
number: e.number,
|
|
758
758
|
name: e.name
|
|
759
|
-
}) :
|
|
760
|
-
return /* @__PURE__ */
|
|
761
|
-
n && n.flow.length > 0 && /* @__PURE__ */
|
|
759
|
+
}) : a("cycle", { number: e.number }), v = p.filter((e) => e.state !== "past" || e.id === t.cycle?.id), { data: y = [] } = X(o(e)), x = y.filter((e) => !e.teamId || e.teamId === t.teamId);
|
|
760
|
+
return /* @__PURE__ */ J(K, { children: [
|
|
761
|
+
n && n.flow.length > 0 && /* @__PURE__ */ q($, {
|
|
762
762
|
label: s("stage"),
|
|
763
|
-
children: /* @__PURE__ */
|
|
763
|
+
children: /* @__PURE__ */ q(V, {
|
|
764
764
|
"aria-label": s("stage"),
|
|
765
765
|
value: t.stage ?? "",
|
|
766
766
|
onValueChange: (e) => r({ stage: e ?? "" }),
|
|
@@ -771,194 +771,194 @@ function At({ workspace: e, issue: t, team: n, update: r, row: i }) {
|
|
|
771
771
|
value: e.stage,
|
|
772
772
|
label: s(`stages.${e.stage}`)
|
|
773
773
|
}))],
|
|
774
|
-
trigger: /* @__PURE__ */
|
|
774
|
+
trigger: /* @__PURE__ */ J("button", {
|
|
775
775
|
type: "button",
|
|
776
776
|
className: i,
|
|
777
|
-
children: [/* @__PURE__ */
|
|
777
|
+
children: [/* @__PURE__ */ q(w, { className: "size-3.5 shrink-0 text-muted-foreground" }), t.stage ? /* @__PURE__ */ q("span", {
|
|
778
778
|
className: "truncate",
|
|
779
779
|
children: s(`stages.${t.stage}`)
|
|
780
|
-
}) : /* @__PURE__ */
|
|
780
|
+
}) : /* @__PURE__ */ q("span", {
|
|
781
781
|
className: "text-muted-foreground",
|
|
782
782
|
children: s("notInFlow")
|
|
783
783
|
})]
|
|
784
784
|
})
|
|
785
785
|
})
|
|
786
786
|
}),
|
|
787
|
-
/* @__PURE__ */
|
|
788
|
-
label:
|
|
789
|
-
children: /* @__PURE__ */
|
|
790
|
-
"aria-label":
|
|
787
|
+
/* @__PURE__ */ q($, {
|
|
788
|
+
label: a("area"),
|
|
789
|
+
children: /* @__PURE__ */ q(V, {
|
|
790
|
+
"aria-label": a("area"),
|
|
791
791
|
value: t.area?.key ?? "",
|
|
792
792
|
onValueChange: (e) => r({ area: e ?? "" }),
|
|
793
793
|
items: [{
|
|
794
794
|
value: "",
|
|
795
|
-
label:
|
|
796
|
-
}, ...
|
|
795
|
+
label: a("noArea")
|
|
796
|
+
}, ...x.map((e) => ({
|
|
797
797
|
value: e.key,
|
|
798
798
|
label: e.title,
|
|
799
|
-
...e.status === "proposed" && { description:
|
|
799
|
+
...e.status === "proposed" && { description: a("proposedArea") }
|
|
800
800
|
}))],
|
|
801
|
-
trigger: /* @__PURE__ */
|
|
801
|
+
trigger: /* @__PURE__ */ J("button", {
|
|
802
802
|
type: "button",
|
|
803
803
|
className: i,
|
|
804
|
-
children: [/* @__PURE__ */
|
|
804
|
+
children: [/* @__PURE__ */ q(b, { className: "size-3.5 shrink-0 text-muted-foreground" }), t.area ? /* @__PURE__ */ q("span", {
|
|
805
805
|
className: "truncate",
|
|
806
806
|
children: t.area.title
|
|
807
|
-
}) : /* @__PURE__ */
|
|
807
|
+
}) : /* @__PURE__ */ q("span", {
|
|
808
808
|
className: "text-muted-foreground",
|
|
809
|
-
children:
|
|
809
|
+
children: a("noArea")
|
|
810
810
|
})]
|
|
811
811
|
})
|
|
812
812
|
})
|
|
813
813
|
}),
|
|
814
|
-
t.origin && /* @__PURE__ */
|
|
815
|
-
label:
|
|
816
|
-
children: /* @__PURE__ */
|
|
814
|
+
t.origin && /* @__PURE__ */ q($, {
|
|
815
|
+
label: a("startedFrom"),
|
|
816
|
+
children: /* @__PURE__ */ q(Ot, {
|
|
817
817
|
workspace: e,
|
|
818
818
|
origin: t.origin,
|
|
819
819
|
className: i
|
|
820
820
|
})
|
|
821
821
|
}),
|
|
822
|
-
/* @__PURE__ */
|
|
823
|
-
label:
|
|
824
|
-
children: /* @__PURE__ */
|
|
825
|
-
"aria-label":
|
|
822
|
+
/* @__PURE__ */ q($, {
|
|
823
|
+
label: a("project"),
|
|
824
|
+
children: /* @__PURE__ */ q(V, {
|
|
825
|
+
"aria-label": a("project"),
|
|
826
826
|
value: t.project?.id ?? "",
|
|
827
827
|
onValueChange: (e) => r({ projectId: e ?? "" }),
|
|
828
828
|
items: [{
|
|
829
829
|
value: "",
|
|
830
|
-
label:
|
|
830
|
+
label: a("noProject")
|
|
831
831
|
}, ...d.map((e) => ({
|
|
832
832
|
value: e.id,
|
|
833
833
|
label: e.name,
|
|
834
|
-
icon: /* @__PURE__ */
|
|
834
|
+
icon: /* @__PURE__ */ q(re, { status: e.status })
|
|
835
835
|
}))],
|
|
836
|
-
trigger: /* @__PURE__ */
|
|
836
|
+
trigger: /* @__PURE__ */ J("button", {
|
|
837
837
|
type: "button",
|
|
838
838
|
className: i,
|
|
839
|
-
children: [/* @__PURE__ */
|
|
839
|
+
children: [/* @__PURE__ */ q(k, { className: "size-3.5 shrink-0 text-muted-foreground" }), t.project ? /* @__PURE__ */ q("span", {
|
|
840
840
|
className: "truncate",
|
|
841
841
|
children: t.project.name
|
|
842
|
-
}) : /* @__PURE__ */
|
|
842
|
+
}) : /* @__PURE__ */ q("span", {
|
|
843
843
|
className: "text-muted-foreground",
|
|
844
|
-
children:
|
|
844
|
+
children: a("noProject")
|
|
845
845
|
})]
|
|
846
846
|
})
|
|
847
847
|
})
|
|
848
848
|
}),
|
|
849
|
-
t.project && /* @__PURE__ */
|
|
850
|
-
label:
|
|
851
|
-
children: /* @__PURE__ */
|
|
852
|
-
"aria-label":
|
|
849
|
+
t.project && /* @__PURE__ */ q($, {
|
|
850
|
+
label: a("milestone"),
|
|
851
|
+
children: /* @__PURE__ */ q(V, {
|
|
852
|
+
"aria-label": a("milestone"),
|
|
853
853
|
value: t.milestone?.id ?? "",
|
|
854
854
|
onValueChange: (e) => r({ milestoneId: e ?? "" }),
|
|
855
855
|
items: [{
|
|
856
856
|
value: "",
|
|
857
|
-
label:
|
|
857
|
+
label: a("noMilestone")
|
|
858
858
|
}, ...(f?.milestones ?? []).map((e) => ({
|
|
859
859
|
value: e.id,
|
|
860
860
|
label: e.name,
|
|
861
|
-
...e.targetDate && { description:
|
|
861
|
+
...e.targetDate && { description: c.day(e.targetDate) }
|
|
862
862
|
}))],
|
|
863
|
-
trigger: /* @__PURE__ */
|
|
863
|
+
trigger: /* @__PURE__ */ q("button", {
|
|
864
864
|
type: "button",
|
|
865
865
|
className: i,
|
|
866
|
-
children: t.milestone ? /* @__PURE__ */
|
|
866
|
+
children: t.milestone ? /* @__PURE__ */ q("span", {
|
|
867
867
|
className: "truncate",
|
|
868
868
|
children: t.milestone.name
|
|
869
|
-
}) : /* @__PURE__ */
|
|
869
|
+
}) : /* @__PURE__ */ q("span", {
|
|
870
870
|
className: "text-muted-foreground",
|
|
871
|
-
children:
|
|
871
|
+
children: a("noMilestone")
|
|
872
872
|
})
|
|
873
873
|
})
|
|
874
874
|
})
|
|
875
875
|
}),
|
|
876
|
-
n?.cyclesEnabled && /* @__PURE__ */
|
|
877
|
-
label:
|
|
878
|
-
children: /* @__PURE__ */
|
|
879
|
-
"aria-label":
|
|
876
|
+
n?.cyclesEnabled && /* @__PURE__ */ q($, {
|
|
877
|
+
label: a("cycleLabel"),
|
|
878
|
+
children: /* @__PURE__ */ q(V, {
|
|
879
|
+
"aria-label": a("cycleLabel"),
|
|
880
880
|
value: t.cycle?.id ?? "",
|
|
881
881
|
onValueChange: (e) => r({ cycleId: e ?? "" }),
|
|
882
882
|
items: [{
|
|
883
883
|
value: "",
|
|
884
|
-
label:
|
|
884
|
+
label: a("noCycle")
|
|
885
885
|
}, ...v.map((e) => ({
|
|
886
886
|
value: e.id,
|
|
887
887
|
label: _(e),
|
|
888
|
-
description:
|
|
889
|
-
state:
|
|
890
|
-
dates:
|
|
888
|
+
description: a("stateAndDates", {
|
|
889
|
+
state: a(`states.${e.state}`),
|
|
890
|
+
dates: c.dayRange(e.startsOn, e.endsOn)
|
|
891
891
|
})
|
|
892
892
|
}))],
|
|
893
|
-
trigger: /* @__PURE__ */
|
|
893
|
+
trigger: /* @__PURE__ */ J("button", {
|
|
894
894
|
type: "button",
|
|
895
895
|
className: i,
|
|
896
|
-
children: [/* @__PURE__ */
|
|
896
|
+
children: [/* @__PURE__ */ q(w, { className: "size-3.5 shrink-0 text-muted-foreground" }), t.cycle ? /* @__PURE__ */ q("span", {
|
|
897
897
|
className: "truncate",
|
|
898
898
|
children: _(t.cycle)
|
|
899
|
-
}) : /* @__PURE__ */
|
|
899
|
+
}) : /* @__PURE__ */ q("span", {
|
|
900
900
|
className: "text-muted-foreground",
|
|
901
|
-
children:
|
|
901
|
+
children: a("noCycle")
|
|
902
902
|
})]
|
|
903
903
|
})
|
|
904
904
|
})
|
|
905
905
|
}),
|
|
906
|
-
(m !== "none" || !!t.estimate) && /* @__PURE__ */
|
|
907
|
-
label:
|
|
908
|
-
children: /* @__PURE__ */
|
|
909
|
-
"aria-label":
|
|
906
|
+
(m !== "none" || !!t.estimate) && /* @__PURE__ */ q($, {
|
|
907
|
+
label: a("estimate"),
|
|
908
|
+
children: /* @__PURE__ */ q(V, {
|
|
909
|
+
"aria-label": a("estimate"),
|
|
910
910
|
value: t.estimate ?? 0,
|
|
911
911
|
onValueChange: (e) => r({ estimate: e ?? 0 }),
|
|
912
912
|
items: [{
|
|
913
913
|
value: 0,
|
|
914
|
-
label:
|
|
914
|
+
label: a("noEstimate")
|
|
915
915
|
}, ...ae(m).map((e) => ({
|
|
916
916
|
value: e,
|
|
917
917
|
label: u(e, m)
|
|
918
918
|
}))],
|
|
919
|
-
trigger: /* @__PURE__ */
|
|
919
|
+
trigger: /* @__PURE__ */ J("button", {
|
|
920
920
|
type: "button",
|
|
921
921
|
className: i,
|
|
922
|
-
children: [/* @__PURE__ */
|
|
922
|
+
children: [/* @__PURE__ */ q(T, { className: "size-3.5 shrink-0 text-muted-foreground" }), t.estimate ? u(t.estimate, m) : /* @__PURE__ */ q("span", {
|
|
923
923
|
className: "text-muted-foreground",
|
|
924
|
-
children:
|
|
924
|
+
children: a("noEstimate")
|
|
925
925
|
})]
|
|
926
926
|
})
|
|
927
927
|
})
|
|
928
928
|
}),
|
|
929
|
-
/* @__PURE__ */
|
|
930
|
-
label:
|
|
931
|
-
children: /* @__PURE__ */
|
|
929
|
+
/* @__PURE__ */ q($, {
|
|
930
|
+
label: a("dueDate"),
|
|
931
|
+
children: /* @__PURE__ */ J("div", {
|
|
932
932
|
className: "flex items-center",
|
|
933
|
-
children: [/* @__PURE__ */
|
|
933
|
+
children: [/* @__PURE__ */ q(rt, {
|
|
934
934
|
value: t.dueDate ?? "",
|
|
935
935
|
onValueChange: (e) => r({ dueDate: e }),
|
|
936
|
-
"aria-label":
|
|
936
|
+
"aria-label": a("dueDate"),
|
|
937
937
|
required: !0,
|
|
938
|
-
trigger: /* @__PURE__ */
|
|
938
|
+
trigger: /* @__PURE__ */ q("button", {
|
|
939
939
|
type: "button",
|
|
940
940
|
className: i,
|
|
941
|
-
children: t.dueDate ? /* @__PURE__ */
|
|
941
|
+
children: t.dueDate ? /* @__PURE__ */ q(L, {
|
|
942
942
|
date: t.dueDate,
|
|
943
|
-
closed:
|
|
944
|
-
}) : /* @__PURE__ */
|
|
943
|
+
closed: h
|
|
944
|
+
}) : /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(S, { className: "size-3.5 shrink-0 text-muted-foreground" }), /* @__PURE__ */ q("span", {
|
|
945
945
|
className: "text-muted-foreground",
|
|
946
|
-
children:
|
|
946
|
+
children: a("noDueDate")
|
|
947
947
|
})] })
|
|
948
948
|
})
|
|
949
|
-
}), t.dueDate && /* @__PURE__ */
|
|
949
|
+
}), t.dueDate && /* @__PURE__ */ q(at, {
|
|
950
950
|
variant: "ghost",
|
|
951
|
-
icon: /* @__PURE__ */
|
|
952
|
-
label:
|
|
951
|
+
icon: /* @__PURE__ */ q(C, { className: "size-3.5" }),
|
|
952
|
+
label: a("clearDueDate"),
|
|
953
953
|
onClick: () => r({ dueDate: "" })
|
|
954
954
|
})]
|
|
955
955
|
})
|
|
956
956
|
}),
|
|
957
|
-
t.slaDueAt && !
|
|
958
|
-
label:
|
|
959
|
-
children: /* @__PURE__ */
|
|
957
|
+
t.slaDueAt && !h && /* @__PURE__ */ q($, {
|
|
958
|
+
label: a("sla.label"),
|
|
959
|
+
children: /* @__PURE__ */ q("span", {
|
|
960
960
|
className: "flex h-7 items-center px-2",
|
|
961
|
-
children: /* @__PURE__ */
|
|
961
|
+
children: /* @__PURE__ */ q(ie, {
|
|
962
962
|
issue: t,
|
|
963
963
|
team: n
|
|
964
964
|
})
|
|
@@ -966,18 +966,18 @@ function At({ workspace: e, issue: t, team: n, update: r, row: i }) {
|
|
|
966
966
|
})
|
|
967
967
|
] });
|
|
968
968
|
}
|
|
969
|
-
function
|
|
970
|
-
return /* @__PURE__ */
|
|
969
|
+
function $({ label: e, shortcut: t, children: n }) {
|
|
970
|
+
return /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ J("p", {
|
|
971
971
|
className: "mb-1 flex items-center justify-between px-2 text-xs text-muted-foreground",
|
|
972
|
-
children: [e, t && /* @__PURE__ */
|
|
972
|
+
children: [e, t && /* @__PURE__ */ q(ot, {
|
|
973
973
|
keys: t,
|
|
974
974
|
size: "xs",
|
|
975
975
|
className: "hidden md:inline-flex"
|
|
976
976
|
})]
|
|
977
977
|
}), n] });
|
|
978
978
|
}
|
|
979
|
-
function
|
|
980
|
-
let n =
|
|
979
|
+
function At({ workspace: e, identifier: t }) {
|
|
980
|
+
let n = G("issue.activity"), { data: r } = Q(u(e, t)), [i, a] = W(!1), o = _t(() => {
|
|
981
981
|
let e = [];
|
|
982
982
|
for (let t of r) {
|
|
983
983
|
if (t.type.startsWith("comment.") || t.type.startsWith("issue.reaction_")) continue;
|
|
@@ -986,23 +986,23 @@ function jt({ workspace: e, identifier: t }) {
|
|
|
986
986
|
}
|
|
987
987
|
return e;
|
|
988
988
|
}, [r]), s = i ? 0 : Math.max(0, o.length - 5);
|
|
989
|
-
return /* @__PURE__ */
|
|
989
|
+
return /* @__PURE__ */ J("section", {
|
|
990
990
|
className: "mt-10",
|
|
991
991
|
"aria-label": n("title"),
|
|
992
992
|
children: [
|
|
993
|
-
/* @__PURE__ */
|
|
993
|
+
/* @__PURE__ */ q("h2", {
|
|
994
994
|
className: "text-base font-semibold",
|
|
995
995
|
children: n("title")
|
|
996
996
|
}),
|
|
997
|
-
s > 0 && /* @__PURE__ */
|
|
997
|
+
s > 0 && /* @__PURE__ */ q("button", {
|
|
998
998
|
type: "button",
|
|
999
999
|
onClick: () => a(!0),
|
|
1000
1000
|
className: "mt-3 text-xs text-muted-foreground hover:text-foreground",
|
|
1001
1001
|
children: n("showEarlier", { count: s })
|
|
1002
1002
|
}),
|
|
1003
|
-
/* @__PURE__ */
|
|
1003
|
+
/* @__PURE__ */ q(Be, {
|
|
1004
1004
|
className: "mt-3",
|
|
1005
|
-
children: o.slice(s).map((t) => /* @__PURE__ */
|
|
1005
|
+
children: o.slice(s).map((t) => /* @__PURE__ */ q(Ke, {
|
|
1006
1006
|
workspace: e,
|
|
1007
1007
|
event: t
|
|
1008
1008
|
}, t.id))
|
|
@@ -1010,57 +1010,57 @@ function jt({ workspace: e, identifier: t }) {
|
|
|
1010
1010
|
]
|
|
1011
1011
|
});
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1014
|
-
let r =
|
|
1013
|
+
function jt({ workspace: e, identifier: t, others: n }) {
|
|
1014
|
+
let r = G("issue.comments"), { data: i } = Q(c(e, t)), { data: a = [] } = X(f(e, t)), o = _t(() => {
|
|
1015
1015
|
let e = i.filter((e) => !e.parentId);
|
|
1016
|
-
return e.sort((e, t) => Number(
|
|
1016
|
+
return e.sort((e, t) => Number(Mt(t)) - Number(Mt(e))), e.map((e) => ({
|
|
1017
1017
|
root: e,
|
|
1018
1018
|
replies: i.filter((t) => t.parentId === e.id)
|
|
1019
1019
|
}));
|
|
1020
|
-
}, [i]), [
|
|
1021
|
-
return /* @__PURE__ */
|
|
1020
|
+
}, [i]), [s, l] = W(null), u = i.filter((e) => !e.deletedAt && !Mt(e)).length;
|
|
1021
|
+
return /* @__PURE__ */ J("section", {
|
|
1022
1022
|
className: "mt-12 border-t border-border pt-6",
|
|
1023
1023
|
"aria-label": r("title"),
|
|
1024
1024
|
children: [
|
|
1025
|
-
/* @__PURE__ */
|
|
1025
|
+
/* @__PURE__ */ J("h2", {
|
|
1026
1026
|
className: "text-base font-semibold",
|
|
1027
1027
|
children: [
|
|
1028
1028
|
r("title"),
|
|
1029
1029
|
" ",
|
|
1030
|
-
u > 0 && /* @__PURE__ */
|
|
1030
|
+
u > 0 && /* @__PURE__ */ q("span", {
|
|
1031
1031
|
className: "font-normal text-muted-foreground",
|
|
1032
1032
|
children: u
|
|
1033
1033
|
})
|
|
1034
1034
|
]
|
|
1035
1035
|
}),
|
|
1036
|
-
/* @__PURE__ */
|
|
1036
|
+
/* @__PURE__ */ q("div", {
|
|
1037
1037
|
className: "mt-4 space-y-3",
|
|
1038
1038
|
children: o.map(({ root: n, replies: i }) => {
|
|
1039
|
-
let o =
|
|
1040
|
-
return /* @__PURE__ */
|
|
1039
|
+
let o = Mt(n) ? n.sharedWith : void 0, c = o ? se(o).source : void 0;
|
|
1040
|
+
return /* @__PURE__ */ J(tt, {
|
|
1041
1041
|
size: "fill",
|
|
1042
1042
|
padding: "none",
|
|
1043
1043
|
highlight: !!o,
|
|
1044
|
-
render: /* @__PURE__ */
|
|
1044
|
+
render: /* @__PURE__ */ q("article", {
|
|
1045
1045
|
id: `comment-${n.id}`,
|
|
1046
|
-
"aria-label":
|
|
1046
|
+
"aria-label": c && r("sharedThreadLabel", { source: c })
|
|
1047
1047
|
}),
|
|
1048
1048
|
children: [
|
|
1049
|
-
o &&
|
|
1050
|
-
source:
|
|
1049
|
+
o && c ? /* @__PURE__ */ q(We, {
|
|
1050
|
+
source: c,
|
|
1051
1051
|
link: a.find((e) => e.connector === o)
|
|
1052
|
-
}) : /* @__PURE__ */
|
|
1052
|
+
}) : /* @__PURE__ */ q(Pt, {
|
|
1053
1053
|
workspace: e,
|
|
1054
1054
|
identifier: t,
|
|
1055
1055
|
comment: n,
|
|
1056
1056
|
onReply: () => l(n.id)
|
|
1057
1057
|
}),
|
|
1058
|
-
i.length > 0 && /* @__PURE__ */
|
|
1058
|
+
i.length > 0 && /* @__PURE__ */ q("ol", {
|
|
1059
1059
|
className: o ? "" : "border-t border-border/70",
|
|
1060
|
-
children: i.map((r) => /* @__PURE__ */
|
|
1060
|
+
children: i.map((r) => /* @__PURE__ */ q("li", {
|
|
1061
1061
|
id: `comment-${r.id}`,
|
|
1062
1062
|
className: "border-b border-border/50 last:border-b-0",
|
|
1063
|
-
children: /* @__PURE__ */
|
|
1063
|
+
children: /* @__PURE__ */ q(Pt, {
|
|
1064
1064
|
workspace: e,
|
|
1065
1065
|
identifier: t,
|
|
1066
1066
|
comment: r,
|
|
@@ -1068,39 +1068,39 @@ function Mt({ workspace: e, identifier: t, others: n }) {
|
|
|
1068
1068
|
})
|
|
1069
1069
|
}, r.id))
|
|
1070
1070
|
}),
|
|
1071
|
-
/* @__PURE__ */
|
|
1071
|
+
/* @__PURE__ */ q("div", {
|
|
1072
1072
|
className: "border-t border-border/70 px-3 py-2",
|
|
1073
|
-
children:
|
|
1073
|
+
children: s === n.id ? /* @__PURE__ */ q(It, {
|
|
1074
1074
|
workspace: e,
|
|
1075
1075
|
identifier: t,
|
|
1076
1076
|
parentId: n.id,
|
|
1077
|
-
publicOn:
|
|
1077
|
+
publicOn: c,
|
|
1078
1078
|
autofocus: !0,
|
|
1079
1079
|
onDone: () => l(null)
|
|
1080
|
-
}) : /* @__PURE__ */
|
|
1080
|
+
}) : /* @__PURE__ */ q("button", {
|
|
1081
1081
|
type: "button",
|
|
1082
1082
|
onClick: () => l(n.id),
|
|
1083
1083
|
className: "w-full text-left text-xs text-muted-foreground hover:text-foreground",
|
|
1084
|
-
children:
|
|
1084
|
+
children: c ? r("replyPublic", { source: c }) : r("replyPlaceholder")
|
|
1085
1085
|
})
|
|
1086
1086
|
})
|
|
1087
1087
|
]
|
|
1088
1088
|
}, n.id);
|
|
1089
1089
|
})
|
|
1090
1090
|
}),
|
|
1091
|
-
/* @__PURE__ */
|
|
1091
|
+
/* @__PURE__ */ q(tt, {
|
|
1092
1092
|
size: "fill",
|
|
1093
1093
|
padding: "sm",
|
|
1094
1094
|
focusWithin: !0,
|
|
1095
1095
|
className: "mt-4",
|
|
1096
|
-
children: /* @__PURE__ */
|
|
1096
|
+
children: /* @__PURE__ */ q(It, {
|
|
1097
1097
|
workspace: e,
|
|
1098
1098
|
identifier: t
|
|
1099
1099
|
})
|
|
1100
1100
|
}),
|
|
1101
|
-
/* @__PURE__ */
|
|
1101
|
+
/* @__PURE__ */ q("div", {
|
|
1102
1102
|
className: "mt-2",
|
|
1103
|
-
children: /* @__PURE__ */
|
|
1103
|
+
children: /* @__PURE__ */ q(Re, {
|
|
1104
1104
|
workspace: e,
|
|
1105
1105
|
others: n,
|
|
1106
1106
|
field: "comment"
|
|
@@ -1109,20 +1109,20 @@ function Mt({ workspace: e, identifier: t, others: n }) {
|
|
|
1109
1109
|
]
|
|
1110
1110
|
});
|
|
1111
1111
|
}
|
|
1112
|
-
var
|
|
1112
|
+
var Mt = (e) => !!e.sharedWith && !e.parentId;
|
|
1113
1113
|
function Nt({ comment: e }) {
|
|
1114
|
-
let t =
|
|
1115
|
-
return e.author.kind === "connector" ? /* @__PURE__ */
|
|
1114
|
+
let t = G("issue.comments");
|
|
1115
|
+
return e.author.kind === "connector" ? /* @__PURE__ */ q("span", {
|
|
1116
1116
|
className: "rounded border border-border px-1.5 py-px text-[10px] text-muted-foreground",
|
|
1117
1117
|
children: t("via", { source: se(e.author.handle).source })
|
|
1118
1118
|
}) : null;
|
|
1119
1119
|
}
|
|
1120
1120
|
function Pt({ workspace: n, identifier: r, comment: i, onReply: a }) {
|
|
1121
|
-
let o =
|
|
1121
|
+
let o = G("issue.comments"), s = G("common"), { actorName: c, avatarOf: l } = ce(n), { data: u } = Q(h), { data: d = [] } = X(_(n, r)), f = ve(n, "comment", { team: r.slice(0, r.lastIndexOf("-")) }), p = Z(), m = H(), [g, v] = W(!1), [y, b] = W(i.body), [x, S] = W(!1), C = U(null), w = Ee(n, r), T = i.author.kind === "user" && i.author.handle === u?.user.username, E = { path: {
|
|
1122
1122
|
workspace: n,
|
|
1123
1123
|
identifier: r,
|
|
1124
1124
|
commentId: i.id
|
|
1125
|
-
} }, D = () =>
|
|
1125
|
+
} }, D = () => I(p, n, r), O = Y({
|
|
1126
1126
|
mutationFn: async () => t(await e.PATCH("/api/v1/workspaces/{workspace}/issues/{identifier}/comments/{commentId}", {
|
|
1127
1127
|
params: E,
|
|
1128
1128
|
body: { body: y }
|
|
@@ -1130,23 +1130,23 @@ function Pt({ workspace: n, identifier: r, comment: i, onReply: a }) {
|
|
|
1130
1130
|
onSuccess: () => {
|
|
1131
1131
|
v(!1), D();
|
|
1132
1132
|
}
|
|
1133
|
-
}), k =
|
|
1133
|
+
}), k = Y({
|
|
1134
1134
|
mutationFn: async () => t(await e.DELETE("/api/v1/workspaces/{workspace}/issues/{identifier}/comments/{commentId}", { params: E })),
|
|
1135
1135
|
onSuccess: D
|
|
1136
1136
|
});
|
|
1137
|
-
if (i.deletedAt) return /* @__PURE__ */
|
|
1137
|
+
if (i.deletedAt) return /* @__PURE__ */ q("p", {
|
|
1138
1138
|
className: "px-3 py-2.5 text-xs text-muted-foreground italic",
|
|
1139
1139
|
children: o("deleted")
|
|
1140
1140
|
});
|
|
1141
|
-
let
|
|
1141
|
+
let ee = `${me(n, r)}#comment-${i.id}`, A = [
|
|
1142
1142
|
{
|
|
1143
1143
|
label: o("reply"),
|
|
1144
1144
|
onClick: a
|
|
1145
1145
|
},
|
|
1146
|
-
|
|
1147
|
-
|
|
1146
|
+
N(s("copyLink"), ee),
|
|
1147
|
+
N(o("copyText"), i.body),
|
|
1148
1148
|
...T ? [
|
|
1149
|
-
|
|
1149
|
+
dt,
|
|
1150
1150
|
{
|
|
1151
1151
|
label: o("edit"),
|
|
1152
1152
|
onClick: () => {
|
|
@@ -1160,51 +1160,51 @@ function Pt({ workspace: n, identifier: r, comment: i, onReply: a }) {
|
|
|
1160
1160
|
}
|
|
1161
1161
|
] : []
|
|
1162
1162
|
];
|
|
1163
|
-
return /* @__PURE__ */
|
|
1163
|
+
return /* @__PURE__ */ J("div", {
|
|
1164
1164
|
className: "group px-3 py-2.5",
|
|
1165
|
-
onContextMenu: (e) => !
|
|
1166
|
-
children: [/* @__PURE__ */
|
|
1165
|
+
onContextMenu: (e) => !g && m(e, A),
|
|
1166
|
+
children: [/* @__PURE__ */ J("div", {
|
|
1167
1167
|
className: "flex items-center gap-2 text-xs",
|
|
1168
1168
|
children: [
|
|
1169
|
-
/* @__PURE__ */
|
|
1169
|
+
/* @__PURE__ */ J(Se, {
|
|
1170
1170
|
workspace: n,
|
|
1171
1171
|
kind: i.author.kind,
|
|
1172
1172
|
handle: i.author.handle,
|
|
1173
1173
|
className: "flex items-center gap-2",
|
|
1174
|
-
children: [/* @__PURE__ */
|
|
1175
|
-
...
|
|
1174
|
+
children: [/* @__PURE__ */ q($e, {
|
|
1175
|
+
...De(i.author.kind),
|
|
1176
1176
|
name: c(i.author),
|
|
1177
1177
|
src: l(i.author.kind, i.author.handle),
|
|
1178
1178
|
size: "xs",
|
|
1179
1179
|
decorative: !0
|
|
1180
|
-
}), /* @__PURE__ */
|
|
1180
|
+
}), /* @__PURE__ */ q("span", {
|
|
1181
1181
|
className: "font-medium",
|
|
1182
1182
|
children: c(i.author)
|
|
1183
1183
|
})]
|
|
1184
1184
|
}),
|
|
1185
|
-
/* @__PURE__ */
|
|
1186
|
-
/* @__PURE__ */
|
|
1185
|
+
/* @__PURE__ */ q(Nt, { comment: i }),
|
|
1186
|
+
/* @__PURE__ */ J("span", {
|
|
1187
1187
|
className: "text-muted-foreground",
|
|
1188
|
-
children: [/* @__PURE__ */
|
|
1188
|
+
children: [/* @__PURE__ */ q(st, {
|
|
1189
1189
|
value: i.createdAt,
|
|
1190
1190
|
exact: "medium"
|
|
1191
|
-
}), i.updatedAt !== i.createdAt && /* @__PURE__ */
|
|
1191
|
+
}), i.updatedAt !== i.createdAt && /* @__PURE__ */ J(K, { children: [" ", o("edited")] })]
|
|
1192
1192
|
}),
|
|
1193
|
-
!x && !
|
|
1194
|
-
items:
|
|
1193
|
+
!x && !g && /* @__PURE__ */ q(bt, {
|
|
1194
|
+
items: A,
|
|
1195
1195
|
className: "ml-auto"
|
|
1196
1196
|
}),
|
|
1197
|
-
x && /* @__PURE__ */
|
|
1197
|
+
x && /* @__PURE__ */ J("span", {
|
|
1198
1198
|
className: "ml-auto flex gap-2 text-muted-foreground",
|
|
1199
1199
|
children: [
|
|
1200
|
-
/* @__PURE__ */
|
|
1201
|
-
/* @__PURE__ */
|
|
1200
|
+
/* @__PURE__ */ q("span", { children: o("confirmDelete") }),
|
|
1201
|
+
/* @__PURE__ */ q("button", {
|
|
1202
1202
|
type: "button",
|
|
1203
1203
|
className: "text-danger hover:underline",
|
|
1204
1204
|
onClick: () => k.mutate(),
|
|
1205
1205
|
children: s("delete")
|
|
1206
1206
|
}),
|
|
1207
|
-
/* @__PURE__ */
|
|
1207
|
+
/* @__PURE__ */ q("button", {
|
|
1208
1208
|
type: "button",
|
|
1209
1209
|
className: "hover:underline",
|
|
1210
1210
|
onClick: () => S(!1),
|
|
@@ -1213,10 +1213,10 @@ function Pt({ workspace: n, identifier: r, comment: i, onReply: a }) {
|
|
|
1213
1213
|
]
|
|
1214
1214
|
})
|
|
1215
1215
|
]
|
|
1216
|
-
}), /* @__PURE__ */
|
|
1216
|
+
}), /* @__PURE__ */ q("div", {
|
|
1217
1217
|
className: "mt-1",
|
|
1218
|
-
children:
|
|
1219
|
-
/* @__PURE__ */
|
|
1218
|
+
children: g ? /* @__PURE__ */ J(K, { children: [
|
|
1219
|
+
/* @__PURE__ */ q(R, {
|
|
1220
1220
|
value: y,
|
|
1221
1221
|
onChange: b,
|
|
1222
1222
|
onSubmit: () => O.mutate(),
|
|
@@ -1227,19 +1227,19 @@ function Pt({ workspace: n, identifier: r, comment: i, onReply: a }) {
|
|
|
1227
1227
|
},
|
|
1228
1228
|
onFiles: (e, t) => w.upload(C.current, e, t)
|
|
1229
1229
|
}),
|
|
1230
|
-
/* @__PURE__ */
|
|
1230
|
+
/* @__PURE__ */ q(Te, {
|
|
1231
1231
|
pending: w.pending,
|
|
1232
1232
|
error: w.error
|
|
1233
1233
|
}),
|
|
1234
|
-
/* @__PURE__ */
|
|
1234
|
+
/* @__PURE__ */ J("div", {
|
|
1235
1235
|
className: "mt-2 flex justify-end gap-2",
|
|
1236
|
-
children: [/* @__PURE__ */
|
|
1236
|
+
children: [/* @__PURE__ */ q(z, {
|
|
1237
1237
|
type: "button",
|
|
1238
1238
|
variant: "ghost",
|
|
1239
1239
|
size: "sm",
|
|
1240
1240
|
onClick: () => v(!1),
|
|
1241
1241
|
children: s("cancel")
|
|
1242
|
-
}), /* @__PURE__ */
|
|
1242
|
+
}), /* @__PURE__ */ q(z, {
|
|
1243
1243
|
type: "button",
|
|
1244
1244
|
variant: "primary",
|
|
1245
1245
|
size: "sm",
|
|
@@ -1248,21 +1248,21 @@ function Pt({ workspace: n, identifier: r, comment: i, onReply: a }) {
|
|
|
1248
1248
|
children: s("save")
|
|
1249
1249
|
})]
|
|
1250
1250
|
})
|
|
1251
|
-
] }) : /* @__PURE__ */
|
|
1252
|
-
/* @__PURE__ */
|
|
1251
|
+
] }) : /* @__PURE__ */ J(K, { children: [
|
|
1252
|
+
/* @__PURE__ */ q(R, {
|
|
1253
1253
|
value: i.body,
|
|
1254
1254
|
editable: !1
|
|
1255
1255
|
}),
|
|
1256
|
-
/* @__PURE__ */
|
|
1256
|
+
/* @__PURE__ */ q(Qe, {
|
|
1257
1257
|
workspace: n,
|
|
1258
1258
|
widgets: i.widgets
|
|
1259
1259
|
}),
|
|
1260
|
-
/* @__PURE__ */
|
|
1260
|
+
/* @__PURE__ */ q(Ft, {
|
|
1261
1261
|
workspace: n,
|
|
1262
1262
|
identifier: r,
|
|
1263
1263
|
comment: i
|
|
1264
1264
|
}),
|
|
1265
|
-
/* @__PURE__ */
|
|
1265
|
+
/* @__PURE__ */ q(Ye, {
|
|
1266
1266
|
workspace: n,
|
|
1267
1267
|
identifier: r,
|
|
1268
1268
|
commentId: i.id,
|
|
@@ -1275,10 +1275,10 @@ function Pt({ workspace: n, identifier: r, comment: i, onReply: a }) {
|
|
|
1275
1275
|
});
|
|
1276
1276
|
}
|
|
1277
1277
|
function Ft({ workspace: e, identifier: t, comment: n }) {
|
|
1278
|
-
let { data: r = [] } =
|
|
1279
|
-
return a.length === 0 ? null : /* @__PURE__ */
|
|
1278
|
+
let { data: r = [] } = X(s(e, t)), { actorName: i } = ce(e), a = r.filter((e) => e.page && e.commentId === n.id);
|
|
1279
|
+
return a.length === 0 ? null : /* @__PURE__ */ q("div", {
|
|
1280
1280
|
className: "mt-2 space-y-2",
|
|
1281
|
-
children: a.map((e) => /* @__PURE__ */
|
|
1281
|
+
children: a.map((e) => /* @__PURE__ */ q(Me, {
|
|
1282
1282
|
attachmentId: e.id,
|
|
1283
1283
|
name: e.name,
|
|
1284
1284
|
agent: i(n.author)
|
|
@@ -1286,7 +1286,7 @@ function Ft({ workspace: e, identifier: t, comment: n }) {
|
|
|
1286
1286
|
});
|
|
1287
1287
|
}
|
|
1288
1288
|
function It({ workspace: n, identifier: r, parentId: i, publicOn: a, autofocus: o = !1, onDone: s }) {
|
|
1289
|
-
let c =
|
|
1289
|
+
let c = G("issue.comments"), l = vt(), u = G("common"), d = ht(Lt), f = Z(), [p, m] = W(""), [h, g] = W(0), _ = U(null), v = Ee(n, r), y = Y({
|
|
1290
1290
|
mutationFn: async () => t(await e.POST("/api/v1/workspaces/{workspace}/issues/{identifier}/comments", {
|
|
1291
1291
|
params: { path: {
|
|
1292
1292
|
workspace: n,
|
|
@@ -1298,10 +1298,10 @@ function It({ workspace: n, identifier: r, parentId: i, publicOn: a, autofocus:
|
|
|
1298
1298
|
}
|
|
1299
1299
|
})),
|
|
1300
1300
|
onSuccess: () => {
|
|
1301
|
-
m(""), g((e) => e + 1),
|
|
1301
|
+
m(""), g((e) => e + 1), I(f, n, r), s?.();
|
|
1302
1302
|
}
|
|
1303
1303
|
}), b = () => p.trim() && !y.isPending && v.pending === 0 && y.mutate();
|
|
1304
|
-
return /* @__PURE__ */
|
|
1304
|
+
return /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ q(R, {
|
|
1305
1305
|
value: "",
|
|
1306
1306
|
onChange: m,
|
|
1307
1307
|
onSubmit: b,
|
|
@@ -1315,29 +1315,29 @@ function It({ workspace: n, identifier: r, parentId: i, publicOn: a, autofocus:
|
|
|
1315
1315
|
placeholder: a ? c("replyPublic", { source: a }) : c(i ? "replyPlaceholder" : "placeholder"),
|
|
1316
1316
|
label: a ? c("replyPublicButton", { source: a }) : c(i ? "reply" : "newComment"),
|
|
1317
1317
|
className: i ? "min-h-8" : "min-h-12"
|
|
1318
|
-
}, h), /* @__PURE__ */
|
|
1318
|
+
}, h), /* @__PURE__ */ J("div", {
|
|
1319
1319
|
className: "mt-1 flex items-center justify-end gap-3",
|
|
1320
1320
|
children: [
|
|
1321
|
-
/* @__PURE__ */
|
|
1321
|
+
/* @__PURE__ */ J("span", {
|
|
1322
1322
|
className: "mr-auto flex min-w-0 items-center gap-2",
|
|
1323
|
-
children: [/* @__PURE__ */
|
|
1323
|
+
children: [/* @__PURE__ */ q(Ce, { onFiles: (e) => v.upload(_.current, e) }), /* @__PURE__ */ q(Te, {
|
|
1324
1324
|
pending: v.pending,
|
|
1325
1325
|
error: v.error
|
|
1326
1326
|
})]
|
|
1327
1327
|
}),
|
|
1328
|
-
y.isError && /* @__PURE__ */
|
|
1328
|
+
y.isError && /* @__PURE__ */ q(it, {
|
|
1329
1329
|
inline: !0,
|
|
1330
1330
|
className: "text-xs",
|
|
1331
1331
|
children: l(y.error)
|
|
1332
1332
|
}),
|
|
1333
|
-
s && /* @__PURE__ */
|
|
1333
|
+
s && /* @__PURE__ */ q(z, {
|
|
1334
1334
|
type: "button",
|
|
1335
1335
|
variant: "ghost",
|
|
1336
1336
|
size: "sm",
|
|
1337
1337
|
onClick: s,
|
|
1338
1338
|
children: u("cancel")
|
|
1339
1339
|
}),
|
|
1340
|
-
/* @__PURE__ */
|
|
1340
|
+
/* @__PURE__ */ q(z, {
|
|
1341
1341
|
type: "button",
|
|
1342
1342
|
variant: "primary",
|
|
1343
1343
|
size: "sm",
|
|
@@ -1349,5 +1349,5 @@ function It({ workspace: n, identifier: r, parentId: i, publicOn: a, autofocus:
|
|
|
1349
1349
|
]
|
|
1350
1350
|
})] });
|
|
1351
1351
|
}
|
|
1352
|
-
var Lt =
|
|
1353
|
-
export {
|
|
1352
|
+
var Lt = pt(() => {});
|
|
1353
|
+
export { xt as component };
|