@parallelworks/tandem-web 0.189.11 → 0.190.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/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 ee } from "../lib/shortcuts.js";
12
- import { teamPath as te } from "../lib/teamPaths.js";
13
- import { triageQuery as ne, useVisitTriage as re } from "../lib/triage.js";
14
- import { hasOpened as ie } from "../lib/triageSeen.js";
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 ae, useParams as oe, useSearch as se } from "@tanstack/react-router";
17
- import { Suspense as ce, useCallback as le, useEffect as b, useRef as x, useState as S } from "react";
18
- import { useErrorMessage as ue } from "@parallelworks/problem/react";
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 de, useSuspenseQuery as fe } from "@tanstack/react-query";
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 O() {
24
- let l = C("triage"), { workspace: d, key: f } = oe({ strict: !1 }), { issue: h } = se({ strict: !1 }), { data: v } = fe(ne(d, f)), { data: O } = fe(i(d)), j = f ? O.find((e) => e.key === f) : void 0, me = C("favorites");
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 = v.issues, N = ue(), P = de(), [F, he] = S(/* @__PURE__ */ new Set()), [I, L] = S(/* @__PURE__ */ new Set()), ge = le((e, t) => {
27
- he((n) => n.has(e) === t ? n : t ? new Set(n).add(e) : A(n, e));
28
- }, []), R = M.filter((e) => F.has(e.id)), z = R.filter((e) => I.has(e.id)), _e = m(), B = M.findIndex((e) => e.identifier === h?.toUpperCase()), V = x(null), H = M[B], U = x(-1);
29
- B >= 0 && (U.current = B);
30
- let { data: W } = D(a(d)), { mutate: G } = re(d), K = x(/* @__PURE__ */ new Set());
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
- H && W && !W.includes(H.id) && !K.current.has(H.id) && (K.current.add(H.id), G({
33
- id: H.id,
34
- identifier: H.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
- H,
38
- W,
39
- G
42
+ G,
43
+ K,
44
+ Se
40
45
  ]);
41
- let q = (e) => _e({
46
+ let q = (e) => H({
42
47
  to: ".",
43
48
  search: e ? { issue: e.identifier.toLowerCase() } : {},
44
49
  replace: !0
45
- }), J = (e) => {
46
- F.has(e.id) && L((t) => t.has(e.id) ? A(t, e.id) : new Set(t).add(e.id));
47
- }, Y = (e, t) => {
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
- L(new Set(M.slice(n, r + 1).filter((e) => F.has(e.id)).map((e) => e.id)));
50
- }, ve = (e, t) => {
51
- let n = M[t];
52
- n && (e.metaKey || e.ctrlKey ? (e.preventDefault(), J(n), V.current = t) : e.shiftKey && (e.preventDefault(), Y(V.current ?? (B >= 0 ? B : t), t)));
53
- }, X = (e, t) => {
54
- if (M.length === 0) return;
55
- let n = B < 0 ? 0 : Math.min(Math.max(B + e, 0), M.length - 1);
56
- t && ((V.current === null || I.size === 0) && (V.current = Math.max(B, 0)), Y(V.current, n)), q(M[n]);
57
- }, Z = x(void 0);
58
- H && (Z.current = H), b(() => {
59
- !h || B >= 0 || (Z.current && Z.current.identifier.toLowerCase() === h.toLowerCase() && Se(Z.current.identifier), U.current < 0 || M.length === 0 ? q(void 0) : q(M[Math.min(U.current, M.length - 1)]));
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: ye } = D(n), be = E({
76
+ let { data: De } = D(n), Oe = E({
62
77
  mutationFn: async ({ is: n, before: i }) => {
63
- let a = O.find((e) => e.id === n.teamId)?.key ?? "", o = (await P.fetchQuery(r(d, a))).find((e) => e.category === "triage");
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), P.invalidateQueries({ queryKey: [
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) => y.error(N(e))
87
- }), xe = (e) => {
88
- let t = M.findIndex((t) => t.id === e.id);
89
- e.id === H?.id && q(M[t + 1] ?? M[t - 1]), Se(e.identifier);
90
- }, Q = x(/* @__PURE__ */ new Set()), Se = (t) => {
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 = M.find((e) => e.identifier === t) ?? (Z.current?.identifier === t ? Z.current : void 0);
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) : Ce(e, n);
121
+ !e || e.triage ? Q.current.delete(t) : je(e, n);
99
122
  });
100
- }, Ce = (e, t) => {
101
- let n = ye && e.assignees.some((e) => e.kind === "user" && e.handle === ye.user.username), r = [
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: () => be.mutate({
140
+ onClick: () => Oe.mutate({
118
141
  is: e,
119
142
  before: t
120
143
  })
121
144
  }
122
145
  });
123
146
  };
124
- ee({
125
- j: () => X(1, !1),
126
- k: () => X(-1, !1),
127
- J: () => X(1, !0),
128
- K: () => X(-1, !0),
129
- ArrowDown: (e) => X(1, e.shiftKey),
130
- ArrowUp: (e) => X(-1, e.shiftKey),
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
- H && (J(H), V.current = B);
155
+ G && (we(G), W.current = U);
133
156
  },
134
- Enter: () => H && _e({
157
+ Enter: () => G && H({
135
158
  to: "/$workspace/issues/$identifier",
136
159
  params: {
137
160
  workspace: d,
138
- identifier: H.identifier
161
+ identifier: G.identifier
139
162
  }
140
163
  }),
141
- "Mod+a": () => L(new Set(M.map((e) => e.id))),
142
- "Shift+Mod+a": () => L(/* @__PURE__ */ new Set()),
143
- Escape: () => I.size > 0 ? L(/* @__PURE__ */ new Set()) : q(void 0)
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 = H && document.getElementById(`triage-${H.id}`);
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
- }, [H]);
170
+ }, [G]);
148
171
  let $ = E({
149
- mutationFn: async (n) => (await Promise.allSettled(z.map(async (r) => t(await e.POST("/api/v1/workspaces/{workspace}/issues/{identifier}/triage", {
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 (H && I.has(H.id)) {
158
- let e = (e) => !I.has(e.id);
159
- q(M.slice(B + 1).find(e) ?? M.slice(0, B).findLast(e));
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
- L(/* @__PURE__ */ new Set());
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: N(t.reason)
188
+ reason: _e(t.reason)
166
189
  }));
167
190
  },
168
- onSettled: () => P.invalidateQueries({ queryKey: [
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: te(d, j.key, "triage"),
188
- label: me("teamPage", {
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: M.length
219
+ children: v.issues.length
197
220
  }),
198
- z.length > 0 && /* @__PURE__ */ T("div", {
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: z.length })
226
+ children: l("selected", { count: V.length })
204
227
  }),
205
- z.length < R.length && /* @__PURE__ */ w("button", {
228
+ V.length < B.length && /* @__PURE__ */ w("button", {
206
229
  type: "button",
207
- onClick: () => L(new Set(R.map((e) => e.id))),
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: () => L(/* @__PURE__ */ new Set()),
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: z.length })
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: z.length })
256
+ children: l("acceptCount", { count: V.length })
234
257
  })
235
258
  ]
236
259
  })
237
260
  ]
238
- }), M.length === 0 ? /* @__PURE__ */ w("div", {
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: k("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", H ? "hidden" : "flex"),
250
- children: M.map((e, t) => /* @__PURE__ */ w(pe, {
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: ge,
254
- picked: I.has(e.id) && F.has(e.id),
255
- current: t === B,
256
- opened: ie(e.id, { data: W }),
257
- onClick: (e) => ve(e, t)
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: k("min-w-0 flex-1 overflow-y-auto md:block", H ? "block" : "hidden"),
261
- children: H ? /* @__PURE__ */ T("div", {
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(ae, {
269
- getResetKey: () => H.id,
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(ce, { children: /* @__PURE__ */ w(s, {
301
+ children: /* @__PURE__ */ w(le, { children: /* @__PURE__ */ w(s, {
278
302
  workspace: d,
279
- identifier: H.identifier,
303
+ identifier: Z.identifier,
280
304
  inPane: !0,
281
- onTriaged: xe
305
+ onDecided: ke
282
306
  }) })
283
307
  })]
284
- }, H.id) : /* @__PURE__ */ w("div", {
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 k = (...e) => e.filter(Boolean).join(" ");
296
- function A(e, t) {
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 pe({ workspace: e, issue: t, onEligible: n, picked: r, current: i, opened: a, onClick: o }) {
301
- let { actorName: s, avatarOf: c } = d(e), u = f(e, t.teamId);
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: o,
339
+ onClick: s,
316
340
  "aria-current": i || void 0,
317
- className: k("flex gap-3 px-2 py-2.5 select-none", r ? "bg-human-soft" : k("rounded-md", i ? "bg-muted" : "hover:bg-muted")),
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: k("min-w-0 flex-1 truncate", a ? "text-muted-foreground" : "font-medium text-foreground"),
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: k("shrink-0 rounded-full", r && "ring-1 ring-human/40"),
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: s(m),
337
- src: c(m.kind, m.handle),
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: s(m)
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 { O as TriagePage };
381
+ export { k as TriagePage };