@parallelworks/tandem-web 0.150.3 → 0.151.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.
Files changed (110) hide show
  1. package/_virtual/_virtual_i18n/en/common.js +32 -3
  2. package/_virtual/_virtual_i18n/es/common.js +32 -3
  3. package/_virtual/_virtual_i18n/ja/common.js +32 -3
  4. package/_virtual/_virtual_i18n/ko/common.js +32 -3
  5. package/_virtual/_virtual_i18n/zh/common.js +32 -3
  6. package/api/queries.js +88 -77
  7. package/components/AccessGrants.js +6 -6
  8. package/components/ActivityTimeline.js +4 -4
  9. package/components/AgentWork.js +111 -111
  10. package/components/AreaLink.js +32 -0
  11. package/components/AreaTiles.js +10 -13
  12. package/components/AreaWork.js +25 -1
  13. package/components/BugRotation.js +3 -3
  14. package/components/CodeHostSettings.js +30 -30
  15. package/components/CommandPalette.js +53 -53
  16. package/components/CustomFields.js +116 -116
  17. package/components/DateChip.js +11 -11
  18. package/components/DocButton.js +6 -6
  19. package/components/DocHistory.js +4 -4
  20. package/components/DocLinkPicker.js +8 -8
  21. package/components/DocProperties.js +15 -15
  22. package/components/DocTable.js +15 -15
  23. package/components/DocsTree.js +80 -80
  24. package/components/Editor.js +35 -35
  25. package/components/FavoritesNav.js +53 -53
  26. package/components/GitHub.js +18 -18
  27. package/components/Graph.js +15 -15
  28. package/components/HostActions.js +21 -21
  29. package/components/HostPanel.js +6 -6
  30. package/components/HoverCards.js +38 -38
  31. package/components/IssueBoard.js +4 -4
  32. package/components/IssueCode.js +14 -14
  33. package/components/IssueEvent.js +3 -3
  34. package/components/IssueFilters.js +71 -71
  35. package/components/IssueListBlock.js +32 -32
  36. package/components/IssueRow.js +21 -21
  37. package/components/IssueTemplates.js +118 -118
  38. package/components/IssueTypes.js +40 -40
  39. package/components/NewIssueDialog.js +76 -76
  40. package/components/NewProjectDialog.js +145 -145
  41. package/components/PersonActivity.js +4 -4
  42. package/components/SharedViewer.js +5 -5
  43. package/components/SlashMenu.js +29 -29
  44. package/components/TeamRepositories.js +51 -51
  45. package/components/TeamWorkflow.js +6 -6
  46. package/components/UnlinkedMentions.js +20 -20
  47. package/components/Updates.js +3 -3
  48. package/components/Widgets.js +20 -20
  49. package/components/columns.js +17 -17
  50. package/components/editorPlugins.js +80 -80
  51. package/components/mathDiagrams.js +17 -17
  52. package/lib/boardMove.js +5 -5
  53. package/lib/issueList.js +58 -58
  54. package/lib/issueMenu.js +27 -27
  55. package/lib/knowledge.js +106 -106
  56. package/lib/views.js +9 -9
  57. package/package.json +1 -1
  58. package/pages/area.js +291 -0
  59. package/pages/areas.js +258 -287
  60. package/pages/decisions.js +21 -21
  61. package/pages/issues.js +52 -52
  62. package/pages/projects.js +125 -125
  63. package/pages/triage.js +12 -12
  64. package/routeTree.gen.js +186 -180
  65. package/routes/_workspace/agents/_slug2.js +11 -11
  66. package/routes/_workspace/agents/index2.js +10 -10
  67. package/routes/_workspace/areas/_area.js +7 -8
  68. package/routes/_workspace/areas/_area2.js +3 -290
  69. package/routes/_workspace/areas/_area3.js +7 -8
  70. package/routes/_workspace/docs/_doc2.js +230 -230
  71. package/routes/_workspace/docs/space2._space.js +27 -27
  72. package/routes/_workspace/issues/_identifier2.js +222 -224
  73. package/routes/_workspace/knowledge/_term2.js +43 -43
  74. package/routes/_workspace/knowledge/index.js +6 -6
  75. package/routes/_workspace/knowledge/index2.js +15 -15
  76. package/routes/_workspace/measures3.js +70 -72
  77. package/routes/_workspace/notifications2.js +150 -150
  78. package/routes/_workspace/people/_username2.js +10 -10
  79. package/routes/_workspace/projects/_projectId3.js +276 -276
  80. package/routes/_workspace/settings/audit-log3.js +136 -138
  81. package/routes/_workspace/settings/fields2.js +11 -11
  82. package/routes/_workspace/settings/github2.js +6 -6
  83. package/routes/_workspace/settings/groups2.js +26 -26
  84. package/routes/_workspace/settings/import2.js +398 -147
  85. package/routes/_workspace/settings/import3.js +7 -3
  86. package/routes/_workspace/settings/index2.js +6 -6
  87. package/routes/_workspace/settings/labels2.js +21 -21
  88. package/routes/_workspace/settings/members2.js +27 -27
  89. package/routes/_workspace/settings/notifications2.js +8 -8
  90. package/routes/_workspace/settings/parallelworks2.js +32 -32
  91. package/routes/_workspace/settings/roles2.js +24 -24
  92. package/routes/_workspace/settings/runners2.js +15 -15
  93. package/routes/_workspace/settings/sessions2.js +17 -17
  94. package/routes/_workspace/settings/slack2.js +7 -7
  95. package/routes/_workspace/settings/sso2.js +31 -31
  96. package/routes/_workspace/settings/teams2.js +25 -25
  97. package/routes/_workspace/settings/tokens2.js +12 -12
  98. package/routes/_workspace/settings/webhooks2.js +13 -13
  99. package/routes/_workspace/teams/_key/areas/_area.js +8 -0
  100. package/routes/_workspace/teams/_key/areas/_area2.js +4 -0
  101. package/routes/_workspace/teams/_key/areas/_area3.js +9 -0
  102. package/routes/_workspace/teams/_key/areas/index.js +6 -0
  103. package/routes/_workspace/teams/_key/areas/index2.js +4 -0
  104. package/routes/_workspace/teams/_key/{areas3.js → areas/index3.js} +2 -2
  105. package/routes/_workspace/teams/_key/cycles/_number2.js +27 -27
  106. package/routes/_workspace/teams/_key/cycles/index2.js +24 -24
  107. package/routes/_workspace/teams/_key/settings2.js +29 -29
  108. package/routes/_workspace2.js +368 -368
  109. package/routes/_workspace/teams/_key/areas.js +0 -6
  110. package/routes/_workspace/teams/_key/areas2.js +0 -4
@@ -2,25 +2,25 @@ import { usePageTitle as e } from "../../lib/pageTitle.js";
2
2
  import { Link as t, useNavigate as n } from "../../lib/router.js";
3
3
  import { Route as r } from "./notifications.js";
4
4
  import { issueDecisionsQuery as i, issueQuery as a, notificationsQuery as o, teamsQuery as s } from "../../api/queries.js";
5
- import { ArchiveIcon as c, CheckIcon as l, FileTextIcon as u, InboxIcon as d, PriorityIcon as f, ProjectIcon as p, StatusIcon as m, usePriorityNames as h } from "../../components/icons.js";
6
- import { copyItem as g, useLinkItems as _ } from "../../lib/menus.js";
7
- import { usePeople as v } from "../../lib/people.js";
8
- import { PersonHoverCard as y } from "../../components/PersonHoverCard.js";
9
- import { Editor as b } from "../../components/Editor.js";
10
- import { useArchiveNotifications as ee, useReadNotifications as te, useUnreadNotifications as ne } from "../../lib/notifications.js";
11
- import { useShortcuts as re } from "../../lib/shortcuts.js";
12
- import { parseApproval as x } from "../../lib/approval.js";
5
+ import { parseApproval as c } from "../../lib/approval.js";
6
+ import { copyItem as l, useLinkItems as u } from "../../lib/menus.js";
7
+ import { ArchiveIcon as d, CheckIcon as f, FileTextIcon as p, InboxIcon as m, PriorityIcon as h, ProjectIcon as g, StatusIcon as _, usePriorityNames as v } from "../../components/icons.js";
8
+ import { usePeople as y } from "../../lib/people.js";
9
+ import { PersonHoverCard as b } from "../../components/PersonHoverCard.js";
10
+ import { Editor as x } from "../../components/Editor.js";
13
11
  import { DecisionCard as S } from "../../components/AgentWork.js";
12
+ import { useShortcuts as ee } from "../../lib/shortcuts.js";
13
+ import { useArchiveNotifications as te, useReadNotifications as ne, useUnreadNotifications as re } from "../../lib/notifications.js";
14
14
  import { plainText as C } from "../../lib/plainText.js";
15
15
  import { Avatar as w, Button as T, Card as E, EmptyState as D, IconButton as O, RelativeTime as k, buttonClasses as A, menuDivider as j, useOpenMenu as M } from "@parallelworks/ui";
16
- import { useEffect as ie, useMemo as N, useRef as P, useState as F } from "react";
17
- import { useTranslations as I } from "use-intl";
18
- import { Fragment as L, jsx as R, jsxs as z } from "react/jsx-runtime";
19
- import { useQuery as B, useSuspenseQuery as ae } from "@tanstack/react-query";
20
- import { ListFilterMenu as oe, useListView as V } from "@parallelworks/ui/list";
16
+ import { useEffect as ie, useMemo as N, useRef as P, useState as ae } from "react";
17
+ import { useTranslations as F } from "use-intl";
18
+ import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
19
+ import { useQuery as z, useSuspenseQuery as oe } from "@tanstack/react-query";
20
+ import { ListFilterMenu as se, useListView as B } from "@parallelworks/ui/list";
21
21
  // src/routes/$workspace/notifications.tsx?tsr-split=component
22
- var H = (...e) => e.filter(Boolean).join(" ");
23
- function se(e, t) {
22
+ var V = (...e) => e.filter(Boolean).join(" ");
23
+ function H(e, t) {
24
24
  let n = /* @__PURE__ */ new Map();
25
25
  for (let r of t) {
26
26
  let t = r.projectId ? "project" : r.documentId ? "doc" : "issue", i = r.projectId ? `project:${r.projectId}` : r.documentId ? `doc:${r.documentId}` : r.identifier, a = n.get(i);
@@ -51,7 +51,7 @@ var U = {
51
51
  mentions: ["mentioned"]
52
52
  }, W = (e) => e.reason === "reminder" && e.excerpt ? /* @__PURE__ */ new Date(`${e.excerpt}T00:00:00`) : /* @__PURE__ */ new Date(0), G = (e) => e.slice(0, e.lastIndexOf("-"));
53
53
  function ce(e, t) {
54
- let n = I("notifications"), r = N(() => {
54
+ let n = F("notifications"), r = N(() => {
55
55
  let e = [{
56
56
  key: "state",
57
57
  label: n("show"),
@@ -79,41 +79,41 @@ function ce(e, t) {
79
79
  matches: (e, t) => !!e.identifier && t.includes(G(e.identifier))
80
80
  }), e;
81
81
  }, [n, t]);
82
- return V({
82
+ return B({
83
83
  storageKey: `notifications:${e}`,
84
84
  columns: [],
85
85
  facets: r
86
86
  });
87
87
  }
88
88
  function K() {
89
- let { workspace: t } = r.useParams(), { issue: i } = r.useSearch(), a = I("notifications"), u = n(), { data: { notifications: f, unread: p } } = ae(o(t));
90
- e(p > 0 ? `${a("title")} (${p})` : a("title"));
91
- let m = te(t), h = ne(t), g = ee(t), { data: _ = [] } = B(s(t)), v = ce(t, _), y = v.activeFilterCount > 0, b = (v.filters.state ?? []).includes("unread"), x = v.filters.kind ?? [], S = v.filters.team ?? [], C = N(() => {
92
- let e = f.filter((e) => (x.length === 0 || x.some((t) => U[t]?.includes(e.reason))) && (S.length === 0 || !!e.identifier && S.includes(G(e.identifier))));
93
- return se(t, e).filter((e) => !b || e.unread.length > 0 || e.key === i);
89
+ let { workspace: t } = r.useParams(), { issue: i } = r.useSearch(), a = F("notifications"), c = n(), { data: { notifications: l, unread: u } } = oe(o(t));
90
+ e(u > 0 ? `${a("title")} (${u})` : a("title"));
91
+ let p = ne(t), h = re(t), g = te(t), { data: _ = [] } = z(s(t)), v = ce(t, _), y = v.activeFilterCount > 0, b = (v.filters.state ?? []).includes("unread"), x = v.filters.kind ?? [], S = v.filters.team ?? [], C = N(() => {
92
+ let e = l.filter((e) => (x.length === 0 || x.some((t) => U[t]?.includes(e.reason))) && (S.length === 0 || !!e.identifier && S.includes(G(e.identifier))));
93
+ return H(t, e).filter((e) => !b || e.unread.length > 0 || e.key === i);
94
94
  }, [
95
95
  t,
96
- f,
96
+ l,
97
97
  b,
98
98
  x,
99
99
  S,
100
100
  i
101
- ]), w = C.findIndex((e) => e.key === i), E = w >= 0 ? C[w] : void 0, [k, A] = F(/* @__PURE__ */ new Set()), j = P(null), M = N(() => C.filter((e) => k.has(e.key)), [C, k]), V = (e) => {
102
- u({
101
+ ]), w = C.findIndex((e) => e.key === i), E = w >= 0 ? C[w] : void 0, [k, A] = ae(/* @__PURE__ */ new Set()), j = P(null), M = N(() => C.filter((e) => k.has(e.key)), [C, k]), B = (e) => {
102
+ c({
103
103
  to: "/$workspace/notifications",
104
104
  params: { workspace: t },
105
105
  search: e ? { issue: e.key } : {},
106
106
  replace: !0
107
- }), e && e.unread.length > 0 && m.mutate(e.unread);
107
+ }), e && e.unread.length > 0 && p.mutate(e.unread);
108
108
  }, W = (e) => {
109
109
  let t = e.flatMap((e) => e.unread);
110
- t.length > 0 ? m.mutate(t) : h.mutate(e.flatMap((e) => e.items.map((e) => e.id)));
110
+ t.length > 0 ? p.mutate(t) : h.mutate(e.flatMap((e) => e.items.map((e) => e.id)));
111
111
  }, K = (e) => {
112
112
  if (g.mutate(e.flatMap((e) => e.items.map((e) => e.id))), A(/* @__PURE__ */ new Set()), E && e.includes(E)) {
113
113
  let t = C.filter((t) => !e.includes(t));
114
- V(t[t.findIndex((e) => C.indexOf(e) > w)] ?? t.at(-1));
114
+ B(t[t.findIndex((e) => C.indexOf(e) > w)] ?? t.at(-1));
115
115
  }
116
- }, q = (e) => u({ to: e.href }), J = M.length > 0 ? M : E ? [E] : [], Y = (e) => A((t) => {
116
+ }, q = (e) => c({ to: e.href }), J = M.length > 0 ? M : E ? [E] : [], Y = (e) => A((t) => {
117
117
  let n = new Set(t);
118
118
  return n.has(e.key) ? n.delete(e.key) : n.add(e.key), n;
119
119
  }), X = (e, t) => {
@@ -121,12 +121,12 @@ function K() {
121
121
  A(new Set(C.slice(n, r + 1).map((e) => e.key)));
122
122
  }, Z = (e, t) => {
123
123
  let n = C.indexOf(t);
124
- e.metaKey || e.ctrlKey ? (Y(t), j.current = n) : e.shiftKey ? X(j.current ?? (w >= 0 ? w : n), n) : (A(/* @__PURE__ */ new Set()), j.current = n, V(t));
124
+ e.metaKey || e.ctrlKey ? (Y(t), j.current = n) : e.shiftKey ? X(j.current ?? (w >= 0 ? w : n), n) : (A(/* @__PURE__ */ new Set()), j.current = n, B(t));
125
125
  }, Q = (e, t) => {
126
126
  let n = Math.min(Math.max(w + e, 0), C.length - 1);
127
- t && ((j.current === null || k.size === 0) && (j.current = Math.max(w, 0)), X(j.current, n)), V(C[n]);
127
+ t && ((j.current === null || k.size === 0) && (j.current = Math.max(w, 0)), X(j.current, n)), B(C[n]);
128
128
  };
129
- re({
129
+ ee({
130
130
  j: () => Q(1, !1),
131
131
  k: () => Q(-1, !1),
132
132
  J: () => Q(1, !0),
@@ -139,57 +139,57 @@ function K() {
139
139
  Enter: () => E && q(E),
140
140
  e: () => J.length > 0 && K(J),
141
141
  u: () => J.length > 0 && W(J),
142
- Escape: () => k.size > 0 ? A(/* @__PURE__ */ new Set()) : V(void 0)
142
+ Escape: () => k.size > 0 ? A(/* @__PURE__ */ new Set()) : B(void 0)
143
143
  }), ie(() => {
144
144
  document.getElementById(`inbox-${E?.key}`)?.scrollIntoView({ block: "nearest" });
145
145
  }, [E]);
146
146
  let $ = {
147
- select: V,
147
+ select: B,
148
148
  toggleRead: W,
149
149
  archiveGroups: K,
150
150
  openIssue: q,
151
151
  clickRow: Z,
152
152
  targetsOf: (e) => k.has(e.key) ? M : (A(/* @__PURE__ */ new Set()), [e])
153
153
  };
154
- return /* @__PURE__ */ z("div", {
154
+ return /* @__PURE__ */ R("div", {
155
155
  className: "flex h-full flex-col",
156
156
  children: [
157
- /* @__PURE__ */ z("header", {
157
+ /* @__PURE__ */ R("header", {
158
158
  className: "@container flex min-h-12 shrink-0 flex-wrap items-center gap-2 border-b border-border px-4 py-2 md:px-5",
159
159
  children: [
160
- /* @__PURE__ */ R("h1", {
160
+ /* @__PURE__ */ L("h1", {
161
161
  className: "text-sm font-semibold",
162
162
  children: a("title")
163
163
  }),
164
- /* @__PURE__ */ R("span", {
164
+ /* @__PURE__ */ L("span", {
165
165
  className: "min-w-0 flex-1 truncate text-xs text-muted-foreground",
166
- children: a("unreadCount", { count: p })
166
+ children: a("unreadCount", { count: u })
167
167
  }),
168
- /* @__PURE__ */ R(oe, { view: v }),
169
- p > 0 && /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(T, {
168
+ /* @__PURE__ */ L(se, { view: v }),
169
+ u > 0 && /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L(T, {
170
170
  type: "button",
171
171
  size: "sm",
172
- loading: m.isPending,
173
- onClick: () => m.mutate(void 0),
172
+ loading: p.isPending,
173
+ onClick: () => p.mutate(void 0),
174
174
  className: "@max-3xl:hidden",
175
175
  children: a("markAllRead")
176
- }), /* @__PURE__ */ R(O, {
177
- icon: /* @__PURE__ */ R(l, {}),
176
+ }), /* @__PURE__ */ L(O, {
177
+ icon: /* @__PURE__ */ L(f, {}),
178
178
  label: a("markAllRead"),
179
179
  size: "sm",
180
- disabled: m.isPending,
181
- onClick: () => m.mutate(void 0),
180
+ disabled: p.isPending,
181
+ onClick: () => p.mutate(void 0),
182
182
  className: "@3xl:hidden"
183
183
  })] }),
184
- C.some((e) => e.unread.length === 0) && /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(T, {
184
+ C.some((e) => e.unread.length === 0) && /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L(T, {
185
185
  type: "button",
186
186
  size: "sm",
187
187
  loading: g.isPending,
188
188
  onClick: () => g.mutate(void 0),
189
189
  className: "@max-3xl:hidden",
190
190
  children: a("archiveRead")
191
- }), /* @__PURE__ */ R(O, {
192
- icon: /* @__PURE__ */ R(c, {}),
191
+ }), /* @__PURE__ */ L(O, {
192
+ icon: /* @__PURE__ */ L(d, {}),
193
193
  label: a("archiveRead"),
194
194
  size: "sm",
195
195
  disabled: g.isPending,
@@ -198,42 +198,42 @@ function K() {
198
198
  })] })
199
199
  ]
200
200
  }),
201
- M.length > 0 && /* @__PURE__ */ z("div", {
201
+ M.length > 0 && /* @__PURE__ */ R("div", {
202
202
  className: "flex min-h-9 shrink-0 flex-wrap items-center gap-x-3 gap-y-1 border-b border-border bg-human-soft px-4 py-1 text-xs md:px-5",
203
203
  children: [
204
- /* @__PURE__ */ R("span", {
204
+ /* @__PURE__ */ L("span", {
205
205
  className: "font-medium text-human",
206
206
  children: a("selected", { count: M.length })
207
207
  }),
208
- M.length < C.length && /* @__PURE__ */ R("button", {
208
+ M.length < C.length && /* @__PURE__ */ L("button", {
209
209
  type: "button",
210
210
  onClick: () => A(new Set(C.map((e) => e.key))),
211
211
  className: "hover:underline",
212
212
  children: a("selectAll", { count: C.length })
213
213
  }),
214
- /* @__PURE__ */ z("div", {
214
+ /* @__PURE__ */ R("div", {
215
215
  className: "ml-auto flex items-center gap-1.5",
216
216
  children: [
217
- /* @__PURE__ */ R(T, {
217
+ /* @__PURE__ */ L(T, {
218
218
  type: "button",
219
219
  size: "sm",
220
- onClick: () => m.mutate(M.flatMap((e) => e.unread)),
220
+ onClick: () => p.mutate(M.flatMap((e) => e.unread)),
221
221
  disabled: M.every((e) => e.unread.length === 0),
222
222
  children: a("markRead")
223
223
  }),
224
- /* @__PURE__ */ R(T, {
224
+ /* @__PURE__ */ L(T, {
225
225
  type: "button",
226
226
  size: "sm",
227
227
  onClick: () => h.mutate(M.flatMap((e) => e.items.map((e) => e.id))),
228
228
  children: a("markUnread")
229
229
  }),
230
- /* @__PURE__ */ R(T, {
230
+ /* @__PURE__ */ L(T, {
231
231
  type: "button",
232
232
  size: "sm",
233
233
  onClick: () => K(M),
234
234
  children: a("archive")
235
235
  }),
236
- /* @__PURE__ */ R("button", {
236
+ /* @__PURE__ */ L("button", {
237
237
  type: "button",
238
238
  onClick: () => A(/* @__PURE__ */ new Set()),
239
239
  className: "shrink-0 px-1 hover:underline",
@@ -243,43 +243,43 @@ function K() {
243
243
  })
244
244
  ]
245
245
  }),
246
- C.length === 0 ? /* @__PURE__ */ R("div", {
246
+ C.length === 0 ? /* @__PURE__ */ L("div", {
247
247
  className: "min-h-0 flex-1 overflow-y-auto p-6",
248
- children: y ? /* @__PURE__ */ R(D, {
249
- icon: /* @__PURE__ */ R(d, {}),
248
+ children: y ? /* @__PURE__ */ L(D, {
249
+ icon: /* @__PURE__ */ L(m, {}),
250
250
  title: a("noneMatch"),
251
- action: /* @__PURE__ */ R(T, {
251
+ action: /* @__PURE__ */ L(T, {
252
252
  type: "button",
253
253
  size: "sm",
254
254
  onClick: v.clearFilters,
255
255
  children: a("showEverything")
256
256
  })
257
- }) : /* @__PURE__ */ R(D, {
258
- icon: /* @__PURE__ */ R(d, {}),
257
+ }) : /* @__PURE__ */ L(D, {
258
+ icon: /* @__PURE__ */ L(m, {}),
259
259
  title: a("emptyTitle"),
260
260
  description: a("emptyDescription")
261
261
  })
262
- }) : /* @__PURE__ */ z("div", {
262
+ }) : /* @__PURE__ */ R("div", {
263
263
  className: "flex min-h-0 flex-1",
264
- children: [/* @__PURE__ */ R("ul", {
264
+ children: [/* @__PURE__ */ L("ul", {
265
265
  "aria-label": a("title"),
266
- className: H("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", E ? "hidden" : "flex"),
267
- children: C.map((e) => /* @__PURE__ */ R(le, {
266
+ className: V("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", E ? "hidden" : "flex"),
267
+ children: C.map((e) => /* @__PURE__ */ L(le, {
268
268
  workspace: t,
269
269
  group: e,
270
270
  selected: e === E,
271
271
  picked: k.has(e.key),
272
272
  actions: $
273
273
  }, e.key))
274
- }), /* @__PURE__ */ R("div", {
275
- className: H("min-w-0 flex-1 overflow-y-auto md:block", E ? "block" : "hidden"),
276
- children: E ? /* @__PURE__ */ R(ue, {
274
+ }), /* @__PURE__ */ L("div", {
275
+ className: V("min-w-0 flex-1 overflow-y-auto md:block", E ? "block" : "hidden"),
276
+ children: E ? /* @__PURE__ */ L(ue, {
277
277
  workspace: t,
278
278
  group: E,
279
279
  actions: $
280
- }) : /* @__PURE__ */ R("div", {
280
+ }) : /* @__PURE__ */ L("div", {
281
281
  className: "px-6 py-24",
282
- children: /* @__PURE__ */ R(D, {
282
+ children: /* @__PURE__ */ L(D, {
283
283
  title: a("noneSelected"),
284
284
  description: a("shortcuts")
285
285
  })
@@ -290,7 +290,7 @@ function K() {
290
290
  });
291
291
  }
292
292
  function q(e) {
293
- let t = I("notifications"), n = _();
293
+ let t = F("notifications"), n = u();
294
294
  return (r) => {
295
295
  let [i] = r;
296
296
  return [
@@ -307,20 +307,20 @@ function q(e) {
307
307
  ...r.length === 1 && i ? [
308
308
  j,
309
309
  ...n(i.href),
310
- ...i.identifier ? [g(t("copyId"), i.identifier)] : []
310
+ ...i.identifier ? [l(t("copyId"), i.identifier)] : []
311
311
  ] : []
312
312
  ];
313
313
  };
314
314
  }
315
315
  function J(e) {
316
- let { actorName: t } = v(e);
316
+ let { actorName: t } = y(e);
317
317
  return (e) => e.actor.kind === "agent" && e.agentName ? e.agentName : t(e.actor);
318
318
  }
319
319
  function le({ workspace: e, group: n, selected: r, picked: i, actions: a }) {
320
- let o = I("notifications"), { avatarOf: s } = v(e), c = J(e), l = M(), u = q(a), d = n.items[0], f = c(d), p = n.unread.length > 0;
321
- return /* @__PURE__ */ R("li", {
320
+ let o = F("notifications"), { avatarOf: s } = y(e), c = J(e), l = M(), u = q(a), d = n.items[0], f = c(d), p = n.unread.length > 0;
321
+ return /* @__PURE__ */ L("li", {
322
322
  id: `inbox-${n.key}`,
323
- children: /* @__PURE__ */ z(t, {
323
+ children: /* @__PURE__ */ R(t, {
324
324
  to: "/$workspace/notifications",
325
325
  params: { workspace: e },
326
326
  search: { issue: n.key },
@@ -330,59 +330,59 @@ function le({ workspace: e, group: n, selected: r, picked: i, actions: a }) {
330
330
  },
331
331
  onContextMenu: (e) => l(e, u(a.targetsOf(n))),
332
332
  "aria-current": r || void 0,
333
- className: H("relative flex gap-3 px-2 py-2.5 select-none", i ? "bg-human-soft" : H("rounded-md hover:bg-muted", r && "bg-muted")),
333
+ className: V("relative flex gap-3 px-2 py-2.5 select-none", i ? "bg-human-soft" : V("rounded-md hover:bg-muted", r && "bg-muted")),
334
334
  children: [
335
- i && /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R("span", {
335
+ i && /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L("span", {
336
336
  className: "absolute inset-y-0 left-0 w-0.5 bg-human",
337
337
  "aria-hidden": !0
338
- }), /* @__PURE__ */ R("span", {
338
+ }), /* @__PURE__ */ L("span", {
339
339
  className: "sr-only",
340
340
  children: o("picked")
341
341
  })] }),
342
- /* @__PURE__ */ R("span", {
342
+ /* @__PURE__ */ L("span", {
343
343
  className: "flex w-2 shrink-0 justify-center pt-2.5",
344
- children: p && /* @__PURE__ */ R("span", {
344
+ children: p && /* @__PURE__ */ L("span", {
345
345
  role: "img",
346
346
  "aria-label": o("unread"),
347
347
  className: "size-2 rounded-full bg-primary"
348
348
  })
349
349
  }),
350
- /* @__PURE__ */ R("span", {
351
- className: H("h-fit shrink-0 rounded-full", i && "ring-1 ring-human/40"),
352
- children: /* @__PURE__ */ R(w, {
350
+ /* @__PURE__ */ L("span", {
351
+ className: V("h-fit shrink-0 rounded-full", i && "ring-1 ring-human/40"),
352
+ children: /* @__PURE__ */ L(w, {
353
353
  name: f,
354
354
  src: s(d.actor.kind, d.actor.handle),
355
355
  size: "sm",
356
356
  decorative: !0
357
357
  })
358
358
  }),
359
- /* @__PURE__ */ z("span", {
359
+ /* @__PURE__ */ R("span", {
360
360
  className: "min-w-0 flex-1",
361
- children: [/* @__PURE__ */ z("span", {
361
+ children: [/* @__PURE__ */ R("span", {
362
362
  className: "flex items-baseline gap-2 text-sm",
363
363
  children: [
364
- /* @__PURE__ */ R($, { group: n }),
365
- /* @__PURE__ */ R("span", {
366
- className: H("flex-1 truncate", p && "font-medium"),
364
+ /* @__PURE__ */ L($, { group: n }),
365
+ /* @__PURE__ */ L("span", {
366
+ className: V("flex-1 truncate", p && "font-medium"),
367
367
  children: n.issueTitle
368
368
  }),
369
- /* @__PURE__ */ R(k, {
369
+ /* @__PURE__ */ L(k, {
370
370
  value: d.createdAt,
371
371
  format: "compact",
372
372
  exact: "medium",
373
373
  className: "shrink-0 text-xs text-muted-foreground"
374
374
  })
375
375
  ]
376
- }), /* @__PURE__ */ z("span", {
376
+ }), /* @__PURE__ */ R("span", {
377
377
  className: "mt-0.5 flex gap-2 text-xs text-muted-foreground",
378
- children: [/* @__PURE__ */ z("span", {
378
+ children: [/* @__PURE__ */ R("span", {
379
379
  className: "flex-1 truncate",
380
380
  children: [o(d.reason, {
381
381
  actor: f,
382
382
  agent: d.agentName ?? f,
383
383
  date: W(d)
384
- }), d.excerpt && d.reason !== "reminder" && /* @__PURE__ */ z(L, { children: [": ", /* @__PURE__ */ R(Z, { text: d.excerpt })] })]
385
- }), n.items.length > 1 && /* @__PURE__ */ R("span", {
384
+ }), d.excerpt && d.reason !== "reminder" && /* @__PURE__ */ R(I, { children: [": ", /* @__PURE__ */ L(Z, { text: d.excerpt })] })]
385
+ }), n.items.length > 1 && /* @__PURE__ */ L("span", {
386
386
  className: "shrink-0",
387
387
  children: o("more", { count: n.items.length - 1 })
388
388
  })]
@@ -393,23 +393,23 @@ function le({ workspace: e, group: n, selected: r, picked: i, actions: a }) {
393
393
  });
394
394
  }
395
395
  function Y({ workspace: e, identifier: t }) {
396
- let { data: n } = B(a(e, t)), r = h(), { nameOf: i, avatarOf: o } = v(e);
397
- return n ? /* @__PURE__ */ z("section", {
396
+ let { data: n } = z(a(e, t)), r = v(), { nameOf: i, avatarOf: o } = y(e);
397
+ return n ? /* @__PURE__ */ R("section", {
398
398
  className: "mt-5 rounded-lg border border-border px-4 py-3",
399
- children: [/* @__PURE__ */ z("div", {
399
+ children: [/* @__PURE__ */ R("div", {
400
400
  className: "flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground",
401
401
  children: [
402
- /* @__PURE__ */ z("span", {
402
+ /* @__PURE__ */ R("span", {
403
403
  className: "inline-flex items-center gap-1.5",
404
- children: [/* @__PURE__ */ R(m, { category: n.status.category }), n.status.name]
404
+ children: [/* @__PURE__ */ L(_, { category: n.status.category }), n.status.name]
405
405
  }),
406
- n.priority > 0 && /* @__PURE__ */ z("span", {
406
+ n.priority > 0 && /* @__PURE__ */ R("span", {
407
407
  className: "inline-flex items-center gap-1.5",
408
- children: [/* @__PURE__ */ R(f, { priority: n.priority }), r[n.priority]]
408
+ children: [/* @__PURE__ */ L(h, { priority: n.priority }), r[n.priority]]
409
409
  }),
410
- n.assignees.map((e) => /* @__PURE__ */ z("span", {
410
+ n.assignees.map((e) => /* @__PURE__ */ R("span", {
411
411
  className: "inline-flex items-center gap-1.5",
412
- children: [/* @__PURE__ */ R(w, {
412
+ children: [/* @__PURE__ */ L(w, {
413
413
  name: i(e.kind, e.handle),
414
414
  src: o(e.kind, e.handle),
415
415
  size: "xs",
@@ -417,9 +417,9 @@ function Y({ workspace: e, identifier: t }) {
417
417
  }), i(e.kind, e.handle)]
418
418
  }, `${e.kind}:${e.handle}`))
419
419
  ]
420
- }), n.body.trim() && /* @__PURE__ */ R("div", {
420
+ }), n.body.trim() && /* @__PURE__ */ L("div", {
421
421
  className: "mt-3 max-h-72 overflow-y-auto text-sm",
422
- children: /* @__PURE__ */ R(b, {
422
+ children: /* @__PURE__ */ L(x, {
423
423
  value: n.body,
424
424
  editable: !1
425
425
  })
@@ -427,33 +427,33 @@ function Y({ workspace: e, identifier: t }) {
427
427
  }) : null;
428
428
  }
429
429
  function ue({ workspace: e, group: n, actions: r }) {
430
- let i = I("notifications"), { avatarOf: a } = v(e), o = J(e), s = M(), c = q(r);
431
- return /* @__PURE__ */ z("article", {
430
+ let i = F("notifications"), { avatarOf: a } = y(e), o = J(e), s = M(), c = q(r);
431
+ return /* @__PURE__ */ R("article", {
432
432
  className: "w-full px-4 py-5 md:px-8",
433
433
  onContextMenu: (e) => s(e, c([n])),
434
434
  children: [
435
- /* @__PURE__ */ R("button", {
435
+ /* @__PURE__ */ L("button", {
436
436
  type: "button",
437
437
  onClick: () => r.select(void 0),
438
438
  className: "mb-3 text-xs text-muted-foreground hover:text-foreground md:hidden",
439
439
  children: i("back")
440
440
  }),
441
- /* @__PURE__ */ R("p", {
441
+ /* @__PURE__ */ L("p", {
442
442
  className: "text-xs text-muted-foreground",
443
- children: /* @__PURE__ */ R($, { group: n })
443
+ children: /* @__PURE__ */ L($, { group: n })
444
444
  }),
445
- /* @__PURE__ */ R("h2", {
445
+ /* @__PURE__ */ L("h2", {
446
446
  className: "mt-0.5 text-sm font-semibold",
447
- children: /* @__PURE__ */ R(t, {
447
+ children: /* @__PURE__ */ L(t, {
448
448
  to: n.href,
449
449
  className: "hover:underline",
450
450
  children: n.issueTitle
451
451
  })
452
452
  }),
453
- /* @__PURE__ */ z("div", {
453
+ /* @__PURE__ */ R("div", {
454
454
  className: "mt-3 flex flex-wrap gap-2",
455
455
  children: [
456
- /* @__PURE__ */ R(t, {
456
+ /* @__PURE__ */ L(t, {
457
457
  to: n.href,
458
458
  className: A({
459
459
  variant: "primary",
@@ -461,13 +461,13 @@ function ue({ workspace: e, group: n, actions: r }) {
461
461
  }),
462
462
  children: i(n.kind === "project" ? "openProject" : n.kind === "doc" ? "openDoc" : "openIssue")
463
463
  }),
464
- /* @__PURE__ */ R(T, {
464
+ /* @__PURE__ */ L(T, {
465
465
  type: "button",
466
466
  size: "sm",
467
467
  onClick: () => r.toggleRead([n]),
468
468
  children: n.unread.length > 0 ? i("markRead") : i("markUnread")
469
469
  }),
470
- /* @__PURE__ */ R(T, {
470
+ /* @__PURE__ */ L(T, {
471
471
  type: "button",
472
472
  size: "sm",
473
473
  onClick: () => r.archiveGroups([n]),
@@ -475,52 +475,52 @@ function ue({ workspace: e, group: n, actions: r }) {
475
475
  })
476
476
  ]
477
477
  }),
478
- n.identifier && /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(Y, {
478
+ n.identifier && /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L(Y, {
479
479
  workspace: e,
480
480
  identifier: n.identifier
481
- }), /* @__PURE__ */ R(Q, {
481
+ }), /* @__PURE__ */ L(Q, {
482
482
  workspace: e,
483
483
  identifier: n.identifier
484
484
  })] }),
485
- /* @__PURE__ */ R(E, {
485
+ /* @__PURE__ */ L(E, {
486
486
  size: "fill",
487
487
  padding: "none",
488
488
  divided: !0,
489
489
  interactive: !1,
490
- render: /* @__PURE__ */ R("ol", {}),
490
+ render: /* @__PURE__ */ L("ol", {}),
491
491
  className: "mt-5 overflow-hidden",
492
492
  children: n.items.map((t) => {
493
493
  let n = o(t);
494
- return /* @__PURE__ */ z("li", {
494
+ return /* @__PURE__ */ R("li", {
495
495
  className: "flex gap-3 px-3 py-3",
496
- children: [/* @__PURE__ */ R(y, {
496
+ children: [/* @__PURE__ */ L(b, {
497
497
  workspace: e,
498
498
  kind: t.actor.kind,
499
499
  handle: t.actor.handle,
500
500
  className: "inline-flex shrink-0 self-start",
501
- children: /* @__PURE__ */ R(w, {
501
+ children: /* @__PURE__ */ L(w, {
502
502
  name: n,
503
503
  src: a(t.actor.kind, t.actor.handle),
504
504
  size: "sm"
505
505
  })
506
- }), /* @__PURE__ */ z("div", {
506
+ }), /* @__PURE__ */ R("div", {
507
507
  className: "min-w-0 flex-1",
508
- children: [/* @__PURE__ */ z("p", {
508
+ children: [/* @__PURE__ */ R("p", {
509
509
  className: "flex items-baseline gap-2 text-sm",
510
- children: [/* @__PURE__ */ R("span", {
511
- className: H("flex-1", !t.readAt && "font-medium"),
510
+ children: [/* @__PURE__ */ L("span", {
511
+ className: V("flex-1", !t.readAt && "font-medium"),
512
512
  children: i(t.reason, {
513
513
  actor: n,
514
514
  agent: t.agentName ?? n,
515
515
  date: W(t)
516
516
  })
517
- }), /* @__PURE__ */ R(k, {
517
+ }), /* @__PURE__ */ L(k, {
518
518
  value: t.createdAt,
519
519
  format: "compact",
520
520
  exact: "medium",
521
521
  className: "text-xs text-muted-foreground"
522
522
  })]
523
- }), t.excerpt && t.reason !== "reminder" && /* @__PURE__ */ R(X, { text: t.excerpt })]
523
+ }), t.excerpt && t.reason !== "reminder" && /* @__PURE__ */ L(X, { text: t.excerpt })]
524
524
  })]
525
525
  }, t.id);
526
526
  })
@@ -529,57 +529,57 @@ function ue({ workspace: e, group: n, actions: r }) {
529
529
  });
530
530
  }
531
531
  function X({ text: e }) {
532
- let t = I("agentWork"), n = x(e);
533
- return n ? /* @__PURE__ */ z("div", {
532
+ let t = F("agentWork"), n = c(e);
533
+ return n ? /* @__PURE__ */ R("div", {
534
534
  className: "mt-1 min-w-0 text-sm text-muted-foreground",
535
535
  children: [
536
- /* @__PURE__ */ R("p", { children: n.agent ? t("approveCommandFor", { agent: n.agent }) : t("approveCommand") }),
537
- /* @__PURE__ */ R("code", {
536
+ /* @__PURE__ */ L("p", { children: n.agent ? t("approveCommandFor", { agent: n.agent }) : t("approveCommand") }),
537
+ /* @__PURE__ */ L("code", {
538
538
  className: "mt-1 block rounded-md bg-muted px-2 py-1 font-mono text-xs break-all whitespace-pre-wrap text-foreground",
539
539
  children: n.command
540
540
  }),
541
- n.reason && /* @__PURE__ */ R("p", {
541
+ n.reason && /* @__PURE__ */ L("p", {
542
542
  className: "mt-1",
543
543
  children: n.reason
544
544
  })
545
545
  ]
546
- }) : /* @__PURE__ */ R("div", {
546
+ }) : /* @__PURE__ */ L("div", {
547
547
  className: "mt-1 min-w-0 text-sm text-muted-foreground",
548
- children: /* @__PURE__ */ R(b, {
548
+ children: /* @__PURE__ */ L(x, {
549
549
  value: e.replace(/<!--[\s\S]*?(-->|$)/g, "").trim(),
550
550
  editable: !1
551
551
  })
552
552
  });
553
553
  }
554
554
  function Z({ text: e }) {
555
- let t = x(e);
556
- return t ? /* @__PURE__ */ R("code", {
555
+ let t = c(e);
556
+ return t ? /* @__PURE__ */ L("code", {
557
557
  className: "font-mono",
558
558
  children: t.command
559
559
  }) : C(e);
560
560
  }
561
561
  function Q({ workspace: e, identifier: t }) {
562
- let n = I("notifications"), { data: r = [] } = B(i(e, t)), a = r.filter((e) => !e.answer && !e.canceled);
563
- return a.length === 0 ? null : /* @__PURE__ */ z("section", {
562
+ let n = F("notifications"), { data: r = [] } = z(i(e, t)), a = r.filter((e) => !e.answer && !e.canceled);
563
+ return a.length === 0 ? null : /* @__PURE__ */ R("section", {
564
564
  "aria-label": n("waitingOnYou"),
565
565
  className: "mt-5 space-y-3",
566
- children: [/* @__PURE__ */ R("h3", {
566
+ children: [/* @__PURE__ */ L("h3", {
567
567
  className: "text-xs font-medium text-muted-foreground",
568
568
  children: n("waitingOnYou")
569
- }), a.map((t) => /* @__PURE__ */ R(S, {
569
+ }), a.map((t) => /* @__PURE__ */ L(S, {
570
570
  workspace: e,
571
571
  decision: t
572
572
  }, t.id))]
573
573
  });
574
574
  }
575
575
  function $({ group: e }) {
576
- let t = I("notifications");
577
- return e.identifier ? /* @__PURE__ */ R("span", {
576
+ let t = F("notifications");
577
+ return e.identifier ? /* @__PURE__ */ L("span", {
578
578
  className: "shrink-0 text-xs text-muted-foreground",
579
579
  children: e.identifier
580
- }) : /* @__PURE__ */ z("span", {
580
+ }) : /* @__PURE__ */ R("span", {
581
581
  className: "inline-flex shrink-0 items-center gap-1 text-xs text-muted-foreground",
582
- children: [e.kind === "doc" ? /* @__PURE__ */ R(u, { className: "size-3" }) : /* @__PURE__ */ R(p, { className: "size-3" }), t(e.kind === "doc" ? "aboutDoc" : "aboutProject")]
582
+ children: [e.kind === "doc" ? /* @__PURE__ */ L(p, { className: "size-3" }) : /* @__PURE__ */ L(g, { className: "size-3" }), t(e.kind === "doc" ? "aboutDoc" : "aboutProject")]
583
583
  });
584
584
  }
585
585
  export { K as component };