@parallelworks/tandem-web 0.194.2 → 0.194.4
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 +15 -5
- package/_virtual/_virtual_i18n/es/common.js +15 -5
- package/_virtual/_virtual_i18n/ja/common.js +15 -5
- package/_virtual/_virtual_i18n/ko/common.js +15 -5
- package/_virtual/_virtual_i18n/zh/common.js +15 -5
- package/api/queries.js +390 -390
- package/components/ShortcutSheet.js +0 -4
- package/lib/panelRequest.js +7 -1
- package/package.json +1 -1
- package/pages/issues.js +235 -240
- package/routeTree.gen.js +1 -1
- package/routes/_workspace/teams/_key/settings.js +12 -6
- package/routes/_workspace/teams/_key/settings2.js +27 -1030
- package/routes/_workspace/teams/_key/settings3.js +1049 -18
- package/routes/_workspace/teams/_key/settings4.js +18 -0
- package/routes/_workspace2.js +293 -296
package/pages/issues.js
CHANGED
|
@@ -28,96 +28,96 @@ import { isViewAt as tt, viewRef as nt } from "../lib/refs.js";
|
|
|
28
28
|
import { useCan as rt } from "../lib/roles.js";
|
|
29
29
|
import { useNavigate as it } from "../lib/router.js";
|
|
30
30
|
import { useShortcuts as at } from "../lib/shortcuts.js";
|
|
31
|
-
import { issuesHref as
|
|
32
|
-
import { filtersOf as
|
|
33
|
-
import { ActionMenu as
|
|
34
|
-
import { useParams as
|
|
35
|
-
import { memo as
|
|
36
|
-
import { useTranslations as
|
|
37
|
-
import { Fragment as
|
|
38
|
-
import { keepPreviousData as
|
|
39
|
-
import { ListFilterBar as
|
|
31
|
+
import { issuesHref as u } from "../lib/teamPaths.js";
|
|
32
|
+
import { filtersOf as ot, sameFilters as st, useSavedViews as ct, useViewMenu as lt, viewSearch as ut } from "../lib/views.js";
|
|
33
|
+
import { ActionMenu as dt, Button as d, ConfirmModal as ft, Field as pt, IconButton as mt, SearchInput as ht, Select as gt, Tabs as _t, useOpenMenu as vt } from "@parallelworks/ui";
|
|
34
|
+
import { useParams as yt, useSearch as bt } from "@tanstack/react-router";
|
|
35
|
+
import { memo as f, useCallback as xt, useEffect as St, useMemo as p, useRef as m, useState as h, useSyncExternalStore as Ct } from "react";
|
|
36
|
+
import { useTranslations as g } from "use-intl";
|
|
37
|
+
import { Fragment as wt, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
38
|
+
import { keepPreviousData as Tt, useInfiniteQuery as Et, useQuery as y, useSuspenseQuery as Dt } from "@tanstack/react-query";
|
|
39
|
+
import { ListFilterBar as Ot, ListFilterMenu as kt, ListSkeleton as At, MoreButton as jt } from "@parallelworks/ui/list";
|
|
40
40
|
// src/pages/issues.tsx
|
|
41
|
-
var
|
|
41
|
+
var Mt = {
|
|
42
42
|
status: "status",
|
|
43
43
|
priority: "priority",
|
|
44
44
|
project: "project",
|
|
45
45
|
type: "type"
|
|
46
|
-
},
|
|
47
|
-
function
|
|
46
|
+
}, Nt = [];
|
|
47
|
+
function Pt({ team: e, ...t }) {
|
|
48
48
|
return t;
|
|
49
49
|
}
|
|
50
|
-
var
|
|
51
|
-
let t = globalThis.matchMedia?.(
|
|
50
|
+
var Ft = 3, It = "(max-width: 639px)", Lt = () => globalThis.matchMedia?.(It).matches ?? !1, Rt = (e) => {
|
|
51
|
+
let t = globalThis.matchMedia?.(It);
|
|
52
52
|
return t?.addEventListener("change", e), () => t?.removeEventListener("change", e);
|
|
53
|
-
},
|
|
54
|
-
function
|
|
53
|
+
}, zt = (e) => `saved:${nt(e)}`;
|
|
54
|
+
function Bt(e, t, n) {
|
|
55
55
|
let r = t && !e.some((e) => e.id === t.id) ? [...e, t] : e, i = r.slice(0, n);
|
|
56
56
|
return t && !i.some((e) => e.id === t.id) && (i = [...i.slice(0, n - 1), t]), {
|
|
57
57
|
shown: i,
|
|
58
58
|
more: r.filter((e) => !i.some((t) => t.id === e.id))
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Vt(e) {
|
|
62
62
|
let { assignee: t, creator: n, ...r } = e;
|
|
63
63
|
return n ? {
|
|
64
64
|
...r,
|
|
65
65
|
creator: n
|
|
66
66
|
} : r;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
let
|
|
70
|
-
...
|
|
71
|
-
team:
|
|
72
|
-
} : c ?
|
|
73
|
-
...
|
|
68
|
+
function Ht({ person: c } = {}) {
|
|
69
|
+
let f = g("issues"), It = g("planning"), Ht = g("common"), { workspace: b, key: x } = yt({ strict: !1 }), S = bt({ strict: !1 }), C = x ? {
|
|
70
|
+
...S,
|
|
71
|
+
team: x
|
|
72
|
+
} : c ? S.creator ? {
|
|
73
|
+
...Vt(S),
|
|
74
74
|
creator: c
|
|
75
75
|
} : {
|
|
76
|
-
...
|
|
76
|
+
...S,
|
|
77
77
|
assignee: c
|
|
78
|
-
} :
|
|
78
|
+
} : S, Gt = it(), Kt = (e) => c ? u(b, { ...Vt(e) }).replace(`/${b}/issues`, `/${b}/people/${encodeURIComponent(c)}`) : u(b, { ...e }), w = (e, t) => {
|
|
79
79
|
let { team: n, ...r } = e;
|
|
80
|
-
return
|
|
80
|
+
return Gt(c ? {
|
|
81
81
|
to: "/$workspace/people/$username",
|
|
82
82
|
params: {
|
|
83
|
-
workspace:
|
|
83
|
+
workspace: b,
|
|
84
84
|
username: c
|
|
85
85
|
},
|
|
86
|
-
search:
|
|
86
|
+
search: Vt(r),
|
|
87
87
|
...t && { replace: t }
|
|
88
88
|
} : n ? {
|
|
89
89
|
to: "/$workspace/teams/$key/issues",
|
|
90
90
|
params: {
|
|
91
|
-
workspace:
|
|
91
|
+
workspace: b,
|
|
92
92
|
key: n
|
|
93
93
|
},
|
|
94
94
|
search: r,
|
|
95
95
|
...t && { replace: t }
|
|
96
96
|
} : {
|
|
97
97
|
to: "/$workspace/issues",
|
|
98
|
-
params: { workspace:
|
|
98
|
+
params: { workspace: b },
|
|
99
99
|
search: r,
|
|
100
100
|
...t && { replace: t }
|
|
101
101
|
});
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
let
|
|
105
|
-
|
|
106
|
-
let { data:
|
|
107
|
-
|
|
102
|
+
}, qt = m((e) => w(e, !0));
|
|
103
|
+
qt.current = (e) => w(e, !0);
|
|
104
|
+
let Jt = m((e) => w(l(C, "q", e), !0));
|
|
105
|
+
Jt.current = (e) => w(l(C, "q", e), !0);
|
|
106
|
+
let { data: Yt } = Dt(a), { data: T } = Dt(te(b)), Xt = Je(), E = C.view ?? "active", [Zt, Qt] = h(C.q ?? ""), $t = m(null);
|
|
107
|
+
St(() => {
|
|
108
108
|
let e = setTimeout(() => {
|
|
109
|
-
(
|
|
109
|
+
(C.q ?? "") !== Zt && Jt.current(Zt);
|
|
110
110
|
}, 250);
|
|
111
111
|
return () => clearTimeout(e);
|
|
112
|
-
}, [
|
|
113
|
-
let { data:
|
|
114
|
-
...ee(
|
|
115
|
-
enabled: !!
|
|
116
|
-
}),
|
|
112
|
+
}, [Zt, C.q]);
|
|
113
|
+
let { data: en } = y({
|
|
114
|
+
...ee(b, C.team ?? ""),
|
|
115
|
+
enabled: !!C.status && !!C.team
|
|
116
|
+
}), tn = Ve(C, en), nn = !C.status || !C.team || !!en, rn = be(), { nameOf: an, avatarOf: on } = $e(b), sn = C.saved ? {} : Ie(), { data: cn } = y(Te(b)), D = T.find((e) => e.key === C.team), O = p(() => De(cn, D ? [D.id] : T.map((e) => e.id)), [
|
|
117
117
|
cn,
|
|
118
118
|
D,
|
|
119
|
-
|
|
120
|
-
]), k =
|
|
119
|
+
T
|
|
120
|
+
]), k = g("customFields"), ln = g("issueTypes"), { data: un } = y(Ke(b)), dn = p(() => (un ?? []).filter((e) => !e.archivedAt && (!D || e.teamIds.length === 0 || e.teamIds.includes(D.id))), [un, D]), A = Be(C.order, O) ? C.order : Be(sn.order, O) ? sn.order : "updated", j = ze(C.group, O) ? C.group : ze(sn.group, O) ? sn.group : "status", fn = O.find((e) => e.id === Ee(j)), [pn, mn] = h(() => Ne(b)), hn = p(() => O.filter((e) => pn.includes(e.id)), [O, pn]), M = C.layout === "board" || !C.layout && sn.layout === "board", [N, gn] = h(() => {
|
|
121
121
|
try {
|
|
122
122
|
return localStorage.getItem(Me) !== "hidden";
|
|
123
123
|
} catch {
|
|
@@ -128,7 +128,7 @@ function Ut({ person: c } = {}) {
|
|
|
128
128
|
localStorage.setItem(Me, e ? "hidden" : "shown");
|
|
129
129
|
} catch {}
|
|
130
130
|
return !e;
|
|
131
|
-
}), [vn, yn] =
|
|
131
|
+
}), [vn, yn] = h(() => {
|
|
132
132
|
try {
|
|
133
133
|
return localStorage.getItem(Ae) === "shown";
|
|
134
134
|
} catch {
|
|
@@ -139,12 +139,12 @@ function Ut({ person: c } = {}) {
|
|
|
139
139
|
localStorage.setItem(Ae, e ? "hidden" : "shown");
|
|
140
140
|
} catch {}
|
|
141
141
|
return !e;
|
|
142
|
-
}), [xn, Sn] =
|
|
143
|
-
...r(
|
|
144
|
-
placeholderData:
|
|
145
|
-
enabled:
|
|
142
|
+
}), [xn, Sn] = h("assignees"), Cn = p(() => ue(C.breakdown), [C.breakdown]), wn = (e) => w(l(C, "breakdown", ce(e) ?? ""), !0), Tn = se(Cn) > 0, P = !M && !Tn && !C.status && Ye.includes(j) && n.includes(A) ? j : void 0, F = Et({
|
|
143
|
+
...r(b, tn),
|
|
144
|
+
placeholderData: Tt,
|
|
145
|
+
enabled: nn && (!P || N)
|
|
146
146
|
}), { hasNextPage: En, isFetchingNextPage: Dn, fetchNextPage: On } = F, kn = !P || N;
|
|
147
|
-
|
|
147
|
+
St(() => {
|
|
148
148
|
kn && En && !Dn && !F.error && On();
|
|
149
149
|
}, [
|
|
150
150
|
kn,
|
|
@@ -153,27 +153,27 @@ function Ut({ person: c } = {}) {
|
|
|
153
153
|
F.error,
|
|
154
154
|
On
|
|
155
155
|
]);
|
|
156
|
-
let I =
|
|
157
|
-
...t(
|
|
158
|
-
placeholderData:
|
|
159
|
-
enabled:
|
|
160
|
-
}), L = Xe(
|
|
156
|
+
let I = y({
|
|
157
|
+
...t(b, ot(C), P ?? "status"),
|
|
158
|
+
placeholderData: Tt,
|
|
159
|
+
enabled: nn && !!P
|
|
160
|
+
}), L = Xe(b, tn, P ?? "status", A, I.data?.byKey, nn && !!P), R = P ? I.data : F.data, An = P ? I.error ?? L.error : F.error, jn = P ? I.isFetching : F.isFetching, z = P ? L.fetching : !!En, B = P ? L.complete : !En, Mn = p(() => F.data?.pages.flatMap((e) => e.issues) ?? [], [F.data]), V = p(() => P ? [...L.issues.values()].flat() : Mn, [
|
|
161
161
|
P,
|
|
162
162
|
L.issues,
|
|
163
163
|
Mn
|
|
164
|
-
]), { data: Nn } =
|
|
165
|
-
...o(
|
|
164
|
+
]), { data: Nn } = y({
|
|
165
|
+
...o(b),
|
|
166
166
|
enabled: P === "project"
|
|
167
|
-
}), Pn = Tn ? V.filter((e) => le(e, Cn)) : V, Fn =
|
|
168
|
-
status: (e) =>
|
|
169
|
-
priority: (e) =>
|
|
170
|
-
person:
|
|
171
|
-
avatar:
|
|
167
|
+
}), Pn = Tn ? V.filter((e) => le(e, Cn)) : V, Fn = p(() => Le(Ue(Pn, A, O), j, {
|
|
168
|
+
status: (e) => f(`groups.${e}`),
|
|
169
|
+
priority: (e) => rn[e] ?? "",
|
|
170
|
+
person: an,
|
|
171
|
+
avatar: on,
|
|
172
172
|
none: {
|
|
173
|
-
assignee:
|
|
174
|
-
project:
|
|
175
|
-
label:
|
|
176
|
-
all:
|
|
173
|
+
assignee: f("noAssignee"),
|
|
174
|
+
project: f("noProject"),
|
|
175
|
+
label: f("noLabel"),
|
|
176
|
+
all: f("all")
|
|
177
177
|
},
|
|
178
178
|
noField: (e) => k("noField", { name: e }),
|
|
179
179
|
yes: k("yes"),
|
|
@@ -183,16 +183,16 @@ function Ut({ person: c } = {}) {
|
|
|
183
183
|
Pn,
|
|
184
184
|
A,
|
|
185
185
|
j,
|
|
186
|
-
|
|
186
|
+
f,
|
|
187
187
|
k,
|
|
188
188
|
ln,
|
|
189
|
+
rn,
|
|
189
190
|
an,
|
|
190
191
|
on,
|
|
191
|
-
sn,
|
|
192
192
|
M,
|
|
193
193
|
O,
|
|
194
194
|
dn
|
|
195
|
-
]), H =
|
|
195
|
+
]), H = p(() => {
|
|
196
196
|
if (!P) return Fn;
|
|
197
197
|
let e = I.data?.byKey, t = Fn;
|
|
198
198
|
if (P === "project") {
|
|
@@ -213,23 +213,23 @@ function Ut({ person: c } = {}) {
|
|
|
213
213
|
I.data,
|
|
214
214
|
Nn,
|
|
215
215
|
L.more
|
|
216
|
-
]), U =
|
|
217
|
-
...t(
|
|
216
|
+
]), U = p(() => H.flatMap((e) => e.issues), [H]), In = p(() => new Map(U.map((e, t) => [e.id, t])), [U]), Ln = !Tn && !C.status ? Mt[j] : void 0, { data: Rn } = y({
|
|
217
|
+
...t(b, ot(C), Ln ?? "status"),
|
|
218
218
|
enabled: z && !!Ln
|
|
219
|
-
}), zn =
|
|
219
|
+
}), zn = xt((e) => P ? I.data?.byKey.get(e.key) ?? e.issues.length : z && Rn?.byKey.get(e.key) || e.issues.length, [
|
|
220
220
|
P,
|
|
221
221
|
I.data,
|
|
222
222
|
z,
|
|
223
223
|
Rn
|
|
224
|
-
]), Bn =
|
|
224
|
+
]), Bn = p(() => new Map(T.map((e) => [e.id, e])), [T]), [Vn, Hn] = h(0), W = U[Math.min(Vn, U.length - 1)], [G, K] = h(/* @__PURE__ */ new Set()), Un = m(null), Wn = Ge(b), Gn = Ce(b, T), { people: Kn } = qe(), qn = p(() => {
|
|
225
225
|
let e = /* @__PURE__ */ new Map();
|
|
226
226
|
for (let t of Kn) {
|
|
227
|
-
if (!t.identifier || t.username ===
|
|
227
|
+
if (!t.identifier || t.username === Yt?.user.username) continue;
|
|
228
228
|
let n = e.get(t.identifier) ?? /* @__PURE__ */ new Set();
|
|
229
229
|
n.add(t.username), e.set(t.identifier, n);
|
|
230
230
|
}
|
|
231
231
|
return new Map([...e].map(([e, t]) => [e, [...t]]));
|
|
232
|
-
}, [Kn,
|
|
232
|
+
}, [Kn, Yt?.user.username]), Jn = vt(), Yn = p(() => U.filter((e) => G.has(e.id)), [U, G]);
|
|
233
233
|
Qe(Yn);
|
|
234
234
|
let Xn = (e) => K((t) => {
|
|
235
235
|
let n = new Set(t);
|
|
@@ -252,7 +252,7 @@ function Ut({ person: c } = {}) {
|
|
|
252
252
|
}, er = (e, t) => {
|
|
253
253
|
let n = G.has(t.id) ? U.filter((e) => G.has(e.id)) : [t];
|
|
254
254
|
G.has(t.id) || K(/* @__PURE__ */ new Set()), Jn(e, Wn(n));
|
|
255
|
-
}, tr =
|
|
255
|
+
}, tr = m({
|
|
256
256
|
pick: Qn,
|
|
257
257
|
select: Hn,
|
|
258
258
|
click: $n,
|
|
@@ -264,8 +264,8 @@ function Ut({ person: c } = {}) {
|
|
|
264
264
|
click: $n,
|
|
265
265
|
menu: er
|
|
266
266
|
};
|
|
267
|
-
let [J, nr] =
|
|
268
|
-
|
|
267
|
+
let [J, nr] = h(!1);
|
|
268
|
+
St(() => {
|
|
269
269
|
J && (B || An) && (K(new Set(U.map((e) => e.id))), nr(!1));
|
|
270
270
|
}, [
|
|
271
271
|
J,
|
|
@@ -273,14 +273,14 @@ function Ut({ person: c } = {}) {
|
|
|
273
273
|
An,
|
|
274
274
|
U
|
|
275
275
|
]);
|
|
276
|
-
let { data: rr } =
|
|
277
|
-
...t(
|
|
276
|
+
let { data: rr } = y({
|
|
277
|
+
...t(b, ot(C), "status"),
|
|
278
278
|
enabled: J
|
|
279
279
|
}), ir = () => {
|
|
280
280
|
K(new Set(U.map((e) => e.id))), P && L.loadAll(), nr(!B);
|
|
281
281
|
}, ar = () => {
|
|
282
282
|
K(/* @__PURE__ */ new Set()), nr(!1);
|
|
283
|
-
}, or =
|
|
283
|
+
}, or = m(null), sr = (e) => {
|
|
284
284
|
if (J) return;
|
|
285
285
|
let t = G.size > 0 ? Yn : W ? [W] : [];
|
|
286
286
|
if (t.length === 0) return;
|
|
@@ -289,7 +289,7 @@ function Ut({ person: c } = {}) {
|
|
|
289
289
|
}, Y = (e) => () => {
|
|
290
290
|
let t = sr(e), n = G.size > 0 && or.current || W && document.getElementById(`row-${W.id}`);
|
|
291
291
|
t && "items" in t && t.items && n && Jn(n, t.items);
|
|
292
|
-
}, [cr, lr] =
|
|
292
|
+
}, [cr, lr] = h(null), ur = () => {
|
|
293
293
|
let e = sr("⌫");
|
|
294
294
|
e && "onClick" in e && lr(() => e.onClick);
|
|
295
295
|
};
|
|
@@ -313,37 +313,32 @@ function Ut({ person: c } = {}) {
|
|
|
313
313
|
d: Y("D"),
|
|
314
314
|
Backspace: ur,
|
|
315
315
|
Delete: ur,
|
|
316
|
-
Enter: () => W &&
|
|
316
|
+
Enter: () => W && Gt({
|
|
317
317
|
to: "/$workspace/issues/$identifier",
|
|
318
318
|
params: {
|
|
319
|
-
workspace:
|
|
319
|
+
workspace: b,
|
|
320
320
|
identifier: W.identifier
|
|
321
321
|
}
|
|
322
322
|
})
|
|
323
323
|
},
|
|
324
324
|
Escape: ar,
|
|
325
|
-
"/": () =>
|
|
326
|
-
})
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
let dr = p(null), X = w.find((e) => e.key === S.team), fr = de(y, S, (e) => C(fe(S, e), !0), !!b && !S.assignee && !S.creator && !S.saved && !S.scope), pr = ot(y, { ...l(S, "q", void 0) }), { views: mr, create: hr, update: gr } = lt(y), Z = mr.find((e) => tt(e, S.saved)), { data: _r = [] } = v({
|
|
333
|
-
...s(y, S.team ?? ""),
|
|
334
|
-
enabled: !!b && !c
|
|
335
|
-
}), vr = ut(y), { data: yr } = v(i(y)), { data: br } = v(o(y)), { data: xr } = v({
|
|
336
|
-
...e(y, X?.key ?? ""),
|
|
325
|
+
"/": () => $t.current?.focus()
|
|
326
|
+
});
|
|
327
|
+
let dr = m(null), X = T.find((e) => e.key === C.team), fr = de(b, C, (e) => w(fe(C, e), !0), !!x && !C.assignee && !C.creator && !C.saved && !C.scope), pr = u(b, { ...l(C, "q", void 0) }), { views: mr, create: hr, update: gr } = ct(b), Z = mr.find((e) => tt(e, C.saved)), { data: _r = [] } = y({
|
|
328
|
+
...s(b, C.team ?? ""),
|
|
329
|
+
enabled: !!x && !c
|
|
330
|
+
}), vr = lt(b), { data: yr } = y(i(b)), { data: br } = y(o(b)), { data: xr } = y({
|
|
331
|
+
...e(b, X?.key ?? ""),
|
|
337
332
|
enabled: !!X
|
|
338
333
|
});
|
|
339
|
-
|
|
340
|
-
let e = /^[0-9a-f]{8}-[0-9a-f]{4}-/i, t = { ...
|
|
341
|
-
|
|
342
|
-
let r = br?.find((e) => e.id ===
|
|
343
|
-
|
|
344
|
-
let i = xr?.find((e) => String(e.number) ===
|
|
345
|
-
i && (t.cycle = i.id),
|
|
346
|
-
let a = ue(
|
|
334
|
+
St(() => {
|
|
335
|
+
let e = /^[0-9a-f]{8}-[0-9a-f]{4}-/i, t = { ...C }, n = yr?.find((e) => e.id === C.label);
|
|
336
|
+
C.label && e.test(C.label) && n && (t.label = n.name);
|
|
337
|
+
let r = br?.find((e) => e.id === C.project);
|
|
338
|
+
C.project && e.test(C.project) && r && (t.project = et(r));
|
|
339
|
+
let i = xr?.find((e) => String(e.number) === C.cycle);
|
|
340
|
+
i && (t.cycle = i.id), C.saved && e.test(C.saved) && Z && (t.saved = nt(Z));
|
|
341
|
+
let a = ue(C.breakdown), o = we(a, {
|
|
347
342
|
...yr && { labels: new Set(yr.map((e) => e.id)) },
|
|
348
343
|
...br && { projects: new Set(br.map((e) => e.id)) }
|
|
349
344
|
});
|
|
@@ -351,185 +346,185 @@ function Ut({ person: c } = {}) {
|
|
|
351
346
|
let e = ce(o);
|
|
352
347
|
e ? t.breakdown = e : delete t.breakdown;
|
|
353
348
|
}
|
|
354
|
-
JSON.stringify(t) !== JSON.stringify(
|
|
349
|
+
JSON.stringify(t) !== JSON.stringify(C) && qt.current(t);
|
|
355
350
|
}, [
|
|
356
|
-
|
|
351
|
+
C,
|
|
357
352
|
yr,
|
|
358
353
|
br,
|
|
359
354
|
xr,
|
|
360
355
|
Z
|
|
361
356
|
]);
|
|
362
|
-
let Sr =
|
|
363
|
-
...
|
|
357
|
+
let Sr = ot({
|
|
358
|
+
...C,
|
|
364
359
|
...A !== "updated" && { order: A },
|
|
365
360
|
...j !== "status" && { group: j },
|
|
366
361
|
...M && { layout: "board" }
|
|
367
362
|
}), Cr = Z && {
|
|
368
|
-
...
|
|
363
|
+
...C.team && { team: C.team },
|
|
369
364
|
...Z.filters
|
|
370
|
-
}, wr = Cr ? !
|
|
365
|
+
}, wr = Cr ? !st(Cr, Sr) : Object.keys(Sr).length > 0, Tr = rt(b, "save_views"), [Er, Dr] = h(!1), Q = g("savedViews"), $ = Yt?.user.username, Or = !Z && !X && (!C.assigneeKind && C.assignee === $ && !C.creator || C.creator === $ && !C.assignee), kr = c ?? (Or ? $ : void 0), Ar = Z?.name ?? X?.name ?? (c && c !== $ ? f("personIssues", { name: an("user", c) }) : !C.assigneeKind && C.assignee === $ || C.creator === $ ? f("mine") : f("all")), jr = g("workspace");
|
|
371
366
|
Ze(...X && !Z ? [jr("issues"), X.name] : [Ar]);
|
|
372
|
-
let Mr =
|
|
367
|
+
let Mr = Ct(Rt, Lt), Nr = Bt(x && !c ? _r : [], Z, Mr ? +!!Z : Ft), Pr = wr && /* @__PURE__ */ v(wt, { children: [Z?.canEdit && /* @__PURE__ */ _(d, {
|
|
373
368
|
type: "button",
|
|
374
369
|
size: "sm",
|
|
375
370
|
loading: gr.isPending,
|
|
376
371
|
onClick: () => gr.mutate({
|
|
377
372
|
id: Z.id,
|
|
378
|
-
filters: Z.filters.team ? Sr :
|
|
373
|
+
filters: Z.filters.team ? Sr : Pt(Sr)
|
|
379
374
|
}),
|
|
380
375
|
children: Q("update")
|
|
381
|
-
}), /* @__PURE__ */
|
|
376
|
+
}), /* @__PURE__ */ _(d, {
|
|
382
377
|
type: "button",
|
|
383
378
|
size: "sm",
|
|
384
379
|
onClick: () => Dr(!0),
|
|
385
380
|
children: Q(Z ? "saveAsNew" : "save")
|
|
386
381
|
})] });
|
|
387
|
-
return /* @__PURE__ */
|
|
382
|
+
return /* @__PURE__ */ v("div", {
|
|
388
383
|
className: "flex h-full flex-col",
|
|
389
384
|
children: [
|
|
390
|
-
/* @__PURE__ */
|
|
385
|
+
/* @__PURE__ */ v("header", {
|
|
391
386
|
className: "flex min-h-12 shrink-0 flex-wrap items-center gap-x-3 gap-y-2 border-b border-border px-4 py-2 md:px-5",
|
|
392
387
|
children: [
|
|
393
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ _("h1", {
|
|
394
389
|
className: "text-sm font-semibold whitespace-nowrap",
|
|
395
390
|
children: Ar
|
|
396
391
|
}),
|
|
397
|
-
/* @__PURE__ */
|
|
398
|
-
workspace:
|
|
392
|
+
/* @__PURE__ */ _(re, {
|
|
393
|
+
workspace: b,
|
|
399
394
|
kind: "view",
|
|
400
395
|
target: pr,
|
|
401
|
-
label:
|
|
396
|
+
label: E === "active" ? Ar : f("favoriteLabel", {
|
|
402
397
|
title: Ar,
|
|
403
|
-
view:
|
|
398
|
+
view: f(`views.${E}`)
|
|
404
399
|
})
|
|
405
400
|
}),
|
|
406
|
-
kr && /* @__PURE__ */
|
|
401
|
+
kr && /* @__PURE__ */ _(_t, {
|
|
407
402
|
variant: "segmented",
|
|
408
403
|
size: "sm",
|
|
409
|
-
label:
|
|
404
|
+
label: f("mineScope"),
|
|
410
405
|
items: ["assigned", "created"].map((e) => ({
|
|
411
406
|
value: e,
|
|
412
|
-
label:
|
|
413
|
-
href:
|
|
414
|
-
...
|
|
407
|
+
label: f(`mineScopes.${e}`),
|
|
408
|
+
href: Kt({
|
|
409
|
+
...C.view && { view: C.view },
|
|
415
410
|
...e === "assigned" ? { assignee: kr } : { creator: kr }
|
|
416
411
|
})
|
|
417
412
|
})),
|
|
418
|
-
value:
|
|
413
|
+
value: C.creator ? "created" : "assigned"
|
|
419
414
|
}),
|
|
420
|
-
Z && /* @__PURE__ */
|
|
415
|
+
Z && /* @__PURE__ */ _(jt, {
|
|
421
416
|
visible: !0,
|
|
422
417
|
items: () => vr.menu(Z),
|
|
423
|
-
label:
|
|
418
|
+
label: Ht("moreActionsFor", { name: Z.name })
|
|
424
419
|
}),
|
|
425
|
-
/* @__PURE__ */
|
|
420
|
+
/* @__PURE__ */ _(_t, {
|
|
426
421
|
variant: "segmented",
|
|
427
422
|
size: "sm",
|
|
428
|
-
label:
|
|
423
|
+
label: f("view"),
|
|
429
424
|
items: [...Object.keys(We).map((e) => ({
|
|
430
425
|
value: e,
|
|
431
|
-
label:
|
|
432
|
-
href:
|
|
433
|
-
...
|
|
426
|
+
label: f(`views.${e}`),
|
|
427
|
+
href: Kt(Z ? {
|
|
428
|
+
...C.team && { team: C.team },
|
|
434
429
|
...e !== "active" && { view: e }
|
|
435
|
-
} : l(
|
|
430
|
+
} : l(C, "view", e === "active" ? void 0 : e))
|
|
436
431
|
})), ...Nr.shown.map((e) => ({
|
|
437
|
-
value:
|
|
432
|
+
value: zt(e),
|
|
438
433
|
label: e.name,
|
|
439
|
-
href:
|
|
440
|
-
...
|
|
441
|
-
team: e.filters.team ??
|
|
434
|
+
href: u(b, {
|
|
435
|
+
...ut(e),
|
|
436
|
+
team: e.filters.team ?? C.team
|
|
442
437
|
})
|
|
443
438
|
}))],
|
|
444
|
-
value: Z ?
|
|
439
|
+
value: Z ? zt(Z) : E,
|
|
445
440
|
className: "max-w-full flex-wrap",
|
|
446
|
-
end: Nr.more.length > 0 && /* @__PURE__ */
|
|
441
|
+
end: Nr.more.length > 0 && /* @__PURE__ */ _(dt, {
|
|
447
442
|
label: Q("title"),
|
|
448
443
|
items: Nr.more.map((e) => ({
|
|
449
444
|
label: e.name,
|
|
450
|
-
href:
|
|
451
|
-
...
|
|
452
|
-
team: e.filters.team ??
|
|
445
|
+
href: u(b, {
|
|
446
|
+
...ut(e),
|
|
447
|
+
team: e.filters.team ?? C.team
|
|
453
448
|
})
|
|
454
449
|
})),
|
|
455
|
-
trigger: /* @__PURE__ */
|
|
450
|
+
trigger: /* @__PURE__ */ _(d, {
|
|
456
451
|
size: "sm",
|
|
457
452
|
variant: "ghost",
|
|
458
453
|
children: Q("more", { count: Nr.more.length })
|
|
459
454
|
})
|
|
460
455
|
})
|
|
461
456
|
}),
|
|
462
|
-
/* @__PURE__ */
|
|
457
|
+
/* @__PURE__ */ v("div", {
|
|
463
458
|
className: "flex w-full min-w-0 flex-wrap items-center gap-2 md:ml-auto md:w-auto md:flex-nowrap",
|
|
464
459
|
children: [
|
|
465
460
|
fr.count === 0 && Pr,
|
|
466
|
-
/* @__PURE__ */
|
|
467
|
-
ref:
|
|
468
|
-
value:
|
|
469
|
-
onValueChange:
|
|
470
|
-
onKeyDown: (e) => e.key === "Escape" && !
|
|
471
|
-
placeholder:
|
|
472
|
-
label:
|
|
473
|
-
"aria-keyshortcuts": "/
|
|
461
|
+
/* @__PURE__ */ _(ht, {
|
|
462
|
+
ref: $t,
|
|
463
|
+
value: Zt,
|
|
464
|
+
onValueChange: Qt,
|
|
465
|
+
onKeyDown: (e) => e.key === "Escape" && !Zt && e.currentTarget.blur(),
|
|
466
|
+
placeholder: f("search"),
|
|
467
|
+
label: f("search"),
|
|
468
|
+
"aria-keyshortcuts": "/",
|
|
474
469
|
size: "sm",
|
|
475
470
|
className: "min-w-0 flex-1 max-md:order-first max-md:basis-full md:w-56 md:flex-initial"
|
|
476
471
|
}),
|
|
477
|
-
/* @__PURE__ */
|
|
478
|
-
/* @__PURE__ */
|
|
472
|
+
/* @__PURE__ */ _(kt, { filters: fr }),
|
|
473
|
+
/* @__PURE__ */ v(ne, {
|
|
479
474
|
layouts: [{
|
|
480
475
|
value: "list",
|
|
481
|
-
label:
|
|
482
|
-
icon: /* @__PURE__ */
|
|
476
|
+
label: f("layouts.list"),
|
|
477
|
+
icon: /* @__PURE__ */ _(ve, {})
|
|
483
478
|
}, {
|
|
484
479
|
value: "board",
|
|
485
|
-
label:
|
|
486
|
-
icon: /* @__PURE__ */
|
|
480
|
+
label: f("layouts.board"),
|
|
481
|
+
icon: /* @__PURE__ */ _(he, {})
|
|
487
482
|
}],
|
|
488
483
|
layout: M ? "board" : "list",
|
|
489
484
|
onLayoutChange: (e) => {
|
|
490
|
-
Pe({ layout: e }),
|
|
485
|
+
Pe({ layout: e }), w(l(C, "layout", e === "board" ? "board" : void 0));
|
|
491
486
|
},
|
|
492
487
|
changed: A !== "updated" || j !== "status" || M,
|
|
493
488
|
children: [
|
|
494
|
-
/* @__PURE__ */
|
|
495
|
-
label:
|
|
496
|
-
children: /* @__PURE__ */
|
|
489
|
+
/* @__PURE__ */ _(pt, {
|
|
490
|
+
label: f("orderBy"),
|
|
491
|
+
children: /* @__PURE__ */ _(gt, {
|
|
497
492
|
value: A,
|
|
498
493
|
items: [...He.map((e) => ({
|
|
499
494
|
value: e,
|
|
500
|
-
label:
|
|
495
|
+
label: f(`order.${e}`)
|
|
501
496
|
})), ...O.filter((e) => ke.includes(e.kind)).map((e) => ({
|
|
502
497
|
value: `field:${e.id}`,
|
|
503
498
|
label: e.name
|
|
504
499
|
}))],
|
|
505
500
|
onValueChange: (e) => {
|
|
506
|
-
Pe({ order: e }),
|
|
501
|
+
Pe({ order: e }), w(l(C, "order", e === "updated" ? void 0 : e));
|
|
507
502
|
},
|
|
508
|
-
"aria-label":
|
|
503
|
+
"aria-label": f("orderBy"),
|
|
509
504
|
size: "sm"
|
|
510
505
|
})
|
|
511
506
|
}),
|
|
512
|
-
/* @__PURE__ */
|
|
513
|
-
label:
|
|
514
|
-
children: /* @__PURE__ */
|
|
507
|
+
/* @__PURE__ */ _(pt, {
|
|
508
|
+
label: f("groupBy"),
|
|
509
|
+
children: /* @__PURE__ */ _(gt, {
|
|
515
510
|
value: j,
|
|
516
511
|
items: [...Re.map((e) => ({
|
|
517
512
|
value: e,
|
|
518
|
-
label:
|
|
513
|
+
label: f(`grouping.${e}`)
|
|
519
514
|
})), ...O.filter((e) => Oe.includes(e.kind)).map((e) => ({
|
|
520
515
|
value: `field:${e.id}`,
|
|
521
516
|
label: e.name
|
|
522
517
|
}))],
|
|
523
518
|
onValueChange: (e) => {
|
|
524
|
-
Pe({ group: e }),
|
|
519
|
+
Pe({ group: e }), w(l(C, "group", e === "status" ? void 0 : e));
|
|
525
520
|
},
|
|
526
|
-
"aria-label":
|
|
521
|
+
"aria-label": f("groupBy"),
|
|
527
522
|
size: "sm"
|
|
528
523
|
})
|
|
529
524
|
}),
|
|
530
|
-
O.length > 0 && /* @__PURE__ */
|
|
525
|
+
O.length > 0 && /* @__PURE__ */ _(pt, {
|
|
531
526
|
label: k("onRows"),
|
|
532
|
-
children: /* @__PURE__ */
|
|
527
|
+
children: /* @__PURE__ */ _(gt, {
|
|
533
528
|
multiple: !0,
|
|
534
529
|
value: pn.filter((e) => O.some((t) => t.id === e)),
|
|
535
530
|
items: O.map((e) => ({
|
|
@@ -537,7 +532,7 @@ function Ut({ person: c } = {}) {
|
|
|
537
532
|
label: e.name
|
|
538
533
|
})),
|
|
539
534
|
onValueChange: (e) => {
|
|
540
|
-
Fe(
|
|
535
|
+
Fe(b, e), mn(e);
|
|
541
536
|
},
|
|
542
537
|
placeholder: k("noneOnRows"),
|
|
543
538
|
"aria-label": k("onRows"),
|
|
@@ -546,20 +541,20 @@ function Ut({ person: c } = {}) {
|
|
|
546
541
|
})
|
|
547
542
|
]
|
|
548
543
|
}),
|
|
549
|
-
/* @__PURE__ */
|
|
544
|
+
/* @__PURE__ */ _(mt, {
|
|
550
545
|
variant: "secondary",
|
|
551
546
|
size: "sm",
|
|
552
|
-
icon: /* @__PURE__ */
|
|
553
|
-
label:
|
|
547
|
+
icon: /* @__PURE__ */ _(ye, { className: "size-3.5" }),
|
|
548
|
+
label: f(N ? "hidePanel" : "showPanel"),
|
|
554
549
|
"aria-pressed": N,
|
|
555
550
|
onClick: _n,
|
|
556
551
|
className: "max-xl:hidden"
|
|
557
552
|
}),
|
|
558
|
-
/* @__PURE__ */
|
|
553
|
+
/* @__PURE__ */ _(mt, {
|
|
559
554
|
variant: "secondary",
|
|
560
555
|
size: "sm",
|
|
561
|
-
icon: /* @__PURE__ */
|
|
562
|
-
label:
|
|
556
|
+
icon: /* @__PURE__ */ _(ge, { className: "size-3.5" }),
|
|
557
|
+
label: f(vn ? "hideInsights" : "showInsights"),
|
|
563
558
|
"aria-pressed": vn,
|
|
564
559
|
onClick: bn
|
|
565
560
|
})
|
|
@@ -567,16 +562,16 @@ function Ut({ person: c } = {}) {
|
|
|
567
562
|
})
|
|
568
563
|
]
|
|
569
564
|
}),
|
|
570
|
-
/* @__PURE__ */
|
|
565
|
+
/* @__PURE__ */ _(Ot, {
|
|
571
566
|
filters: fr,
|
|
572
567
|
trailing: Pr,
|
|
573
568
|
className: "shrink-0 border-b border-border px-4 py-2 md:px-5"
|
|
574
569
|
}),
|
|
575
|
-
vn && /* @__PURE__ */
|
|
576
|
-
workspace:
|
|
570
|
+
vn && /* @__PURE__ */ _(me, {
|
|
571
|
+
workspace: b,
|
|
577
572
|
issues: Pn
|
|
578
573
|
}),
|
|
579
|
-
Er && /* @__PURE__ */
|
|
574
|
+
Er && /* @__PURE__ */ _(Se, {
|
|
580
575
|
title: Q("saveTitle"),
|
|
581
576
|
submitLabel: Q("save"),
|
|
582
577
|
share: { allowed: Tr },
|
|
@@ -587,119 +582,119 @@ function Ut({ person: c } = {}) {
|
|
|
587
582
|
shared: t,
|
|
588
583
|
filters: Sr
|
|
589
584
|
});
|
|
590
|
-
|
|
585
|
+
w(ut(n), !0);
|
|
591
586
|
}
|
|
592
587
|
}),
|
|
593
|
-
/* @__PURE__ */
|
|
588
|
+
/* @__PURE__ */ _(ft, {
|
|
594
589
|
open: !!cr,
|
|
595
590
|
onClose: () => lr(null),
|
|
596
591
|
onConfirm: () => {
|
|
597
592
|
cr?.(), lr(null), ar();
|
|
598
593
|
},
|
|
599
|
-
title:
|
|
600
|
-
description:
|
|
601
|
-
confirmLabel:
|
|
594
|
+
title: f("archiveTitle", { count: G.size || 1 }),
|
|
595
|
+
description: f("archiveDescription"),
|
|
596
|
+
confirmLabel: f("archiveConfirm"),
|
|
602
597
|
destructive: !0
|
|
603
598
|
}),
|
|
604
|
-
/* @__PURE__ */
|
|
599
|
+
/* @__PURE__ */ v("div", {
|
|
605
600
|
className: "relative flex min-h-0 flex-1",
|
|
606
601
|
children: [
|
|
607
|
-
G.size > 0 && /* @__PURE__ */
|
|
602
|
+
G.size > 0 && /* @__PURE__ */ v("div", {
|
|
608
603
|
ref: or,
|
|
609
604
|
role: "toolbar",
|
|
610
|
-
"aria-label":
|
|
605
|
+
"aria-label": f("selected", { count: G.size }),
|
|
611
606
|
className: "absolute bottom-4 left-1/2 z-10 flex max-w-[calc(100%-2rem)] -translate-x-1/2 items-center gap-1 rounded-xl border border-border bg-popover py-1 pr-1 pl-3 text-sm shadow-md",
|
|
612
607
|
children: [
|
|
613
|
-
/* @__PURE__ */
|
|
608
|
+
/* @__PURE__ */ _("span", {
|
|
614
609
|
className: "whitespace-nowrap tabular-nums",
|
|
615
|
-
children: J ? rr ?
|
|
610
|
+
children: J ? rr ? f("selectingAll", { count: rr.total }) : f("selectingAllUncounted") : f("selected", { count: G.size })
|
|
616
611
|
}),
|
|
617
|
-
!J && (G.size < U.length || !B) && /* @__PURE__ */
|
|
612
|
+
!J && (G.size < U.length || !B) && /* @__PURE__ */ _(d, {
|
|
618
613
|
size: "sm",
|
|
619
614
|
variant: "ghost",
|
|
620
615
|
className: "shrink-0",
|
|
621
616
|
onClick: ir,
|
|
622
|
-
children: B ?
|
|
617
|
+
children: B ? f("selectAll", { count: U.length }) : f("selectAllMatching")
|
|
623
618
|
}),
|
|
624
|
-
/* @__PURE__ */
|
|
625
|
-
label:
|
|
619
|
+
/* @__PURE__ */ _(dt, {
|
|
620
|
+
label: f("actions"),
|
|
626
621
|
items: Wn(Yn),
|
|
627
622
|
side: "top",
|
|
628
|
-
trigger: /* @__PURE__ */
|
|
623
|
+
trigger: /* @__PURE__ */ _(d, {
|
|
629
624
|
size: "sm",
|
|
630
625
|
variant: "outline",
|
|
631
626
|
className: "shrink-0",
|
|
632
|
-
children:
|
|
627
|
+
children: f("actions")
|
|
633
628
|
})
|
|
634
629
|
}),
|
|
635
|
-
/* @__PURE__ */
|
|
630
|
+
/* @__PURE__ */ _(mt, {
|
|
636
631
|
size: "sm",
|
|
637
632
|
variant: "ghost",
|
|
638
|
-
icon: /* @__PURE__ */
|
|
639
|
-
label:
|
|
633
|
+
icon: /* @__PURE__ */ _(_e, {}),
|
|
634
|
+
label: f("clear"),
|
|
640
635
|
onClick: ar
|
|
641
636
|
})
|
|
642
637
|
]
|
|
643
638
|
}),
|
|
644
|
-
/* @__PURE__ */
|
|
639
|
+
/* @__PURE__ */ v("div", {
|
|
645
640
|
ref: dr,
|
|
646
641
|
className: `min-h-0 min-w-0 flex-1 ${M ? "overflow-hidden" : "overflow-y-auto"} ${G.size > 0 ? "pb-16" : ""} transition-opacity ${jn && !R ? "opacity-50" : ""}`,
|
|
647
642
|
children: [
|
|
648
|
-
/* @__PURE__ */
|
|
649
|
-
workspace:
|
|
643
|
+
/* @__PURE__ */ _(ae, {
|
|
644
|
+
workspace: b,
|
|
650
645
|
issues: Mn,
|
|
651
646
|
tabs: je,
|
|
652
647
|
focus: Cn,
|
|
653
648
|
onFocus: wn,
|
|
654
649
|
className: "border-b border-border px-5 py-1.5"
|
|
655
650
|
}),
|
|
656
|
-
M && R && /* @__PURE__ */
|
|
657
|
-
workspace:
|
|
658
|
-
columns: j === "status" && We[
|
|
651
|
+
M && R && /* @__PURE__ */ _(ie, {
|
|
652
|
+
workspace: b,
|
|
653
|
+
columns: j === "status" && We[E].categories.length > 0 ? H.filter((e) => e.issues.length > 0 || e.key === "completed" || We[E].categories.includes(e.key)) : H,
|
|
659
654
|
onMove: j === "none" ? void 0 : (e, t, n) => Gn(e, j, t, n, H.find((e) => e.key === n)?.issues[0], fn),
|
|
660
655
|
onContextMenu: er
|
|
661
656
|
}),
|
|
662
|
-
!M && /* @__PURE__ */
|
|
657
|
+
!M && /* @__PURE__ */ _(pe, {
|
|
663
658
|
groups: H,
|
|
664
659
|
count: zn,
|
|
665
660
|
scrollRef: dr,
|
|
666
661
|
keepInView: W?.id,
|
|
667
662
|
onMore: L.loadMore,
|
|
668
|
-
moreLabel:
|
|
669
|
-
renderRow: (e, t) => /* @__PURE__ */
|
|
663
|
+
moreLabel: Ht("loading"),
|
|
664
|
+
renderRow: (e, t) => /* @__PURE__ */ _(Ut, {
|
|
670
665
|
issue: e,
|
|
671
666
|
index: In.get(e.id) ?? -1,
|
|
672
667
|
place: t,
|
|
673
668
|
team: Bn.get(e.teamId),
|
|
674
|
-
workspace:
|
|
669
|
+
workspace: b,
|
|
675
670
|
selected: e.id === W?.id,
|
|
676
671
|
picked: G.has(e.id),
|
|
677
|
-
viewers: qn.get(e.identifier) ??
|
|
672
|
+
viewers: qn.get(e.identifier) ?? Nt,
|
|
678
673
|
fields: hn,
|
|
679
674
|
actions: tr
|
|
680
675
|
}, e.id)
|
|
681
676
|
}),
|
|
682
|
-
R && z && /* @__PURE__ */
|
|
677
|
+
R && z && /* @__PURE__ */ _("p", {
|
|
683
678
|
className: "flex h-10 items-center gap-2 px-5 text-xs text-muted-foreground",
|
|
684
679
|
role: "status",
|
|
685
|
-
children: Rn ?
|
|
680
|
+
children: Rn ? f("loadingCount", {
|
|
686
681
|
loaded: V.length,
|
|
687
682
|
total: Rn.total
|
|
688
|
-
}) :
|
|
683
|
+
}) : f("loadingMore", { loaded: V.length })
|
|
689
684
|
}),
|
|
690
|
-
!R && (An ? /* @__PURE__ */
|
|
691
|
-
R && !z && V.length === 0 && /* @__PURE__ */
|
|
692
|
-
workspace:
|
|
693
|
-
filtered: !!
|
|
694
|
-
onCreate: () =>
|
|
685
|
+
!R && (An ? /* @__PURE__ */ _(xe, { error: An }) : /* @__PURE__ */ _(At, { rows: 8 })),
|
|
686
|
+
R && !z && V.length === 0 && /* @__PURE__ */ _(Wt, {
|
|
687
|
+
workspace: b,
|
|
688
|
+
filtered: !!C.q || E !== "active" || fr.count > +!!x,
|
|
689
|
+
onCreate: () => Xt(C.team ? { team: C.team } : void 0)
|
|
695
690
|
})
|
|
696
691
|
]
|
|
697
692
|
}),
|
|
698
|
-
N && F.data && /* @__PURE__ */
|
|
699
|
-
"aria-label":
|
|
693
|
+
N && F.data && /* @__PURE__ */ _("aside", {
|
|
694
|
+
"aria-label": It("issueBreakdown.label"),
|
|
700
695
|
className: "hidden w-80 shrink-0 overflow-y-auto border-l border-border px-4 py-4 xl:block",
|
|
701
|
-
children: /* @__PURE__ */
|
|
702
|
-
workspace:
|
|
696
|
+
children: /* @__PURE__ */ _(oe, {
|
|
697
|
+
workspace: b,
|
|
703
698
|
issues: Mn,
|
|
704
699
|
tabs: je,
|
|
705
700
|
tab: xn,
|
|
@@ -714,8 +709,8 @@ function Ut({ person: c } = {}) {
|
|
|
714
709
|
]
|
|
715
710
|
});
|
|
716
711
|
}
|
|
717
|
-
var
|
|
718
|
-
return /* @__PURE__ */
|
|
712
|
+
var Ut = f(function({ issue: e, index: t, place: n, team: r, workspace: i, selected: a, picked: o, viewers: ee, fields: te, actions: s }) {
|
|
713
|
+
return /* @__PURE__ */ _(c, {
|
|
719
714
|
ref: n.ref,
|
|
720
715
|
style: n.style,
|
|
721
716
|
index: n.index,
|
|
@@ -732,20 +727,20 @@ var Wt = d(function({ issue: e, index: t, place: n, team: r, workspace: i, selec
|
|
|
732
727
|
onContextMenu: (t) => s.current.menu(t, e)
|
|
733
728
|
});
|
|
734
729
|
});
|
|
735
|
-
function
|
|
736
|
-
let r =
|
|
737
|
-
return i.some((e) => !e.archivedAt) ? /* @__PURE__ */
|
|
730
|
+
function Wt({ workspace: e, filtered: t, onCreate: n }) {
|
|
731
|
+
let r = g("issues.empty"), { data: i = [] } = y(te(e)), a = rt(e, "manage_teams");
|
|
732
|
+
return i.some((e) => !e.archivedAt) ? /* @__PURE__ */ v("div", {
|
|
738
733
|
className: "mx-auto max-w-sm px-4 py-24 text-center",
|
|
739
734
|
children: [
|
|
740
|
-
/* @__PURE__ */
|
|
735
|
+
/* @__PURE__ */ _("p", {
|
|
741
736
|
className: "text-sm font-medium",
|
|
742
737
|
children: r(t ? "noMatch" : "nothingInProgress")
|
|
743
738
|
}),
|
|
744
|
-
/* @__PURE__ */
|
|
739
|
+
/* @__PURE__ */ _("p", {
|
|
745
740
|
className: "mt-1 text-sm text-muted-foreground",
|
|
746
741
|
children: r(t ? "tryAnother" : "pressC")
|
|
747
742
|
}),
|
|
748
|
-
!t && /* @__PURE__ */
|
|
743
|
+
!t && /* @__PURE__ */ _(d, {
|
|
749
744
|
type: "button",
|
|
750
745
|
variant: "primary",
|
|
751
746
|
onClick: n,
|
|
@@ -753,18 +748,18 @@ function Gt({ workspace: e, filtered: t, onCreate: n }) {
|
|
|
753
748
|
children: r("create")
|
|
754
749
|
})
|
|
755
750
|
]
|
|
756
|
-
}) : /* @__PURE__ */
|
|
751
|
+
}) : /* @__PURE__ */ v("div", {
|
|
757
752
|
className: "mx-auto max-w-sm px-4 py-24 text-center",
|
|
758
753
|
children: [
|
|
759
|
-
/* @__PURE__ */
|
|
754
|
+
/* @__PURE__ */ _("p", {
|
|
760
755
|
className: "text-sm font-medium",
|
|
761
756
|
children: r("noTeamsTitle")
|
|
762
757
|
}),
|
|
763
|
-
/* @__PURE__ */
|
|
758
|
+
/* @__PURE__ */ _("p", {
|
|
764
759
|
className: "mt-1 text-sm text-muted-foreground",
|
|
765
760
|
children: r(a ? "noTeamsDescription" : "noTeamsAskAdmin")
|
|
766
761
|
}),
|
|
767
|
-
a && /* @__PURE__ */
|
|
762
|
+
a && /* @__PURE__ */ _(d, {
|
|
768
763
|
type: "button",
|
|
769
764
|
variant: "primary",
|
|
770
765
|
onClick: n,
|
|
@@ -774,4 +769,4 @@ function Gt({ workspace: e, filtered: t, onCreate: n }) {
|
|
|
774
769
|
]
|
|
775
770
|
});
|
|
776
771
|
}
|
|
777
|
-
export {
|
|
772
|
+
export { Ht as IssueList };
|