@parallelworks/tandem-web 0.166.0 → 0.167.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.
- 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/api/mutations.js +1 -0
- package/api/queries.js +165 -137
- package/components/ActivityTimeline.js +4 -1
- package/components/ActorAvatar.js +29 -0
- package/components/IssueEvent.js +1 -0
- package/components/IssueGroupList.js +51 -28
- package/lib/groupList.js +15 -5
- package/lib/pagedGroups.js +130 -0
- package/lib/projectList.js +1 -1
- package/lib/projectStates.js +4 -1
- package/lib/triage.js +20 -5
- package/package.json +1 -1
- package/pages/issues.js +431 -388
- package/pages/projects.js +198 -189
- package/pages/triage.js +234 -201
- package/routes/_workspace/notifications2.js +205 -226
- package/routes/_workspace/projects/_projectId3.js +198 -182
- package/routes/_workspace/teams/_key/triage3.js +4 -3
- package/routes/_workspace/triage3.js +4 -3
- package/routes/_workspace2.js +424 -418
|
@@ -4,23 +4,24 @@ 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
5
|
import { parseApproval as c } from "../../lib/approval.js";
|
|
6
6
|
import { copyItem as l, useLinkItems as u } from "../../lib/menus.js";
|
|
7
|
-
import { ArchiveIcon as d, ArrowRightIcon as f, CheckIcon as p,
|
|
8
|
-
import { usePeople as
|
|
9
|
-
import { PersonHoverCard as
|
|
10
|
-
import { Editor as
|
|
11
|
-
import { DecisionCard as
|
|
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
12
|
import { useShortcuts as ee } from "../../lib/shortcuts.js";
|
|
13
|
-
import { useArchiveNotifications as te, useReadNotifications as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
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";
|
|
21
|
+
import { ListFilterMenu as se, useListView as W } from "@parallelworks/ui/list";
|
|
21
22
|
// src/routes/$workspace/notifications.tsx?tsr-split=component
|
|
22
|
-
var
|
|
23
|
-
function
|
|
23
|
+
var G = (...e) => e.filter(Boolean).join(" ");
|
|
24
|
+
function ce(e, t) {
|
|
24
25
|
let n = /* @__PURE__ */ new Map();
|
|
25
26
|
for (let r of t) {
|
|
26
27
|
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);
|
|
@@ -40,7 +41,7 @@ function le(e, t) {
|
|
|
40
41
|
}
|
|
41
42
|
return [...n.values()];
|
|
42
43
|
}
|
|
43
|
-
var
|
|
44
|
+
var K = {
|
|
44
45
|
decisions: ["decision_requested"],
|
|
45
46
|
assigned: ["assigned"],
|
|
46
47
|
comments: ["commented"],
|
|
@@ -49,9 +50,9 @@ var G = {
|
|
|
49
50
|
updates: ["update_posted"],
|
|
50
51
|
reminders: ["reminder"],
|
|
51
52
|
mentions: ["mentioned"]
|
|
52
|
-
},
|
|
53
|
-
function
|
|
54
|
-
let n =
|
|
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
|
+
function le(e, t) {
|
|
55
|
+
let n = z("notifications"), r = R(() => {
|
|
55
56
|
let e = [{
|
|
56
57
|
key: "state",
|
|
57
58
|
label: n("show"),
|
|
@@ -63,11 +64,11 @@ function ue(e, t) {
|
|
|
63
64
|
}, {
|
|
64
65
|
key: "kind",
|
|
65
66
|
label: n("kind"),
|
|
66
|
-
options: Object.keys(
|
|
67
|
+
options: Object.keys(K).map((e) => ({
|
|
67
68
|
value: e,
|
|
68
69
|
label: n(`kinds.${e}`)
|
|
69
70
|
})),
|
|
70
|
-
matches: (e, t) => t.some((t) =>
|
|
71
|
+
matches: (e, t) => t.some((t) => K[t].includes(e.reason))
|
|
71
72
|
}], r = t.filter((e) => !e.archivedAt);
|
|
72
73
|
return r.length > 1 && e.push({
|
|
73
74
|
key: "team",
|
|
@@ -76,21 +77,21 @@ function ue(e, t) {
|
|
|
76
77
|
value: e.key,
|
|
77
78
|
label: e.name
|
|
78
79
|
})),
|
|
79
|
-
matches: (e, t) => !!e.identifier && t.includes(
|
|
80
|
+
matches: (e, t) => !!e.identifier && t.includes(J(e.identifier))
|
|
80
81
|
}), e;
|
|
81
82
|
}, [n, t]);
|
|
82
|
-
return
|
|
83
|
+
return W({
|
|
83
84
|
storageKey: `notifications:${e}`,
|
|
84
85
|
columns: [],
|
|
85
86
|
facets: r
|
|
86
87
|
});
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
-
let { workspace: t } = r.useParams(), { issue: i } = r.useSearch(), a =
|
|
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));
|
|
90
91
|
e(u > 0 ? `${a("title")} (${u})` : a("title"));
|
|
91
|
-
let f =
|
|
92
|
-
let e = l.filter((e) => (x.length === 0 || x.some((t) =>
|
|
93
|
-
return
|
|
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);
|
|
94
95
|
}, [
|
|
95
96
|
t,
|
|
96
97
|
l,
|
|
@@ -98,98 +99,98 @@ function J() {
|
|
|
98
99
|
x,
|
|
99
100
|
S,
|
|
100
101
|
i
|
|
101
|
-
]), w = C.findIndex((e) => e.key === i), T = w >= 0 ? C[w] : void 0, [
|
|
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) => {
|
|
102
103
|
c({
|
|
103
104
|
to: "/$workspace/notifications",
|
|
104
105
|
params: { workspace: t },
|
|
105
106
|
search: e ? { issue: e.key } : {},
|
|
106
107
|
replace: !0
|
|
107
108
|
}), e && e.unread.length > 0 && f.mutate(e.unread);
|
|
108
|
-
},
|
|
109
|
+
}, F = (e) => {
|
|
109
110
|
let t = e.flatMap((e) => e.unread);
|
|
110
111
|
t.length > 0 ? f.mutate(t) : m.mutate(e.flatMap((e) => e.items.map((e) => e.id)));
|
|
111
|
-
},
|
|
112
|
-
if (h.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)) {
|
|
113
114
|
let t = C.filter((t) => !e.includes(t));
|
|
114
|
-
|
|
115
|
+
P(t[t.findIndex((e) => C.indexOf(e) > w)] ?? t.at(-1));
|
|
115
116
|
}
|
|
116
|
-
},
|
|
117
|
+
}, L = (e) => c({ to: e.href }), W = j.length > 0 ? j : T ? [T] : [], q = (e) => O((t) => {
|
|
117
118
|
let n = new Set(t);
|
|
118
119
|
return n.has(e.key) ? n.delete(e.key) : n.add(e.key), n;
|
|
119
|
-
}),
|
|
120
|
+
}), Y = (e, t) => {
|
|
120
121
|
let [n, r] = e < t ? [e, t] : [t, e];
|
|
121
|
-
|
|
122
|
-
}, Y = (e, t) => {
|
|
123
|
-
let n = C.indexOf(t);
|
|
124
|
-
e.metaKey || e.ctrlKey ? (K(t), O.current = n) : e.shiftKey ? J(O.current ?? (w >= 0 ? w : n), n) : (D(/* @__PURE__ */ new Set()), O.current = n, N(t));
|
|
122
|
+
O(new Set(C.slice(n, r + 1).map((e) => e.key)));
|
|
125
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));
|
|
126
|
+
}, Z = (e, t) => {
|
|
126
127
|
let n = Math.min(Math.max(w + e, 0), C.length - 1);
|
|
127
|
-
t && ((
|
|
128
|
+
t && ((k.current === null || D.size === 0) && (k.current = Math.max(w, 0)), Y(k.current, n)), P(C[n]);
|
|
128
129
|
};
|
|
129
130
|
ee({
|
|
130
|
-
j: () =>
|
|
131
|
-
k: () =>
|
|
132
|
-
J: () =>
|
|
133
|
-
K: () =>
|
|
134
|
-
ArrowDown: (e) =>
|
|
135
|
-
ArrowUp: (e) =>
|
|
131
|
+
j: () => Z(1, !1),
|
|
132
|
+
k: () => Z(-1, !1),
|
|
133
|
+
J: () => Z(1, !0),
|
|
134
|
+
K: () => Z(-1, !0),
|
|
135
|
+
ArrowDown: (e) => Z(1, e.shiftKey),
|
|
136
|
+
ArrowUp: (e) => Z(-1, e.shiftKey),
|
|
136
137
|
x: () => {
|
|
137
|
-
T && (
|
|
138
|
+
T && (q(T), k.current = w);
|
|
138
139
|
},
|
|
139
|
-
Enter: () => T &&
|
|
140
|
-
e: () =>
|
|
141
|
-
u: () =>
|
|
142
|
-
Escape: () =>
|
|
143
|
-
}),
|
|
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(() => {
|
|
144
145
|
document.getElementById(`inbox-${T?.key}`)?.scrollIntoView({ block: "nearest" });
|
|
145
146
|
}, [T]);
|
|
146
|
-
let
|
|
147
|
-
select:
|
|
148
|
-
toggleRead:
|
|
149
|
-
archiveGroups:
|
|
150
|
-
openIssue:
|
|
151
|
-
clickRow:
|
|
152
|
-
targetsOf: (e) =>
|
|
147
|
+
let Q = {
|
|
148
|
+
select: P,
|
|
149
|
+
toggleRead: F,
|
|
150
|
+
archiveGroups: I,
|
|
151
|
+
openIssue: L,
|
|
152
|
+
clickRow: X,
|
|
153
|
+
targetsOf: (e) => D.has(e.key) ? j : (O(/* @__PURE__ */ new Set()), [e])
|
|
153
154
|
};
|
|
154
|
-
return /* @__PURE__ */
|
|
155
|
+
return /* @__PURE__ */ H("div", {
|
|
155
156
|
className: "flex h-full flex-col",
|
|
156
157
|
children: [
|
|
157
|
-
/* @__PURE__ */
|
|
158
|
+
/* @__PURE__ */ H("header", {
|
|
158
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",
|
|
159
160
|
children: [
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ V("h1", {
|
|
161
162
|
className: "text-sm font-semibold",
|
|
162
163
|
children: a("title")
|
|
163
164
|
}),
|
|
164
|
-
/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ V("span", {
|
|
165
166
|
className: "min-w-0 flex-1 truncate text-xs text-muted-foreground",
|
|
166
167
|
children: a("unreadCount", { count: u })
|
|
167
168
|
}),
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
u > 0 && /* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ V(se, { view: v }),
|
|
170
|
+
u > 0 && /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V(A, {
|
|
170
171
|
type: "button",
|
|
171
172
|
size: "sm",
|
|
172
173
|
loading: f.isPending,
|
|
173
174
|
onClick: () => f.mutate(void 0),
|
|
174
175
|
className: "@max-3xl:hidden",
|
|
175
176
|
children: a("markAllRead")
|
|
176
|
-
}), /* @__PURE__ */
|
|
177
|
-
icon: /* @__PURE__ */
|
|
177
|
+
}), /* @__PURE__ */ V(N, {
|
|
178
|
+
icon: /* @__PURE__ */ V(p, {}),
|
|
178
179
|
label: a("markAllRead"),
|
|
179
180
|
size: "sm",
|
|
180
181
|
disabled: f.isPending,
|
|
181
182
|
onClick: () => f.mutate(void 0),
|
|
182
183
|
className: "@3xl:hidden"
|
|
183
184
|
})] }),
|
|
184
|
-
C.some((e) => e.unread.length === 0) && /* @__PURE__ */
|
|
185
|
+
C.some((e) => e.unread.length === 0) && /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V(A, {
|
|
185
186
|
type: "button",
|
|
186
187
|
size: "sm",
|
|
187
188
|
loading: h.isPending,
|
|
188
189
|
onClick: () => h.mutate(void 0),
|
|
189
190
|
className: "@max-3xl:hidden",
|
|
190
191
|
children: a("archiveRead")
|
|
191
|
-
}), /* @__PURE__ */
|
|
192
|
-
icon: /* @__PURE__ */
|
|
192
|
+
}), /* @__PURE__ */ V(N, {
|
|
193
|
+
icon: /* @__PURE__ */ V(d, {}),
|
|
193
194
|
label: a("archiveRead"),
|
|
194
195
|
size: "sm",
|
|
195
196
|
disabled: h.isPending,
|
|
@@ -198,44 +199,44 @@ function J() {
|
|
|
198
199
|
})] })
|
|
199
200
|
]
|
|
200
201
|
}),
|
|
201
|
-
|
|
202
|
+
j.length > 0 && /* @__PURE__ */ H("div", {
|
|
202
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",
|
|
203
204
|
children: [
|
|
204
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ V("span", {
|
|
205
206
|
className: "font-medium text-human",
|
|
206
|
-
children: a("selected", { count:
|
|
207
|
+
children: a("selected", { count: j.length })
|
|
207
208
|
}),
|
|
208
|
-
|
|
209
|
+
j.length < C.length && /* @__PURE__ */ V("button", {
|
|
209
210
|
type: "button",
|
|
210
|
-
onClick: () =>
|
|
211
|
+
onClick: () => O(new Set(C.map((e) => e.key))),
|
|
211
212
|
className: "hover:underline",
|
|
212
213
|
children: a("selectAll", { count: C.length })
|
|
213
214
|
}),
|
|
214
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ H("div", {
|
|
215
216
|
className: "ml-auto flex items-center gap-1.5",
|
|
216
217
|
children: [
|
|
217
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ V(A, {
|
|
218
219
|
type: "button",
|
|
219
220
|
size: "sm",
|
|
220
|
-
onClick: () => f.mutate(
|
|
221
|
-
disabled:
|
|
221
|
+
onClick: () => f.mutate(j.flatMap((e) => e.unread)),
|
|
222
|
+
disabled: j.every((e) => e.unread.length === 0),
|
|
222
223
|
children: a("markRead")
|
|
223
224
|
}),
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ V(A, {
|
|
225
226
|
type: "button",
|
|
226
227
|
size: "sm",
|
|
227
|
-
onClick: () => m.mutate(
|
|
228
|
+
onClick: () => m.mutate(j.flatMap((e) => e.items.map((e) => e.id))),
|
|
228
229
|
children: a("markUnread")
|
|
229
230
|
}),
|
|
230
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ V(A, {
|
|
231
232
|
type: "button",
|
|
232
233
|
size: "sm",
|
|
233
|
-
onClick: () =>
|
|
234
|
+
onClick: () => I(j),
|
|
234
235
|
children: a("archive")
|
|
235
236
|
}),
|
|
236
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ V("button", {
|
|
237
238
|
type: "button",
|
|
238
|
-
onClick: () =>
|
|
239
|
+
onClick: () => O(/* @__PURE__ */ new Set()),
|
|
239
240
|
className: "shrink-0 px-1 hover:underline",
|
|
240
241
|
children: a("clear")
|
|
241
242
|
})
|
|
@@ -243,43 +244,43 @@ function J() {
|
|
|
243
244
|
})
|
|
244
245
|
]
|
|
245
246
|
}),
|
|
246
|
-
C.length === 0 ? /* @__PURE__ */
|
|
247
|
+
C.length === 0 ? /* @__PURE__ */ V("div", {
|
|
247
248
|
className: "min-h-0 flex-1 overflow-y-auto p-6",
|
|
248
|
-
children: y ? /* @__PURE__ */
|
|
249
|
-
icon: /* @__PURE__ */
|
|
249
|
+
children: y ? /* @__PURE__ */ V(M, {
|
|
250
|
+
icon: /* @__PURE__ */ V(g, {}),
|
|
250
251
|
title: a("noneMatch"),
|
|
251
|
-
action: /* @__PURE__ */
|
|
252
|
+
action: /* @__PURE__ */ V(A, {
|
|
252
253
|
type: "button",
|
|
253
254
|
size: "sm",
|
|
254
255
|
onClick: v.clearFilters,
|
|
255
256
|
children: a("showEverything")
|
|
256
257
|
})
|
|
257
|
-
}) : /* @__PURE__ */
|
|
258
|
-
icon: /* @__PURE__ */
|
|
258
|
+
}) : /* @__PURE__ */ V(M, {
|
|
259
|
+
icon: /* @__PURE__ */ V(g, {}),
|
|
259
260
|
title: a("emptyTitle"),
|
|
260
261
|
description: a("emptyDescription")
|
|
261
262
|
})
|
|
262
|
-
}) : /* @__PURE__ */
|
|
263
|
+
}) : /* @__PURE__ */ H("div", {
|
|
263
264
|
className: "flex min-h-0 flex-1",
|
|
264
|
-
children: [/* @__PURE__ */
|
|
265
|
+
children: [/* @__PURE__ */ V("ul", {
|
|
265
266
|
"aria-label": a("title"),
|
|
266
|
-
className:
|
|
267
|
-
children: C.map((e) => /* @__PURE__ */
|
|
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, {
|
|
268
269
|
workspace: t,
|
|
269
270
|
group: e,
|
|
270
271
|
selected: e === T,
|
|
271
|
-
picked:
|
|
272
|
-
actions:
|
|
272
|
+
picked: D.has(e.key),
|
|
273
|
+
actions: Q
|
|
273
274
|
}, e.key))
|
|
274
|
-
}), /* @__PURE__ */
|
|
275
|
-
className:
|
|
276
|
-
children: T ? /* @__PURE__ */
|
|
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, {
|
|
277
278
|
workspace: t,
|
|
278
279
|
group: T,
|
|
279
|
-
actions:
|
|
280
|
-
}) : /* @__PURE__ */
|
|
280
|
+
actions: Q
|
|
281
|
+
}) : /* @__PURE__ */ V("div", {
|
|
281
282
|
className: "px-6 py-24",
|
|
282
|
-
children: /* @__PURE__ */
|
|
283
|
+
children: /* @__PURE__ */ V(M, {
|
|
283
284
|
title: a("noneSelected"),
|
|
284
285
|
description: a("shortcuts")
|
|
285
286
|
})
|
|
@@ -289,8 +290,8 @@ function J() {
|
|
|
289
290
|
]
|
|
290
291
|
});
|
|
291
292
|
}
|
|
292
|
-
function
|
|
293
|
-
let t =
|
|
293
|
+
function X(e) {
|
|
294
|
+
let t = z("notifications"), n = u();
|
|
294
295
|
return (r) => {
|
|
295
296
|
let [i] = r;
|
|
296
297
|
return [
|
|
@@ -305,22 +306,22 @@ function Y(e) {
|
|
|
305
306
|
onClick: () => e.archiveGroups(r)
|
|
306
307
|
},
|
|
307
308
|
...r.length === 1 && i ? [
|
|
308
|
-
|
|
309
|
+
I,
|
|
309
310
|
...n(i.href),
|
|
310
311
|
...i.identifier ? [l(t("copyId"), i.identifier)] : []
|
|
311
312
|
] : []
|
|
312
313
|
];
|
|
313
314
|
};
|
|
314
315
|
}
|
|
315
|
-
function
|
|
316
|
-
let { actorName: t } =
|
|
316
|
+
function Z(e) {
|
|
317
|
+
let { actorName: t } = S(e);
|
|
317
318
|
return (e) => e.actor.kind === "agent" && e.agentName ? e.agentName : t(e.actor);
|
|
318
319
|
}
|
|
319
|
-
function
|
|
320
|
-
let o =
|
|
321
|
-
return /* @__PURE__ */
|
|
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", {
|
|
322
323
|
id: `inbox-${n.key}`,
|
|
323
|
-
children: /* @__PURE__ */
|
|
324
|
+
children: /* @__PURE__ */ H(t, {
|
|
324
325
|
to: "/$workspace/notifications",
|
|
325
326
|
params: { workspace: e },
|
|
326
327
|
search: { issue: n.key },
|
|
@@ -330,69 +331,70 @@ function de({ workspace: e, group: n, selected: r, picked: i, actions: a }) {
|
|
|
330
331
|
},
|
|
331
332
|
onContextMenu: (e) => l(e, u(a.targetsOf(n))),
|
|
332
333
|
"aria-current": r || void 0,
|
|
333
|
-
className:
|
|
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")),
|
|
334
335
|
children: [
|
|
335
|
-
i && /* @__PURE__ */
|
|
336
|
+
i && /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V("span", {
|
|
336
337
|
className: "absolute inset-y-0 left-0 w-0.5 bg-human",
|
|
337
338
|
"aria-hidden": !0
|
|
338
|
-
}), /* @__PURE__ */
|
|
339
|
+
}), /* @__PURE__ */ V("span", {
|
|
339
340
|
className: "sr-only",
|
|
340
341
|
children: o("picked")
|
|
341
342
|
})] }),
|
|
342
|
-
/* @__PURE__ */
|
|
343
|
+
/* @__PURE__ */ V("span", {
|
|
343
344
|
className: "flex w-2 shrink-0 justify-center pt-2.5",
|
|
344
|
-
children: p && /* @__PURE__ */
|
|
345
|
+
children: p && /* @__PURE__ */ V("span", {
|
|
345
346
|
role: "img",
|
|
346
347
|
"aria-label": o("unread"),
|
|
347
348
|
className: "size-2 rounded-full bg-primary"
|
|
348
349
|
})
|
|
349
350
|
}),
|
|
350
|
-
/* @__PURE__ */
|
|
351
|
-
className:
|
|
352
|
-
children: /* @__PURE__ */
|
|
353
|
-
|
|
351
|
+
/* @__PURE__ */ V("span", {
|
|
352
|
+
className: G("h-fit shrink-0 rounded-full", i && "ring-1 ring-human/40"),
|
|
353
|
+
children: /* @__PURE__ */ V(D, {
|
|
354
|
+
actor: d.actor,
|
|
354
355
|
name: f,
|
|
355
|
-
src: s(d.actor.kind, d.actor.handle)
|
|
356
|
+
src: s(d.actor.kind, d.actor.handle),
|
|
357
|
+
badge: Q(d)
|
|
356
358
|
})
|
|
357
359
|
}),
|
|
358
|
-
/* @__PURE__ */
|
|
360
|
+
/* @__PURE__ */ H("span", {
|
|
359
361
|
className: "min-w-0 flex-1",
|
|
360
|
-
children: [/* @__PURE__ */
|
|
362
|
+
children: [/* @__PURE__ */ H("span", {
|
|
361
363
|
className: "flex items-baseline gap-2 text-sm",
|
|
362
|
-
children: [/* @__PURE__ */
|
|
364
|
+
children: [/* @__PURE__ */ V($, {
|
|
363
365
|
group: n,
|
|
364
366
|
strong: p
|
|
365
|
-
}), /* @__PURE__ */
|
|
366
|
-
className:
|
|
367
|
+
}), /* @__PURE__ */ V("span", {
|
|
368
|
+
className: G("flex-1 truncate", p ? "font-medium text-foreground" : "text-muted-foreground"),
|
|
367
369
|
children: n.issueTitle
|
|
368
370
|
})]
|
|
369
|
-
}), /* @__PURE__ */
|
|
371
|
+
}), /* @__PURE__ */ H("span", {
|
|
370
372
|
className: "mt-0.5 flex gap-2 text-xs text-muted-foreground",
|
|
371
|
-
children: [/* @__PURE__ */
|
|
373
|
+
children: [/* @__PURE__ */ H("span", {
|
|
372
374
|
className: "flex-1 truncate",
|
|
373
375
|
children: [o(d.reason, {
|
|
374
376
|
actor: f,
|
|
375
377
|
agent: d.agentName ?? f,
|
|
376
|
-
date:
|
|
377
|
-
}), d.excerpt && d.reason !== "reminder" && /* @__PURE__ */
|
|
378
|
-
}), n.items.length > 1 && /* @__PURE__ */
|
|
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
381
|
className: "shrink-0",
|
|
380
382
|
children: o("more", { count: n.items.length - 1 })
|
|
381
383
|
})]
|
|
382
384
|
})]
|
|
383
385
|
}),
|
|
384
|
-
/* @__PURE__ */
|
|
386
|
+
/* @__PURE__ */ H("span", {
|
|
385
387
|
className: "flex shrink-0 flex-col items-end gap-1 pt-0.5",
|
|
386
|
-
children: [d.status && /* @__PURE__ */
|
|
388
|
+
children: [d.status && /* @__PURE__ */ H("span", {
|
|
387
389
|
className: "flex h-4 items-center",
|
|
388
|
-
children: [/* @__PURE__ */
|
|
390
|
+
children: [/* @__PURE__ */ V(y, {
|
|
389
391
|
category: d.status.category,
|
|
390
392
|
step: d.status.step
|
|
391
|
-
}), /* @__PURE__ */
|
|
393
|
+
}), /* @__PURE__ */ V("span", {
|
|
392
394
|
className: "sr-only",
|
|
393
395
|
children: d.status.name
|
|
394
396
|
})]
|
|
395
|
-
}), /* @__PURE__ */
|
|
397
|
+
}), /* @__PURE__ */ V(P, {
|
|
396
398
|
value: d.createdAt,
|
|
397
399
|
format: "compact",
|
|
398
400
|
exact: "medium",
|
|
@@ -403,59 +405,36 @@ function de({ workspace: e, group: n, selected: r, picked: i, actions: a }) {
|
|
|
403
405
|
})
|
|
404
406
|
});
|
|
405
407
|
}
|
|
406
|
-
function
|
|
408
|
+
function Q(e) {
|
|
407
409
|
switch (e.reason) {
|
|
408
|
-
case "assigned": return /* @__PURE__ */
|
|
410
|
+
case "assigned": return /* @__PURE__ */ V(b, {});
|
|
409
411
|
case "commented":
|
|
410
|
-
case "mentioned": return /* @__PURE__ */
|
|
411
|
-
case "status_changed": return e.status?.category === "completed" && e.excerpt === e.status.name ? /* @__PURE__ */
|
|
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
414
|
default: return null;
|
|
413
415
|
}
|
|
414
416
|
}
|
|
415
|
-
function
|
|
416
|
-
let
|
|
417
|
-
return /* @__PURE__ */
|
|
418
|
-
className: "relative flex",
|
|
419
|
-
children: [r === "github" || r === "gitlab" ? /* @__PURE__ */ B("span", {
|
|
420
|
-
className: "flex size-5 items-center justify-center rounded-full bg-muted text-foreground",
|
|
421
|
-
children: /* @__PURE__ */ B(m, {
|
|
422
|
-
provider: r,
|
|
423
|
-
className: "size-3.5"
|
|
424
|
-
})
|
|
425
|
-
}) : /* @__PURE__ */ B(O, {
|
|
426
|
-
name: t,
|
|
427
|
-
src: n,
|
|
428
|
-
kind: e.actor.kind === "agent" ? "agent" : "person",
|
|
429
|
-
size: "sm",
|
|
430
|
-
decorative: !0
|
|
431
|
-
}), i && /* @__PURE__ */ B("span", {
|
|
432
|
-
"aria-hidden": !0,
|
|
433
|
-
className: "absolute -right-1.5 -bottom-1.5 flex size-3.5 items-center justify-center rounded-full border border-border bg-card text-muted-foreground [&_svg]:size-2.5",
|
|
434
|
-
children: i
|
|
435
|
-
})]
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
function pe({ workspace: e, identifier: t }) {
|
|
439
|
-
let { data: n } = H(a(e, t)), r = S(), { nameOf: i, avatarOf: o } = C(e);
|
|
440
|
-
return n ? /* @__PURE__ */ V("section", {
|
|
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", {
|
|
441
420
|
className: "mt-5 rounded-lg border border-border px-4 py-3",
|
|
442
|
-
children: [/* @__PURE__ */
|
|
421
|
+
children: [/* @__PURE__ */ H("div", {
|
|
443
422
|
className: "flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground",
|
|
444
423
|
children: [
|
|
445
|
-
/* @__PURE__ */
|
|
424
|
+
/* @__PURE__ */ H("span", {
|
|
446
425
|
className: "inline-flex items-center gap-1.5",
|
|
447
|
-
children: [/* @__PURE__ */
|
|
426
|
+
children: [/* @__PURE__ */ V(y, {
|
|
448
427
|
category: n.status.category,
|
|
449
428
|
step: n.status.step
|
|
450
429
|
}), n.status.name]
|
|
451
430
|
}),
|
|
452
|
-
n.priority > 0 && /* @__PURE__ */
|
|
431
|
+
n.priority > 0 && /* @__PURE__ */ H("span", {
|
|
453
432
|
className: "inline-flex items-center gap-1.5",
|
|
454
|
-
children: [/* @__PURE__ */
|
|
433
|
+
children: [/* @__PURE__ */ V(_, { priority: n.priority }), r[n.priority]]
|
|
455
434
|
}),
|
|
456
|
-
n.assignees.map((e) => /* @__PURE__ */
|
|
435
|
+
n.assignees.map((e) => /* @__PURE__ */ H("span", {
|
|
457
436
|
className: "inline-flex items-center gap-1.5",
|
|
458
|
-
children: [/* @__PURE__ */
|
|
437
|
+
children: [/* @__PURE__ */ V(k, {
|
|
459
438
|
name: i(e.kind, e.handle),
|
|
460
439
|
src: o(e.kind, e.handle),
|
|
461
440
|
size: "xs",
|
|
@@ -463,57 +442,57 @@ function pe({ workspace: e, identifier: t }) {
|
|
|
463
442
|
}), i(e.kind, e.handle)]
|
|
464
443
|
}, `${e.kind}:${e.handle}`))
|
|
465
444
|
]
|
|
466
|
-
}), n.body.trim() && /* @__PURE__ */
|
|
445
|
+
}), n.body.trim() && /* @__PURE__ */ V("div", {
|
|
467
446
|
className: "mt-3 max-h-72 overflow-y-auto text-sm",
|
|
468
|
-
children: /* @__PURE__ */
|
|
447
|
+
children: /* @__PURE__ */ V(w, {
|
|
469
448
|
value: n.body,
|
|
470
449
|
editable: !1
|
|
471
450
|
})
|
|
472
451
|
})]
|
|
473
452
|
}) : null;
|
|
474
453
|
}
|
|
475
|
-
function
|
|
476
|
-
let i =
|
|
477
|
-
return /* @__PURE__ */
|
|
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", {
|
|
478
457
|
className: "w-full px-4 py-5 md:px-8",
|
|
479
458
|
onContextMenu: (e) => s(e, c([n])),
|
|
480
459
|
children: [
|
|
481
|
-
/* @__PURE__ */
|
|
460
|
+
/* @__PURE__ */ V("button", {
|
|
482
461
|
type: "button",
|
|
483
462
|
onClick: () => r.select(void 0),
|
|
484
463
|
className: "mb-3 text-xs text-muted-foreground hover:text-foreground md:hidden",
|
|
485
464
|
children: i("back")
|
|
486
465
|
}),
|
|
487
|
-
/* @__PURE__ */
|
|
466
|
+
/* @__PURE__ */ V("p", {
|
|
488
467
|
className: "text-xs text-muted-foreground",
|
|
489
|
-
children: /* @__PURE__ */
|
|
468
|
+
children: /* @__PURE__ */ V($, { group: n })
|
|
490
469
|
}),
|
|
491
|
-
/* @__PURE__ */
|
|
470
|
+
/* @__PURE__ */ V("h2", {
|
|
492
471
|
className: "mt-0.5 text-sm font-semibold",
|
|
493
|
-
children: /* @__PURE__ */
|
|
472
|
+
children: /* @__PURE__ */ V(t, {
|
|
494
473
|
to: n.href,
|
|
495
474
|
className: "hover:underline",
|
|
496
475
|
children: n.issueTitle
|
|
497
476
|
})
|
|
498
477
|
}),
|
|
499
|
-
/* @__PURE__ */
|
|
478
|
+
/* @__PURE__ */ H("div", {
|
|
500
479
|
className: "mt-3 flex flex-wrap gap-2",
|
|
501
480
|
children: [
|
|
502
|
-
/* @__PURE__ */
|
|
481
|
+
/* @__PURE__ */ V(t, {
|
|
503
482
|
to: n.href,
|
|
504
|
-
className:
|
|
483
|
+
className: F({
|
|
505
484
|
variant: "primary",
|
|
506
485
|
size: "sm"
|
|
507
486
|
}),
|
|
508
487
|
children: i(n.kind === "project" ? "openProject" : n.kind === "doc" ? "openDoc" : "openIssue")
|
|
509
488
|
}),
|
|
510
|
-
/* @__PURE__ */
|
|
489
|
+
/* @__PURE__ */ V(A, {
|
|
511
490
|
type: "button",
|
|
512
491
|
size: "sm",
|
|
513
492
|
onClick: () => r.toggleRead([n]),
|
|
514
493
|
children: n.unread.length > 0 ? i("markRead") : i("markUnread")
|
|
515
494
|
}),
|
|
516
|
-
/* @__PURE__ */
|
|
495
|
+
/* @__PURE__ */ V(A, {
|
|
517
496
|
type: "button",
|
|
518
497
|
size: "sm",
|
|
519
498
|
onClick: () => r.archiveGroups([n]),
|
|
@@ -521,52 +500,52 @@ function Q({ workspace: e, group: n, actions: r }) {
|
|
|
521
500
|
})
|
|
522
501
|
]
|
|
523
502
|
}),
|
|
524
|
-
n.identifier && /* @__PURE__ */
|
|
503
|
+
n.identifier && /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V(de, {
|
|
525
504
|
workspace: e,
|
|
526
505
|
identifier: n.identifier
|
|
527
|
-
}), /* @__PURE__ */
|
|
506
|
+
}), /* @__PURE__ */ V(he, {
|
|
528
507
|
workspace: e,
|
|
529
508
|
identifier: n.identifier
|
|
530
509
|
})] }),
|
|
531
|
-
/* @__PURE__ */
|
|
510
|
+
/* @__PURE__ */ V(j, {
|
|
532
511
|
size: "fill",
|
|
533
512
|
padding: "none",
|
|
534
513
|
divided: !0,
|
|
535
514
|
interactive: !1,
|
|
536
|
-
render: /* @__PURE__ */
|
|
515
|
+
render: /* @__PURE__ */ V("ol", {}),
|
|
537
516
|
className: "mt-5 overflow-hidden",
|
|
538
517
|
children: n.items.map((t) => {
|
|
539
518
|
let n = o(t);
|
|
540
|
-
return /* @__PURE__ */
|
|
519
|
+
return /* @__PURE__ */ H("li", {
|
|
541
520
|
className: "flex gap-3 px-3 py-3",
|
|
542
|
-
children: [/* @__PURE__ */
|
|
521
|
+
children: [/* @__PURE__ */ V(C, {
|
|
543
522
|
workspace: e,
|
|
544
523
|
kind: t.actor.kind,
|
|
545
524
|
handle: t.actor.handle,
|
|
546
525
|
className: "inline-flex shrink-0 self-start",
|
|
547
|
-
children: /* @__PURE__ */
|
|
526
|
+
children: /* @__PURE__ */ V(k, {
|
|
548
527
|
name: n,
|
|
549
528
|
src: a(t.actor.kind, t.actor.handle),
|
|
550
529
|
size: "sm"
|
|
551
530
|
})
|
|
552
|
-
}), /* @__PURE__ */
|
|
531
|
+
}), /* @__PURE__ */ H("div", {
|
|
553
532
|
className: "min-w-0 flex-1",
|
|
554
|
-
children: [/* @__PURE__ */
|
|
533
|
+
children: [/* @__PURE__ */ H("p", {
|
|
555
534
|
className: "flex items-baseline gap-2 text-sm",
|
|
556
|
-
children: [/* @__PURE__ */
|
|
557
|
-
className:
|
|
535
|
+
children: [/* @__PURE__ */ V("span", {
|
|
536
|
+
className: G("flex-1", !t.readAt && "font-medium"),
|
|
558
537
|
children: i(t.reason, {
|
|
559
538
|
actor: n,
|
|
560
539
|
agent: t.agentName ?? n,
|
|
561
|
-
date:
|
|
540
|
+
date: q(t)
|
|
562
541
|
})
|
|
563
|
-
}), /* @__PURE__ */
|
|
542
|
+
}), /* @__PURE__ */ V(P, {
|
|
564
543
|
value: t.createdAt,
|
|
565
544
|
format: "compact",
|
|
566
545
|
exact: "medium",
|
|
567
546
|
className: "text-xs text-muted-foreground"
|
|
568
547
|
})]
|
|
569
|
-
}), t.excerpt && t.reason !== "reminder" && /* @__PURE__ */
|
|
548
|
+
}), t.excerpt && t.reason !== "reminder" && /* @__PURE__ */ V(pe, { text: t.excerpt })]
|
|
570
549
|
})]
|
|
571
550
|
}, t.id);
|
|
572
551
|
})
|
|
@@ -574,58 +553,58 @@ function Q({ workspace: e, group: n, actions: r }) {
|
|
|
574
553
|
]
|
|
575
554
|
});
|
|
576
555
|
}
|
|
577
|
-
function
|
|
578
|
-
let t =
|
|
579
|
-
return n ? /* @__PURE__ */
|
|
556
|
+
function pe({ text: e }) {
|
|
557
|
+
let t = z("agentWork"), n = c(e);
|
|
558
|
+
return n ? /* @__PURE__ */ H("div", {
|
|
580
559
|
className: "mt-1 min-w-0 text-sm text-muted-foreground",
|
|
581
560
|
children: [
|
|
582
|
-
/* @__PURE__ */
|
|
583
|
-
/* @__PURE__ */
|
|
561
|
+
/* @__PURE__ */ V("p", { children: n.agent ? t("approveCommandFor", { agent: n.agent }) : t("approveCommand") }),
|
|
562
|
+
/* @__PURE__ */ V("code", {
|
|
584
563
|
className: "mt-1 block rounded-md bg-muted px-2 py-1 font-mono text-xs break-all whitespace-pre-wrap text-foreground",
|
|
585
564
|
children: n.command
|
|
586
565
|
}),
|
|
587
|
-
n.reason && /* @__PURE__ */
|
|
566
|
+
n.reason && /* @__PURE__ */ V("p", {
|
|
588
567
|
className: "mt-1",
|
|
589
568
|
children: n.reason
|
|
590
569
|
})
|
|
591
570
|
]
|
|
592
|
-
}) : /* @__PURE__ */
|
|
571
|
+
}) : /* @__PURE__ */ V("div", {
|
|
593
572
|
className: "mt-1 min-w-0 text-sm text-muted-foreground",
|
|
594
|
-
children: /* @__PURE__ */
|
|
573
|
+
children: /* @__PURE__ */ V(w, {
|
|
595
574
|
value: e.replace(/<!--[\s\S]*?(-->|$)/g, "").trim(),
|
|
596
575
|
editable: !1
|
|
597
576
|
})
|
|
598
577
|
});
|
|
599
578
|
}
|
|
600
|
-
function
|
|
579
|
+
function me({ text: e }) {
|
|
601
580
|
let t = c(e);
|
|
602
|
-
return t ? /* @__PURE__ */
|
|
581
|
+
return t ? /* @__PURE__ */ V("code", {
|
|
603
582
|
className: "font-mono",
|
|
604
583
|
children: t.command
|
|
605
|
-
}) :
|
|
584
|
+
}) : O(e);
|
|
606
585
|
}
|
|
607
|
-
function
|
|
608
|
-
let n =
|
|
609
|
-
return a.length === 0 ? null : /* @__PURE__ */
|
|
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", {
|
|
610
589
|
"aria-label": n("waitingOnYou"),
|
|
611
590
|
className: "mt-5 space-y-3",
|
|
612
|
-
children: [/* @__PURE__ */
|
|
591
|
+
children: [/* @__PURE__ */ V("h3", {
|
|
613
592
|
className: "text-xs font-medium text-muted-foreground",
|
|
614
593
|
children: n("waitingOnYou")
|
|
615
|
-
}), a.map((t) => /* @__PURE__ */
|
|
594
|
+
}), a.map((t) => /* @__PURE__ */ V(T, {
|
|
616
595
|
workspace: e,
|
|
617
596
|
decision: t
|
|
618
597
|
}, t.id))]
|
|
619
598
|
});
|
|
620
599
|
}
|
|
621
600
|
function $({ group: e, strong: t = !1 }) {
|
|
622
|
-
let n =
|
|
623
|
-
return e.identifier ? /* @__PURE__ */
|
|
624
|
-
className:
|
|
601
|
+
let n = z("notifications"), r = t ? "font-medium text-foreground" : "text-muted-foreground";
|
|
602
|
+
return e.identifier ? /* @__PURE__ */ V("span", {
|
|
603
|
+
className: G("shrink-0 text-xs", r),
|
|
625
604
|
children: e.identifier
|
|
626
|
-
}) : /* @__PURE__ */
|
|
627
|
-
className:
|
|
628
|
-
children: [e.kind === "doc" ? /* @__PURE__ */
|
|
605
|
+
}) : /* @__PURE__ */ H("span", {
|
|
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")]
|
|
629
608
|
});
|
|
630
609
|
}
|
|
631
|
-
export {
|
|
610
|
+
export { Y as component };
|