@parallelworks/tandem-web 0.171.0 → 0.171.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 +1 -0
- package/_virtual/_virtual_i18n/es/common.js +1 -0
- package/_virtual/_virtual_i18n/ja/common.js +1 -0
- package/_virtual/_virtual_i18n/ko/common.js +1 -0
- package/_virtual/_virtual_i18n/zh/common.js +1 -0
- package/components/IssueFilters.js +104 -100
- package/lib/assigneeOrder.js +6 -0
- package/lib/assignees.js +24 -20
- package/package.json +1 -1
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { customersQuery as e, cyclesQuery as t, labelsQuery as n,
|
|
2
|
-
import { CalendarIcon as
|
|
3
|
-
import { usePeople as
|
|
4
|
-
import { ProjectStatusIcon as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
1
|
+
import { customersQuery as e, cyclesQuery as t, labelsQuery as n, meQuery as r, myTeamsQuery as i, projectsQuery as ee, statusesQuery as te, teamsQuery as ne } from "../api/queries.js";
|
|
2
|
+
import { CalendarIcon as a, CycleIcon as re, FolderIcon as ie, PriorityIcon as o, ProjectIcon as ae, StatusIcon as s, TagIcon as c, UserIcon as l, UsersIcon as u, usePriorityNames as d } from "./icons.js";
|
|
3
|
+
import { usePeople as f } from "../lib/people.js";
|
|
4
|
+
import { ProjectStatusIcon as p } from "./Planning.js";
|
|
5
|
+
import { youFirst as m } from "../lib/assigneeOrder.js";
|
|
6
|
+
import { projectRef as oe } from "../lib/projects.js";
|
|
7
|
+
import { customFieldsQuery as se, fieldsFor as ce, filterableKinds as le, formatFieldFilters as h, parseFieldFilters as g } from "../lib/customFields.js";
|
|
8
|
+
import { issueTypesQuery as _ } from "../lib/issueTypes.js";
|
|
9
|
+
import { TypeIcon as v } from "./IssueTypes.js";
|
|
10
|
+
import { statusRef as y } from "../lib/refs.js";
|
|
11
|
+
import { Avatar as b } from "@parallelworks/ui";
|
|
12
|
+
import { useMemo as ue } from "react";
|
|
13
|
+
import { useTranslations as x } from "use-intl";
|
|
14
|
+
import { jsx as S } from "react/jsx-runtime";
|
|
15
|
+
import { useQuery as C } from "@tanstack/react-query";
|
|
16
|
+
import { useListFilters as w } from "@parallelworks/ui/list";
|
|
16
17
|
// src/components/IssueFilters.tsx
|
|
17
|
-
var
|
|
18
|
+
var T = (e) => `field:${e}`, E = [
|
|
18
19
|
"team",
|
|
19
20
|
"assignee",
|
|
20
21
|
"assigneeKind",
|
|
@@ -29,8 +30,8 @@ var D = (e) => `field:${e}`, O = [
|
|
|
29
30
|
"type",
|
|
30
31
|
"fields",
|
|
31
32
|
"overdue"
|
|
32
|
-
],
|
|
33
|
-
function
|
|
33
|
+
], D = ":none", O = (e) => `agent:${e}`;
|
|
34
|
+
function de(e) {
|
|
34
35
|
let t = [], n = (e, n) => {
|
|
35
36
|
n && t.push({
|
|
36
37
|
field: e,
|
|
@@ -38,7 +39,7 @@ function se(e) {
|
|
|
38
39
|
values: [n]
|
|
39
40
|
});
|
|
40
41
|
};
|
|
41
|
-
n("team", e.team), n("assignee", e.assignee ? e.assigneeKind === "agent" ?
|
|
42
|
+
n("team", e.team), n("assignee", e.assignee ? e.assigneeKind === "agent" ? O(e.assignee) : e.assignee : e.unassigned && D), n("creator", e.creator);
|
|
42
43
|
for (let n of ["status", "priority"]) {
|
|
43
44
|
let r = e[n]?.split(",").filter(Boolean) ?? [];
|
|
44
45
|
r.length > 0 && t.push({
|
|
@@ -55,15 +56,15 @@ function se(e) {
|
|
|
55
56
|
values: r
|
|
56
57
|
});
|
|
57
58
|
let i = /* @__PURE__ */ new Map();
|
|
58
|
-
for (let t of
|
|
59
|
+
for (let t of g(e.fields)) i.set(t.field, [...i.get(t.field) ?? [], t.value]);
|
|
59
60
|
for (let [e, n] of i) t.push({
|
|
60
|
-
field:
|
|
61
|
+
field: T(e),
|
|
61
62
|
op: "is",
|
|
62
63
|
values: n
|
|
63
64
|
});
|
|
64
65
|
return n("overdue", e.overdue), t;
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
+
function fe(e) {
|
|
67
68
|
let t = {}, n = [];
|
|
68
69
|
for (let r of e) {
|
|
69
70
|
let e = r.values[0];
|
|
@@ -74,7 +75,7 @@ function ce(e) {
|
|
|
74
75
|
});
|
|
75
76
|
else switch (r.field) {
|
|
76
77
|
case "assignee":
|
|
77
|
-
e ===
|
|
78
|
+
e === D ? t.unassigned = "true" : e.startsWith("agent:") ? (t.assignee = e.slice(6), t.assigneeKind = "agent") : t.assignee = e;
|
|
78
79
|
break;
|
|
79
80
|
case "overdue":
|
|
80
81
|
e === "true" && (t.overdue = "true");
|
|
@@ -93,38 +94,38 @@ function ce(e) {
|
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
|
-
return n.length > 0 && (t.fields =
|
|
97
|
+
return n.length > 0 && (t.fields = h(n)), t;
|
|
97
98
|
}
|
|
98
|
-
function
|
|
99
|
+
function k(e, t) {
|
|
99
100
|
let n = { ...e };
|
|
100
|
-
for (let e of
|
|
101
|
+
for (let e of E) delete n[e];
|
|
101
102
|
return {
|
|
102
103
|
...n,
|
|
103
104
|
...t
|
|
104
105
|
};
|
|
105
106
|
}
|
|
106
|
-
function
|
|
107
|
-
let
|
|
108
|
-
...t(
|
|
107
|
+
function A(h, E, k, A = !1) {
|
|
108
|
+
let j = x("issueFilters"), M = x("common"), N = x("planning"), P = C(r).data?.user.username, { data: F = [] } = C(ne(h)), { data: I = [] } = C(i(h)), L = I.some((e) => e.key === E.team) ? I : [...I, ...F.filter((e) => e.key === E.team)], { data: R = [] } = C(n(h)), { data: z = [] } = C(ee(h)), { data: B = [] } = C(e(h)), V = L.find((e) => e.key === E.team), { data: H = [] } = C({
|
|
109
|
+
...t(h, V?.key ?? ""),
|
|
109
110
|
enabled: !!V?.cyclesEnabled
|
|
110
|
-
}), { data: U = [] } =
|
|
111
|
-
...
|
|
111
|
+
}), { data: U = [] } = C({
|
|
112
|
+
...te(h, V?.key ?? ""),
|
|
112
113
|
enabled: !!V
|
|
113
|
-
}), W =
|
|
114
|
+
}), W = d(), { members: G, agents: K, person: q, agentName: J } = f(h), { data: Y } = C(se(h)), { data: X } = C(_(h)), Z = x("issueTypes"), Q = x("customFields"), pe = ue(() => {
|
|
114
115
|
let e = {
|
|
115
116
|
multiple: !1,
|
|
116
117
|
operators: ["is"]
|
|
117
|
-
}, t = (e) => e.name ?
|
|
118
|
+
}, t = (e) => e.name ? N("cycleNamed", {
|
|
118
119
|
number: e.number,
|
|
119
120
|
name: e.name
|
|
120
|
-
}) :
|
|
121
|
+
}) : N("cycle", { number: e.number }), n = [
|
|
121
122
|
{
|
|
122
123
|
key: "team",
|
|
123
|
-
label:
|
|
124
|
-
icon: /* @__PURE__ */
|
|
124
|
+
label: j("team"),
|
|
125
|
+
icon: /* @__PURE__ */ S(ie, {}),
|
|
125
126
|
kind: "enum",
|
|
126
127
|
...e,
|
|
127
|
-
required:
|
|
128
|
+
required: A,
|
|
128
129
|
options: L.filter((e) => !e.archivedAt).map((e) => ({
|
|
129
130
|
value: e.key,
|
|
130
131
|
label: e.name,
|
|
@@ -133,21 +134,22 @@ function M(v, O, j, M = !1) {
|
|
|
133
134
|
},
|
|
134
135
|
{
|
|
135
136
|
key: "assignee",
|
|
136
|
-
label:
|
|
137
|
-
icon: /* @__PURE__ */
|
|
137
|
+
label: j("assignee"),
|
|
138
|
+
icon: /* @__PURE__ */ S(l, {}),
|
|
138
139
|
kind: "people",
|
|
139
140
|
...e,
|
|
140
141
|
options: [
|
|
141
142
|
{
|
|
142
|
-
value:
|
|
143
|
-
label:
|
|
144
|
-
icon: /* @__PURE__ */
|
|
143
|
+
value: D,
|
|
144
|
+
label: j("noAssignee"),
|
|
145
|
+
icon: /* @__PURE__ */ S(l, {})
|
|
145
146
|
},
|
|
146
|
-
...G.map((e) => ({
|
|
147
|
+
...m(G, P).map((e) => ({
|
|
147
148
|
value: e.user.username,
|
|
148
149
|
label: e.user.name,
|
|
149
|
-
|
|
150
|
-
|
|
150
|
+
...e.user.username === P && { description: M("you") },
|
|
151
|
+
group: j("people"),
|
|
152
|
+
icon: /* @__PURE__ */ S(b, {
|
|
151
153
|
name: e.user.name,
|
|
152
154
|
src: e.user.avatarUrl,
|
|
153
155
|
size: "xs",
|
|
@@ -155,10 +157,10 @@ function M(v, O, j, M = !1) {
|
|
|
155
157
|
})
|
|
156
158
|
})),
|
|
157
159
|
...K.map((e) => ({
|
|
158
|
-
value:
|
|
160
|
+
value: O(e.slug),
|
|
159
161
|
label: e.name,
|
|
160
|
-
group:
|
|
161
|
-
icon: /* @__PURE__ */
|
|
162
|
+
group: j("agents"),
|
|
163
|
+
icon: /* @__PURE__ */ S(b, {
|
|
162
164
|
name: e.name,
|
|
163
165
|
kind: "agent",
|
|
164
166
|
size: "xs",
|
|
@@ -170,14 +172,14 @@ function M(v, O, j, M = !1) {
|
|
|
170
172
|
},
|
|
171
173
|
{
|
|
172
174
|
key: "creator",
|
|
173
|
-
label:
|
|
174
|
-
icon: /* @__PURE__ */
|
|
175
|
+
label: j("creator"),
|
|
176
|
+
icon: /* @__PURE__ */ S(l, {}),
|
|
175
177
|
kind: "people",
|
|
176
178
|
...e,
|
|
177
179
|
options: G.map((e) => ({
|
|
178
180
|
value: e.user.username,
|
|
179
181
|
label: e.user.name,
|
|
180
|
-
icon: /* @__PURE__ */
|
|
182
|
+
icon: /* @__PURE__ */ S(b, {
|
|
181
183
|
name: e.user.name,
|
|
182
184
|
src: e.user.avatarUrl,
|
|
183
185
|
size: "xs",
|
|
@@ -188,8 +190,8 @@ function M(v, O, j, M = !1) {
|
|
|
188
190
|
},
|
|
189
191
|
{
|
|
190
192
|
key: "priority",
|
|
191
|
-
label:
|
|
192
|
-
icon: /* @__PURE__ */
|
|
193
|
+
label: j("priority"),
|
|
194
|
+
icon: /* @__PURE__ */ S(o, { priority: 2 }),
|
|
193
195
|
kind: "enum",
|
|
194
196
|
operators: ["is"],
|
|
195
197
|
options: [
|
|
@@ -201,86 +203,86 @@ function M(v, O, j, M = !1) {
|
|
|
201
203
|
].map((e) => ({
|
|
202
204
|
value: String(e),
|
|
203
205
|
label: W[e] ?? "",
|
|
204
|
-
icon: /* @__PURE__ */
|
|
206
|
+
icon: /* @__PURE__ */ S(o, { priority: e })
|
|
205
207
|
}))
|
|
206
208
|
},
|
|
207
209
|
{
|
|
208
210
|
key: "label",
|
|
209
|
-
label:
|
|
210
|
-
icon: /* @__PURE__ */
|
|
211
|
+
label: j("label"),
|
|
212
|
+
icon: /* @__PURE__ */ S(c, {}),
|
|
211
213
|
kind: "enum",
|
|
212
214
|
...e,
|
|
213
215
|
options: R.map((e) => ({
|
|
214
216
|
value: e.name,
|
|
215
217
|
label: e.name,
|
|
216
|
-
icon: /* @__PURE__ */
|
|
218
|
+
icon: /* @__PURE__ */ S("span", {
|
|
217
219
|
className: "size-2 rounded-full",
|
|
218
220
|
style: { background: e.color }
|
|
219
221
|
})
|
|
220
222
|
})),
|
|
221
|
-
valueLabel: () =>
|
|
223
|
+
valueLabel: () => j("deletedLabel")
|
|
222
224
|
},
|
|
223
225
|
{
|
|
224
226
|
key: "project",
|
|
225
|
-
label:
|
|
226
|
-
icon: /* @__PURE__ */
|
|
227
|
+
label: j("project"),
|
|
228
|
+
icon: /* @__PURE__ */ S(ae, {}),
|
|
227
229
|
kind: "enum",
|
|
228
230
|
...e,
|
|
229
231
|
options: z.map((e) => ({
|
|
230
|
-
value:
|
|
232
|
+
value: oe(e),
|
|
231
233
|
label: e.name,
|
|
232
|
-
icon: /* @__PURE__ */
|
|
234
|
+
icon: /* @__PURE__ */ S(p, { status: e.status })
|
|
233
235
|
}))
|
|
234
236
|
}
|
|
235
237
|
];
|
|
236
|
-
(B.length > 0 ||
|
|
238
|
+
(B.length > 0 || E.customer) && n.push({
|
|
237
239
|
key: "customer",
|
|
238
|
-
label:
|
|
239
|
-
icon: /* @__PURE__ */
|
|
240
|
+
label: j("customer"),
|
|
241
|
+
icon: /* @__PURE__ */ S(u, {}),
|
|
240
242
|
kind: "enum",
|
|
241
243
|
...e,
|
|
242
244
|
options: B.map((e) => ({
|
|
243
245
|
value: e.id,
|
|
244
246
|
label: e.name
|
|
245
247
|
}))
|
|
246
|
-
}), (V ||
|
|
248
|
+
}), (V || E.status) && n.splice(3, 0, {
|
|
247
249
|
key: "status",
|
|
248
|
-
label:
|
|
249
|
-
icon: /* @__PURE__ */
|
|
250
|
+
label: j("status"),
|
|
251
|
+
icon: /* @__PURE__ */ S(s, { category: "started" }),
|
|
250
252
|
kind: "enum",
|
|
251
253
|
operators: ["is"],
|
|
252
254
|
options: U.map((e) => ({
|
|
253
|
-
value:
|
|
255
|
+
value: y(e),
|
|
254
256
|
label: e.name,
|
|
255
|
-
icon: /* @__PURE__ */
|
|
257
|
+
icon: /* @__PURE__ */ S(s, {
|
|
256
258
|
category: e.category,
|
|
257
259
|
step: e.step
|
|
258
260
|
})
|
|
259
261
|
}))
|
|
260
|
-
}), (V?.cyclesEnabled ||
|
|
262
|
+
}), (V?.cyclesEnabled || E.cycle) && n.push({
|
|
261
263
|
key: "cycle",
|
|
262
|
-
label:
|
|
263
|
-
icon: /* @__PURE__ */
|
|
264
|
+
label: j("cycle"),
|
|
265
|
+
icon: /* @__PURE__ */ S(re, {}),
|
|
264
266
|
kind: "enum",
|
|
265
267
|
...e,
|
|
266
268
|
options: H.map((e) => ({
|
|
267
269
|
value: e.id,
|
|
268
270
|
label: t(e),
|
|
269
|
-
description:
|
|
271
|
+
description: N(`states.${e.state}`)
|
|
270
272
|
}))
|
|
271
273
|
});
|
|
272
274
|
let r = (X ?? []).filter((e) => !e.archivedAt && (!V || e.teamIds.length === 0 || e.teamIds.includes(V.id)));
|
|
273
|
-
(r.length > 0 ||
|
|
275
|
+
(r.length > 0 || E.type) && n.push({
|
|
274
276
|
key: "type",
|
|
275
277
|
label: Z("type"),
|
|
276
|
-
icon: /* @__PURE__ */
|
|
278
|
+
icon: /* @__PURE__ */ S(c, {}),
|
|
277
279
|
kind: "enum",
|
|
278
280
|
multiple: !0,
|
|
279
281
|
operators: ["is"],
|
|
280
282
|
options: [...r.map((e) => ({
|
|
281
283
|
value: e.id,
|
|
282
284
|
label: e.name,
|
|
283
|
-
icon: /* @__PURE__ */
|
|
285
|
+
icon: /* @__PURE__ */ S(v, {
|
|
284
286
|
type: e,
|
|
285
287
|
className: "size-3.5"
|
|
286
288
|
})
|
|
@@ -289,23 +291,23 @@ function M(v, O, j, M = !1) {
|
|
|
289
291
|
label: Z("noType")
|
|
290
292
|
}]
|
|
291
293
|
});
|
|
292
|
-
let i = new Set(
|
|
293
|
-
for (let e of (Y ?? []).filter((e) => e.target === "issue" &&
|
|
294
|
+
let i = new Set(g(E.fields).map((e) => e.field));
|
|
295
|
+
for (let e of (Y ?? []).filter((e) => e.target === "issue" && le.includes(e.kind) && (ce([e], "issue", V?.id).length > 0 || i.has(e.id)))) {
|
|
294
296
|
let t = {
|
|
295
297
|
value: "none",
|
|
296
298
|
label: Q("noValue")
|
|
297
299
|
};
|
|
298
300
|
n.push({
|
|
299
|
-
key:
|
|
301
|
+
key: T(e.id),
|
|
300
302
|
label: e.name,
|
|
301
|
-
icon: /* @__PURE__ */
|
|
303
|
+
icon: /* @__PURE__ */ S(c, {}),
|
|
302
304
|
kind: "enum",
|
|
303
305
|
multiple: !0,
|
|
304
306
|
operators: ["is"],
|
|
305
307
|
options: e.kind === "person" ? [...G.map((e) => ({
|
|
306
308
|
value: e.user.username,
|
|
307
309
|
label: e.user.name,
|
|
308
|
-
icon: /* @__PURE__ */
|
|
310
|
+
icon: /* @__PURE__ */ S(b, {
|
|
309
311
|
name: e.user.name,
|
|
310
312
|
src: e.user.avatarUrl,
|
|
311
313
|
size: "xs",
|
|
@@ -317,7 +319,7 @@ function M(v, O, j, M = !1) {
|
|
|
317
319
|
}, t] : [...e.options.map((e) => ({
|
|
318
320
|
value: e.id ?? "",
|
|
319
321
|
label: e.name,
|
|
320
|
-
...e.color && { icon: /* @__PURE__ */
|
|
322
|
+
...e.color && { icon: /* @__PURE__ */ S("span", {
|
|
321
323
|
className: "size-2 rounded-full",
|
|
322
324
|
style: { background: e.color }
|
|
323
325
|
}) }
|
|
@@ -326,47 +328,49 @@ function M(v, O, j, M = !1) {
|
|
|
326
328
|
}
|
|
327
329
|
return n.push({
|
|
328
330
|
key: "overdue",
|
|
329
|
-
label:
|
|
330
|
-
icon: /* @__PURE__ */
|
|
331
|
+
label: j("overdue"),
|
|
332
|
+
icon: /* @__PURE__ */ S(a, {}),
|
|
331
333
|
kind: "boolean"
|
|
332
334
|
}), n;
|
|
333
335
|
}, [
|
|
334
336
|
X,
|
|
335
337
|
Z,
|
|
336
|
-
|
|
338
|
+
E.type,
|
|
337
339
|
Y,
|
|
338
340
|
Q,
|
|
339
|
-
|
|
341
|
+
E.fields,
|
|
342
|
+
j,
|
|
343
|
+
M,
|
|
340
344
|
N,
|
|
341
|
-
P,
|
|
342
345
|
L,
|
|
343
346
|
G,
|
|
347
|
+
P,
|
|
344
348
|
K,
|
|
345
349
|
R,
|
|
346
350
|
z,
|
|
347
351
|
B,
|
|
348
|
-
|
|
352
|
+
E.customer,
|
|
349
353
|
H,
|
|
350
354
|
U,
|
|
351
355
|
W,
|
|
352
356
|
V,
|
|
353
|
-
|
|
354
|
-
|
|
357
|
+
E.cycle,
|
|
358
|
+
E.status,
|
|
355
359
|
q,
|
|
356
360
|
J,
|
|
357
|
-
|
|
358
|
-
]), $ =
|
|
361
|
+
A
|
|
362
|
+
]), $ = de(E), me = {
|
|
359
363
|
value: $.length > 0 ? $ : null,
|
|
360
364
|
onChange: (e) => {
|
|
361
|
-
let t =
|
|
362
|
-
t.team !==
|
|
365
|
+
let t = fe(e);
|
|
366
|
+
t.team !== E.team && delete t.status, k(t);
|
|
363
367
|
}
|
|
364
368
|
};
|
|
365
|
-
return
|
|
366
|
-
storageKey: `issues:${
|
|
367
|
-
fields:
|
|
368
|
-
store:
|
|
369
|
+
return w({
|
|
370
|
+
storageKey: `issues:${h}`,
|
|
371
|
+
fields: pe,
|
|
372
|
+
store: me,
|
|
369
373
|
remember: !1
|
|
370
374
|
});
|
|
371
375
|
}
|
|
372
|
-
export {
|
|
376
|
+
export { A as useIssueFilters, k as withIssueFilters };
|
package/lib/assignees.js
CHANGED
|
@@ -1,50 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { meQuery as e } from "../api/queries.js";
|
|
2
|
+
import { usePeople as t } from "./people.js";
|
|
3
|
+
import { youFirst as n } from "./assigneeOrder.js";
|
|
4
|
+
import { PickManyBox as r } from "./pickMany.js";
|
|
5
|
+
import { Avatar as i } from "@parallelworks/ui";
|
|
6
|
+
import { useTranslations as a } from "use-intl";
|
|
7
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
+
import { useQuery as c } from "@tanstack/react-query";
|
|
6
9
|
// src/lib/assignees.tsx
|
|
7
|
-
var
|
|
8
|
-
function
|
|
10
|
+
var l = (e) => `${e.kind}:${e.handle}`;
|
|
11
|
+
function u(e) {
|
|
9
12
|
let [t, ...n] = e.split(":");
|
|
10
13
|
return {
|
|
11
14
|
kind: t === "agent" ? "agent" : "user",
|
|
12
15
|
handle: n.join(":")
|
|
13
16
|
};
|
|
14
17
|
}
|
|
15
|
-
function
|
|
16
|
-
let
|
|
17
|
-
value:
|
|
18
|
+
function d(u, d = !1) {
|
|
19
|
+
let f = a("common"), { members: p, agents: m } = t(u), h = c(e).data?.user.username, g = [...n(p, h).map((e) => ({
|
|
20
|
+
value: l({
|
|
18
21
|
kind: "user",
|
|
19
22
|
handle: e.user.username
|
|
20
23
|
}),
|
|
21
24
|
label: e.user.name,
|
|
22
|
-
|
|
25
|
+
...e.user.username === h && { hint: f("you") },
|
|
26
|
+
icon: /* @__PURE__ */ o(i, {
|
|
23
27
|
name: e.user.name,
|
|
24
28
|
src: e.user.avatarUrl,
|
|
25
29
|
size: "xs",
|
|
26
30
|
decorative: !0
|
|
27
31
|
})
|
|
28
|
-
})), ...
|
|
29
|
-
value:
|
|
32
|
+
})), ...m.map((e) => ({
|
|
33
|
+
value: l({
|
|
30
34
|
kind: "agent",
|
|
31
35
|
handle: e.slug
|
|
32
36
|
}),
|
|
33
37
|
label: e.name,
|
|
34
|
-
hint:
|
|
35
|
-
icon: /* @__PURE__ */ i
|
|
38
|
+
hint: f("agent"),
|
|
39
|
+
icon: /* @__PURE__ */ o(i, {
|
|
36
40
|
name: e.name,
|
|
37
41
|
kind: "agent",
|
|
38
42
|
size: "xs",
|
|
39
43
|
decorative: !0
|
|
40
44
|
})
|
|
41
45
|
}))];
|
|
42
|
-
return
|
|
46
|
+
return d ? g.map((e) => ({
|
|
43
47
|
...e,
|
|
44
|
-
icon: /* @__PURE__ */
|
|
48
|
+
icon: /* @__PURE__ */ s("span", {
|
|
45
49
|
className: "flex items-center gap-2",
|
|
46
|
-
children: [/* @__PURE__ */
|
|
50
|
+
children: [/* @__PURE__ */ o(r, {}), e.icon]
|
|
47
51
|
})
|
|
48
|
-
})) :
|
|
52
|
+
})) : g;
|
|
49
53
|
}
|
|
50
|
-
export {
|
|
54
|
+
export { l as assigneeKey, u as parseAssigneeKey, d as useAssigneeOptions };
|