@parallelworks/tandem-web 0.190.0 → 0.190.2
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 +20 -7
- package/_virtual/_virtual_i18n/es/common.js +20 -7
- package/_virtual/_virtual_i18n/ja/common.js +20 -7
- package/_virtual/_virtual_i18n/ko/common.js +20 -7
- package/_virtual/_virtual_i18n/zh/common.js +20 -7
- package/components/IssueView.js +477 -469
- package/components/TriageBanner.js +16 -145
- package/components/TriageDecisions.js +347 -0
- package/lib/issuePicker.js +14 -11
- package/package.json +1 -1
- package/pages/triage.js +133 -109
package/pages/triage.js
CHANGED
|
@@ -3,64 +3,79 @@ import { meQuery as n, statusesQuery as r, teamsQuery as i, triageVisitsQuery as
|
|
|
3
3
|
import { ListFavoriteStar as o } from "../components/FavoriteStar.js";
|
|
4
4
|
import { IssueView as s } from "../components/IssueView.js";
|
|
5
5
|
import { TriageIcon as c } from "../components/icons.js";
|
|
6
|
+
import { useDecisionFailure as ee } from "../components/TriageDecisions.js";
|
|
6
7
|
import { actorAvatar as l } from "../lib/avatar.js";
|
|
7
8
|
import { usePageTitle as u } from "../lib/pageTitle.js";
|
|
8
9
|
import { usePeople as d } from "../lib/people.js";
|
|
9
10
|
import { useCanTriage as f } from "../lib/roles.js";
|
|
10
11
|
import { Link as p, useNavigate as m } from "../lib/router.js";
|
|
11
|
-
import { useShortcuts as
|
|
12
|
-
import { teamPath as
|
|
13
|
-
import { triageQuery as
|
|
14
|
-
import { hasOpened as
|
|
12
|
+
import { useShortcuts as te } from "../lib/shortcuts.js";
|
|
13
|
+
import { teamPath as ne } from "../lib/teamPaths.js";
|
|
14
|
+
import { triageQuery as re, useVisitTriage as ie } from "../lib/triage.js";
|
|
15
|
+
import { hasOpened as ae } from "../lib/triageSeen.js";
|
|
15
16
|
import { Avatar as h, Button as g, EmptyState as _, RelativeTime as v, toast as y } from "@parallelworks/ui";
|
|
16
|
-
import { CatchBoundary as
|
|
17
|
-
import { Suspense as
|
|
18
|
-
import { useErrorMessage as
|
|
17
|
+
import { CatchBoundary as oe, useParams as se, useSearch as ce } from "@tanstack/react-router";
|
|
18
|
+
import { Suspense as le, useCallback as ue, useEffect as b, useMemo as de, useRef as x, useState as S } from "react";
|
|
19
|
+
import { useErrorMessage as fe } from "@parallelworks/problem/react";
|
|
19
20
|
import { useTranslations as C } from "use-intl";
|
|
20
21
|
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
21
|
-
import { useMutation as E, useQuery as D, useQueryClient as
|
|
22
|
+
import { useMutation as E, useQuery as D, useQueryClient as pe, useSuspenseQuery as O } from "@tanstack/react-query";
|
|
22
23
|
// src/pages/triage.tsx
|
|
23
|
-
function
|
|
24
|
-
let l = C("triage"), { workspace: d, key: f } =
|
|
24
|
+
function k() {
|
|
25
|
+
let l = C("triage"), { workspace: d, key: f } = se({ strict: !1 }), { issue: h } = ce({ strict: !1 }), { data: v } = O(re(d, f)), { data: k } = O(i(d)), j = f ? k.find((e) => e.key === f) : void 0, ge = C("favorites");
|
|
25
26
|
u(l("title"));
|
|
26
|
-
let M
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
let [M, N] = S(() => /* @__PURE__ */ new Map()), P = de(() => {
|
|
28
|
+
let e = v.issues.toSorted((e, t) => t.createdAt.localeCompare(e.createdAt));
|
|
29
|
+
for (let { at: t, issue: n } of [...M.values()].sort((e, t) => e.at - t.at)) e.some((e) => e.id === n.id) || e.splice(Math.min(t, e.length), 0, n);
|
|
30
|
+
return e;
|
|
31
|
+
}, [v.issues, M]), F = (e) => v.issues.some((t) => t.id === e.id), _e = fe(), I = pe(), ve = ee(d), [L, ye] = S(/* @__PURE__ */ new Set()), [R, z] = S(/* @__PURE__ */ new Set()), be = ue((e, t) => {
|
|
32
|
+
ye((n) => n.has(e) === t ? n : t ? new Set(n).add(e) : me(n, e));
|
|
33
|
+
}, []), B = P.filter((e) => L.has(e.id) && F(e)), V = B.filter((e) => R.has(e.id)), H = m(), U = P.findIndex((e) => e.identifier === h?.toUpperCase()), W = x(null), G = P[U], xe = x(-1);
|
|
34
|
+
U >= 0 && (xe.current = U);
|
|
35
|
+
let { data: K } = D(a(d)), { mutate: Se } = ie(d), Ce = x(/* @__PURE__ */ new Set());
|
|
31
36
|
b(() => {
|
|
32
|
-
|
|
33
|
-
id:
|
|
34
|
-
identifier:
|
|
37
|
+
G && K && !K.includes(G.id) && !Ce.current.has(G.id) && (Ce.current.add(G.id), Se({
|
|
38
|
+
id: G.id,
|
|
39
|
+
identifier: G.identifier
|
|
35
40
|
}));
|
|
36
41
|
}, [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
42
|
+
G,
|
|
43
|
+
K,
|
|
44
|
+
Se
|
|
40
45
|
]);
|
|
41
|
-
let q = (e) =>
|
|
46
|
+
let q = (e) => H({
|
|
42
47
|
to: ".",
|
|
43
48
|
search: e ? { issue: e.identifier.toLowerCase() } : {},
|
|
44
49
|
replace: !0
|
|
45
|
-
}),
|
|
46
|
-
|
|
47
|
-
},
|
|
50
|
+
}), we = (e) => {
|
|
51
|
+
L.has(e.id) && z((t) => t.has(e.id) ? me(t, e.id) : new Set(t).add(e.id));
|
|
52
|
+
}, Te = (e, t) => {
|
|
48
53
|
let [n, r] = e < t ? [e, t] : [t, e];
|
|
49
|
-
|
|
50
|
-
},
|
|
51
|
-
let n =
|
|
52
|
-
n && (e.metaKey || e.ctrlKey ? (e.preventDefault(),
|
|
53
|
-
},
|
|
54
|
-
if (
|
|
55
|
-
let n =
|
|
56
|
-
t && ((
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
z(new Set(P.slice(n, r + 1).filter((e) => L.has(e.id)).map((e) => e.id)));
|
|
55
|
+
}, Ee = (e, t) => {
|
|
56
|
+
let n = P[t];
|
|
57
|
+
n && (e.metaKey || e.ctrlKey ? (e.preventDefault(), we(n), W.current = t) : e.shiftKey && (e.preventDefault(), Te(W.current ?? (U >= 0 ? U : t), t)));
|
|
58
|
+
}, J = (e, t) => {
|
|
59
|
+
if (P.length === 0) return;
|
|
60
|
+
let n = U < 0 ? 0 : Math.min(Math.max(U + e, 0), P.length - 1);
|
|
61
|
+
t && ((W.current === null || R.size === 0) && (W.current = Math.max(U, 0)), Te(W.current, n)), q(P[n]);
|
|
62
|
+
}, Y = x(void 0);
|
|
63
|
+
G && (Y.current = G);
|
|
64
|
+
let X = x(/* @__PURE__ */ new Set()), Z = G ?? (Y.current && Y.current.identifier.toLowerCase() === h?.toLowerCase() && !X.current.has(Y.current.id) ? Y.current : void 0);
|
|
65
|
+
b(() => {
|
|
66
|
+
if (!h || U >= 0) return;
|
|
67
|
+
let e = Y.current;
|
|
68
|
+
if (e && e.identifier.toLowerCase() === h.toLowerCase()) {
|
|
69
|
+
if (X.current.has(e.id)) return;
|
|
70
|
+
N((t) => new Map(t).set(e.id, {
|
|
71
|
+
at: xe.current,
|
|
72
|
+
issue: e
|
|
73
|
+
}));
|
|
74
|
+
} else q(void 0);
|
|
60
75
|
});
|
|
61
|
-
let { data:
|
|
76
|
+
let { data: De } = D(n), Oe = E({
|
|
62
77
|
mutationFn: async ({ is: n, before: i }) => {
|
|
63
|
-
let a =
|
|
78
|
+
let a = k.find((e) => e.id === n.teamId)?.key ?? "", o = (await I.fetchQuery(r(d, a))).find((e) => e.category === "triage");
|
|
64
79
|
if (!o) return;
|
|
65
80
|
let s = i ? n.assignees.filter((e) => !i.assignees.some((t) => t.kind === e.kind && t.handle === e.handle)) : [];
|
|
66
81
|
t(await e.PATCH("/api/v1/workspaces/{workspace}/issues/{identifier}", {
|
|
@@ -78,27 +93,35 @@ function O() {
|
|
|
78
93
|
}
|
|
79
94
|
}));
|
|
80
95
|
},
|
|
81
|
-
onSuccess: (e, { is: t }) => (Q.current.delete(t.identifier),
|
|
96
|
+
onSuccess: (e, { is: t }) => (Q.current.delete(t.identifier), I.invalidateQueries({ queryKey: [
|
|
82
97
|
"workspace",
|
|
83
98
|
d,
|
|
84
99
|
"issues"
|
|
85
100
|
] })),
|
|
86
|
-
onError: (e) =>
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
101
|
+
onError: async (e, { is: t }) => {
|
|
102
|
+
let { message: n } = await ve(e, t.identifier);
|
|
103
|
+
y.error(n);
|
|
104
|
+
}
|
|
105
|
+
}), ke = (e) => {
|
|
106
|
+
X.current.add(e.id), N((t) => {
|
|
107
|
+
if (!t.has(e.id)) return t;
|
|
108
|
+
let n = new Map(t);
|
|
109
|
+
return n.delete(e.id), n;
|
|
110
|
+
});
|
|
111
|
+
let t = P.findIndex((t) => t.id === e.id);
|
|
112
|
+
e.id === G?.id && q(P[t + 1] ?? P[t - 1]), Ae(e.identifier);
|
|
113
|
+
}, Q = x(/* @__PURE__ */ new Set()), Ae = (t) => {
|
|
91
114
|
if (Q.current.has(t)) return;
|
|
92
115
|
Q.current.add(t);
|
|
93
|
-
let n =
|
|
116
|
+
let n = P.find((e) => e.identifier === t) ?? (Y.current?.identifier === t ? Y.current : void 0);
|
|
94
117
|
e.GET("/api/v1/workspaces/{workspace}/issues/{identifier}", { params: { path: {
|
|
95
118
|
workspace: d,
|
|
96
119
|
identifier: t
|
|
97
120
|
} } }).then(({ data: e }) => {
|
|
98
|
-
!e || e.triage ? Q.current.delete(t) :
|
|
121
|
+
!e || e.triage ? Q.current.delete(t) : je(e, n);
|
|
99
122
|
});
|
|
100
|
-
},
|
|
101
|
-
let n =
|
|
123
|
+
}, je = (e, t) => {
|
|
124
|
+
let n = De && e.assignees.some((e) => e.kind === "user" && e.handle === De.user.username), r = [
|
|
102
125
|
e.status.name,
|
|
103
126
|
e.cycle?.name,
|
|
104
127
|
n ? l("assignedToYou") : e.assignees.length > 0 && l("assignedTo", { name: e.assignees.map((e) => e.handle).join(", ") })
|
|
@@ -114,39 +137,39 @@ function O() {
|
|
|
114
137
|
}),
|
|
115
138
|
action: {
|
|
116
139
|
label: l("undo"),
|
|
117
|
-
onClick: () =>
|
|
140
|
+
onClick: () => Oe.mutate({
|
|
118
141
|
is: e,
|
|
119
142
|
before: t
|
|
120
143
|
})
|
|
121
144
|
}
|
|
122
145
|
});
|
|
123
146
|
};
|
|
124
|
-
|
|
125
|
-
j: () =>
|
|
126
|
-
k: () =>
|
|
127
|
-
J: () =>
|
|
128
|
-
K: () =>
|
|
129
|
-
ArrowDown: (e) =>
|
|
130
|
-
ArrowUp: (e) =>
|
|
147
|
+
te({
|
|
148
|
+
j: () => J(1, !1),
|
|
149
|
+
k: () => J(-1, !1),
|
|
150
|
+
J: () => J(1, !0),
|
|
151
|
+
K: () => J(-1, !0),
|
|
152
|
+
ArrowDown: (e) => J(1, e.shiftKey),
|
|
153
|
+
ArrowUp: (e) => J(-1, e.shiftKey),
|
|
131
154
|
x: () => {
|
|
132
|
-
|
|
155
|
+
G && (we(G), W.current = U);
|
|
133
156
|
},
|
|
134
|
-
Enter: () =>
|
|
157
|
+
Enter: () => G && H({
|
|
135
158
|
to: "/$workspace/issues/$identifier",
|
|
136
159
|
params: {
|
|
137
160
|
workspace: d,
|
|
138
|
-
identifier:
|
|
161
|
+
identifier: G.identifier
|
|
139
162
|
}
|
|
140
163
|
}),
|
|
141
|
-
"Mod+a": () =>
|
|
142
|
-
"Shift+Mod+a": () =>
|
|
143
|
-
Escape: () =>
|
|
164
|
+
"Mod+a": () => z(new Set(P.map((e) => e.id))),
|
|
165
|
+
"Shift+Mod+a": () => z(/* @__PURE__ */ new Set()),
|
|
166
|
+
Escape: () => R.size > 0 ? z(/* @__PURE__ */ new Set()) : q(void 0)
|
|
144
167
|
}), b(() => {
|
|
145
|
-
let e =
|
|
168
|
+
let e = G && document.getElementById(`triage-${G.id}`);
|
|
146
169
|
e && (e.scrollIntoView({ block: "nearest" }), e.parentElement?.contains(document.activeElement) && e.querySelector("a")?.focus({ preventScroll: !0 }));
|
|
147
|
-
}, [
|
|
170
|
+
}, [G]);
|
|
148
171
|
let $ = E({
|
|
149
|
-
mutationFn: async (n) => (await Promise.allSettled(
|
|
172
|
+
mutationFn: async (n) => (await Promise.allSettled(V.map(async (r) => t(await e.POST("/api/v1/workspaces/{workspace}/issues/{identifier}/triage", {
|
|
150
173
|
params: { path: {
|
|
151
174
|
workspace: d,
|
|
152
175
|
identifier: r.identifier
|
|
@@ -154,18 +177,18 @@ function O() {
|
|
|
154
177
|
body: { decision: n }
|
|
155
178
|
}))))).filter((e) => e.status === "rejected"),
|
|
156
179
|
onSuccess: (e) => {
|
|
157
|
-
if (
|
|
158
|
-
let e = (e) => !
|
|
159
|
-
q(
|
|
180
|
+
if (G && R.has(G.id)) {
|
|
181
|
+
let e = (e) => !R.has(e.id);
|
|
182
|
+
q(P.slice(U + 1).find(e) ?? P.slice(0, U).findLast(e));
|
|
160
183
|
}
|
|
161
|
-
|
|
184
|
+
z(/* @__PURE__ */ new Set());
|
|
162
185
|
let t = e[0];
|
|
163
186
|
t && y.error(l("bulkFailed", {
|
|
164
187
|
count: e.length,
|
|
165
|
-
reason:
|
|
188
|
+
reason: _e(t.reason)
|
|
166
189
|
}));
|
|
167
190
|
},
|
|
168
|
-
onSettled: () =>
|
|
191
|
+
onSettled: () => I.invalidateQueries({ queryKey: [
|
|
169
192
|
"workspace",
|
|
170
193
|
d,
|
|
171
194
|
"issues"
|
|
@@ -184,8 +207,8 @@ function O() {
|
|
|
184
207
|
workspace: d,
|
|
185
208
|
page: "triage",
|
|
186
209
|
team: j && {
|
|
187
|
-
href:
|
|
188
|
-
label:
|
|
210
|
+
href: ne(d, j.key, "triage"),
|
|
211
|
+
label: ge("teamPage", {
|
|
189
212
|
team: j.name,
|
|
190
213
|
page: l("title")
|
|
191
214
|
})
|
|
@@ -193,24 +216,24 @@ function O() {
|
|
|
193
216
|
}),
|
|
194
217
|
/* @__PURE__ */ w("span", {
|
|
195
218
|
className: "text-xs text-muted-foreground tabular-nums",
|
|
196
|
-
children:
|
|
219
|
+
children: v.issues.length
|
|
197
220
|
}),
|
|
198
|
-
|
|
221
|
+
V.length > 0 && /* @__PURE__ */ T("div", {
|
|
199
222
|
className: "ml-auto flex items-center gap-2",
|
|
200
223
|
children: [
|
|
201
224
|
/* @__PURE__ */ w("span", {
|
|
202
225
|
className: "text-xs font-medium text-human",
|
|
203
|
-
children: l("selected", { count:
|
|
226
|
+
children: l("selected", { count: V.length })
|
|
204
227
|
}),
|
|
205
|
-
|
|
228
|
+
V.length < B.length && /* @__PURE__ */ w("button", {
|
|
206
229
|
type: "button",
|
|
207
|
-
onClick: () =>
|
|
230
|
+
onClick: () => z(new Set(B.map((e) => e.id))),
|
|
208
231
|
className: "text-xs hover:underline",
|
|
209
232
|
children: l("selectAll")
|
|
210
233
|
}),
|
|
211
234
|
/* @__PURE__ */ w("button", {
|
|
212
235
|
type: "button",
|
|
213
|
-
onClick: () =>
|
|
236
|
+
onClick: () => z(/* @__PURE__ */ new Set()),
|
|
214
237
|
className: "text-xs hover:underline",
|
|
215
238
|
children: l("clear")
|
|
216
239
|
}),
|
|
@@ -221,7 +244,7 @@ function O() {
|
|
|
221
244
|
loading: $.isPending && $.variables === "decline",
|
|
222
245
|
disabled: $.isPending,
|
|
223
246
|
onClick: () => $.mutate("decline"),
|
|
224
|
-
children: l("declineCount", { count:
|
|
247
|
+
children: l("declineCount", { count: V.length })
|
|
225
248
|
}),
|
|
226
249
|
/* @__PURE__ */ w(g, {
|
|
227
250
|
variant: "primary",
|
|
@@ -230,12 +253,12 @@ function O() {
|
|
|
230
253
|
loading: $.isPending && $.variables === "accept",
|
|
231
254
|
disabled: $.isPending,
|
|
232
255
|
onClick: () => $.mutate("accept"),
|
|
233
|
-
children: l("acceptCount", { count:
|
|
256
|
+
children: l("acceptCount", { count: V.length })
|
|
234
257
|
})
|
|
235
258
|
]
|
|
236
259
|
})
|
|
237
260
|
]
|
|
238
|
-
}),
|
|
261
|
+
}), P.length === 0 && !Z ? /* @__PURE__ */ w("div", {
|
|
239
262
|
className: "min-h-0 flex-1 overflow-y-auto p-6",
|
|
240
263
|
children: /* @__PURE__ */ w(_, {
|
|
241
264
|
icon: /* @__PURE__ */ w(c, {}),
|
|
@@ -246,27 +269,28 @@ function O() {
|
|
|
246
269
|
className: "flex min-h-0 flex-1",
|
|
247
270
|
children: [/* @__PURE__ */ w("ul", {
|
|
248
271
|
"aria-label": l("title"),
|
|
249
|
-
className:
|
|
250
|
-
children:
|
|
272
|
+
className: A("min-h-0 min-w-0 flex-1 flex-col overflow-y-auto px-2 py-2 md:flex md:max-w-md md:border-r md:border-border", G ? "hidden" : "flex"),
|
|
273
|
+
children: P.map((e, t) => /* @__PURE__ */ w(he, {
|
|
251
274
|
workspace: d,
|
|
252
275
|
issue: e,
|
|
253
|
-
onEligible:
|
|
254
|
-
picked:
|
|
255
|
-
current: t ===
|
|
256
|
-
|
|
257
|
-
|
|
276
|
+
onEligible: be,
|
|
277
|
+
picked: R.has(e.id) && L.has(e.id),
|
|
278
|
+
current: t === U,
|
|
279
|
+
moved: !F(e),
|
|
280
|
+
opened: ae(e.id, { data: K }),
|
|
281
|
+
onClick: (e) => Ee(e, t)
|
|
258
282
|
}, e.id))
|
|
259
283
|
}), /* @__PURE__ */ w("div", {
|
|
260
|
-
className:
|
|
261
|
-
children:
|
|
284
|
+
className: A("min-w-0 flex-1 overflow-y-auto md:block", Z ? "block" : "hidden"),
|
|
285
|
+
children: Z ? /* @__PURE__ */ T("div", {
|
|
262
286
|
className: "flex h-full flex-col",
|
|
263
287
|
children: [/* @__PURE__ */ w("button", {
|
|
264
288
|
type: "button",
|
|
265
289
|
onClick: () => q(void 0),
|
|
266
290
|
className: "px-4 pt-3 text-left text-xs text-muted-foreground hover:text-foreground md:hidden",
|
|
267
291
|
children: l("back")
|
|
268
|
-
}), /* @__PURE__ */ w(
|
|
269
|
-
getResetKey: () =>
|
|
292
|
+
}), /* @__PURE__ */ w(oe, {
|
|
293
|
+
getResetKey: () => Z.id,
|
|
270
294
|
errorComponent: () => /* @__PURE__ */ w("div", {
|
|
271
295
|
className: "px-6 py-24",
|
|
272
296
|
children: /* @__PURE__ */ w(_, {
|
|
@@ -274,14 +298,14 @@ function O() {
|
|
|
274
298
|
description: l("paneFailedHelp")
|
|
275
299
|
})
|
|
276
300
|
}),
|
|
277
|
-
children: /* @__PURE__ */ w(
|
|
301
|
+
children: /* @__PURE__ */ w(le, { children: /* @__PURE__ */ w(s, {
|
|
278
302
|
workspace: d,
|
|
279
|
-
identifier:
|
|
303
|
+
identifier: Z.identifier,
|
|
280
304
|
inPane: !0,
|
|
281
|
-
|
|
305
|
+
onDecided: ke
|
|
282
306
|
}) })
|
|
283
307
|
})]
|
|
284
|
-
},
|
|
308
|
+
}, Z.id) : /* @__PURE__ */ w("div", {
|
|
285
309
|
className: "px-6 py-24",
|
|
286
310
|
children: /* @__PURE__ */ w(_, {
|
|
287
311
|
title: l("noneSelected"),
|
|
@@ -292,13 +316,13 @@ function O() {
|
|
|
292
316
|
})]
|
|
293
317
|
});
|
|
294
318
|
}
|
|
295
|
-
var
|
|
296
|
-
function
|
|
319
|
+
var A = (...e) => e.filter(Boolean).join(" ");
|
|
320
|
+
function me(e, t) {
|
|
297
321
|
let n = new Set(e);
|
|
298
322
|
return n.delete(t), n;
|
|
299
323
|
}
|
|
300
|
-
function
|
|
301
|
-
let { actorName:
|
|
324
|
+
function he({ workspace: e, issue: t, onEligible: n, picked: r, current: i, moved: a, opened: o, onClick: s }) {
|
|
325
|
+
let { actorName: c, avatarOf: ee } = d(e), u = f(e, t.teamId);
|
|
302
326
|
b(() => n(t.id, u), [
|
|
303
327
|
n,
|
|
304
328
|
t.id,
|
|
@@ -312,15 +336,15 @@ function pe({ workspace: e, issue: t, onEligible: n, picked: r, current: i, open
|
|
|
312
336
|
to: ".",
|
|
313
337
|
search: { issue: t.identifier.toLowerCase() },
|
|
314
338
|
replace: !0,
|
|
315
|
-
onClick:
|
|
339
|
+
onClick: s,
|
|
316
340
|
"aria-current": i || void 0,
|
|
317
|
-
className:
|
|
341
|
+
className: A("flex gap-3 px-2 py-2.5 select-none", a && "opacity-50", r ? "bg-human-soft" : A("rounded-md", i ? "bg-muted" : "hover:bg-muted")),
|
|
318
342
|
children: /* @__PURE__ */ T("span", {
|
|
319
343
|
className: "min-w-0 flex-1",
|
|
320
344
|
children: [/* @__PURE__ */ T("span", {
|
|
321
345
|
className: "flex items-baseline gap-2 text-sm",
|
|
322
346
|
children: [/* @__PURE__ */ w("span", {
|
|
323
|
-
className:
|
|
347
|
+
className: A("min-w-0 flex-1 truncate", o ? "text-muted-foreground" : "font-medium text-foreground"),
|
|
324
348
|
children: t.title
|
|
325
349
|
}), /* @__PURE__ */ w("span", {
|
|
326
350
|
className: "shrink-0 text-xs text-muted-foreground tabular-nums",
|
|
@@ -330,17 +354,17 @@ function pe({ workspace: e, issue: t, onEligible: n, picked: r, current: i, open
|
|
|
330
354
|
className: "mt-1 flex items-center gap-1.5 text-xs text-muted-foreground",
|
|
331
355
|
children: [
|
|
332
356
|
/* @__PURE__ */ w("span", {
|
|
333
|
-
className:
|
|
357
|
+
className: A("shrink-0 rounded-full", r && "ring-1 ring-human/40"),
|
|
334
358
|
children: /* @__PURE__ */ w(h, {
|
|
335
359
|
...l(m.kind),
|
|
336
|
-
name:
|
|
337
|
-
src:
|
|
360
|
+
name: c(m),
|
|
361
|
+
src: ee(m.kind, m.handle),
|
|
338
362
|
size: "xs"
|
|
339
363
|
})
|
|
340
364
|
}),
|
|
341
365
|
/* @__PURE__ */ w("span", {
|
|
342
366
|
className: "min-w-0 flex-1 truncate",
|
|
343
|
-
children:
|
|
367
|
+
children: c(m)
|
|
344
368
|
}),
|
|
345
369
|
/* @__PURE__ */ w(v, {
|
|
346
370
|
value: t.createdAt,
|
|
@@ -354,4 +378,4 @@ function pe({ workspace: e, issue: t, onEligible: n, picked: r, current: i, open
|
|
|
354
378
|
})
|
|
355
379
|
});
|
|
356
380
|
}
|
|
357
|
-
export {
|
|
381
|
+
export { k as TriagePage };
|