@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.
- package/_virtual/_virtual_i18n/en/common.js +1 -0
- package/_virtual/_virtual_i18n/es/common.js +1 -0
- package/_virtual/_virtual_i18n/ja/common.js +1 -0
- package/_virtual/_virtual_i18n/ko/common.js +1 -0
- package/_virtual/_virtual_i18n/zh/common.js +1 -0
- package/components/AccessGrants.js +6 -6
- package/components/ActivityTimeline.js +57 -57
- package/components/ActorAvatar.js +4 -4
- package/components/AgentWork.js +494 -494
- package/components/AppLauncher.js +7 -7
- package/components/AreaLink.js +13 -13
- package/components/AreaTiles.js +13 -13
- package/components/AreaWork.js +22 -22
- package/components/Attachments.js +29 -29
- package/components/BlockHandle.js +3 -3
- package/components/BugRotation.js +8 -8
- package/components/CodeHostSettings.js +38 -38
- package/components/CollabEditor.js +13 -13
- package/components/CommandPalette.js +206 -206
- package/components/CustomFields.js +95 -95
- package/components/CustomerRequests.js +11 -11
- package/components/DashboardPanel.js +23 -23
- package/components/DateChip.js +21 -21
- package/components/DocHistory.js +14 -14
- package/components/DocIcon.js +4 -4
- package/components/DocIconPicker.js +4 -4
- package/components/DocLinkPicker.js +22 -22
- package/components/DocLook.js +16 -16
- package/components/DocProperties.js +81 -81
- package/components/DocTable.js +53 -53
- package/components/DocsTree.js +179 -179
- package/components/Editor.js +69 -69
- package/components/FavoritesNav.js +78 -78
- package/components/GitHub.js +87 -87
- package/components/Graph.js +14 -14
- package/components/HostActions.js +21 -21
- package/components/HostPanel.js +6 -6
- package/components/HoverCards.js +74 -74
- package/components/IssueBoard.js +13 -10
- package/components/IssueBreakdown.js +31 -31
- package/components/IssueCode.js +19 -19
- package/components/IssueEvent.js +12 -12
- package/components/IssueFilters.js +103 -99
- package/components/IssueGroup.js +16 -16
- package/components/IssueImport.js +13 -13
- package/components/IssueInsights.js +20 -20
- package/components/IssueListBlock.js +81 -81
- package/components/IssueRelations.js +34 -34
- package/components/IssueRow.js +31 -31
- package/components/IssueSentry.js +4 -4
- package/components/IssueTemplates.js +23 -23
- package/components/IssueTypes.js +40 -40
- package/components/MarkdownTransfer.js +10 -10
- package/components/MentionPicker.js +19 -19
- package/components/NewIssueDialog.js +53 -53
- package/components/NewProjectDialog.js +82 -82
- package/components/PersonActivity.js +13 -13
- package/components/PersonHoverCard.js +44 -44
- package/components/Planning.js +16 -16
- package/components/Reports.js +8 -8
- package/components/SettingsNav.js +15 -15
- package/components/ShareDialog.js +8 -8
- package/components/SharedViewer.js +23 -23
- package/components/SlashMenu.js +26 -26
- package/components/SubPages.js +10 -10
- package/components/TeamForm.js +9 -9
- package/components/TeamRepositories.js +21 -21
- package/components/TeamWorkflow.js +6 -6
- package/components/UnlinkedMentions.js +29 -29
- package/components/Updates.js +8 -8
- package/components/Widgets.js +4 -4
- package/components/WorkCounts.js +12 -12
- package/components/cycleCrumb.js +8 -8
- package/components/editorPlugins.js +101 -101
- package/components/settings.js +6 -6
- package/components/video.js +7 -7
- package/hostedApp.js +24 -24
- package/index.js +18 -18
- package/lib/assigneeOrder.js +6 -0
- package/lib/assignees.js +24 -20
- package/lib/attachments.js +12 -12
- package/lib/boardMove.js +27 -27
- package/lib/collab.js +1 -1
- package/lib/docs.js +115 -115
- package/lib/githubLink.js +7 -7
- package/lib/issueList.js +51 -51
- package/lib/issueMenu.js +117 -117
- package/lib/knowledge.js +134 -134
- package/lib/live.js +38 -38
- package/lib/notifications.js +47 -47
- package/lib/views.js +31 -31
- package/package.json +24 -24
- package/pages/area.js +64 -64
- package/pages/areas.js +199 -199
- package/pages/decisions.js +51 -51
- package/pages/issues.js +120 -120
- package/pages/projects.js +238 -238
- package/pages/triage.js +109 -109
- package/routes/_workspace/agents/_slug2.js +127 -127
- package/routes/_workspace/agents/index2.js +22 -22
- package/routes/_workspace/dashboards/_dashboardId2.js +84 -84
- package/routes/_workspace/dashboards/index2.js +34 -34
- package/routes/_workspace/docs/_doc2.js +267 -267
- package/routes/_workspace/docs/space2._space.js +31 -31
- package/routes/_workspace/docs2.js +4 -4
- package/routes/_workspace/graph2.js +11 -11
- package/routes/_workspace/graph3.js +11 -11
- package/routes/_workspace/issues/_identifier2.js +477 -477
- package/routes/_workspace/issues/index.js +13 -13
- package/routes/_workspace/knowledge/_term2.js +175 -175
- package/routes/_workspace/knowledge/_term3.js +4 -4
- package/routes/_workspace/knowledge/index.js +12 -12
- package/routes/_workspace/knowledge/index2.js +117 -117
- package/routes/_workspace/measures2.js +8 -8
- package/routes/_workspace/measures3.js +29 -29
- package/routes/_workspace/notifications2.js +263 -263
- package/routes/_workspace/people/_username.js +10 -10
- package/routes/_workspace/people/_username2.js +41 -41
- package/routes/_workspace/projects/_projectId3.js +303 -303
- package/routes/_workspace/projects/_projectId4.js +4 -4
- package/routes/_workspace/projects/_projectId_3.milestones._milestoneId.js +28 -28
- package/routes/_workspace/projects/_projectId_4.milestones._milestoneId.js +4 -4
- package/routes/_workspace/projects/index.js +8 -8
- package/routes/_workspace/settings/account2.js +8 -8
- package/routes/_workspace/settings/audit-log2.js +8 -8
- package/routes/_workspace/settings/audit-log3.js +155 -155
- package/routes/_workspace/settings/connections2.js +4 -4
- package/routes/_workspace/settings/fields2.js +5 -5
- package/routes/_workspace/settings/github2.js +11 -11
- package/routes/_workspace/settings/gitlab2.js +5 -5
- package/routes/_workspace/settings/groups2.js +52 -52
- package/routes/_workspace/settings/import2.js +39 -39
- package/routes/_workspace/settings/index2.js +5 -5
- package/routes/_workspace/settings/intercom2.js +11 -11
- package/routes/_workspace/settings/labels2.js +33 -33
- package/routes/_workspace/settings/members2.js +81 -81
- package/routes/_workspace/settings/notifications2.js +46 -46
- package/routes/_workspace/settings/parallelworks2.js +20 -20
- package/routes/_workspace/settings/roles2.js +41 -41
- package/routes/_workspace/settings/runners2.js +15 -15
- package/routes/_workspace/settings/sentry2.js +15 -15
- package/routes/_workspace/settings/sessions2.js +9 -9
- package/routes/_workspace/settings/sessions3.js +4 -4
- package/routes/_workspace/settings/slack2.js +12 -12
- package/routes/_workspace/settings/sso2.js +37 -37
- package/routes/_workspace/settings/sso3.js +7 -7
- package/routes/_workspace/settings/teams2.js +29 -29
- package/routes/_workspace/settings/tokens2.js +32 -32
- package/routes/_workspace/settings/tokens3.js +4 -4
- package/routes/_workspace/settings/webhooks2.js +41 -41
- package/routes/_workspace/settings/zendesk2.js +11 -11
- package/routes/_workspace/teams/_key/cycles/_number2.js +33 -33
- package/routes/_workspace/teams/_key/cycles/_number3.js +7 -7
- package/routes/_workspace/teams/_key/cycles/index2.js +37 -37
- package/routes/_workspace/teams/_key/issues.js +10 -10
- package/routes/_workspace/teams/_key/projects.js +6 -6
- package/routes/_workspace/teams/_key/settings2.js +396 -396
- package/routes/_workspace2.js +308 -308
- package/routes/_workspace3.js +8 -8
- package/routes/device2.js +4 -4
- package/routes/device3.js +4 -4
- package/routes/docs/_tag/_endpoint2.js +3 -3
- package/routes/docs/_tag/index2.js +3 -3
- package/routes/docs/route2.js +7 -7
- package/routes/index2.js +5 -5
- package/routes/login2.js +10 -10
- package/routes/new2.js +12 -12
- package/routes/new3.js +5 -5
- package/routes/request2._token.js +6 -6
- package/routes/share2._secret.js +4 -4
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { Avatar as
|
|
17
|
-
import { useEffect as
|
|
18
|
-
import { useTranslations as
|
|
19
|
-
import { Fragment as
|
|
20
|
-
import { useQuery as
|
|
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 =
|
|
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:
|
|
91
|
-
|
|
92
|
-
let
|
|
93
|
-
let
|
|
94
|
-
return ce(
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
]),
|
|
103
|
-
|
|
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:
|
|
106
|
-
search:
|
|
105
|
+
params: { workspace: e },
|
|
106
|
+
search: t ? { issue: t.key } : {},
|
|
107
107
|
replace: !0
|
|
108
|
-
}),
|
|
109
|
-
},
|
|
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 ?
|
|
112
|
-
},
|
|
113
|
-
if (
|
|
114
|
-
let t =
|
|
115
|
-
|
|
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
|
-
},
|
|
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
|
-
|
|
122
|
+
E(new Set(b.slice(n, r + 1).map((e) => e.key)));
|
|
123
123
|
}, X = (e, t) => {
|
|
124
|
-
let n =
|
|
125
|
-
e.metaKey || e.ctrlKey ? (q(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(
|
|
128
|
-
t && ((
|
|
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
|
-
|
|
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
|
-
|
|
138
|
+
w && (q(w), O.current = x);
|
|
139
139
|
},
|
|
140
|
-
Enter: () =>
|
|
141
|
-
e: () => W.length > 0 &&
|
|
142
|
-
u: () => W.length > 0 &&
|
|
143
|
-
Escape: () =>
|
|
144
|
-
}),
|
|
145
|
-
document.getElementById(`inbox-${
|
|
146
|
-
}, [
|
|
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:
|
|
149
|
-
toggleRead:
|
|
150
|
-
archiveGroups:
|
|
151
|
-
openIssue:
|
|
148
|
+
select: N,
|
|
149
|
+
toggleRead: P,
|
|
150
|
+
archiveGroups: F,
|
|
151
|
+
openIssue: I,
|
|
152
152
|
clickRow: X,
|
|
153
|
-
targetsOf: (e) =>
|
|
153
|
+
targetsOf: (e) => T.has(e.key) ? A : (E(/* @__PURE__ */ new Set()), [e])
|
|
154
154
|
};
|
|
155
|
-
return /* @__PURE__ */
|
|
155
|
+
return /* @__PURE__ */ V("div", {
|
|
156
156
|
className: "flex h-full flex-col",
|
|
157
157
|
children: [
|
|
158
|
-
/* @__PURE__ */
|
|
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__ */
|
|
161
|
+
/* @__PURE__ */ B("h1", {
|
|
162
162
|
className: "text-sm font-semibold",
|
|
163
|
-
children:
|
|
163
|
+
children: i("title")
|
|
164
164
|
}),
|
|
165
|
-
/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ B("span", {
|
|
166
166
|
className: "min-w-0 flex-1 truncate text-xs text-muted-foreground",
|
|
167
|
-
children:
|
|
167
|
+
children: i("unreadCount", { count: c })
|
|
168
168
|
}),
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
-
|
|
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:
|
|
174
|
-
onClick: () =>
|
|
173
|
+
loading: u.isPending,
|
|
174
|
+
onClick: () => u.mutate(void 0),
|
|
175
175
|
className: "@max-3xl:hidden",
|
|
176
|
-
children:
|
|
177
|
-
}), /* @__PURE__ */
|
|
178
|
-
icon: /* @__PURE__ */
|
|
179
|
-
label:
|
|
176
|
+
children: i("markAllRead")
|
|
177
|
+
}), /* @__PURE__ */ B(M, {
|
|
178
|
+
icon: /* @__PURE__ */ B(l, {}),
|
|
179
|
+
label: i("markAllRead"),
|
|
180
180
|
size: "sm",
|
|
181
|
-
disabled:
|
|
182
|
-
onClick: () =>
|
|
181
|
+
disabled: u.isPending,
|
|
182
|
+
onClick: () => u.mutate(void 0),
|
|
183
183
|
className: "@3xl:hidden"
|
|
184
184
|
})] }),
|
|
185
|
-
|
|
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:
|
|
189
|
-
onClick: () =>
|
|
188
|
+
loading: p.isPending,
|
|
189
|
+
onClick: () => p.mutate(void 0),
|
|
190
190
|
className: "@max-3xl:hidden",
|
|
191
|
-
children:
|
|
192
|
-
}), /* @__PURE__ */
|
|
193
|
-
icon: /* @__PURE__ */
|
|
194
|
-
label:
|
|
191
|
+
children: i("archiveRead")
|
|
192
|
+
}), /* @__PURE__ */ B(M, {
|
|
193
|
+
icon: /* @__PURE__ */ B(s, {}),
|
|
194
|
+
label: i("archiveRead"),
|
|
195
195
|
size: "sm",
|
|
196
|
-
disabled:
|
|
197
|
-
onClick: () =>
|
|
196
|
+
disabled: p.isPending,
|
|
197
|
+
onClick: () => p.mutate(void 0),
|
|
198
198
|
className: "@3xl:hidden"
|
|
199
199
|
})] })
|
|
200
200
|
]
|
|
201
201
|
}),
|
|
202
|
-
|
|
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__ */
|
|
205
|
+
/* @__PURE__ */ B("span", {
|
|
206
206
|
className: "font-medium text-human",
|
|
207
|
-
children:
|
|
207
|
+
children: i("selected", { count: A.length })
|
|
208
208
|
}),
|
|
209
|
-
|
|
209
|
+
A.length < b.length && /* @__PURE__ */ B("button", {
|
|
210
210
|
type: "button",
|
|
211
|
-
onClick: () =>
|
|
211
|
+
onClick: () => E(new Set(b.map((e) => e.key))),
|
|
212
212
|
className: "hover:underline",
|
|
213
|
-
children:
|
|
213
|
+
children: i("selectAll", { count: b.length })
|
|
214
214
|
}),
|
|
215
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ V("div", {
|
|
216
216
|
className: "ml-auto flex items-center gap-1.5",
|
|
217
217
|
children: [
|
|
218
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ B(k, {
|
|
219
219
|
type: "button",
|
|
220
220
|
size: "sm",
|
|
221
|
-
onClick: () =>
|
|
222
|
-
disabled:
|
|
223
|
-
children:
|
|
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__ */
|
|
225
|
+
/* @__PURE__ */ B(k, {
|
|
226
226
|
type: "button",
|
|
227
227
|
size: "sm",
|
|
228
|
-
onClick: () =>
|
|
229
|
-
children:
|
|
228
|
+
onClick: () => d.mutate(A.flatMap((e) => e.items.map((e) => e.id))),
|
|
229
|
+
children: i("markUnread")
|
|
230
230
|
}),
|
|
231
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ B(k, {
|
|
232
232
|
type: "button",
|
|
233
233
|
size: "sm",
|
|
234
|
-
onClick: () =>
|
|
235
|
-
children:
|
|
234
|
+
onClick: () => F(A),
|
|
235
|
+
children: i("archive")
|
|
236
236
|
}),
|
|
237
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ B("button", {
|
|
238
238
|
type: "button",
|
|
239
|
-
onClick: () =>
|
|
239
|
+
onClick: () => E(/* @__PURE__ */ new Set()),
|
|
240
240
|
className: "shrink-0 px-1 hover:underline",
|
|
241
|
-
children:
|
|
241
|
+
children: i("clear")
|
|
242
242
|
})
|
|
243
243
|
]
|
|
244
244
|
})
|
|
245
245
|
]
|
|
246
246
|
}),
|
|
247
|
-
|
|
247
|
+
b.length === 0 ? /* @__PURE__ */ B("div", {
|
|
248
248
|
className: "min-h-0 flex-1 overflow-y-auto p-6",
|
|
249
|
-
children:
|
|
250
|
-
icon: /* @__PURE__ */
|
|
251
|
-
title:
|
|
252
|
-
action: /* @__PURE__ */
|
|
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:
|
|
256
|
-
children:
|
|
255
|
+
onClick: h.clearFilters,
|
|
256
|
+
children: i("showEverything")
|
|
257
257
|
})
|
|
258
|
-
}) : /* @__PURE__ */
|
|
259
|
-
icon: /* @__PURE__ */
|
|
260
|
-
title:
|
|
261
|
-
description:
|
|
258
|
+
}) : /* @__PURE__ */ B(j, {
|
|
259
|
+
icon: /* @__PURE__ */ B(f, {}),
|
|
260
|
+
title: i("emptyTitle"),
|
|
261
|
+
description: i("emptyDescription")
|
|
262
262
|
})
|
|
263
|
-
}) : /* @__PURE__ */
|
|
263
|
+
}) : /* @__PURE__ */ V("div", {
|
|
264
264
|
className: "flex min-h-0 flex-1",
|
|
265
|
-
children: [/* @__PURE__ */
|
|
266
|
-
"aria-label":
|
|
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",
|
|
268
|
-
children:
|
|
269
|
-
workspace:
|
|
270
|
-
group:
|
|
271
|
-
selected:
|
|
272
|
-
picked:
|
|
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
|
-
},
|
|
275
|
-
}), /* @__PURE__ */
|
|
276
|
-
className: G("min-w-0 flex-1 overflow-y-auto md:block",
|
|
277
|
-
children:
|
|
278
|
-
workspace:
|
|
279
|
-
group:
|
|
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__ */
|
|
281
|
+
}) : /* @__PURE__ */ B("div", {
|
|
282
282
|
className: "px-6 py-24",
|
|
283
|
-
children: /* @__PURE__ */
|
|
284
|
-
title:
|
|
285
|
-
description:
|
|
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 =
|
|
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
|
-
|
|
309
|
+
F,
|
|
310
310
|
...n(i.href),
|
|
311
|
-
...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 } =
|
|
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:
|
|
321
|
-
let o =
|
|
322
|
-
return /* @__PURE__ */
|
|
323
|
-
id: `inbox-${
|
|
324
|
-
children: /* @__PURE__ */
|
|
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:
|
|
327
|
+
search: { issue: t.key },
|
|
328
328
|
replace: !0,
|
|
329
329
|
onClick: (e) => {
|
|
330
|
-
e.preventDefault(), a.clickRow(e,
|
|
330
|
+
e.preventDefault(), a.clickRow(e, t);
|
|
331
331
|
},
|
|
332
|
-
onContextMenu: (e) => l(e, u(a.targetsOf(
|
|
333
|
-
"aria-current":
|
|
334
|
-
className: G("relative flex gap-3 px-2 py-2.5 select-none",
|
|
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
|
-
|
|
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__ */
|
|
339
|
+
}), /* @__PURE__ */ B("span", {
|
|
340
340
|
className: "sr-only",
|
|
341
341
|
children: o("picked")
|
|
342
342
|
})] }),
|
|
343
|
-
/* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ B("span", {
|
|
344
344
|
className: "flex w-2 shrink-0 justify-center pt-2.5",
|
|
345
|
-
children: p && /* @__PURE__ */
|
|
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__ */
|
|
352
|
-
className: G("h-fit shrink-0 rounded-full",
|
|
353
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
360
|
+
/* @__PURE__ */ V("span", {
|
|
361
361
|
className: "min-w-0 flex-1",
|
|
362
|
-
children: [/* @__PURE__ */
|
|
362
|
+
children: [/* @__PURE__ */ V("span", {
|
|
363
363
|
className: "flex items-baseline gap-2 text-sm",
|
|
364
|
-
children: [/* @__PURE__ */
|
|
365
|
-
group:
|
|
364
|
+
children: [/* @__PURE__ */ B($, {
|
|
365
|
+
group: t,
|
|
366
366
|
strong: p
|
|
367
|
-
}), /* @__PURE__ */
|
|
367
|
+
}), /* @__PURE__ */ B("span", {
|
|
368
368
|
className: G("flex-1 truncate", p ? "font-medium text-foreground" : "text-muted-foreground"),
|
|
369
|
-
children:
|
|
369
|
+
children: t.issueTitle
|
|
370
370
|
})]
|
|
371
|
-
}), /* @__PURE__ */
|
|
371
|
+
}), /* @__PURE__ */ V("span", {
|
|
372
372
|
className: "mt-0.5 flex gap-2 text-xs text-muted-foreground",
|
|
373
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
380
|
-
}),
|
|
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:
|
|
382
|
+
children: o("more", { count: t.items.length - 1 })
|
|
383
383
|
})]
|
|
384
384
|
})]
|
|
385
385
|
}),
|
|
386
|
-
/* @__PURE__ */
|
|
386
|
+
/* @__PURE__ */ V("span", {
|
|
387
387
|
className: "flex shrink-0 flex-col items-end gap-1 pt-0.5",
|
|
388
|
-
children: [d.status && /* @__PURE__ */
|
|
388
|
+
children: [d.status && /* @__PURE__ */ V("span", {
|
|
389
389
|
className: "flex h-4 items-center",
|
|
390
|
-
children: [/* @__PURE__ */
|
|
390
|
+
children: [/* @__PURE__ */ B(h, {
|
|
391
391
|
category: d.status.category,
|
|
392
392
|
step: d.status.step
|
|
393
|
-
}), /* @__PURE__ */
|
|
393
|
+
}), /* @__PURE__ */ B("span", {
|
|
394
394
|
className: "sr-only",
|
|
395
395
|
children: d.status.name
|
|
396
396
|
})]
|
|
397
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
410
|
+
case "assigned": return /* @__PURE__ */ B(g, {});
|
|
411
411
|
case "commented":
|
|
412
|
-
case "mentioned": return /* @__PURE__ */
|
|
413
|
-
case "status_changed": return e.status?.category === "completed" && e.excerpt === e.status.name ? /* @__PURE__ */
|
|
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:
|
|
418
|
-
let { data:
|
|
419
|
-
return
|
|
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__ */
|
|
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__ */
|
|
424
|
+
/* @__PURE__ */ V("span", {
|
|
425
425
|
className: "inline-flex items-center gap-1.5",
|
|
426
|
-
children: [/* @__PURE__ */
|
|
427
|
-
category:
|
|
428
|
-
step:
|
|
429
|
-
}),
|
|
426
|
+
children: [/* @__PURE__ */ B(h, {
|
|
427
|
+
category: r.status.category,
|
|
428
|
+
step: r.status.step
|
|
429
|
+
}), r.status.name]
|
|
430
430
|
}),
|
|
431
|
-
|
|
431
|
+
r.priority > 0 && /* @__PURE__ */ V("span", {
|
|
432
432
|
className: "inline-flex items-center gap-1.5",
|
|
433
|
-
children: [/* @__PURE__ */
|
|
433
|
+
children: [/* @__PURE__ */ B(p, { priority: r.priority }), i[r.priority]]
|
|
434
434
|
}),
|
|
435
|
-
|
|
435
|
+
r.assignees.map((e) => /* @__PURE__ */ V("span", {
|
|
436
436
|
className: "inline-flex items-center gap-1.5",
|
|
437
|
-
children: [/* @__PURE__ */
|
|
438
|
-
name:
|
|
439
|
-
src:
|
|
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
|
-
}),
|
|
442
|
+
}), a(e.kind, e.handle)]
|
|
443
443
|
}, `${e.kind}:${e.handle}`))
|
|
444
444
|
]
|
|
445
|
-
}),
|
|
445
|
+
}), r.body.trim() && /* @__PURE__ */ B("div", {
|
|
446
446
|
className: "mt-3 max-h-72 overflow-y-auto text-sm",
|
|
447
|
-
children: /* @__PURE__ */
|
|
448
|
-
value:
|
|
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:
|
|
455
|
-
let
|
|
456
|
-
return /* @__PURE__ */
|
|
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) =>
|
|
458
|
+
onContextMenu: (e) => o(e, s([t])),
|
|
459
459
|
children: [
|
|
460
|
-
/* @__PURE__ */
|
|
460
|
+
/* @__PURE__ */ B("button", {
|
|
461
461
|
type: "button",
|
|
462
|
-
onClick: () =>
|
|
462
|
+
onClick: () => n.select(void 0),
|
|
463
463
|
className: "mb-3 text-xs text-muted-foreground hover:text-foreground md:hidden",
|
|
464
|
-
children:
|
|
464
|
+
children: r("back")
|
|
465
465
|
}),
|
|
466
|
-
/* @__PURE__ */
|
|
466
|
+
/* @__PURE__ */ B("p", {
|
|
467
467
|
className: "text-xs text-muted-foreground",
|
|
468
|
-
children: /* @__PURE__ */
|
|
468
|
+
children: /* @__PURE__ */ B($, { group: t })
|
|
469
469
|
}),
|
|
470
|
-
/* @__PURE__ */
|
|
470
|
+
/* @__PURE__ */ B("h2", {
|
|
471
471
|
className: "mt-0.5 text-sm font-semibold",
|
|
472
|
-
children: /* @__PURE__ */
|
|
473
|
-
to:
|
|
472
|
+
children: /* @__PURE__ */ B(E, {
|
|
473
|
+
to: t.href,
|
|
474
474
|
className: "hover:underline",
|
|
475
|
-
children:
|
|
475
|
+
children: t.issueTitle
|
|
476
476
|
})
|
|
477
477
|
}),
|
|
478
|
-
/* @__PURE__ */
|
|
478
|
+
/* @__PURE__ */ V("div", {
|
|
479
479
|
className: "mt-3 flex flex-wrap gap-2",
|
|
480
480
|
children: [
|
|
481
|
-
/* @__PURE__ */
|
|
482
|
-
to:
|
|
483
|
-
className:
|
|
481
|
+
/* @__PURE__ */ B(E, {
|
|
482
|
+
to: t.href,
|
|
483
|
+
className: P({
|
|
484
484
|
variant: "primary",
|
|
485
485
|
size: "sm"
|
|
486
486
|
}),
|
|
487
|
-
children:
|
|
487
|
+
children: r(t.kind === "project" ? "openProject" : t.kind === "doc" ? "openDoc" : "openIssue")
|
|
488
488
|
}),
|
|
489
|
-
/* @__PURE__ */
|
|
489
|
+
/* @__PURE__ */ B(k, {
|
|
490
490
|
type: "button",
|
|
491
491
|
size: "sm",
|
|
492
|
-
onClick: () =>
|
|
493
|
-
children:
|
|
492
|
+
onClick: () => n.toggleRead([t]),
|
|
493
|
+
children: t.unread.length > 0 ? r("markRead") : r("markUnread")
|
|
494
494
|
}),
|
|
495
|
-
/* @__PURE__ */
|
|
495
|
+
/* @__PURE__ */ B(k, {
|
|
496
496
|
type: "button",
|
|
497
497
|
size: "sm",
|
|
498
|
-
onClick: () =>
|
|
499
|
-
children:
|
|
498
|
+
onClick: () => n.archiveGroups([t]),
|
|
499
|
+
children: r("archive")
|
|
500
500
|
})
|
|
501
501
|
]
|
|
502
502
|
}),
|
|
503
|
-
|
|
503
|
+
t.identifier && /* @__PURE__ */ V(z, { children: [/* @__PURE__ */ B(de, {
|
|
504
504
|
workspace: e,
|
|
505
|
-
identifier:
|
|
506
|
-
}), /* @__PURE__ */
|
|
505
|
+
identifier: t.identifier
|
|
506
|
+
}), /* @__PURE__ */ B(he, {
|
|
507
507
|
workspace: e,
|
|
508
|
-
identifier:
|
|
508
|
+
identifier: t.identifier
|
|
509
509
|
})] }),
|
|
510
|
-
/* @__PURE__ */
|
|
510
|
+
/* @__PURE__ */ B(A, {
|
|
511
511
|
size: "fill",
|
|
512
512
|
padding: "none",
|
|
513
513
|
divided: !0,
|
|
514
514
|
interactive: !1,
|
|
515
|
-
render: /* @__PURE__ */
|
|
515
|
+
render: /* @__PURE__ */ B("ol", {}),
|
|
516
516
|
className: "mt-5 overflow-hidden",
|
|
517
|
-
children:
|
|
518
|
-
let n =
|
|
519
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
526
|
+
children: /* @__PURE__ */ B(O, {
|
|
527
527
|
name: n,
|
|
528
|
-
src:
|
|
528
|
+
src: i(t.actor.kind, t.actor.handle),
|
|
529
529
|
size: "sm"
|
|
530
530
|
})
|
|
531
|
-
}), /* @__PURE__ */
|
|
531
|
+
}), /* @__PURE__ */ V("div", {
|
|
532
532
|
className: "min-w-0 flex-1",
|
|
533
|
-
children: [/* @__PURE__ */
|
|
533
|
+
children: [/* @__PURE__ */ V("p", {
|
|
534
534
|
className: "flex items-baseline gap-2 text-sm",
|
|
535
|
-
children: [/* @__PURE__ */
|
|
535
|
+
children: [/* @__PURE__ */ B("span", {
|
|
536
536
|
className: G("flex-1", !t.readAt && "font-medium"),
|
|
537
|
-
children:
|
|
537
|
+
children: r(t.reason, {
|
|
538
538
|
actor: n,
|
|
539
539
|
agent: t.agentName ?? n,
|
|
540
540
|
date: q(t)
|
|
541
541
|
})
|
|
542
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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 =
|
|
558
|
-
return n ? /* @__PURE__ */
|
|
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__ */
|
|
562
|
-
/* @__PURE__ */
|
|
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__ */
|
|
566
|
+
n.reason && /* @__PURE__ */ B("p", {
|
|
567
567
|
className: "mt-1",
|
|
568
568
|
children: n.reason
|
|
569
569
|
})
|
|
570
570
|
]
|
|
571
|
-
}) : /* @__PURE__ */
|
|
571
|
+
}) : /* @__PURE__ */ B("div", {
|
|
572
572
|
className: "mt-1 min-w-0 text-sm text-muted-foreground",
|
|
573
|
-
children: /* @__PURE__ */
|
|
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 =
|
|
581
|
-
return t ? /* @__PURE__ */
|
|
580
|
+
let t = y(e);
|
|
581
|
+
return t ? /* @__PURE__ */ B("code", {
|
|
582
582
|
className: "font-mono",
|
|
583
583
|
children: t.command
|
|
584
|
-
}) :
|
|
584
|
+
}) : T(e);
|
|
585
585
|
}
|
|
586
|
-
function he({ workspace:
|
|
587
|
-
let
|
|
588
|
-
return
|
|
589
|
-
"aria-label":
|
|
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__ */
|
|
591
|
+
children: [/* @__PURE__ */ B("h3", {
|
|
592
592
|
className: "text-xs font-medium text-muted-foreground",
|
|
593
|
-
children:
|
|
594
|
-
}),
|
|
595
|
-
workspace:
|
|
596
|
-
decision:
|
|
597
|
-
},
|
|
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 =
|
|
602
|
-
return e.identifier ? /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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 };
|