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