@parallelworks/tandem-web 0.155.1 → 0.156.0

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.
@@ -42,28 +42,29 @@ import { CustomerRequests as Xe } from "../../../components/CustomerRequests.js"
42
42
  import { IssueLinkChips as Ze, IssueLinks as Qe, SharedThreadHeader as $e } from "../../../components/GitHub.js";
43
43
  import { EventLine as et } from "../../../components/IssueEvent.js";
44
44
  import { ParentProperty as tt, SubIssuesAndRelations as nt } from "../../../components/IssueRelations.js";
45
- import { IssueZendesk as rt } from "../../../components/IssueZendesk.js";
46
- import { Reactions as it } from "../../../components/Reactions.js";
47
- import { TimeInStatus as at } from "../../../components/Reports.js";
48
- import { SubscribeButton as ot } from "../../../components/SubscribeButton.js";
49
- import { Widgets as st } from "../../../components/Widgets.js";
50
- import { Avatar as ct, Button as z, Callout as lt, Card as ut, Combobox as B, CopyButton as dt, DatePicker as ft, ErrorText as pt, IconButton as mt, Kbd as ht, RelativeTime as gt, Select as V, TitleInput as _t, Tooltip as vt, buttonClasses as yt, menuDivider as bt, toast as xt, useOpenMenu as H } from "@parallelworks/ui";
51
- import { createContext as St, useCallback as Ct, useContext as wt, useEffect as Tt, useMemo as Et, useRef as U, useState as W } from "react";
52
- import { useErrorMessage as Dt } from "@parallelworks/problem/react";
53
- import { useFormatter as Ot, useTranslations as G } from "use-intl";
45
+ import { IssueSentry as rt } from "../../../components/IssueSentry.js";
46
+ import { IssueZendesk as it } from "../../../components/IssueZendesk.js";
47
+ import { Reactions as at } from "../../../components/Reactions.js";
48
+ import { TimeInStatus as ot } from "../../../components/Reports.js";
49
+ import { SubscribeButton as st } from "../../../components/SubscribeButton.js";
50
+ import { Widgets as ct } from "../../../components/Widgets.js";
51
+ import { Avatar as lt, Button as z, Callout as ut, Card as dt, Combobox as B, CopyButton as ft, DatePicker as pt, ErrorText as mt, IconButton as ht, Kbd as gt, RelativeTime as _t, Select as V, TitleInput as vt, Tooltip as yt, buttonClasses as bt, menuDivider as xt, toast as St, useOpenMenu as H } from "@parallelworks/ui";
52
+ import { createContext as Ct, useCallback as wt, useContext as Tt, useEffect as Et, useMemo as Dt, useRef as U, useState as W } from "react";
53
+ import { useErrorMessage as Ot } from "@parallelworks/problem/react";
54
+ import { useFormatter as kt, useTranslations as G } from "use-intl";
54
55
  import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
55
56
  import { useMutation as Y, useQuery as X, useQueryClient as Z, useSuspenseQuery as Q } from "@tanstack/react-query";
56
- import { MoreButton as kt } from "@parallelworks/ui/list";
57
- import { ArchiveIcon as At } from "@parallelworks/ui/icons";
57
+ import { MoreButton as At } from "@parallelworks/ui/list";
58
+ import { ArchiveIcon as jt } from "@parallelworks/ui/icons";
58
59
  // src/routes/$workspace/issues/$identifier.tsx?tsr-split=component
59
- function jt() {
60
- let o = G("issue"), s = ne(), c = Dt(), l = G("common"), { workspace: u, identifier: d } = Re.useParams(), { data: m } = Q(p(u, d)), { data: g } = Q(y(u)), { data: _ } = Q(h), { data: v = [] } = X(f(u, d)), [S, C] = W();
60
+ function Mt() {
61
+ let o = G("issue"), s = ne(), c = Ot(), l = G("common"), { workspace: u, identifier: d } = Re.useParams(), { data: m } = Q(p(u, d)), { data: g } = Q(y(u)), { data: _ } = Q(h), { data: v = [] } = X(f(u, d)), [S, C] = W();
61
62
  Ve({
62
63
  identifier: m.identifier,
63
64
  ...S && { field: S }
64
65
  }), r(`${m.identifier} ${m.title}`), He(u, m.identifier);
65
66
  let w = a(), T = n(m.identifier, m.title);
66
- Tt(() => {
67
+ Et(() => {
67
68
  window.location.pathname.endsWith(`/issues/${T}`) || w({
68
69
  to: "/$workspace/issues/$identifier",
69
70
  params: {
@@ -94,7 +95,7 @@ function jt() {
94
95
  identifier: m.identifier
95
96
  } } })),
96
97
  onSuccess: () => {
97
- xt.success(o("deleted", { identifier: m.identifier })), b(O, u);
98
+ St.success(o("deleted", { identifier: m.identifier })), b(O, u);
98
99
  let e = g.find((e) => e.id === m.teamId)?.key;
99
100
  w(e ? {
100
101
  to: "/$workspace/teams/$key/issues",
@@ -107,14 +108,14 @@ function jt() {
107
108
  params: { workspace: u }
108
109
  });
109
110
  }
110
- }), N = Ct((e) => w({
111
+ }), N = wt((e) => w({
111
112
  to: "/$workspace/issues/$identifier",
112
113
  params: {
113
114
  workspace: u,
114
115
  identifier: e
115
116
  }
116
117
  }), [w, u]);
117
- ge(u, m.body, N), Tt(() => {
118
+ ge(u, m.body, N), Et(() => {
118
119
  ze(u, {
119
120
  kind: "issue",
120
121
  href: `/${u}/issues/${m.identifier}`,
@@ -165,11 +166,11 @@ function jt() {
165
166
  kind: "issue",
166
167
  target: m.id
167
168
  }),
168
- /* @__PURE__ */ q(ot, {
169
+ /* @__PURE__ */ q(st, {
169
170
  workspace: u,
170
171
  identifier: m.identifier
171
172
  }),
172
- /* @__PURE__ */ q(dt, {
173
+ /* @__PURE__ */ q(ft, {
173
174
  text: n(m.identifier, m.title),
174
175
  label: o("copyBranchName"),
175
176
  icon: /* @__PURE__ */ q(E, {}),
@@ -191,7 +192,7 @@ function jt() {
191
192
  workspace: u,
192
193
  others: P
193
194
  }),
194
- /* @__PURE__ */ q(kt, {
195
+ /* @__PURE__ */ q(At, {
195
196
  items: () => [...re([m]), ...D ? [{
196
197
  label: o("deleteIssue"),
197
198
  destructive: !0,
@@ -207,7 +208,7 @@ function jt() {
207
208
  })
208
209
  ]
209
210
  }),
210
- I.isError && /* @__PURE__ */ q(pt, {
211
+ I.isError && /* @__PURE__ */ q(mt, {
211
212
  inline: !0,
212
213
  className: "ml-auto text-xs",
213
214
  children: c(I.error)
@@ -222,16 +223,16 @@ function jt() {
222
223
  children: /* @__PURE__ */ J("article", {
223
224
  className: "w-full px-4 pt-6 pb-24 md:px-8 md:pt-8",
224
225
  children: [
225
- /* @__PURE__ */ J(Jt.Provider, {
226
+ /* @__PURE__ */ J(Yt.Provider, {
226
227
  value: C,
227
228
  children: [
228
- m.triage && /* @__PURE__ */ q(Mt, {
229
+ m.triage && /* @__PURE__ */ q(Nt, {
229
230
  workspace: u,
230
231
  issue: m
231
232
  }),
232
- m.archivedAt && /* @__PURE__ */ q(lt, {
233
+ m.archivedAt && /* @__PURE__ */ q(ut, {
233
234
  tone: "muted",
234
- icon: /* @__PURE__ */ q(At, {}),
235
+ icon: /* @__PURE__ */ q(jt, {}),
235
236
  className: "mb-5",
236
237
  children: /* @__PURE__ */ J("span", {
237
238
  className: "flex flex-wrap items-center gap-x-3 gap-y-1",
@@ -244,7 +245,7 @@ function jt() {
244
245
  })]
245
246
  })
246
247
  }),
247
- /* @__PURE__ */ q(Nt, {
248
+ /* @__PURE__ */ q(Pt, {
248
249
  issue: m,
249
250
  onSave: (e) => I.mutate({ title: e })
250
251
  }),
@@ -253,7 +254,7 @@ function jt() {
253
254
  others: P,
254
255
  field: "title"
255
256
  }),
256
- /* @__PURE__ */ q(Pt, {
257
+ /* @__PURE__ */ q(Ft, {
257
258
  workspace: u,
258
259
  issue: m
259
260
  }),
@@ -271,7 +272,7 @@ function jt() {
271
272
  identifier: m.identifier,
272
273
  enabled: !!F?.customerRequestsEnabled
273
274
  }),
274
- /* @__PURE__ */ q(Ft, {
275
+ /* @__PURE__ */ q(It, {
275
276
  workspace: u,
276
277
  identifier: d
277
278
  }),
@@ -280,6 +281,10 @@ function jt() {
280
281
  identifier: d,
281
282
  title: m.title
282
283
  }),
284
+ /* @__PURE__ */ q(it, {
285
+ workspace: u,
286
+ identifier: d
287
+ }),
283
288
  /* @__PURE__ */ q(rt, {
284
289
  workspace: u,
285
290
  identifier: d
@@ -288,14 +293,14 @@ function jt() {
288
293
  workspace: u,
289
294
  identifier: d
290
295
  }),
291
- /* @__PURE__ */ q(Ht, {
296
+ /* @__PURE__ */ q(Ut, {
292
297
  workspace: u,
293
298
  identifier: d,
294
299
  others: P
295
300
  })
296
301
  ]
297
302
  }),
298
- /* @__PURE__ */ q(Vt, {
303
+ /* @__PURE__ */ q(Ht, {
299
304
  workspace: u,
300
305
  identifier: d
301
306
  }),
@@ -305,7 +310,7 @@ function jt() {
305
310
  })
306
311
  ]
307
312
  })
308
- }), /* @__PURE__ */ q(It, {
313
+ }), /* @__PURE__ */ q(Lt, {
309
314
  workspace: u,
310
315
  issue: m,
311
316
  team: F,
@@ -317,8 +322,8 @@ function jt() {
317
322
  ]
318
323
  });
319
324
  }
320
- function Mt({ workspace: n, issue: r }) {
321
- let i = G("triage"), a = Dt(), o = Z(), s = ye(n, r.teamId), c = Y({
325
+ function Nt({ workspace: n, issue: r }) {
326
+ let i = G("triage"), a = Ot(), o = Z(), s = ye(n, r.teamId), c = Y({
322
327
  mutationFn: async (i) => t(await e.POST("/api/v1/workspaces/{workspace}/issues/{identifier}/triage", {
323
328
  params: { path: {
324
329
  workspace: n,
@@ -363,12 +368,12 @@ function Mt({ workspace: n, issue: r }) {
363
368
  ]
364
369
  });
365
370
  }
366
- function Nt({ issue: e, onSave: t }) {
367
- let n = G("issue"), r = wt(Jt);
371
+ function Pt({ issue: e, onSave: t }) {
372
+ let n = G("issue"), r = Tt(Yt);
368
373
  return /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q("h1", {
369
374
  className: "sr-only",
370
375
  children: e.title
371
- }), /* @__PURE__ */ q(_t, {
376
+ }), /* @__PURE__ */ q(vt, {
372
377
  value: e.title,
373
378
  onCommit: t,
374
379
  onFocus: () => r("title"),
@@ -376,8 +381,8 @@ function Nt({ issue: e, onSave: t }) {
376
381
  "aria-label": n("title")
377
382
  })] });
378
383
  }
379
- function Pt({ workspace: e, issue: t }) {
380
- let n = G("issue"), r = G("common"), i = wt(Jt), { data: a } = Q(h), o = U(null), s = Et(() => ({
384
+ function Ft({ workspace: e, issue: t }) {
385
+ let n = G("issue"), r = G("common"), i = Tt(Yt), { data: a } = Q(h), o = U(null), s = Dt(() => ({
381
386
  name: a?.user.name ?? n("someone"),
382
387
  color: We(a?.user.username ?? "")
383
388
  }), [
@@ -411,7 +416,7 @@ function Pt({ workspace: e, issue: t }) {
411
416
  editable: !1,
412
417
  className: "min-h-32"
413
418
  }),
414
- /* @__PURE__ */ q(pt, {
419
+ /* @__PURE__ */ q(mt, {
415
420
  className: "mt-1",
416
421
  children: l
417
422
  }),
@@ -422,7 +427,7 @@ function Pt({ workspace: e, issue: t }) {
422
427
  error: d.error
423
428
  }), /* @__PURE__ */ q(Ae, { onFiles: (e) => d.upload(u.current, e) })]
424
429
  }),
425
- /* @__PURE__ */ q(it, {
430
+ /* @__PURE__ */ q(at, {
426
431
  workspace: e,
427
432
  identifier: t.identifier,
428
433
  reactions: f,
@@ -432,7 +437,7 @@ function Pt({ workspace: e, issue: t }) {
432
437
  ]
433
438
  });
434
439
  }
435
- function Ft({ workspace: e, identifier: t }) {
440
+ function It({ workspace: e, identifier: t }) {
436
441
  let n = G("issue"), { data: r } = Q(d(e, t)), a = H(), o = w(e);
437
442
  return r.length === 0 ? null : /* @__PURE__ */ J("section", {
438
443
  className: "mt-6",
@@ -449,7 +454,7 @@ function Ft({ workspace: e, identifier: t }) {
449
454
  doc: C(t)
450
455
  },
451
456
  onContextMenu: (e) => a(e, o(t)),
452
- className: `${yt({ size: "sm" })} max-w-72`,
457
+ className: `${bt({ size: "sm" })} max-w-72`,
453
458
  children: [/* @__PURE__ */ q(j, { className: "size-3.5 text-muted-foreground" }), /* @__PURE__ */ q("span", {
454
459
  className: "truncate",
455
460
  children: t.title
@@ -458,7 +463,7 @@ function Ft({ workspace: e, identifier: t }) {
458
463
  })]
459
464
  });
460
465
  }
461
- function It({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c }) {
466
+ function Lt({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c }) {
462
467
  let l = G("relations"), u = i?.key, d = G("issue.properties"), p = G("common"), h = ee(), { data: g = [] } = X({
463
468
  ...v(n, u ?? ""),
464
469
  enabled: !!u
@@ -467,7 +472,7 @@ function It({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
467
472
  params: { path: { workspace: n } },
468
473
  body: {
469
474
  name: r,
470
- color: Lt[_.length % Lt.length] ?? "#d73a4a"
475
+ color: Rt[_.length % Rt.length] ?? "#d73a4a"
471
476
  }
472
477
  })),
473
478
  onSuccess: (e) => {
@@ -503,7 +508,7 @@ function It({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
503
508
  })
504
509
  })
505
510
  }),
506
- /* @__PURE__ */ q(Bt, {
511
+ /* @__PURE__ */ q(Vt, {
507
512
  workspace: n,
508
513
  issue: r,
509
514
  update: c,
@@ -587,7 +592,7 @@ function It({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
587
592
  kind: e.kind,
588
593
  handle: e.handle,
589
594
  className: "flex items-center gap-1.5",
590
- children: [/* @__PURE__ */ q(ct, {
595
+ children: [/* @__PURE__ */ q(lt, {
591
596
  ...De(e.kind),
592
597
  name: t,
593
598
  src: S(e.kind, e.handle),
@@ -669,7 +674,7 @@ function It({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
669
674
  row: A
670
675
  })
671
676
  }),
672
- /* @__PURE__ */ q(zt, {
677
+ /* @__PURE__ */ q(Bt, {
673
678
  workspace: n,
674
679
  issue: r,
675
680
  team: i,
@@ -684,14 +689,14 @@ function It({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
684
689
  workspace: n,
685
690
  kind: r.creator.kind,
686
691
  handle: r.creator.handle,
687
- children: /* @__PURE__ */ q(ct, {
692
+ children: /* @__PURE__ */ q(lt, {
688
693
  ...De(r.creator.kind),
689
694
  name: x(r.creator),
690
695
  src: S(r.creator.kind, r.creator.handle),
691
696
  size: "xs",
692
697
  tooltip: r.creator.kind !== "user"
693
698
  })
694
- }), /* @__PURE__ */ q(gt, {
699
+ }), /* @__PURE__ */ q(_t, {
695
700
  value: r.createdAt,
696
701
  exact: "medium"
697
702
  })]
@@ -699,7 +704,7 @@ function It({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
699
704
  }),
700
705
  /* @__PURE__ */ q($, {
701
706
  label: d("timeInStatus"),
702
- children: /* @__PURE__ */ q(at, {
707
+ children: /* @__PURE__ */ q(ot, {
703
708
  workspace: n,
704
709
  identifier: r.identifier
705
710
  })
@@ -719,7 +724,7 @@ function It({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
719
724
  ]
720
725
  });
721
726
  }
722
- var Lt = [
727
+ var Rt = [
723
728
  "#d73a4a",
724
729
  "#2f8a57",
725
730
  "#8250df",
@@ -728,7 +733,7 @@ var Lt = [
728
733
  "#57606a",
729
734
  "#1a7f37"
730
735
  ];
731
- function Rt({ workspace: e, origin: t, className: n }) {
736
+ function zt({ workspace: e, origin: t, className: n }) {
732
737
  let r = "size-3.5 shrink-0 text-muted-foreground", a = t.title.replace(/[*_`#>[\]]/g, "").replace(/\s+/g, " ").trim();
733
738
  switch (t.kind) {
734
739
  case "decision": return /* @__PURE__ */ J(i, {
@@ -738,7 +743,7 @@ function Rt({ workspace: e, origin: t, className: n }) {
738
743
  identifier: t.key
739
744
  },
740
745
  className: n,
741
- children: [/* @__PURE__ */ q(M, { className: r }), /* @__PURE__ */ q(vt, {
746
+ children: [/* @__PURE__ */ q(M, { className: r }), /* @__PURE__ */ q(yt, {
742
747
  content: a,
743
748
  overflowOnly: !0,
744
749
  children: /* @__PURE__ */ q("span", {
@@ -770,7 +775,7 @@ function Rt({ workspace: e, origin: t, className: n }) {
770
775
  });
771
776
  }
772
777
  }
773
- function zt({ workspace: e, issue: t, team: n, update: r, row: i }) {
778
+ function Bt({ workspace: e, issue: t, team: n, update: r, row: i }) {
774
779
  let a = G("planning"), s = G("flow"), c = ne(), u = ce(), { data: d = [] } = X(g(e)), f = d.find((e) => e.id === t.project?.id), { data: p = [] } = X({
775
780
  ...l(e, n?.key ?? ""),
776
781
  enabled: !!n?.cyclesEnabled
@@ -834,7 +839,7 @@ function zt({ workspace: e, issue: t, team: n, update: r, row: i }) {
834
839
  }),
835
840
  t.origin && /* @__PURE__ */ q($, {
836
841
  label: a("startedFrom"),
837
- children: /* @__PURE__ */ q(Rt, {
842
+ children: /* @__PURE__ */ q(zt, {
838
843
  workspace: e,
839
844
  origin: t.origin,
840
845
  className: i
@@ -951,7 +956,7 @@ function zt({ workspace: e, issue: t, team: n, update: r, row: i }) {
951
956
  label: a("dueDate"),
952
957
  children: /* @__PURE__ */ J("div", {
953
958
  className: "flex items-center",
954
- children: [/* @__PURE__ */ q(ft, {
959
+ children: [/* @__PURE__ */ q(pt, {
955
960
  value: t.dueDate ?? "",
956
961
  onValueChange: (e) => r({ dueDate: e }),
957
962
  "aria-label": a("dueDate"),
@@ -967,7 +972,7 @@ function zt({ workspace: e, issue: t, team: n, update: r, row: i }) {
967
972
  children: a("noDueDate")
968
973
  })] })
969
974
  })
970
- }), t.dueDate && /* @__PURE__ */ q(mt, {
975
+ }), t.dueDate && /* @__PURE__ */ q(ht, {
971
976
  variant: "ghost",
972
977
  icon: /* @__PURE__ */ q(O, { className: "size-3.5" }),
973
978
  label: a("clearDueDate"),
@@ -987,8 +992,8 @@ function zt({ workspace: e, issue: t, team: n, update: r, row: i }) {
987
992
  })
988
993
  ] });
989
994
  }
990
- function Bt({ workspace: e, issue: t, update: n, row: r }) {
991
- let i = G("issueTypes"), a = Ot(), { data: o } = X(Ce(e)), { data: s } = X(be(e)), { confirm: c, dialog: l } = Se(), [u, d] = W(!1), f = Te(o, t.teamId);
995
+ function Vt({ workspace: e, issue: t, update: n, row: r }) {
996
+ let i = G("issueTypes"), a = kt(), { data: o } = X(Ce(e)), { data: s } = X(be(e)), { confirm: c, dialog: l } = Se(), [u, d] = W(!1), f = Te(o, t.teamId);
992
997
  if (f.length === 0 && !t.type) return null;
993
998
  let p = (e) => {
994
999
  let r = f.find((t) => t.id === e), o = (s ?? []).filter((e) => xe(t.fields[e.id]) && !we(r, e.id));
@@ -1035,15 +1040,15 @@ function Bt({ workspace: e, issue: t, update: n, row: r }) {
1035
1040
  function $({ label: e, shortcut: t, children: n }) {
1036
1041
  return /* @__PURE__ */ J("div", { children: [/* @__PURE__ */ J("p", {
1037
1042
  className: "mb-1 flex items-center justify-between px-2 text-xs text-muted-foreground",
1038
- children: [e, t && /* @__PURE__ */ q(ht, {
1043
+ children: [e, t && /* @__PURE__ */ q(gt, {
1039
1044
  keys: t,
1040
1045
  size: "xs",
1041
1046
  className: "hidden md:inline-flex"
1042
1047
  })]
1043
1048
  }), n] });
1044
1049
  }
1045
- function Vt({ workspace: e, identifier: t }) {
1046
- let n = G("issue.activity"), { data: r } = Q(u(e, t)), [i, a] = W(!1), o = Et(() => {
1050
+ function Ht({ workspace: e, identifier: t }) {
1051
+ let n = G("issue.activity"), { data: r } = Q(u(e, t)), [i, a] = W(!1), o = Dt(() => {
1047
1052
  let e = [];
1048
1053
  for (let t of r) {
1049
1054
  if (t.type.startsWith("comment.") || t.type.startsWith("issue.reaction_")) continue;
@@ -1076,14 +1081,14 @@ function Vt({ workspace: e, identifier: t }) {
1076
1081
  ]
1077
1082
  });
1078
1083
  }
1079
- function Ht({ workspace: e, identifier: t, others: n }) {
1080
- let r = G("issue.comments"), { data: i } = Q(c(e, t)), { data: a = [] } = X(f(e, t)), o = Et(() => {
1084
+ function Ut({ workspace: e, identifier: t, others: n }) {
1085
+ let r = G("issue.comments"), { data: i } = Q(c(e, t)), { data: a = [] } = X(f(e, t)), o = Dt(() => {
1081
1086
  let e = i.filter((e) => !e.parentId);
1082
- return e.sort((e, t) => Number(Ut(t)) - Number(Ut(e))), e.map((e) => ({
1087
+ return e.sort((e, t) => Number(Wt(t)) - Number(Wt(e))), e.map((e) => ({
1083
1088
  root: e,
1084
1089
  replies: i.filter((t) => t.parentId === e.id)
1085
1090
  }));
1086
- }, [i]), [s, l] = W(null), u = i.filter((e) => !e.deletedAt && !Ut(e)).length;
1091
+ }, [i]), [s, l] = W(null), u = i.filter((e) => !e.deletedAt && !Wt(e)).length;
1087
1092
  return /* @__PURE__ */ J("section", {
1088
1093
  className: "mt-12 border-t border-border pt-6",
1089
1094
  "aria-label": r("title"),
@@ -1102,8 +1107,8 @@ function Ht({ workspace: e, identifier: t, others: n }) {
1102
1107
  /* @__PURE__ */ q("div", {
1103
1108
  className: "mt-4 space-y-3",
1104
1109
  children: o.map(({ root: n, replies: i }) => {
1105
- let o = Ut(n) ? n.sharedWith : void 0, c = o ? L(o).source : void 0;
1106
- return /* @__PURE__ */ J(ut, {
1110
+ let o = Wt(n) ? n.sharedWith : void 0, c = o ? L(o).source : void 0;
1111
+ return /* @__PURE__ */ J(dt, {
1107
1112
  size: "fill",
1108
1113
  padding: "none",
1109
1114
  highlight: !!o,
@@ -1115,7 +1120,7 @@ function Ht({ workspace: e, identifier: t, others: n }) {
1115
1120
  o && c ? /* @__PURE__ */ q($e, {
1116
1121
  source: c,
1117
1122
  link: a.find((e) => e.connector === o)
1118
- }) : /* @__PURE__ */ q(Gt, {
1123
+ }) : /* @__PURE__ */ q(Kt, {
1119
1124
  workspace: e,
1120
1125
  identifier: t,
1121
1126
  comment: n,
@@ -1126,7 +1131,7 @@ function Ht({ workspace: e, identifier: t, others: n }) {
1126
1131
  children: i.map((r) => /* @__PURE__ */ q("li", {
1127
1132
  id: `comment-${r.id}`,
1128
1133
  className: "border-b border-border/50 last:border-b-0",
1129
- children: /* @__PURE__ */ q(Gt, {
1134
+ children: /* @__PURE__ */ q(Kt, {
1130
1135
  workspace: e,
1131
1136
  identifier: t,
1132
1137
  comment: r,
@@ -1136,7 +1141,7 @@ function Ht({ workspace: e, identifier: t, others: n }) {
1136
1141
  }),
1137
1142
  /* @__PURE__ */ q("div", {
1138
1143
  className: "border-t border-border/70 px-3 py-2",
1139
- children: s === n.id ? /* @__PURE__ */ q(qt, {
1144
+ children: s === n.id ? /* @__PURE__ */ q(Jt, {
1140
1145
  workspace: e,
1141
1146
  identifier: t,
1142
1147
  parentId: n.id,
@@ -1154,12 +1159,12 @@ function Ht({ workspace: e, identifier: t, others: n }) {
1154
1159
  }, n.id);
1155
1160
  })
1156
1161
  }),
1157
- /* @__PURE__ */ q(ut, {
1162
+ /* @__PURE__ */ q(dt, {
1158
1163
  size: "fill",
1159
1164
  padding: "sm",
1160
1165
  focusWithin: !0,
1161
1166
  className: "mt-4",
1162
- children: /* @__PURE__ */ q(qt, {
1167
+ children: /* @__PURE__ */ q(Jt, {
1163
1168
  workspace: e,
1164
1169
  identifier: t
1165
1170
  })
@@ -1175,15 +1180,15 @@ function Ht({ workspace: e, identifier: t, others: n }) {
1175
1180
  ]
1176
1181
  });
1177
1182
  }
1178
- var Ut = (e) => !!e.sharedWith && !e.parentId;
1179
- function Wt({ comment: e }) {
1183
+ var Wt = (e) => !!e.sharedWith && !e.parentId;
1184
+ function Gt({ comment: e }) {
1180
1185
  let t = G("issue.comments");
1181
1186
  return e.author.kind === "connector" ? /* @__PURE__ */ q("span", {
1182
1187
  className: "rounded border border-border px-1.5 py-px text-[10px] text-muted-foreground",
1183
1188
  children: t("via", { source: L(e.author.handle).source })
1184
1189
  }) : null;
1185
1190
  }
1186
- function Gt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1191
+ function Kt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1187
1192
  let o = G("issue.comments"), s = G("common"), { actorName: c, avatarOf: l } = te(n), { data: u } = Q(h), { data: d = [] } = X(_(n, r)), f = ve(n, "comment", { team: r.slice(0, r.lastIndexOf("-")) }), p = Z(), m = H(), [g, v] = W(!1), [y, x] = W(i.body), [C, w] = W(!1), T = U(null), E = Ne(n, r), D = i.author.kind === "user" && i.author.handle === u?.user.username, O = { path: {
1188
1193
  workspace: n,
1189
1194
  identifier: r,
@@ -1212,7 +1217,7 @@ function Gt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1212
1217
  S(s("copyLink"), M),
1213
1218
  S(o("copyText"), i.body),
1214
1219
  ...D ? [
1215
- bt,
1220
+ xt,
1216
1221
  {
1217
1222
  label: o("edit"),
1218
1223
  onClick: () => {
@@ -1237,7 +1242,7 @@ function Gt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1237
1242
  kind: i.author.kind,
1238
1243
  handle: i.author.handle,
1239
1244
  className: "flex items-center gap-2",
1240
- children: [/* @__PURE__ */ q(ct, {
1245
+ children: [/* @__PURE__ */ q(lt, {
1241
1246
  ...De(i.author.kind),
1242
1247
  name: c(i.author),
1243
1248
  src: l(i.author.kind, i.author.handle),
@@ -1248,15 +1253,15 @@ function Gt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1248
1253
  children: c(i.author)
1249
1254
  })]
1250
1255
  }),
1251
- /* @__PURE__ */ q(Wt, { comment: i }),
1256
+ /* @__PURE__ */ q(Gt, { comment: i }),
1252
1257
  /* @__PURE__ */ J("span", {
1253
1258
  className: "text-muted-foreground",
1254
- children: [/* @__PURE__ */ q(gt, {
1259
+ children: [/* @__PURE__ */ q(_t, {
1255
1260
  value: i.createdAt,
1256
1261
  exact: "medium"
1257
1262
  }), i.updatedAt !== i.createdAt && /* @__PURE__ */ J(K, { children: [" ", o("edited")] })]
1258
1263
  }),
1259
- !C && !g && /* @__PURE__ */ q(kt, {
1264
+ !C && !g && /* @__PURE__ */ q(At, {
1260
1265
  items: N,
1261
1266
  className: "ml-auto"
1262
1267
  }),
@@ -1319,16 +1324,16 @@ function Gt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1319
1324
  value: i.body,
1320
1325
  editable: !1
1321
1326
  }),
1322
- /* @__PURE__ */ q(st, {
1327
+ /* @__PURE__ */ q(ct, {
1323
1328
  workspace: n,
1324
1329
  widgets: i.widgets
1325
1330
  }),
1326
- /* @__PURE__ */ q(Kt, {
1331
+ /* @__PURE__ */ q(qt, {
1327
1332
  workspace: n,
1328
1333
  identifier: r,
1329
1334
  comment: i
1330
1335
  }),
1331
- /* @__PURE__ */ q(it, {
1336
+ /* @__PURE__ */ q(at, {
1332
1337
  workspace: n,
1333
1338
  identifier: r,
1334
1339
  commentId: i.id,
@@ -1340,7 +1345,7 @@ function Gt({ workspace: n, identifier: r, comment: i, onReply: a }) {
1340
1345
  })]
1341
1346
  });
1342
1347
  }
1343
- function Kt({ workspace: e, identifier: t, comment: n }) {
1348
+ function qt({ workspace: e, identifier: t, comment: n }) {
1344
1349
  let { data: r = [] } = X(s(e, t)), { actorName: i } = te(e), a = r.filter((e) => e.page && e.commentId === n.id);
1345
1350
  return a.length === 0 ? null : /* @__PURE__ */ q("div", {
1346
1351
  className: "mt-2 space-y-2",
@@ -1351,8 +1356,8 @@ function Kt({ workspace: e, identifier: t, comment: n }) {
1351
1356
  }, e.id))
1352
1357
  });
1353
1358
  }
1354
- function qt({ workspace: n, identifier: r, parentId: i, publicOn: a, autofocus: o = !1, onDone: s }) {
1355
- let c = G("issue.comments"), l = Dt(), u = G("common"), d = wt(Jt), f = Z(), [p, m] = W(""), [h, g] = W(0), _ = U(null), v = Ne(n, r), y = Y({
1359
+ function Jt({ workspace: n, identifier: r, parentId: i, publicOn: a, autofocus: o = !1, onDone: s }) {
1360
+ let c = G("issue.comments"), l = Ot(), u = G("common"), d = Tt(Yt), f = Z(), [p, m] = W(""), [h, g] = W(0), _ = U(null), v = Ne(n, r), y = Y({
1356
1361
  mutationFn: async () => t(await e.POST("/api/v1/workspaces/{workspace}/issues/{identifier}/comments", {
1357
1362
  params: { path: {
1358
1363
  workspace: n,
@@ -1391,7 +1396,7 @@ function qt({ workspace: n, identifier: r, parentId: i, publicOn: a, autofocus:
1391
1396
  error: v.error
1392
1397
  })]
1393
1398
  }),
1394
- y.isError && /* @__PURE__ */ q(pt, {
1399
+ y.isError && /* @__PURE__ */ q(mt, {
1395
1400
  inline: !0,
1396
1401
  className: "text-xs",
1397
1402
  children: l(y.error)
@@ -1415,5 +1420,5 @@ function qt({ workspace: n, identifier: r, parentId: i, publicOn: a, autofocus:
1415
1420
  ]
1416
1421
  })] });
1417
1422
  }
1418
- var Jt = St(() => {});
1419
- export { jt as component };
1423
+ var Yt = Ct(() => {});
1424
+ export { Mt as component };
@@ -0,0 +1,6 @@
1
+ import { createFileRoute as e, lazyFn as t, lazyRouteComponent as n } from "@tanstack/react-router";
2
+ var r = e("/$workspace/settings/sentry")({
3
+ loader: t(() => import("./sentry3.js"), "loader"),
4
+ component: n(() => import("./sentry2.js"), "component")
5
+ });
6
+ export { r as Route };