@parallelworks/tandem-web 0.170.2 → 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/components/cycleCrumb.js +33 -0
- package/lib/assigneeOrder.js +6 -0
- package/lib/assignees.js +24 -20
- package/package.json +2 -2
- package/routes/_workspace/teams/_key/cycles/_number2.js +96 -97
- package/components/CycleSwitcher.js +0 -47
|
@@ -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 };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { useNavigate as e } from "../lib/router.js";
|
|
2
|
+
import { useTime as t } from "../lib/time.js";
|
|
3
|
+
import { cycleParam as n } from "../lib/cycleLinks.js";
|
|
4
|
+
import { byStart as r } from "../lib/cycleOrder.js";
|
|
5
|
+
import { cycleChoices as i } from "../lib/cycleSwitcher.js";
|
|
6
|
+
import { useTranslations as a } from "use-intl";
|
|
7
|
+
// src/components/cycleCrumb.ts
|
|
8
|
+
function o(o, s, c, l) {
|
|
9
|
+
let u = a("planning"), d = t(), f = e(), p = (e) => e.name ? u("cycleNamed", {
|
|
10
|
+
number: e.number,
|
|
11
|
+
name: e.name
|
|
12
|
+
}) : u("cycle", { number: e.number });
|
|
13
|
+
if (l) return {
|
|
14
|
+
label: p(l),
|
|
15
|
+
switcher: {
|
|
16
|
+
label: u("switchCycle"),
|
|
17
|
+
placeholder: u("findCycle"),
|
|
18
|
+
items: i([...c].sort(r), n, p, (e) => d.dayRange(e.startsOn, e.endsOn), (e) => u(`states.${e}`)),
|
|
19
|
+
value: n(l),
|
|
20
|
+
onValueChange: (e) => {
|
|
21
|
+
f({
|
|
22
|
+
to: "/$workspace/teams/$key/cycles/$number",
|
|
23
|
+
params: {
|
|
24
|
+
workspace: o,
|
|
25
|
+
key: s,
|
|
26
|
+
number: e
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export { o as useCycleCrumb };
|
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parallelworks/tandem-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.171.1",
|
|
4
4
|
"description": "Tandem's pages, for a host app to render in its own",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"yjs": "^13.6.33"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@parallelworks/ui": ">=0.
|
|
52
|
+
"@parallelworks/ui": ">=0.119.0 <1",
|
|
53
53
|
"@tanstack/react-router": "^1.170.0",
|
|
54
54
|
"react": "^19.3.0",
|
|
55
55
|
"react-dom": "^19.3.0",
|
|
@@ -2,7 +2,7 @@ import { api as e, unwrap as t } from "../../../../../api/client.js";
|
|
|
2
2
|
import { NotFound as n } from "../../../../../components/status.js";
|
|
3
3
|
import { usePageTitle as r } from "../../../../../lib/pageTitle.js";
|
|
4
4
|
import { useNavigate as i } from "../../../../../lib/router.js";
|
|
5
|
-
import { cyclesQuery as a, issuesQuery as
|
|
5
|
+
import { cyclesQuery as a, issuesQuery as o, teamsQuery as ee } from "../../../../../api/queries.js";
|
|
6
6
|
import { invalidateIssueViews as s } from "../../../../../api/mutations.js";
|
|
7
7
|
import { CloseIcon as te, CycleIcon as ne } from "../../../../../components/icons.js";
|
|
8
8
|
import { addDays as re, today as c, useTime as l } from "../../../../../lib/time.js";
|
|
@@ -11,187 +11,186 @@ import { useCan as u } from "../../../../../lib/roles.js";
|
|
|
11
11
|
import { teamPath as d } from "../../../../../lib/teamPaths.js";
|
|
12
12
|
import { Route as f } from "./_number.js";
|
|
13
13
|
import { FavoriteStar as p } from "../../../../../components/FavoriteStar.js";
|
|
14
|
-
import { BurnUp as
|
|
15
|
-
import { IssueBreakdown as
|
|
16
|
-
import { StatusGroups as
|
|
17
|
-
import { cycleParam as
|
|
18
|
-
import {
|
|
14
|
+
import { BurnUp as m } from "../../../../../components/Reports.js";
|
|
15
|
+
import { IssueBreakdown as h, breakdownKeys as ae } from "../../../../../components/IssueBreakdown.js";
|
|
16
|
+
import { StatusGroups as oe } from "../../../../../components/IssueGroup.js";
|
|
17
|
+
import { cycleParam as se, findCycle as ce } from "../../../../../lib/cycleLinks.js";
|
|
18
|
+
import { useCycleCrumb as le } from "../../../../../components/cycleCrumb.js";
|
|
19
19
|
import { Button as g, Card as _, EmptyState as v, ErrorText as y, IconButton as b, PageHeader as x } from "@parallelworks/ui";
|
|
20
20
|
import { useState as S } from "react";
|
|
21
21
|
import { useErrorMessage as C } from "@parallelworks/problem/react";
|
|
22
22
|
import { useTranslations as w } from "use-intl";
|
|
23
|
-
import {
|
|
24
|
-
import { useMutation as
|
|
23
|
+
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
24
|
+
import { useMutation as D, useQuery as O, useQueryClient as k, useSuspenseQuery as A } from "@tanstack/react-query";
|
|
25
25
|
// src/routes/$workspace/teams/$key/cycles/$number.tsx?tsr-split=component
|
|
26
|
-
var
|
|
26
|
+
var j = [
|
|
27
27
|
"assignees",
|
|
28
28
|
"labels",
|
|
29
29
|
"priority",
|
|
30
30
|
"projects"
|
|
31
31
|
];
|
|
32
|
-
function
|
|
33
|
-
let { workspace:
|
|
34
|
-
r(
|
|
35
|
-
number:
|
|
36
|
-
name:
|
|
37
|
-
}) :
|
|
38
|
-
let W = u(
|
|
39
|
-
...
|
|
40
|
-
enabled: !!
|
|
41
|
-
}), X =
|
|
32
|
+
function M() {
|
|
33
|
+
let { workspace: M, key: N, number: P } = f.useParams(), F = w("planning"), I = C(), L = l(), R = i(), { data: z } = A(ee(M)), { data: B } = A(a(M, N)), V = ce(B, P), H = z.find((e) => e.key === N), U = le(M, N, B, V);
|
|
34
|
+
r(V && (V.name ? F("cycleNamed", {
|
|
35
|
+
number: V.number,
|
|
36
|
+
name: V.name
|
|
37
|
+
}) : F("cycle", { number: V.number })), H?.name);
|
|
38
|
+
let W = u(M, "manage_cycles", { team: N }), ue = k(), [G, de] = S(null), [K, q] = S("assignees"), [J, Y] = S(null), { data: fe } = O({
|
|
39
|
+
...o(M, { cycle: V?.id ?? "" }),
|
|
40
|
+
enabled: !!V
|
|
41
|
+
}), X = D({
|
|
42
42
|
mutationFn: async () => t(await e.POST("/api/v1/workspaces/{workspace}/teams/{key}/cycles/{number}/move-unfinished", { params: { path: {
|
|
43
|
-
workspace:
|
|
44
|
-
key:
|
|
45
|
-
number:
|
|
43
|
+
workspace: M,
|
|
44
|
+
key: N,
|
|
45
|
+
number: V?.number ?? 0
|
|
46
46
|
} } })),
|
|
47
47
|
onSuccess: (e) => de(e.moved),
|
|
48
|
-
onSettled: () => s(ue,
|
|
48
|
+
onSettled: () => s(ue, M)
|
|
49
49
|
});
|
|
50
|
-
if (!
|
|
51
|
-
let Z = fe?.issues ?? [], Q = J ? Z.filter((e) =>
|
|
52
|
-
number:
|
|
53
|
-
name:
|
|
54
|
-
}) :
|
|
55
|
-
return /* @__PURE__ */
|
|
50
|
+
if (!V) return /* @__PURE__ */ T(n, { title: F("noSuchCycle") });
|
|
51
|
+
let Z = fe?.issues ?? [], Q = J ? Z.filter((e) => ae(e, J.tab).includes(J.key)) : Z, $ = Z.filter((e) => e.status.category !== "completed" && e.status.category !== "canceled").length, pe = V.state === "past" || V.state === "current" && re(c(), 2) >= V.endsOn, me = V.name ? F("cycleNamed", {
|
|
52
|
+
number: V.number,
|
|
53
|
+
name: V.name
|
|
54
|
+
}) : F("cycle", { number: V.number });
|
|
55
|
+
return /* @__PURE__ */ E("div", {
|
|
56
56
|
className: "flex h-full min-h-0 flex-col",
|
|
57
|
-
children: [/* @__PURE__ */
|
|
57
|
+
children: [/* @__PURE__ */ T(x, {
|
|
58
58
|
heading: !1,
|
|
59
|
-
breadcrumbs: [
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
workspace: N,
|
|
59
|
+
breadcrumbs: [
|
|
60
|
+
{
|
|
61
|
+
label: H?.name ?? N,
|
|
62
|
+
href: d(M, N, "issues")
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: F("cycles"),
|
|
66
|
+
href: d(M, N, "cycles")
|
|
67
|
+
},
|
|
68
|
+
...U ? [U] : []
|
|
69
|
+
],
|
|
70
|
+
titleActions: /* @__PURE__ */ T(p, {
|
|
71
|
+
workspace: M,
|
|
73
72
|
kind: "cycle",
|
|
74
|
-
target:
|
|
75
|
-
})
|
|
76
|
-
}), /* @__PURE__ */
|
|
73
|
+
target: V.id
|
|
74
|
+
})
|
|
75
|
+
}), /* @__PURE__ */ E("div", {
|
|
77
76
|
className: "flex min-h-0 flex-1 flex-col overflow-y-auto xl:flex-row xl:overflow-hidden",
|
|
78
|
-
children: [/* @__PURE__ */
|
|
77
|
+
children: [/* @__PURE__ */ E("div", {
|
|
79
78
|
className: "w-full min-w-0 px-4 py-6 md:px-8 md:py-8 xl:flex-1 xl:overflow-y-auto",
|
|
80
79
|
children: [
|
|
81
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ E("div", {
|
|
82
81
|
className: "flex flex-wrap items-center gap-3",
|
|
83
82
|
children: [
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ T(ne, { className: `size-5 shrink-0 ${V.state === "current" ? "text-status-started" : "text-muted-foreground"}` }),
|
|
84
|
+
/* @__PURE__ */ T("h1", {
|
|
86
85
|
className: "text-xl font-semibold tracking-tight",
|
|
87
86
|
children: me
|
|
88
87
|
}),
|
|
89
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ T("span", {
|
|
90
89
|
className: "rounded-md border border-border px-1.5 py-0.5 text-xs text-muted-foreground",
|
|
91
|
-
children:
|
|
90
|
+
children: F(`states.${V.state}`)
|
|
92
91
|
}),
|
|
93
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ T("span", {
|
|
94
93
|
className: "text-sm text-muted-foreground",
|
|
95
|
-
children:
|
|
94
|
+
children: L.dayRange(V.startsOn, V.endsOn)
|
|
96
95
|
}),
|
|
97
|
-
|
|
96
|
+
V.carriedIn > 0 && /* @__PURE__ */ T("span", {
|
|
98
97
|
className: "text-sm text-muted-foreground",
|
|
99
|
-
children:
|
|
98
|
+
children: F("carriedIn", { count: V.carriedIn })
|
|
100
99
|
}),
|
|
101
|
-
|
|
100
|
+
V.carriedOut > 0 && /* @__PURE__ */ T("span", {
|
|
102
101
|
className: "text-sm text-muted-foreground",
|
|
103
|
-
children:
|
|
102
|
+
children: F("carriedOut", { count: V.carriedOut })
|
|
104
103
|
}),
|
|
105
|
-
W && $ > 0 && pe && /* @__PURE__ */
|
|
104
|
+
W && $ > 0 && pe && /* @__PURE__ */ T(g, {
|
|
106
105
|
type: "button",
|
|
107
106
|
onClick: () => X.mutate(),
|
|
108
107
|
loading: X.isPending,
|
|
109
108
|
className: "ml-auto",
|
|
110
|
-
children:
|
|
109
|
+
children: F("moveUnfinished", { count: $ })
|
|
111
110
|
})
|
|
112
111
|
]
|
|
113
112
|
}),
|
|
114
|
-
X.isError && /* @__PURE__ */
|
|
113
|
+
X.isError && /* @__PURE__ */ T(y, {
|
|
115
114
|
size: "md",
|
|
116
115
|
className: "mt-2",
|
|
117
|
-
children:
|
|
116
|
+
children: I(X.error)
|
|
118
117
|
}),
|
|
119
|
-
G !== null && X.data && /* @__PURE__ */
|
|
118
|
+
G !== null && X.data && /* @__PURE__ */ E("p", {
|
|
120
119
|
className: "mt-2 text-sm text-muted-foreground",
|
|
121
120
|
role: "status",
|
|
122
121
|
children: [
|
|
123
|
-
|
|
122
|
+
F("moved", { count: G }),
|
|
124
123
|
" ",
|
|
125
|
-
/* @__PURE__ */
|
|
124
|
+
/* @__PURE__ */ T("button", {
|
|
126
125
|
type: "button",
|
|
127
126
|
className: "text-primary hover:underline",
|
|
128
|
-
onClick: () =>
|
|
127
|
+
onClick: () => R({
|
|
129
128
|
to: "/$workspace/teams/$key/cycles/$number",
|
|
130
129
|
params: {
|
|
131
|
-
workspace:
|
|
132
|
-
key:
|
|
133
|
-
number:
|
|
130
|
+
workspace: M,
|
|
131
|
+
key: N,
|
|
132
|
+
number: se(X.data.cycle)
|
|
134
133
|
}
|
|
135
134
|
}),
|
|
136
|
-
children:
|
|
135
|
+
children: F("openCycle", { number: X.data.cycle.number })
|
|
137
136
|
})
|
|
138
137
|
]
|
|
139
138
|
}),
|
|
140
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ T("section", {
|
|
141
140
|
className: "mt-6",
|
|
142
|
-
"aria-label":
|
|
143
|
-
children: /* @__PURE__ */
|
|
141
|
+
"aria-label": F("progressTitle"),
|
|
142
|
+
children: /* @__PURE__ */ T(ie, { progress: V.progress })
|
|
144
143
|
}),
|
|
145
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ T("section", {
|
|
146
145
|
className: "mt-6 rounded-xl border border-border bg-card p-4",
|
|
147
|
-
children: /* @__PURE__ */
|
|
148
|
-
workspace:
|
|
149
|
-
teamKey:
|
|
150
|
-
cycle:
|
|
146
|
+
children: /* @__PURE__ */ T(m, {
|
|
147
|
+
workspace: M,
|
|
148
|
+
teamKey: N,
|
|
149
|
+
cycle: V
|
|
151
150
|
})
|
|
152
151
|
}),
|
|
153
|
-
Z.length > 0 && /* @__PURE__ */
|
|
152
|
+
Z.length > 0 && /* @__PURE__ */ T("div", {
|
|
154
153
|
className: "mt-8 xl:hidden",
|
|
155
|
-
children: /* @__PURE__ */
|
|
156
|
-
workspace:
|
|
154
|
+
children: /* @__PURE__ */ T(h, {
|
|
155
|
+
workspace: M,
|
|
157
156
|
issues: Z,
|
|
158
|
-
tabs:
|
|
157
|
+
tabs: j,
|
|
159
158
|
tab: K,
|
|
160
159
|
onTabChange: q,
|
|
161
160
|
focus: J,
|
|
162
161
|
onFocus: (e) => Y(e)
|
|
163
162
|
})
|
|
164
163
|
}),
|
|
165
|
-
/* @__PURE__ */
|
|
164
|
+
/* @__PURE__ */ E("section", {
|
|
166
165
|
className: "mt-8",
|
|
167
|
-
children: [J && /* @__PURE__ */
|
|
166
|
+
children: [J && /* @__PURE__ */ E("div", {
|
|
168
167
|
className: "mb-3 flex items-center gap-2 text-sm text-muted-foreground",
|
|
169
168
|
role: "status",
|
|
170
|
-
children: [
|
|
169
|
+
children: [F("issueBreakdown.showing", { count: Q.length }), /* @__PURE__ */ T(b, {
|
|
171
170
|
size: "sm",
|
|
172
171
|
variant: "ghost",
|
|
173
|
-
label:
|
|
174
|
-
icon: /* @__PURE__ */
|
|
172
|
+
label: F("issueBreakdown.showAll"),
|
|
173
|
+
icon: /* @__PURE__ */ T(te, {}),
|
|
175
174
|
onClick: () => Y(null)
|
|
176
175
|
})]
|
|
177
|
-
}), Q.length === 0 ? /* @__PURE__ */
|
|
176
|
+
}), Q.length === 0 ? /* @__PURE__ */ T(v, { title: F("noIssuesInCycle") }) : /* @__PURE__ */ T(_, {
|
|
178
177
|
size: "fill",
|
|
179
178
|
padding: "none",
|
|
180
179
|
className: "overflow-hidden",
|
|
181
|
-
children: /* @__PURE__ */
|
|
182
|
-
workspace:
|
|
180
|
+
children: /* @__PURE__ */ T(oe, {
|
|
181
|
+
workspace: M,
|
|
183
182
|
issues: Q
|
|
184
183
|
})
|
|
185
184
|
})]
|
|
186
185
|
})
|
|
187
186
|
]
|
|
188
|
-
}), Z.length > 0 && /* @__PURE__ */
|
|
189
|
-
"aria-label":
|
|
187
|
+
}), Z.length > 0 && /* @__PURE__ */ T("aside", {
|
|
188
|
+
"aria-label": F("issueBreakdown.label"),
|
|
190
189
|
className: "hidden w-80 shrink-0 overflow-y-auto border-l border-border px-4 py-6 xl:block",
|
|
191
|
-
children: /* @__PURE__ */
|
|
192
|
-
workspace:
|
|
190
|
+
children: /* @__PURE__ */ T(h, {
|
|
191
|
+
workspace: M,
|
|
193
192
|
issues: Z,
|
|
194
|
-
tabs:
|
|
193
|
+
tabs: j,
|
|
195
194
|
tab: K,
|
|
196
195
|
onTabChange: q,
|
|
197
196
|
focus: J,
|
|
@@ -201,4 +200,4 @@ function N() {
|
|
|
201
200
|
})]
|
|
202
201
|
});
|
|
203
202
|
}
|
|
204
|
-
export {
|
|
203
|
+
export { M as component };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { useNavigate as e } from "../lib/router.js";
|
|
2
|
-
import { ChevronDownIcon as t, ChevronRightIcon as n } from "./icons.js";
|
|
3
|
-
import { useTime as r } from "../lib/time.js";
|
|
4
|
-
import { cycleParam as i } from "../lib/cycleLinks.js";
|
|
5
|
-
import { byStart as a } from "../lib/cycleOrder.js";
|
|
6
|
-
import { cycleChoices as o } from "../lib/cycleSwitcher.js";
|
|
7
|
-
import { Combobox as s } from "@parallelworks/ui";
|
|
8
|
-
import { useTranslations as c } from "use-intl";
|
|
9
|
-
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
|
-
// src/components/CycleSwitcher.tsx
|
|
11
|
-
function d({ workspace: d, teamKey: f, cycles: p, cycle: m }) {
|
|
12
|
-
let h = c("planning"), g = r(), _ = e(), v = (e) => e.name ? h("cycleNamed", {
|
|
13
|
-
number: e.number,
|
|
14
|
-
name: e.name
|
|
15
|
-
}) : h("cycle", { number: e.number }), y = o([...p].sort(a), i, v, (e) => g.dayRange(e.startsOn, e.endsOn), (e) => h(`states.${e}`));
|
|
16
|
-
return /* @__PURE__ */ u("span", {
|
|
17
|
-
className: "flex min-w-0 items-center gap-1.5 text-[13px] leading-none",
|
|
18
|
-
children: [/* @__PURE__ */ l(n, {
|
|
19
|
-
"aria-hidden": "true",
|
|
20
|
-
className: "size-3 shrink-0 text-muted-foreground opacity-60 rtl:rotate-180"
|
|
21
|
-
}), /* @__PURE__ */ l(s, {
|
|
22
|
-
"aria-label": h("switchCycle"),
|
|
23
|
-
placeholder: h("findCycle"),
|
|
24
|
-
items: y,
|
|
25
|
-
value: i(m),
|
|
26
|
-
onValueChange: (e) => {
|
|
27
|
-
e !== null && e !== i(m) && _({
|
|
28
|
-
to: "/$workspace/teams/$key/cycles/$number",
|
|
29
|
-
params: {
|
|
30
|
-
workspace: d,
|
|
31
|
-
key: f,
|
|
32
|
-
number: e
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
},
|
|
36
|
-
trigger: /* @__PURE__ */ u("button", {
|
|
37
|
-
type: "button",
|
|
38
|
-
className: "flex min-w-0 cursor-pointer items-center gap-1 rounded-sm px-1 py-0.5 font-medium text-foreground hover:bg-muted",
|
|
39
|
-
children: [/* @__PURE__ */ l("span", {
|
|
40
|
-
className: "truncate",
|
|
41
|
-
children: v(m)
|
|
42
|
-
}), /* @__PURE__ */ l(t, { className: "size-3.5 shrink-0 text-muted-foreground" })]
|
|
43
|
-
})
|
|
44
|
-
})]
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
export { d as CycleSwitcher };
|