@parallelworks/tandem-web 0.160.1 → 0.161.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/_virtual/_virtual_i18n/en/common.js +4 -0
- package/_virtual/_virtual_i18n/es/common.js +4 -0
- package/_virtual/_virtual_i18n/ja/common.js +4 -0
- package/_virtual/_virtual_i18n/ko/common.js +4 -0
- package/_virtual/_virtual_i18n/zh/common.js +4 -0
- package/api/mutations.js +16 -9
- package/api/queries.js +194 -140
- package/components/CommandPalette.js +5 -2
- package/components/CustomerRequests.js +81 -85
- package/components/DocLinkPicker.js +4 -1
- package/components/FavoritesNav.js +4 -1
- package/components/IssueFilters.js +90 -87
- package/components/IssueGroupList.js +72 -0
- package/components/IssueInsights.js +4 -1
- package/components/IssueRelations.js +8 -2
- package/components/IssueRow.js +73 -66
- package/components/IssueSection.js +30 -20
- package/components/NewIssueDialog.js +181 -175
- package/components/NewProjectDialog.js +64 -64
- package/components/Reports.js +4 -1
- package/components/TeamWorkflow.js +4 -1
- package/components/icons.js +61 -33
- package/lib/boardMove.js +13 -3
- package/lib/groupList.js +14 -0
- package/lib/issueMenu.js +8 -2
- package/lib/issuePicker.js +4 -1
- package/package.json +2 -1
- package/pages/issues.js +393 -340
- package/pages/triage.js +4 -1
- package/routes/_workspace/docs/_doc2.js +8 -2
- package/routes/_workspace/issues/_identifier2.js +8 -2
- package/routes/_workspace/issues/index.js +1 -1
- package/routes/_workspace/notifications2.js +4 -1
- package/routes/_workspace/teams/_key/settings2.js +180 -164
- package/routes/_workspace2.js +3 -3
- package/routes/_workspace3.js +11 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { api as e, unwrap as t } from "../api/client.js";
|
|
2
2
|
import { useNavigate as n } from "../lib/router.js";
|
|
3
|
-
import {
|
|
4
|
-
import { AddIcon as
|
|
3
|
+
import { myTeamsQuery as r, projectsQuery as i, workspaceQuery as ee } from "../api/queries.js";
|
|
4
|
+
import { AddIcon as te, CalendarIcon as ne, ChevronRightIcon as re, CloseIcon as a, PriorityIcon as o, ProjectIcon as ie, UserIcon as ae, UsersIcon as s, usePriorityNames as oe } from "./icons.js";
|
|
5
5
|
import { usePeople as se } from "../lib/people.js";
|
|
6
6
|
import { useTime as ce } from "../lib/time.js";
|
|
7
7
|
import { ProjectStatusIcon as c } from "./Planning.js";
|
|
@@ -19,37 +19,37 @@ import { useQuery as x, useQueryClient as ye } from "@tanstack/react-query";
|
|
|
19
19
|
// src/components/NewProjectDialog.tsx
|
|
20
20
|
var S = h({ size: "sm" });
|
|
21
21
|
function C({ workspace: h, teamId: C, onClose: w }) {
|
|
22
|
-
let T = _("planning"), E = _("common"), be = ve(), xe = ce(), D = oe(), Se = ye(),
|
|
22
|
+
let T = _("planning"), E = _("common"), be = ve(), xe = ce(), D = oe(), Se = ye(), Ce = n(), { members: O, person: we } = se(h), { data: k } = x(ee(h)), { data: Te = [] } = x(r(h)), { data: Ee = [] } = x(i(h)), A = Ee.filter((e) => e.template), [j, De] = g(""), [M, Oe] = g(""), [N, ke] = g(""), [P, Ae] = g(""), [F, je] = g(""), [I, Me] = g("planned"), [L, Ne] = g(0), [R, Pe] = g(""), [z, Fe] = g([]), [B, Ie] = g(C ? [C] : []), [V, Le] = g(""), [H, U] = g(""), [W, G] = g([]), [K, q] = g(null), [J, Y] = g(!1), [Re, X] = g(null), Z = Te.filter((e) => !e.archivedAt), Q = (e, t, n) => /* @__PURE__ */ y(me, {
|
|
23
23
|
value: t,
|
|
24
24
|
onValueChange: n,
|
|
25
25
|
"aria-label": e,
|
|
26
26
|
trigger: /* @__PURE__ */ b("button", {
|
|
27
27
|
type: "button",
|
|
28
28
|
className: S,
|
|
29
|
-
children: [/* @__PURE__ */ y(
|
|
29
|
+
children: [/* @__PURE__ */ y(ne, { className: "size-3.5 text-muted-foreground" }), /* @__PURE__ */ y("span", {
|
|
30
30
|
className: t ? "" : "text-muted-foreground",
|
|
31
31
|
children: t ? xe.day(t) : e
|
|
32
32
|
})]
|
|
33
33
|
})
|
|
34
34
|
}), ze = async (n) => {
|
|
35
|
-
if (n.preventDefault(),
|
|
35
|
+
if (n.preventDefault(), N.trim()) {
|
|
36
36
|
Y(!0), X(null);
|
|
37
37
|
try {
|
|
38
38
|
let n = t(await e.POST("/api/v1/workspaces/{workspace}/projects", {
|
|
39
39
|
params: { path: { workspace: h } },
|
|
40
40
|
body: {
|
|
41
|
-
name:
|
|
42
|
-
status:
|
|
43
|
-
...
|
|
44
|
-
...
|
|
45
|
-
...
|
|
46
|
-
...
|
|
47
|
-
...
|
|
48
|
-
...
|
|
49
|
-
...
|
|
50
|
-
...
|
|
51
|
-
...
|
|
52
|
-
...
|
|
41
|
+
name: N.trim(),
|
|
42
|
+
status: I,
|
|
43
|
+
...j && { from: j },
|
|
44
|
+
...P.trim() && { summary: P.trim() },
|
|
45
|
+
...F && { description: F },
|
|
46
|
+
...L && { priority: L },
|
|
47
|
+
...M && { icon: M },
|
|
48
|
+
...R && { lead: R },
|
|
49
|
+
...z.length > 0 && { members: z },
|
|
50
|
+
...B.length > 0 && { teamIds: B },
|
|
51
|
+
...V && { startDate: V },
|
|
52
|
+
...H && { targetDate: H }
|
|
53
53
|
}
|
|
54
54
|
}));
|
|
55
55
|
for (let r of W.filter((e) => e.name.trim())) t(await e.POST("/api/v1/workspaces/{workspace}/projects/{projectId}/milestones", {
|
|
@@ -62,7 +62,7 @@ function C({ workspace: h, teamId: C, onClose: w }) {
|
|
|
62
62
|
...r.targetDate && { targetDate: r.targetDate }
|
|
63
63
|
}
|
|
64
64
|
}));
|
|
65
|
-
Se.invalidateQueries({ queryKey:
|
|
65
|
+
Se.invalidateQueries({ queryKey: i(h).queryKey }), w(), Ce({
|
|
66
66
|
to: "/$workspace/projects/$projectId",
|
|
67
67
|
params: {
|
|
68
68
|
workspace: h,
|
|
@@ -75,7 +75,7 @@ function C({ workspace: h, teamId: C, onClose: w }) {
|
|
|
75
75
|
Y(!1);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
}, $ =
|
|
78
|
+
}, $ = R ? we(R) : void 0;
|
|
79
79
|
return /* @__PURE__ */ y(ge, {
|
|
80
80
|
open: !0,
|
|
81
81
|
onClose: w,
|
|
@@ -87,15 +87,15 @@ function C({ workspace: h, teamId: C, onClose: w }) {
|
|
|
87
87
|
/* @__PURE__ */ b("div", {
|
|
88
88
|
className: "flex items-center gap-2 px-5 pt-4 text-sm",
|
|
89
89
|
children: [
|
|
90
|
-
|
|
90
|
+
k && /* @__PURE__ */ b("span", {
|
|
91
91
|
className: "flex items-center gap-1.5 rounded-md border border-border px-2 py-0.5",
|
|
92
92
|
children: [/* @__PURE__ */ y(l, {
|
|
93
|
-
icon:
|
|
94
|
-
color:
|
|
95
|
-
name:
|
|
96
|
-
}),
|
|
93
|
+
icon: k.icon,
|
|
94
|
+
color: k.color,
|
|
95
|
+
name: k.name
|
|
96
|
+
}), k.name]
|
|
97
97
|
}),
|
|
98
|
-
/* @__PURE__ */ y(
|
|
98
|
+
/* @__PURE__ */ y(re, { className: "size-3.5 text-muted-foreground" }),
|
|
99
99
|
/* @__PURE__ */ y(_e, {
|
|
100
100
|
className: "text-sm",
|
|
101
101
|
children: T("newProject")
|
|
@@ -103,7 +103,7 @@ function C({ workspace: h, teamId: C, onClose: w }) {
|
|
|
103
103
|
/* @__PURE__ */ y(p, {
|
|
104
104
|
variant: "ghost",
|
|
105
105
|
size: "sm",
|
|
106
|
-
icon: /* @__PURE__ */ y(
|
|
106
|
+
icon: /* @__PURE__ */ y(a, {}),
|
|
107
107
|
label: E("close"),
|
|
108
108
|
onClick: w,
|
|
109
109
|
className: "ml-auto"
|
|
@@ -115,14 +115,14 @@ function C({ workspace: h, teamId: C, onClose: w }) {
|
|
|
115
115
|
children: [
|
|
116
116
|
/* @__PURE__ */ y(fe, {
|
|
117
117
|
workspace: h,
|
|
118
|
-
icon:
|
|
119
|
-
name:
|
|
120
|
-
onChange:
|
|
118
|
+
icon: M,
|
|
119
|
+
name: N || T("project"),
|
|
120
|
+
onChange: Oe,
|
|
121
121
|
size: 40
|
|
122
122
|
}),
|
|
123
123
|
/* @__PURE__ */ y("input", {
|
|
124
|
-
value:
|
|
125
|
-
onChange: (e) =>
|
|
124
|
+
value: N,
|
|
125
|
+
onChange: (e) => ke(e.target.value),
|
|
126
126
|
autoFocus: !0,
|
|
127
127
|
required: !0,
|
|
128
128
|
maxLength: 200,
|
|
@@ -131,8 +131,8 @@ function C({ workspace: h, teamId: C, onClose: w }) {
|
|
|
131
131
|
className: "mt-3 w-full bg-transparent text-2xl font-semibold tracking-tight outline-none placeholder:text-muted-foreground/60"
|
|
132
132
|
}),
|
|
133
133
|
/* @__PURE__ */ y("input", {
|
|
134
|
-
value:
|
|
135
|
-
onChange: (e) =>
|
|
134
|
+
value: P,
|
|
135
|
+
onChange: (e) => Ae(e.target.value),
|
|
136
136
|
maxLength: 200,
|
|
137
137
|
"aria-label": T("summary"),
|
|
138
138
|
placeholder: T("summaryPlaceholder"),
|
|
@@ -142,7 +142,7 @@ function C({ workspace: h, teamId: C, onClose: w }) {
|
|
|
142
142
|
className: "mt-4",
|
|
143
143
|
children: /* @__PURE__ */ y(ue, {
|
|
144
144
|
value: "",
|
|
145
|
-
onChange:
|
|
145
|
+
onChange: je,
|
|
146
146
|
placeholder: T("projectBrief"),
|
|
147
147
|
label: E("description"),
|
|
148
148
|
className: "min-h-32"
|
|
@@ -159,7 +159,7 @@ function C({ workspace: h, teamId: C, onClose: w }) {
|
|
|
159
159
|
className: "text-sm font-medium",
|
|
160
160
|
children: T("milestones")
|
|
161
161
|
}), /* @__PURE__ */ y(p, {
|
|
162
|
-
icon: /* @__PURE__ */ y(
|
|
162
|
+
icon: /* @__PURE__ */ y(te, { className: "size-3.5" }),
|
|
163
163
|
label: T("addMilestone"),
|
|
164
164
|
size: "xs",
|
|
165
165
|
onClick: () => G((e) => [...e, {
|
|
@@ -190,7 +190,7 @@ function C({ workspace: h, teamId: C, onClose: w }) {
|
|
|
190
190
|
/* @__PURE__ */ y(p, {
|
|
191
191
|
variant: "ghost",
|
|
192
192
|
size: "sm",
|
|
193
|
-
icon: /* @__PURE__ */ y(
|
|
193
|
+
icon: /* @__PURE__ */ y(a, {}),
|
|
194
194
|
label: T("removeMilestone"),
|
|
195
195
|
onClick: () => G((t) => t.filter((t) => t.key !== e.key))
|
|
196
196
|
})
|
|
@@ -202,27 +202,27 @@ function C({ workspace: h, teamId: C, onClose: w }) {
|
|
|
202
202
|
/* @__PURE__ */ b("div", {
|
|
203
203
|
className: "flex flex-wrap items-center gap-1.5 border-t border-border px-5 pt-3",
|
|
204
204
|
children: [
|
|
205
|
-
|
|
205
|
+
A.length > 0 && /* @__PURE__ */ y(m, {
|
|
206
206
|
"aria-label": T("startFrom"),
|
|
207
|
-
value:
|
|
208
|
-
onValueChange: (e) =>
|
|
207
|
+
value: j,
|
|
208
|
+
onValueChange: (e) => De(e ?? ""),
|
|
209
209
|
items: [{
|
|
210
210
|
value: "",
|
|
211
211
|
label: T("blankProject")
|
|
212
|
-
}, ...
|
|
212
|
+
}, ...A.map((e) => ({
|
|
213
213
|
value: e.id,
|
|
214
214
|
label: e.name
|
|
215
215
|
}))],
|
|
216
216
|
trigger: /* @__PURE__ */ b("button", {
|
|
217
217
|
type: "button",
|
|
218
218
|
className: S,
|
|
219
|
-
children: [/* @__PURE__ */ y(
|
|
219
|
+
children: [/* @__PURE__ */ y(ie, { className: "size-3.5 text-muted-foreground" }), j ? T("fromTemplate", { name: A.find((e) => e.id === j)?.name ?? "" }) : T("blankProject")]
|
|
220
220
|
})
|
|
221
221
|
}),
|
|
222
222
|
/* @__PURE__ */ y(m, {
|
|
223
223
|
"aria-label": T("statusLabel"),
|
|
224
|
-
value:
|
|
225
|
-
onValueChange: (e) => e &&
|
|
224
|
+
value: I,
|
|
225
|
+
onValueChange: (e) => e && Me(e),
|
|
226
226
|
items: de.map((e) => ({
|
|
227
227
|
value: e,
|
|
228
228
|
label: T(`status.${e}`),
|
|
@@ -231,32 +231,32 @@ function C({ workspace: h, teamId: C, onClose: w }) {
|
|
|
231
231
|
trigger: /* @__PURE__ */ b("button", {
|
|
232
232
|
type: "button",
|
|
233
233
|
className: S,
|
|
234
|
-
children: [/* @__PURE__ */ y(c, { status:
|
|
234
|
+
children: [/* @__PURE__ */ y(c, { status: I }), T(`status.${I}`)]
|
|
235
235
|
})
|
|
236
236
|
}),
|
|
237
237
|
/* @__PURE__ */ y(m, {
|
|
238
238
|
"aria-label": T("priority"),
|
|
239
|
-
value: String(
|
|
240
|
-
onValueChange: (e) => e &&
|
|
239
|
+
value: String(L),
|
|
240
|
+
onValueChange: (e) => e && Ne(Number(e)),
|
|
241
241
|
items: D.map((e, t) => ({
|
|
242
242
|
value: String(t),
|
|
243
243
|
label: e,
|
|
244
|
-
icon: /* @__PURE__ */ y(
|
|
244
|
+
icon: /* @__PURE__ */ y(o, { priority: t })
|
|
245
245
|
})),
|
|
246
246
|
trigger: /* @__PURE__ */ b("button", {
|
|
247
247
|
type: "button",
|
|
248
248
|
className: S,
|
|
249
|
-
children: [/* @__PURE__ */ y(
|
|
249
|
+
children: [/* @__PURE__ */ y(o, { priority: L }), L ? D[L] : T("noPriority")]
|
|
250
250
|
})
|
|
251
251
|
}),
|
|
252
252
|
/* @__PURE__ */ y(f, {
|
|
253
253
|
"aria-label": T("lead"),
|
|
254
|
-
value:
|
|
255
|
-
onValueChange: (e) =>
|
|
254
|
+
value: R,
|
|
255
|
+
onValueChange: (e) => Pe(e ?? ""),
|
|
256
256
|
items: [{
|
|
257
257
|
value: "",
|
|
258
258
|
label: T("noLead")
|
|
259
|
-
}, ...
|
|
259
|
+
}, ...O.map((e) => ({
|
|
260
260
|
value: e.user.username,
|
|
261
261
|
label: e.user.name,
|
|
262
262
|
icon: /* @__PURE__ */ y(u, {
|
|
@@ -274,7 +274,7 @@ function C({ workspace: h, teamId: C, onClose: w }) {
|
|
|
274
274
|
src: $.avatarUrl,
|
|
275
275
|
size: "xs",
|
|
276
276
|
decorative: !0
|
|
277
|
-
}), $.name] }) : /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(
|
|
277
|
+
}), $.name] }) : /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(ae, { className: "size-3.5 text-muted-foreground" }), /* @__PURE__ */ y("span", {
|
|
278
278
|
className: "text-muted-foreground",
|
|
279
279
|
children: T("lead")
|
|
280
280
|
})] })
|
|
@@ -284,7 +284,7 @@ function C({ workspace: h, teamId: C, onClose: w }) {
|
|
|
284
284
|
open: K === "members",
|
|
285
285
|
onOpenChange: (e) => q(e ? "members" : null),
|
|
286
286
|
multiple: !0,
|
|
287
|
-
items:
|
|
287
|
+
items: O.map((e) => ({
|
|
288
288
|
value: e.user.username,
|
|
289
289
|
label: e.user.name,
|
|
290
290
|
icon: /* @__PURE__ */ y(u, {
|
|
@@ -294,20 +294,20 @@ function C({ workspace: h, teamId: C, onClose: w }) {
|
|
|
294
294
|
decorative: !0
|
|
295
295
|
})
|
|
296
296
|
})),
|
|
297
|
-
value:
|
|
298
|
-
onValueChange:
|
|
297
|
+
value: z,
|
|
298
|
+
onValueChange: Fe,
|
|
299
299
|
placeholder: T("members"),
|
|
300
300
|
trigger: /* @__PURE__ */ b("button", {
|
|
301
301
|
type: "button",
|
|
302
302
|
className: S,
|
|
303
303
|
children: [/* @__PURE__ */ y(s, { className: "size-3.5 text-muted-foreground" }), /* @__PURE__ */ y("span", {
|
|
304
|
-
className:
|
|
305
|
-
children:
|
|
304
|
+
className: z.length ? "" : "text-muted-foreground",
|
|
305
|
+
children: z.length ? T("memberCount", { count: z.length }) : T("members")
|
|
306
306
|
})]
|
|
307
307
|
})
|
|
308
308
|
}),
|
|
309
|
-
Q(T("startDate"),
|
|
310
|
-
Q(T("targetDate"),
|
|
309
|
+
Q(T("startDate"), V, Le),
|
|
310
|
+
Q(T("targetDate"), H, U),
|
|
311
311
|
/* @__PURE__ */ y(f, {
|
|
312
312
|
open: K === "teams",
|
|
313
313
|
onOpenChange: (e) => q(e ? "teams" : null),
|
|
@@ -322,15 +322,15 @@ function C({ workspace: h, teamId: C, onClose: w }) {
|
|
|
322
322
|
name: e.name
|
|
323
323
|
})
|
|
324
324
|
})),
|
|
325
|
-
value:
|
|
326
|
-
onValueChange:
|
|
325
|
+
value: B,
|
|
326
|
+
onValueChange: Ie,
|
|
327
327
|
placeholder: T("teams"),
|
|
328
328
|
trigger: /* @__PURE__ */ b("button", {
|
|
329
329
|
type: "button",
|
|
330
330
|
className: S,
|
|
331
331
|
children: [/* @__PURE__ */ y(s, { className: "size-3.5 text-muted-foreground" }), /* @__PURE__ */ y("span", {
|
|
332
|
-
className:
|
|
333
|
-
children:
|
|
332
|
+
className: B.length ? "" : "text-muted-foreground",
|
|
333
|
+
children: B.length ? Z.filter((e) => B.includes(e.id)).map((e) => e.key).join(", ") : T("teams")
|
|
334
334
|
})]
|
|
335
335
|
})
|
|
336
336
|
})
|
|
@@ -353,7 +353,7 @@ function C({ workspace: h, teamId: C, onClose: w }) {
|
|
|
353
353
|
/* @__PURE__ */ y(d, {
|
|
354
354
|
type: "submit",
|
|
355
355
|
variant: "primary",
|
|
356
|
-
disabled: J || !
|
|
356
|
+
disabled: J || !N.trim(),
|
|
357
357
|
children: T(J ? "creating" : "createProject")
|
|
358
358
|
})
|
|
359
359
|
]
|
package/components/Reports.js
CHANGED
|
@@ -22,7 +22,10 @@ function h({ workspace: e, identifier: r }) {
|
|
|
22
22
|
children: [...c.values()].map(({ span: e, seconds: t }) => /* @__PURE__ */ p("li", {
|
|
23
23
|
className: "flex h-7 items-center gap-2 px-2 text-sm",
|
|
24
24
|
children: [
|
|
25
|
-
/* @__PURE__ */ f(n, {
|
|
25
|
+
/* @__PURE__ */ f(n, {
|
|
26
|
+
category: e.status.category,
|
|
27
|
+
step: e.status.step
|
|
28
|
+
}),
|
|
26
29
|
/* @__PURE__ */ f("span", {
|
|
27
30
|
className: `min-w-0 flex-1 truncate ${e.status.id === l ? "" : "text-muted-foreground"}`,
|
|
28
31
|
children: e.status.id === l ? a("currentStatus", { name: e.status.name }) : e.status.name
|
|
@@ -90,7 +90,10 @@ function C({ workspace: C, teamKey: w, isAdmin: T }) {
|
|
|
90
90
|
children: t.map((e, n) => /* @__PURE__ */ _("li", {
|
|
91
91
|
className: "flex items-center gap-3 px-3 py-2 text-sm",
|
|
92
92
|
children: [
|
|
93
|
-
/* @__PURE__ */ g(i, {
|
|
93
|
+
/* @__PURE__ */ g(i, {
|
|
94
|
+
category: e.category,
|
|
95
|
+
step: e.step
|
|
96
|
+
}),
|
|
94
97
|
M === e.id ? /* @__PURE__ */ _("form", {
|
|
95
98
|
className: "flex min-w-0 flex-1 gap-2",
|
|
96
99
|
onSubmit: (t) => {
|
package/components/icons.js
CHANGED
|
@@ -3,20 +3,29 @@ import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
|
3
3
|
import { GitLabIcon as r } from "@parallelworks/ui/brand-icons";
|
|
4
4
|
import * as i from "@parallelworks/ui/icons";
|
|
5
5
|
// src/components/icons.tsx
|
|
6
|
-
var a =
|
|
6
|
+
var a = [
|
|
7
|
+
"M7 3.5 A3.5 3.5 0 0 1 7 10.5 Z",
|
|
8
|
+
"M7 3.5 A3.5 3.5 0 1 1 3.5 7 L7 7 Z",
|
|
9
|
+
"M7 3.5 A3.5 3.5 0 1 1 4.53 4.53 L7 7 Z"
|
|
10
|
+
], o = {
|
|
7
11
|
triage: "text-status-triage",
|
|
8
12
|
backlog: "text-status-backlog",
|
|
9
13
|
unstarted: "text-status-unstarted",
|
|
10
14
|
started: "text-status-started",
|
|
11
15
|
completed: "text-status-completed",
|
|
12
16
|
canceled: "text-status-canceled"
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
}, s = /* @__PURE__ */ t("circle", {
|
|
18
|
+
cx: "7",
|
|
19
|
+
cy: "7",
|
|
20
|
+
r: "1.75",
|
|
21
|
+
fill: "currentColor"
|
|
22
|
+
});
|
|
23
|
+
function c({ category: e, step: r = 0, className: i = "" }) {
|
|
24
|
+
let c = `${o[e]} ${i}`, l = r > 0;
|
|
16
25
|
switch (e) {
|
|
17
26
|
case "triage": return /* @__PURE__ */ n("svg", {
|
|
18
27
|
viewBox: "0 0 14 14",
|
|
19
|
-
className: `size-3.5 shrink-0 ${
|
|
28
|
+
className: `size-3.5 shrink-0 ${c}`,
|
|
20
29
|
"aria-hidden": "true",
|
|
21
30
|
children: [/* @__PURE__ */ t("circle", {
|
|
22
31
|
cx: "7",
|
|
@@ -32,11 +41,11 @@ function o({ category: e, className: r = "" }) {
|
|
|
32
41
|
strokeLinejoin: "round"
|
|
33
42
|
})]
|
|
34
43
|
});
|
|
35
|
-
case "backlog": return /* @__PURE__ */
|
|
44
|
+
case "backlog": return /* @__PURE__ */ n("svg", {
|
|
36
45
|
viewBox: "0 0 14 14",
|
|
37
|
-
className: `size-3.5 shrink-0 ${
|
|
46
|
+
className: `size-3.5 shrink-0 ${c}`,
|
|
38
47
|
"aria-hidden": "true",
|
|
39
|
-
children: /* @__PURE__ */ t("circle", {
|
|
48
|
+
children: [/* @__PURE__ */ t("circle", {
|
|
40
49
|
cx: "7",
|
|
41
50
|
cy: "7",
|
|
42
51
|
r: "5.5",
|
|
@@ -44,24 +53,24 @@ function o({ category: e, className: r = "" }) {
|
|
|
44
53
|
stroke: "currentColor",
|
|
45
54
|
strokeWidth: "1.5",
|
|
46
55
|
strokeDasharray: "2 2.3"
|
|
47
|
-
})
|
|
56
|
+
}), l && s]
|
|
48
57
|
});
|
|
49
|
-
case "unstarted": return /* @__PURE__ */
|
|
58
|
+
case "unstarted": return /* @__PURE__ */ n("svg", {
|
|
50
59
|
viewBox: "0 0 14 14",
|
|
51
|
-
className: `size-3.5 shrink-0 ${
|
|
60
|
+
className: `size-3.5 shrink-0 ${c}`,
|
|
52
61
|
"aria-hidden": "true",
|
|
53
|
-
children: /* @__PURE__ */ t("circle", {
|
|
62
|
+
children: [/* @__PURE__ */ t("circle", {
|
|
54
63
|
cx: "7",
|
|
55
64
|
cy: "7",
|
|
56
65
|
r: "5.5",
|
|
57
66
|
fill: "none",
|
|
58
67
|
stroke: "currentColor",
|
|
59
68
|
strokeWidth: "1.5"
|
|
60
|
-
})
|
|
69
|
+
}), l && s]
|
|
61
70
|
});
|
|
62
71
|
case "started": return /* @__PURE__ */ n("svg", {
|
|
63
72
|
viewBox: "0 0 14 14",
|
|
64
|
-
className: `size-3.5 shrink-0 ${
|
|
73
|
+
className: `size-3.5 shrink-0 ${c}`,
|
|
65
74
|
"aria-hidden": "true",
|
|
66
75
|
children: [/* @__PURE__ */ t("circle", {
|
|
67
76
|
cx: "7",
|
|
@@ -71,13 +80,32 @@ function o({ category: e, className: r = "" }) {
|
|
|
71
80
|
stroke: "currentColor",
|
|
72
81
|
strokeWidth: "1.5"
|
|
73
82
|
}), /* @__PURE__ */ t("path", {
|
|
74
|
-
d:
|
|
83
|
+
d: a[Math.min(r, a.length - 1)],
|
|
75
84
|
fill: "currentColor"
|
|
76
85
|
})]
|
|
77
86
|
});
|
|
78
|
-
case "completed": return /* @__PURE__ */ n("svg", {
|
|
87
|
+
case "completed": return l ? /* @__PURE__ */ n("svg", {
|
|
88
|
+
viewBox: "0 0 14 14",
|
|
89
|
+
className: `size-3.5 shrink-0 ${c}`,
|
|
90
|
+
"aria-hidden": "true",
|
|
91
|
+
children: [/* @__PURE__ */ t("circle", {
|
|
92
|
+
cx: "7",
|
|
93
|
+
cy: "7",
|
|
94
|
+
r: "5.5",
|
|
95
|
+
fill: "none",
|
|
96
|
+
stroke: "currentColor",
|
|
97
|
+
strokeWidth: "1.5"
|
|
98
|
+
}), /* @__PURE__ */ t("path", {
|
|
99
|
+
d: "M4.6 7.1 6.3 8.7 9.4 5.5",
|
|
100
|
+
fill: "none",
|
|
101
|
+
stroke: "currentColor",
|
|
102
|
+
strokeWidth: "1.5",
|
|
103
|
+
strokeLinecap: "round",
|
|
104
|
+
strokeLinejoin: "round"
|
|
105
|
+
})]
|
|
106
|
+
}) : /* @__PURE__ */ n("svg", {
|
|
79
107
|
viewBox: "0 0 14 14",
|
|
80
|
-
className: `size-3.5 shrink-0 ${
|
|
108
|
+
className: `size-3.5 shrink-0 ${c}`,
|
|
81
109
|
"aria-hidden": "true",
|
|
82
110
|
children: [/* @__PURE__ */ t("circle", {
|
|
83
111
|
cx: "7",
|
|
@@ -95,7 +123,7 @@ function o({ category: e, className: r = "" }) {
|
|
|
95
123
|
});
|
|
96
124
|
case "canceled": return /* @__PURE__ */ n("svg", {
|
|
97
125
|
viewBox: "0 0 14 14",
|
|
98
|
-
className: `size-3.5 shrink-0 ${
|
|
126
|
+
className: `size-3.5 shrink-0 ${c}`,
|
|
99
127
|
"aria-hidden": "true",
|
|
100
128
|
children: [/* @__PURE__ */ t("circle", {
|
|
101
129
|
cx: "7",
|
|
@@ -103,7 +131,7 @@ function o({ category: e, className: r = "" }) {
|
|
|
103
131
|
r: "6.25",
|
|
104
132
|
fill: "currentColor"
|
|
105
133
|
}), /* @__PURE__ */ t("path", {
|
|
106
|
-
d: "M4.9 4.9 9.1 9.1M9.1 4.9 4.9 9.1",
|
|
134
|
+
d: l ? "M4.6 5.6h4.8M4.6 8.4h4.8" : "M4.9 4.9 9.1 9.1M9.1 4.9 4.9 9.1",
|
|
107
135
|
stroke: "var(--color-card)",
|
|
108
136
|
strokeWidth: "1.6",
|
|
109
137
|
strokeLinecap: "round"
|
|
@@ -111,18 +139,18 @@ function o({ category: e, className: r = "" }) {
|
|
|
111
139
|
});
|
|
112
140
|
}
|
|
113
141
|
}
|
|
114
|
-
var
|
|
142
|
+
var l = [
|
|
115
143
|
"none",
|
|
116
144
|
"urgent",
|
|
117
145
|
"high",
|
|
118
146
|
"medium",
|
|
119
147
|
"low"
|
|
120
148
|
];
|
|
121
|
-
function
|
|
149
|
+
function u() {
|
|
122
150
|
let t = e("priority");
|
|
123
|
-
return
|
|
151
|
+
return l.map((e) => t(e));
|
|
124
152
|
}
|
|
125
|
-
function
|
|
153
|
+
function ee({ priority: e, className: r = "" }) {
|
|
126
154
|
if (e === 1) return /* @__PURE__ */ n("svg", {
|
|
127
155
|
viewBox: "0 0 14 14",
|
|
128
156
|
className: `size-3.5 shrink-0 text-danger ${r}`,
|
|
@@ -178,7 +206,7 @@ function c({ priority: e, className: r = "" }) {
|
|
|
178
206
|
}, n))
|
|
179
207
|
});
|
|
180
208
|
}
|
|
181
|
-
function
|
|
209
|
+
function d(e) {
|
|
182
210
|
return function({ className: n = "size-4" }) {
|
|
183
211
|
return /* @__PURE__ */ t("svg", {
|
|
184
212
|
viewBox: "0 0 16 16",
|
|
@@ -193,7 +221,7 @@ function l(e) {
|
|
|
193
221
|
});
|
|
194
222
|
};
|
|
195
223
|
}
|
|
196
|
-
function
|
|
224
|
+
function f(e) {
|
|
197
225
|
return function({ className: n = "size-4", ...r }) {
|
|
198
226
|
return /* @__PURE__ */ t(e, {
|
|
199
227
|
className: `shrink-0 ${n}`,
|
|
@@ -201,12 +229,12 @@ function u(e) {
|
|
|
201
229
|
});
|
|
202
230
|
};
|
|
203
231
|
}
|
|
204
|
-
var
|
|
232
|
+
var p = f(i.AddIcon), m = f(i.ColumnsIcon), h = f(i.AttachmentIcon), g = f(i.BranchIcon), _ = f(i.CalendarIcon), v = f(i.ClockIcon), y = f(i.CheckIcon), b = f(i.ChevronDownIcon), x = f(i.ChevronRightIcon), S = f(i.CloseIcon), C = f(i.CommentIcon), w = f(i.DownloadIcon), T = f(i.UploadIcon), E = f(i.ExpandIcon), D = f(i.FileTextIcon), O = f(i.FolderIcon), k = f(i.ChartIcon), A = f(i.BucketIcon), j = f(i.CloudIcon), M = f(i.GridIcon), N = f(i.HistoryIcon), P = f(i.InboxIcon), F = f(i.KeyIcon), I = f(i.MinimizeIcon), L = f(i.LibraryIcon), R = f(i.ListViewIcon), z = f(i.MailIcon), B = f(i.MigrationIcon);
|
|
205
233
|
i.NavigationIcon;
|
|
206
|
-
var
|
|
234
|
+
var V = f(i.NotificationIcon), H = f(i.QueueIcon), U = f(i.ProjectIcon), W = f(i.PullRequestIcon), G = f(i.RepositoryIcon), K = f(i.SearchIcon), te = f(i.SettingsIcon), q = f(i.ShieldIcon), J = f(i.WarningIcon), Y = f(i.ShrinkIcon);
|
|
207
235
|
i.SignOutIcon;
|
|
208
|
-
var
|
|
209
|
-
function
|
|
236
|
+
var X = f(i.TagIcon), Z = f(i.UserIcon), Q = f(i.UsersIcon), ne = f(i.WebhookIcon), re = f(i.WorkerIcon), ie = d("M1.75 9a6.25 4.25 0 1 0 12.5 0 6.25 4.25 0 1 0-12.5 0ZM6.75 3 9 4.75 6.75 6.5"), ae = d("M2.5 3.5h11v9h-11ZM10 3.5v9"), oe = d("M2.5 2.5v11M4.5 4.5h5M6.5 8h7M5.5 11.5h4.5"), se = d("M3 13 13 3M3 9.5 9.5 3M6.5 13 13 6.5"), ce = d("M3.5 2.5h9a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1ZM5.5 5h2a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2a.5.5 0 0 1 .5-.5Z");
|
|
237
|
+
function le({ className: e = "size-4", provider: n = "github" }) {
|
|
210
238
|
return n === "gitlab" ? /* @__PURE__ */ t(r, {
|
|
211
239
|
className: `shrink-0 ${e}`,
|
|
212
240
|
"aria-hidden": "true"
|
|
@@ -218,10 +246,10 @@ function se({ className: e = "size-4", provider: n = "github" }) {
|
|
|
218
246
|
children: /* @__PURE__ */ t("path", { d: "M8 0a8 8 0 0 0-2.53 15.59c.4.07.55-.17.55-.38v-1.33c-2.23.48-2.7-1.07-2.7-1.07-.36-.92-.89-1.17-.89-1.17-.73-.5.06-.49.06-.49.8.06 1.23.83 1.23.83.72 1.22 1.87.87 2.33.66.07-.52.28-.87.5-1.07-1.78-.2-3.65-.89-3.65-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.28.82 2.15 0 3.07-1.87 3.75-3.66 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 8 0Z" })
|
|
219
247
|
});
|
|
220
248
|
}
|
|
221
|
-
var
|
|
249
|
+
var ue = f(i.AddUserIcon), de = f(i.RemoveUserIcon), fe = f(i.ArchiveIcon), pe = f(i.RestoreIcon), $ = f(i.EditIcon), me = f(i.RenameIcon), he = f(i.LinkIcon), ge = f(i.UnlinkIcon);
|
|
222
250
|
i.CommitIcon;
|
|
223
|
-
var
|
|
251
|
+
var _e = f(i.ReleaseIcon), ve = f(i.MegaphoneIcon), ye = f(i.SwapIcon), be = f(i.TrashIcon);
|
|
224
252
|
i.EyeIcon;
|
|
225
|
-
var
|
|
253
|
+
var xe = f(i.SuccessIcon), Se = f(i.CancelIcon), Ce = f(i.AgentIcon);
|
|
226
254
|
i.ArrowRightIcon;
|
|
227
|
-
export {
|
|
255
|
+
export { p as AddIcon, ue as AddUserIcon, Ce as AgentIcon, J as AlertIcon, fe as ArchiveIcon, ce as AreaIcon, h as AttachmentIcon, m as BoardIcon, g as BranchIcon, A as BucketIcon, _ as CalendarIcon, Se as CancelIcon, k as ChartIcon, y as CheckIcon, b as ChevronDownIcon, x as ChevronRightIcon, v as ClockIcon, S as CloseIcon, j as CloudIcon, le as CodeHostIcon, C as CommentIcon, ie as CycleIcon, w as DownloadIcon, $ as EditIcon, se as EstimateIcon, E as ExpandIcon, D as FileTextIcon, O as FolderIcon, M as GridIcon, N as HistoryIcon, P as InboxIcon, F as KeyIcon, L as LibraryIcon, he as LinkIcon, R as ListViewIcon, z as MailIcon, ve as MegaphoneIcon, B as MigrationIcon, I as MinimizeIcon, V as NotificationIcon, ee as PriorityIcon, U as ProjectIcon, W as PullRequestIcon, _e as ReleaseIcon, de as RemoveUserIcon, me as RenameIcon, G as RepositoryIcon, pe as RestoreIcon, K as SearchIcon, te as SettingsIcon, q as ShieldIcon, Y as ShrinkIcon, ae as SidePanelIcon, c as StatusIcon, xe as SuccessIcon, ye as SwapIcon, X as TagIcon, oe as TimelineIcon, be as TrashIcon, H as TriageIcon, ge as UnlinkIcon, T as UploadIcon, Z as UserIcon, Q as UsersIcon, ne as WebhookIcon, re as WorkerIcon, u as usePriorityNames };
|
package/lib/boardMove.js
CHANGED
|
@@ -87,15 +87,25 @@ function d(d, f) {
|
|
|
87
87
|
labels: []
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
|
-
let b =
|
|
90
|
+
let b = (e) => ({
|
|
91
|
+
...e,
|
|
92
|
+
issues: e.issues.map((e) => e.id === r.id ? y : e)
|
|
93
|
+
}), x = { queryKey: [
|
|
91
94
|
"workspace",
|
|
92
95
|
d,
|
|
93
96
|
"issues",
|
|
94
97
|
"list"
|
|
95
98
|
] };
|
|
96
|
-
p.setQueriesData(
|
|
99
|
+
p.setQueriesData(x, (e) => e && b(e));
|
|
100
|
+
let S = { queryKey: [
|
|
101
|
+
"workspace",
|
|
102
|
+
d,
|
|
103
|
+
"issues",
|
|
104
|
+
"pages"
|
|
105
|
+
] };
|
|
106
|
+
p.setQueriesData(S, (e) => e && {
|
|
97
107
|
...e,
|
|
98
|
-
|
|
108
|
+
pages: e.pages.map(b)
|
|
99
109
|
});
|
|
100
110
|
try {
|
|
101
111
|
let i = v ? await a(d, r.identifier, v) : t(await e.PATCH("/api/v1/workspaces/{workspace}/issues/{identifier}", {
|
package/lib/groupList.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// src/lib/groupList.ts
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
return e.flatMap((e) => [{
|
|
4
|
+
kind: "group",
|
|
5
|
+
group: e
|
|
6
|
+
}, ...t.has(e.key) ? [] : e.issues.map((e) => ({
|
|
7
|
+
kind: "row",
|
|
8
|
+
issue: e
|
|
9
|
+
}))]);
|
|
10
|
+
}
|
|
11
|
+
function t(e, t) {
|
|
12
|
+
return e.findLast((e) => e <= t) ?? 0;
|
|
13
|
+
}
|
|
14
|
+
export { e as groupItems, t as headingOf };
|
package/lib/issueMenu.js
CHANGED
|
@@ -166,11 +166,17 @@ function z(e) {
|
|
|
166
166
|
return [
|
|
167
167
|
{
|
|
168
168
|
label: K("status"),
|
|
169
|
-
icon: /* @__PURE__ */ P(b, {
|
|
169
|
+
icon: /* @__PURE__ */ P(b, {
|
|
170
|
+
category: o.status.category,
|
|
171
|
+
step: o.status.step
|
|
172
|
+
}),
|
|
170
173
|
shortcut: "S",
|
|
171
174
|
items: c(o.teamId).map((e) => ({
|
|
172
175
|
label: e.name,
|
|
173
|
-
icon: /* @__PURE__ */ P(b, {
|
|
176
|
+
icon: /* @__PURE__ */ P(b, {
|
|
177
|
+
category: e.category,
|
|
178
|
+
step: e.step
|
|
179
|
+
}),
|
|
174
180
|
checked: l((t) => t.status.name === e.name),
|
|
175
181
|
onClick: () => u((t) => {
|
|
176
182
|
let n = S(e, t);
|
package/lib/issuePicker.js
CHANGED
|
@@ -19,7 +19,10 @@ function s(s, c) {
|
|
|
19
19
|
items: [...(p?.issues ?? []).filter((e) => `${e.identifier} ${e.title}`.toLowerCase().includes(g)), ...d ? m?.issues ?? [] : []].filter((e) => c(e) && !_.has(e.identifier) && _.add(e.identifier)).map((e) => ({
|
|
20
20
|
value: e.identifier,
|
|
21
21
|
label: `${e.identifier} ${e.title}`,
|
|
22
|
-
icon: /* @__PURE__ */ i(t, {
|
|
22
|
+
icon: /* @__PURE__ */ i(t, {
|
|
23
|
+
category: e.status.category,
|
|
24
|
+
step: e.status.step
|
|
25
|
+
})
|
|
23
26
|
})),
|
|
24
27
|
onQueryChange: u,
|
|
25
28
|
loading: d !== "" && h
|