@parallelworks/tandem-web 0.187.0 → 0.188.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 +8 -1
- package/_virtual/_virtual_i18n/es/common.js +8 -1
- package/_virtual/_virtual_i18n/ja/common.js +8 -1
- package/_virtual/_virtual_i18n/ko/common.js +8 -1
- package/_virtual/_virtual_i18n/zh/common.js +8 -1
- package/components/FavoritesNav.js +123 -81
- package/package.json +1 -1
- package/pages/area.js +75 -69
- package/routes/_workspace/agents/_slug2.js +132 -126
- package/routes/_workspace/dashboards/_dashboardId2.js +111 -103
- package/routes/_workspace/knowledge/_term2.js +128 -123
- package/routes/_workspace/people/_username2.js +67 -58
- package/routes/_workspace/projects/_projectId_3.milestones._milestoneId.js +86 -81
|
@@ -1,239 +1,244 @@
|
|
|
1
1
|
import { areasQuery as e, knowledgeEntryQuery as t, knowledgeEventsQuery as n, knowledgeMentionsQuery as r, knowledgeQuery as i } from "../../../api/queries.js";
|
|
2
2
|
import { Timeline as a, TimelineItem as o, activityIcon as s } from "../../../components/ActivityTimeline.js";
|
|
3
3
|
import { AttachButton as c, UploadStatus as l, useFileUpload as u } from "../../../components/Attachments.js";
|
|
4
|
-
import { Editor as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { Editor as d } from "../../../components/Editor.js";
|
|
5
|
+
import { FavoriteStar as f } from "../../../components/FavoriteStar.js";
|
|
6
|
+
import { FileTextIcon as p, LibraryIcon as ee, StatusIcon as m } from "../../../components/icons.js";
|
|
7
|
+
import { uploadKnowledgeAttachment as te } from "../../../lib/attachments.js";
|
|
7
8
|
import { docRef as h } from "../../../lib/docs.js";
|
|
8
9
|
import { headingAnchor as g } from "../../../lib/glossary.js";
|
|
9
|
-
import { EntryDialog as _, useKnowledgeActions as
|
|
10
|
-
import { termRef as
|
|
11
|
-
import { usePageTitle as
|
|
12
|
-
import { usePeople as
|
|
13
|
-
import { useCan as
|
|
14
|
-
import { Link as
|
|
15
|
-
import { useTime as
|
|
16
|
-
import { Route as
|
|
17
|
-
import { Button as
|
|
18
|
-
import { Suspense as
|
|
19
|
-
import { useErrorMessage as
|
|
20
|
-
import { useTranslations as
|
|
21
|
-
import { Fragment as
|
|
22
|
-
import { useQuery as
|
|
23
|
-
import { MoreButton as
|
|
10
|
+
import { EntryDialog as _, useKnowledgeActions as v, useKnowledgeMenu as y } from "../../../lib/knowledge.js";
|
|
11
|
+
import { termRef as b } from "../../../lib/knowledgeKinds.js";
|
|
12
|
+
import { usePageTitle as ne } from "../../../lib/pageTitle.js";
|
|
13
|
+
import { usePeople as x } from "../../../lib/people.js";
|
|
14
|
+
import { useCan as S } from "../../../lib/roles.js";
|
|
15
|
+
import { Link as C, useNavigate as w } from "../../../lib/router.js";
|
|
16
|
+
import { useTime as T } from "../../../lib/time.js";
|
|
17
|
+
import { Route as E } from "./_term.js";
|
|
18
|
+
import { Button as D, ErrorText as O, Loader as k, PageHeader as re, Section as A, TitleInput as j, Tooltip as M, useOpenMenu as N } from "@parallelworks/ui";
|
|
19
|
+
import { Suspense as P, useCallback as F, useMemo as I, useRef as L, useState as R } from "react";
|
|
20
|
+
import { useErrorMessage as z } from "@parallelworks/problem/react";
|
|
21
|
+
import { useTranslations as B } from "use-intl";
|
|
22
|
+
import { Fragment as V, jsx as H, jsxs as U } from "react/jsx-runtime";
|
|
23
|
+
import { useQuery as W, useSuspenseQuery as G } from "@tanstack/react-query";
|
|
24
|
+
import { MoreButton as K } from "@parallelworks/ui/list";
|
|
24
25
|
// src/routes/$workspace/knowledge/$term.tsx?tsr-split=component
|
|
25
|
-
function
|
|
26
|
-
let { workspace: e, term: n } =
|
|
27
|
-
|
|
28
|
-
let Q =
|
|
29
|
-
id:
|
|
26
|
+
function q() {
|
|
27
|
+
let { workspace: e, term: n } = E.useParams(), r = B("knowledge"), a = B("common"), o = w(), s = N(), p = z(), { data: m } = G(t(e, n)), { data: h } = G(i(e)), g = v(e), x = S(e, "edit_docs"), T = x && !m.archivedAt, [A, M] = R(null), W = F((e) => M(e), []), q = y(e, W), X = L(null), Z = u((t) => te(e, m.id, t));
|
|
28
|
+
ne(m.name);
|
|
29
|
+
let Q = I(() => h.filter((e) => e.supersededBy === m.id), [h, m.id]), $ = (e) => g.update.mutate({
|
|
30
|
+
id: m.id,
|
|
30
31
|
...e,
|
|
31
|
-
ifVersion:
|
|
32
|
-
}),
|
|
33
|
-
return /* @__PURE__ */
|
|
32
|
+
ifVersion: m.version
|
|
33
|
+
}), ae = m.status === "superseded";
|
|
34
|
+
return /* @__PURE__ */ U("div", {
|
|
34
35
|
className: "flex h-full min-h-0 flex-col",
|
|
35
36
|
children: [
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ H(re, {
|
|
37
38
|
heading: !1,
|
|
38
39
|
breadcrumbs: [{
|
|
39
40
|
label: r("title"),
|
|
40
41
|
href: `/${e}/knowledge`
|
|
41
42
|
}, {
|
|
42
|
-
label:
|
|
43
|
-
icon: /* @__PURE__ */
|
|
43
|
+
label: m.name,
|
|
44
|
+
icon: /* @__PURE__ */ H(ee, { className: "size-4 text-muted-foreground" })
|
|
44
45
|
}],
|
|
45
|
-
titleActions: /* @__PURE__ */ V(
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
titleActions: /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(f, {
|
|
47
|
+
workspace: e,
|
|
48
|
+
kind: "term",
|
|
49
|
+
target: m.id
|
|
50
|
+
}), /* @__PURE__ */ H(K, {
|
|
51
|
+
items: () => q(m),
|
|
52
|
+
label: a("moreActionsFor", { name: m.name }),
|
|
48
53
|
visible: !0
|
|
49
|
-
}),
|
|
50
|
-
actions: /* @__PURE__ */
|
|
54
|
+
})] }),
|
|
55
|
+
actions: /* @__PURE__ */ U(V, { children: [g.update.isPending && /* @__PURE__ */ H("span", {
|
|
51
56
|
className: "text-xs text-muted-foreground",
|
|
52
57
|
role: "status",
|
|
53
58
|
children: a("saving")
|
|
54
|
-
}),
|
|
59
|
+
}), T && /* @__PURE__ */ H(D, {
|
|
55
60
|
type: "button",
|
|
56
61
|
size: "sm",
|
|
57
|
-
onClick: () =>
|
|
62
|
+
onClick: () => W({
|
|
58
63
|
kind: "edit",
|
|
59
|
-
entry:
|
|
64
|
+
entry: m
|
|
60
65
|
}),
|
|
61
66
|
children: r("editDetails")
|
|
62
67
|
})] })
|
|
63
68
|
}),
|
|
64
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ H("div", {
|
|
65
70
|
className: "min-h-0 flex-1 overflow-y-auto",
|
|
66
|
-
children: /* @__PURE__ */
|
|
71
|
+
children: /* @__PURE__ */ U("article", {
|
|
67
72
|
className: "mx-auto w-full max-w-3xl px-4 pt-6 pb-20 md:px-8 md:pt-10",
|
|
68
73
|
onContextMenu: (e) => {
|
|
69
|
-
e.target instanceof Element && e.target.closest("textarea, .ProseMirror") || s(e,
|
|
74
|
+
e.target instanceof Element && e.target.closest("textarea, .ProseMirror") || s(e, q(m));
|
|
70
75
|
},
|
|
71
76
|
children: [
|
|
72
|
-
|
|
77
|
+
m.archivedAt && /* @__PURE__ */ U("div", {
|
|
73
78
|
className: "mb-6 flex items-center gap-3 rounded-xl border border-border bg-muted px-3 py-2 text-sm",
|
|
74
|
-
children: [/* @__PURE__ */
|
|
79
|
+
children: [/* @__PURE__ */ H("span", {
|
|
75
80
|
className: "min-w-0 flex-1",
|
|
76
81
|
children: r("archivedNotice")
|
|
77
|
-
}),
|
|
82
|
+
}), x && /* @__PURE__ */ H(D, {
|
|
78
83
|
type: "button",
|
|
79
84
|
size: "sm",
|
|
80
|
-
onClick: () => g.restore.mutate(
|
|
85
|
+
onClick: () => g.restore.mutate(m.id),
|
|
81
86
|
children: r("restore")
|
|
82
87
|
})]
|
|
83
88
|
}),
|
|
84
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ H(J, {
|
|
85
90
|
workspace: e,
|
|
86
|
-
entry:
|
|
91
|
+
entry: m
|
|
87
92
|
}),
|
|
88
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ H("h1", {
|
|
89
94
|
className: "sr-only",
|
|
90
|
-
children:
|
|
95
|
+
children: m.name
|
|
91
96
|
}),
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
-
value:
|
|
97
|
+
/* @__PURE__ */ H(j, {
|
|
98
|
+
value: m.name,
|
|
94
99
|
onCommit: (e) => $({ name: e }),
|
|
95
|
-
readOnly: !
|
|
100
|
+
readOnly: !T,
|
|
96
101
|
"aria-label": r("name"),
|
|
97
102
|
maxLength: 100,
|
|
98
|
-
className:
|
|
103
|
+
className: ae ? "mt-2 text-muted-foreground line-through" : "mt-2"
|
|
99
104
|
}),
|
|
100
|
-
|
|
105
|
+
m.aliases.length > 0 && /* @__PURE__ */ H("p", {
|
|
101
106
|
className: "mt-1 text-sm text-muted-foreground",
|
|
102
|
-
children: r("alsoCalled", { names:
|
|
107
|
+
children: r("alsoCalled", { names: m.aliases.join(", ") })
|
|
103
108
|
}),
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
-
value:
|
|
109
|
+
/* @__PURE__ */ H(j, {
|
|
110
|
+
value: m.definition,
|
|
106
111
|
onCommit: (e) => $({ definition: e }),
|
|
107
|
-
readOnly: !
|
|
112
|
+
readOnly: !T,
|
|
108
113
|
"aria-label": r("definition"),
|
|
109
114
|
placeholder: r("definitionPlaceholder"),
|
|
110
115
|
maxLength: 1e3,
|
|
111
116
|
size: "lg",
|
|
112
117
|
className: "mt-3 text-base leading-relaxed font-normal tracking-normal text-muted-foreground"
|
|
113
118
|
}),
|
|
114
|
-
(
|
|
119
|
+
(m.supersededBy || Q.length > 0) && /* @__PURE__ */ U("div", {
|
|
115
120
|
className: "mt-3 space-y-1 text-sm",
|
|
116
|
-
children: [
|
|
121
|
+
children: [m.supersededBy && /* @__PURE__ */ H(C, {
|
|
117
122
|
to: "/$workspace/knowledge/$term",
|
|
118
123
|
params: {
|
|
119
124
|
workspace: e,
|
|
120
|
-
term:
|
|
125
|
+
term: b(h.find((e) => e.id === m.supersededBy) ?? { id: m.supersededBy })
|
|
121
126
|
},
|
|
122
127
|
className: "block text-primary hover:underline",
|
|
123
|
-
children: r("supersededBy", { name:
|
|
124
|
-
}), Q.map((t) => /* @__PURE__ */
|
|
128
|
+
children: r("supersededBy", { name: m.supersededByName ?? "" })
|
|
129
|
+
}), Q.map((t) => /* @__PURE__ */ H(C, {
|
|
125
130
|
to: "/$workspace/knowledge/$term",
|
|
126
131
|
params: {
|
|
127
132
|
workspace: e,
|
|
128
|
-
term:
|
|
133
|
+
term: b(t)
|
|
129
134
|
},
|
|
130
135
|
className: "block text-muted-foreground hover:text-foreground",
|
|
131
136
|
children: r("replaces", { name: t.name })
|
|
132
137
|
}, t.id))]
|
|
133
138
|
}),
|
|
134
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ U("section", {
|
|
135
140
|
"aria-label": r("page"),
|
|
136
141
|
className: "mt-8 border-t border-border pt-6",
|
|
137
142
|
children: [
|
|
138
|
-
|
|
139
|
-
value:
|
|
140
|
-
editable:
|
|
143
|
+
T || m.body ? /* @__PURE__ */ H(d, {
|
|
144
|
+
value: m.body ?? "",
|
|
145
|
+
editable: T,
|
|
141
146
|
placeholder: r("pagePlaceholder"),
|
|
142
147
|
label: r("page"),
|
|
143
|
-
onBlur: (e) => e !== (
|
|
148
|
+
onBlur: (e) => e !== (m.body ?? "") && $({ body: e }),
|
|
144
149
|
onFiles: (e, t) => Z.upload(X.current, e, t),
|
|
145
150
|
onEditor: (e) => {
|
|
146
151
|
X.current = e;
|
|
147
152
|
},
|
|
148
153
|
className: "min-h-32 [&>:first-child]:mt-0"
|
|
149
|
-
}) : /* @__PURE__ */
|
|
154
|
+
}) : /* @__PURE__ */ H("p", {
|
|
150
155
|
className: "text-sm text-muted-foreground",
|
|
151
156
|
children: r("noPage")
|
|
152
157
|
}),
|
|
153
|
-
|
|
158
|
+
T && /* @__PURE__ */ U("div", {
|
|
154
159
|
className: "mt-3 flex items-center gap-2",
|
|
155
160
|
children: [
|
|
156
|
-
/* @__PURE__ */
|
|
157
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ H(c, { onFiles: (e) => Z.upload(X.current, e) }),
|
|
162
|
+
/* @__PURE__ */ H("span", {
|
|
158
163
|
className: "text-xs text-muted-foreground",
|
|
159
164
|
children: r("attachHint")
|
|
160
165
|
}),
|
|
161
|
-
/* @__PURE__ */
|
|
166
|
+
/* @__PURE__ */ H("span", {
|
|
162
167
|
className: "ml-auto",
|
|
163
|
-
children: /* @__PURE__ */
|
|
168
|
+
children: /* @__PURE__ */ H(l, {
|
|
164
169
|
pending: Z.pending,
|
|
165
170
|
error: Z.error
|
|
166
171
|
})
|
|
167
172
|
})
|
|
168
173
|
]
|
|
169
174
|
}),
|
|
170
|
-
g.update.isError && /* @__PURE__ */
|
|
175
|
+
g.update.isError && /* @__PURE__ */ H(O, {
|
|
171
176
|
className: "mt-2",
|
|
172
|
-
children:
|
|
177
|
+
children: p(g.update.error)
|
|
173
178
|
})
|
|
174
179
|
]
|
|
175
180
|
}),
|
|
176
|
-
/* @__PURE__ */
|
|
177
|
-
fallback: /* @__PURE__ */
|
|
178
|
-
children: /* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ H(P, {
|
|
182
|
+
fallback: /* @__PURE__ */ H(k, { fill: "section" }),
|
|
183
|
+
children: /* @__PURE__ */ H(Y, {
|
|
179
184
|
workspace: e,
|
|
180
|
-
entryId:
|
|
185
|
+
entryId: m.id
|
|
181
186
|
})
|
|
182
187
|
}),
|
|
183
|
-
/* @__PURE__ */
|
|
184
|
-
fallback: /* @__PURE__ */
|
|
185
|
-
children: /* @__PURE__ */
|
|
188
|
+
/* @__PURE__ */ H(P, {
|
|
189
|
+
fallback: /* @__PURE__ */ H(k, { fill: "section" }),
|
|
190
|
+
children: /* @__PURE__ */ H(ie, {
|
|
186
191
|
workspace: e,
|
|
187
|
-
entryId:
|
|
192
|
+
entryId: m.id
|
|
188
193
|
})
|
|
189
194
|
})
|
|
190
195
|
]
|
|
191
196
|
})
|
|
192
197
|
}),
|
|
193
|
-
|
|
198
|
+
A && /* @__PURE__ */ H(P, { children: /* @__PURE__ */ H(_, {
|
|
194
199
|
workspace: e,
|
|
195
|
-
mode:
|
|
196
|
-
onClose: () =>
|
|
200
|
+
mode: A,
|
|
201
|
+
onClose: () => M(null),
|
|
197
202
|
onSaved: (t) => o({
|
|
198
203
|
to: "/$workspace/knowledge/$term",
|
|
199
204
|
params: {
|
|
200
205
|
workspace: e,
|
|
201
|
-
term:
|
|
206
|
+
term: b(t)
|
|
202
207
|
},
|
|
203
|
-
replace: t.id ===
|
|
208
|
+
replace: t.id === m.id
|
|
204
209
|
})
|
|
205
210
|
}) })
|
|
206
211
|
]
|
|
207
212
|
});
|
|
208
213
|
}
|
|
209
|
-
function
|
|
210
|
-
let r =
|
|
214
|
+
function J({ workspace: t, entry: n }) {
|
|
215
|
+
let r = B("knowledge"), { actorName: i } = x(t), a = T(), { data: o = [] } = W(e(t)), s = o.find((e) => e.id === n.areaId), c = n.source.doc, l = [
|
|
211
216
|
...n.kind === "term" ? [] : [r(`kind.${n.kind}`)],
|
|
212
217
|
...s ? [s.title] : [],
|
|
213
218
|
r("writtenBy", { name: i(n.creator) }),
|
|
214
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ H(M, {
|
|
215
220
|
content: a.full(n.updatedAt),
|
|
216
|
-
children: /* @__PURE__ */
|
|
221
|
+
children: /* @__PURE__ */ H("time", {
|
|
217
222
|
dateTime: n.updatedAt,
|
|
218
223
|
children: r("updated", { when: a.relative(n.updatedAt) })
|
|
219
224
|
})
|
|
220
225
|
}, "updated")
|
|
221
226
|
];
|
|
222
|
-
return /* @__PURE__ */
|
|
227
|
+
return /* @__PURE__ */ U("div", {
|
|
223
228
|
className: "space-y-1 text-xs text-muted-foreground",
|
|
224
|
-
children: [/* @__PURE__ */
|
|
229
|
+
children: [/* @__PURE__ */ H("p", {
|
|
225
230
|
className: "flex flex-wrap items-center gap-x-1.5 gap-y-1",
|
|
226
|
-
children: l.map((e, t) => /* @__PURE__ */
|
|
231
|
+
children: l.map((e, t) => /* @__PURE__ */ U("span", {
|
|
227
232
|
className: "inline-flex items-center gap-1.5",
|
|
228
|
-
children: [t > 0 && /* @__PURE__ */
|
|
233
|
+
children: [t > 0 && /* @__PURE__ */ H("span", {
|
|
229
234
|
"aria-hidden": "true",
|
|
230
235
|
children: "·"
|
|
231
236
|
}), e]
|
|
232
237
|
}, t))
|
|
233
|
-
}), (c || n.source.identifier) && /* @__PURE__ */
|
|
238
|
+
}), (c || n.source.identifier) && /* @__PURE__ */ U("p", {
|
|
234
239
|
className: "flex flex-wrap items-center gap-x-3 gap-y-1",
|
|
235
240
|
children: [
|
|
236
|
-
c && /* @__PURE__ */
|
|
241
|
+
c && /* @__PURE__ */ U(C, {
|
|
237
242
|
to: "/$workspace/docs/$doc",
|
|
238
243
|
params: {
|
|
239
244
|
workspace: t,
|
|
@@ -241,16 +246,16 @@ function q({ workspace: t, entry: n }) {
|
|
|
241
246
|
},
|
|
242
247
|
...n.source.section && { hash: g(n.source.section) },
|
|
243
248
|
className: "inline-flex items-center gap-1 hover:text-foreground",
|
|
244
|
-
children: [/* @__PURE__ */
|
|
249
|
+
children: [/* @__PURE__ */ H(p, { className: "size-3" }), n.source.section ? r("sourceSection", {
|
|
245
250
|
doc: c.title,
|
|
246
251
|
section: n.source.section
|
|
247
252
|
}) : c.title]
|
|
248
253
|
}),
|
|
249
|
-
n.source.missing && /* @__PURE__ */
|
|
254
|
+
n.source.missing && /* @__PURE__ */ H("span", {
|
|
250
255
|
className: "text-warning",
|
|
251
256
|
children: r("sourceMissing", { section: n.source.section ?? "" })
|
|
252
257
|
}),
|
|
253
|
-
n.source.identifier && /* @__PURE__ */
|
|
258
|
+
n.source.identifier && /* @__PURE__ */ U(C, {
|
|
254
259
|
to: "/$workspace/issues/$identifier",
|
|
255
260
|
params: {
|
|
256
261
|
workspace: t,
|
|
@@ -267,25 +272,25 @@ function q({ workspace: t, entry: n }) {
|
|
|
267
272
|
})]
|
|
268
273
|
});
|
|
269
274
|
}
|
|
270
|
-
function
|
|
271
|
-
let n =
|
|
275
|
+
function Y({ workspace: e, entryId: t }) {
|
|
276
|
+
let n = B("knowledge"), { data: i } = W(r(e, t));
|
|
272
277
|
if (!i) return null;
|
|
273
278
|
let a = i.issues.length + i.docs.length, o = "flex min-h-10 items-center gap-2.5 px-3 py-2 text-sm hover:bg-muted focus-visible:outline-offset-[-2px]";
|
|
274
|
-
return /* @__PURE__ */
|
|
279
|
+
return /* @__PURE__ */ U("section", {
|
|
275
280
|
"aria-label": n("mentionedIn"),
|
|
276
281
|
className: "mt-12",
|
|
277
|
-
children: [/* @__PURE__ */
|
|
282
|
+
children: [/* @__PURE__ */ U("h2", {
|
|
278
283
|
className: "mb-3 flex items-baseline gap-2 text-base font-semibold",
|
|
279
|
-
children: [n("mentionedIn"), a > 0 && /* @__PURE__ */
|
|
284
|
+
children: [n("mentionedIn"), a > 0 && /* @__PURE__ */ H("span", {
|
|
280
285
|
className: "text-xs font-normal text-muted-foreground tabular-nums",
|
|
281
286
|
children: a
|
|
282
287
|
})]
|
|
283
|
-
}), a === 0 ? /* @__PURE__ */
|
|
288
|
+
}), a === 0 ? /* @__PURE__ */ H("p", {
|
|
284
289
|
className: "text-sm text-muted-foreground",
|
|
285
290
|
children: n("mentionedNone")
|
|
286
|
-
}) : /* @__PURE__ */
|
|
291
|
+
}) : /* @__PURE__ */ U("ul", {
|
|
287
292
|
className: "divide-y divide-border overflow-hidden rounded-xl border border-border bg-card",
|
|
288
|
-
children: [i.issues.map((t) => /* @__PURE__ */
|
|
293
|
+
children: [i.issues.map((t) => /* @__PURE__ */ H("li", { children: /* @__PURE__ */ U(C, {
|
|
289
294
|
to: "/$workspace/issues/$identifier",
|
|
290
295
|
params: {
|
|
291
296
|
workspace: e,
|
|
@@ -293,20 +298,20 @@ function J({ workspace: e, entryId: t }) {
|
|
|
293
298
|
},
|
|
294
299
|
className: o,
|
|
295
300
|
children: [
|
|
296
|
-
/* @__PURE__ */
|
|
301
|
+
/* @__PURE__ */ H(m, {
|
|
297
302
|
category: t.statusCategory,
|
|
298
303
|
className: "size-3.5 shrink-0"
|
|
299
304
|
}),
|
|
300
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ H("span", {
|
|
301
306
|
className: "min-w-24 shrink-0 text-xs whitespace-nowrap text-muted-foreground tabular-nums",
|
|
302
307
|
children: t.identifier
|
|
303
308
|
}),
|
|
304
|
-
/* @__PURE__ */
|
|
309
|
+
/* @__PURE__ */ H("span", {
|
|
305
310
|
className: "min-w-0 truncate",
|
|
306
311
|
children: t.title
|
|
307
312
|
})
|
|
308
313
|
]
|
|
309
|
-
}) }, t.identifier)), i.docs.map((t) => /* @__PURE__ */
|
|
314
|
+
}) }, t.identifier)), i.docs.map((t) => /* @__PURE__ */ H("li", { children: /* @__PURE__ */ U(C, {
|
|
310
315
|
to: "/$workspace/docs/$doc",
|
|
311
316
|
params: {
|
|
312
317
|
workspace: e,
|
|
@@ -314,12 +319,12 @@ function J({ workspace: e, entryId: t }) {
|
|
|
314
319
|
},
|
|
315
320
|
className: o,
|
|
316
321
|
children: [
|
|
317
|
-
/* @__PURE__ */
|
|
318
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ H(p, { className: "size-3.5 shrink-0 text-muted-foreground" }),
|
|
323
|
+
/* @__PURE__ */ H("span", {
|
|
319
324
|
className: "w-16 shrink-0 text-xs text-muted-foreground",
|
|
320
325
|
children: n("doc")
|
|
321
326
|
}),
|
|
322
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ H("span", {
|
|
323
328
|
className: "min-w-0 truncate",
|
|
324
329
|
children: t.title
|
|
325
330
|
})
|
|
@@ -328,15 +333,15 @@ function J({ workspace: e, entryId: t }) {
|
|
|
328
333
|
})]
|
|
329
334
|
});
|
|
330
335
|
}
|
|
331
|
-
function
|
|
332
|
-
let r =
|
|
333
|
-
return i.length === 0 ? null : /* @__PURE__ */
|
|
336
|
+
function ie({ workspace: e, entryId: t }) {
|
|
337
|
+
let r = B("knowledge.history"), { data: i = [] } = W(n(e, t)), { actorName: c } = x(e);
|
|
338
|
+
return i.length === 0 ? null : /* @__PURE__ */ H(A, {
|
|
334
339
|
title: r("title"),
|
|
335
340
|
variant: "bare",
|
|
336
341
|
defaultOpen: !1,
|
|
337
342
|
headingLevel: 2,
|
|
338
343
|
className: "mt-10",
|
|
339
|
-
children: /* @__PURE__ */
|
|
344
|
+
children: /* @__PURE__ */ H(a, { children: i.map((t) => /* @__PURE__ */ H(o, {
|
|
340
345
|
workspace: e,
|
|
341
346
|
icon: s(t.type, t.data),
|
|
342
347
|
actor: t.actor,
|
|
@@ -348,7 +353,7 @@ function Y({ workspace: e, entryId: t }) {
|
|
|
348
353
|
function X(e, t, n) {
|
|
349
354
|
let r = t.data ?? {}, i = {
|
|
350
355
|
name: n,
|
|
351
|
-
actor: (e) => /* @__PURE__ */
|
|
356
|
+
actor: (e) => /* @__PURE__ */ H("span", {
|
|
352
357
|
className: "font-medium text-foreground",
|
|
353
358
|
children: e
|
|
354
359
|
})
|
|
@@ -367,4 +372,4 @@ function X(e, t, n) {
|
|
|
367
372
|
});
|
|
368
373
|
}
|
|
369
374
|
}
|
|
370
|
-
export {
|
|
375
|
+
export { q as component };
|