@parallelworks/tandem-web 0.171.1 → 0.171.3
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 +5 -2
- package/_virtual/_virtual_i18n/es/common.js +5 -2
- package/_virtual/_virtual_i18n/ja/common.js +5 -2
- package/_virtual/_virtual_i18n/ko/common.js +5 -2
- package/_virtual/_virtual_i18n/zh/common.js +5 -2
- package/components/AccessGrants.js +6 -6
- package/components/ActivityTimeline.js +60 -60
- package/components/ActorAvatar.js +4 -4
- package/components/ActorLink.js +34 -0
- 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 +73 -69
- package/components/BlockHandle.js +3 -3
- package/components/BugRotation.js +8 -8
- package/components/CodeHostSettings.js +121 -87
- 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 +201 -164
- 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 +97 -92
- package/components/IssueFilters.js +39 -39
- 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 +36 -34
- 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 +99 -97
- 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/assignees.js +3 -3
- 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/triageSeen.js +2 -2
- 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 +202 -212
- 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 +519 -522
- package/routes/_workspace/issues/index.js +13 -13
- package/routes/_workspace/knowledge/_term2.js +148 -146
- package/routes/_workspace/knowledge/_term3.js +4 -4
- package/routes/_workspace/knowledge/index.js +12 -12
- package/routes/_workspace/knowledge/index2.js +117 -115
- 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,36 +1,36 @@
|
|
|
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 { PersonHoverCard as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { Avatar as
|
|
33
|
-
import { useCallback as
|
|
1
|
+
import { docBacklinksQuery as e, docDecisionsQuery as t, docIssuesQuery as n, docQuery as r, lostSectionsQuery as i, meQuery as a, teamsQuery as o, workspaceQuery as s } from "../../../api/queries.js";
|
|
2
|
+
import { AnsweredDecision as c, DecisionCard as l } from "../../../components/AgentWork.js";
|
|
3
|
+
import { AreaSelect as u } from "../../../components/AreaSelect.js";
|
|
4
|
+
import { CollabEditor as d } from "../../../components/CollabEditor.js";
|
|
5
|
+
import { DocComments as ee, useOpenThreads as te } from "../../../components/DocComments.js";
|
|
6
|
+
import { DocHistory as ne, DocVersion as re } from "../../../components/DocHistory.js";
|
|
7
|
+
import { DocIcon as f } from "../../../components/DocIcon.js";
|
|
8
|
+
import { DocCover as ie, DocLookControls as ae } from "../../../components/DocLook.js";
|
|
9
|
+
import { DocOutline as oe } from "../../../components/DocOutline.js";
|
|
10
|
+
import { DocProperties as se } from "../../../components/DocProperties.js";
|
|
11
|
+
import { Editor as ce } from "../../../components/Editor.js";
|
|
12
|
+
import { FavoriteStar as le } from "../../../components/FavoriteStar.js";
|
|
13
|
+
import { Connections as ue } from "../../../components/Graph.js";
|
|
14
|
+
import { CommentIcon as de, StatusIcon as p } from "../../../components/icons.js";
|
|
15
|
+
import { PersonHoverCard as m } from "../../../components/PersonHoverCard.js";
|
|
16
|
+
import { FieldNote as fe, Viewers as pe } from "../../../components/Presence.js";
|
|
17
|
+
import { UnlinkedMentions as me, useUnlinkedMentions as he } from "../../../components/UnlinkedMentions.js";
|
|
18
|
+
import { caretColor as h, useCollabSession as g } from "../../../lib/collab.js";
|
|
19
|
+
import { docKey as ge, docPath as _e, docRef as _, docURL as ve, useDocActions as ye, useDocMenu as v } from "../../../lib/docs.js";
|
|
20
|
+
import { headingAnchor as be } from "../../../lib/glossary.js";
|
|
21
|
+
import { issueURL as xe, useIssueMenu as y } from "../../../lib/issueMenu.js";
|
|
22
|
+
import { termRef as b } from "../../../lib/knowledgeKinds.js";
|
|
23
|
+
import { useOthersOn as Se, useReportLocation as Ce } from "../../../lib/live.js";
|
|
24
|
+
import { copyItem as we } from "../../../lib/menus.js";
|
|
25
|
+
import { useNewIssue as Te } from "../../../lib/newIssue.js";
|
|
26
|
+
import { usePageTitle as Ee } from "../../../lib/pageTitle.js";
|
|
27
|
+
import { usePeople as x } from "../../../lib/people.js";
|
|
28
|
+
import { rememberPage as De } from "../../../lib/recent.js";
|
|
29
|
+
import { Link as S, useNavigate as Oe } from "../../../lib/router.js";
|
|
30
|
+
import { useTime as C } from "../../../lib/time.js";
|
|
31
|
+
import { Route as ke } from "./_doc.js";
|
|
32
|
+
import { Avatar as w, Breadcrumbs as T, Button as E, ErrorText as D, TitleInput as O, Tooltip as k, useOpenMenu as A } from "@parallelworks/ui";
|
|
33
|
+
import { useCallback as Ae, useEffect as j, useMemo as M, useRef as N, useState as P } from "react";
|
|
34
34
|
import { useErrorMessage as je } from "@parallelworks/problem/react";
|
|
35
35
|
import { useTranslations as F } from "use-intl";
|
|
36
36
|
import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
@@ -39,42 +39,42 @@ import { MoreButton as Me } from "@parallelworks/ui/list";
|
|
|
39
39
|
// src/routes/$workspace/docs/$doc.tsx?tsr-split=component
|
|
40
40
|
var Ne = 120;
|
|
41
41
|
function V() {
|
|
42
|
-
let
|
|
43
|
-
|
|
44
|
-
doc:
|
|
45
|
-
...
|
|
46
|
-
}),
|
|
47
|
-
let b =
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
let e = F("docs"), t = F("common"), n = je(), { workspace: i, doc: c } = ke.useParams(), { rename: l } = ke.useSearch(), { data: d } = B(r(i, ge(c))), f = d.key, { data: de } = B(o(i)), { data: p } = B(a), m = de.find((e) => e.id === d.teamId), { data: h } = B(s(i)), [g, y] = P();
|
|
43
|
+
Ce({
|
|
44
|
+
doc: d.key,
|
|
45
|
+
...g && { field: g }
|
|
46
|
+
}), Ee(d.title || e("untitled"), m?.name);
|
|
47
|
+
let b = Se({ doc: d.key }, p?.user.username);
|
|
48
|
+
j(() => {
|
|
49
|
+
De(i, {
|
|
50
50
|
kind: "doc",
|
|
51
|
-
href:
|
|
52
|
-
label:
|
|
51
|
+
href: _e(i, d),
|
|
52
|
+
label: d.title
|
|
53
53
|
});
|
|
54
|
-
}, [
|
|
55
|
-
let
|
|
56
|
-
|
|
57
|
-
(
|
|
54
|
+
}, [i, d]);
|
|
55
|
+
let x = Oe(), S = A(), C = v(i), w = ye(i), T = Te(), O = N(null), [k, M] = P(null), I = N(null), z = he(i, d, k), [V, Ue] = P(""), H = N(null), [U, W] = P(!1), [We, G] = P(), K = te(i, f), [Ge, q] = P(!1), [J, Y] = P(!1), [Ke, X] = P(!1), [Z, Q] = P();
|
|
56
|
+
j(() => {
|
|
57
|
+
(c !== _(d) || l) && x({
|
|
58
58
|
to: "/$workspace/docs/$doc",
|
|
59
59
|
params: {
|
|
60
|
-
workspace:
|
|
61
|
-
doc:
|
|
60
|
+
workspace: i,
|
|
61
|
+
doc: _(d)
|
|
62
62
|
},
|
|
63
63
|
search: {},
|
|
64
64
|
replace: !0
|
|
65
65
|
});
|
|
66
66
|
}, [
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
67
|
+
c,
|
|
68
|
+
d,
|
|
69
|
+
i,
|
|
70
|
+
l,
|
|
71
|
+
x
|
|
72
72
|
]);
|
|
73
|
-
let
|
|
74
|
-
if (
|
|
73
|
+
let qe = Ae((e) => {
|
|
74
|
+
if (O.current = e, M(e), !e) return;
|
|
75
75
|
let t = decodeURIComponent(location.hash.slice(1));
|
|
76
76
|
if (t) {
|
|
77
|
-
for (let n of e.view.dom.querySelectorAll("h1, h2, h3, h4, h5, h6")) if (
|
|
77
|
+
for (let n of e.view.dom.querySelectorAll("h1, h2, h3, h4, h5, h6")) if (be(n.textContent ?? "") === t) {
|
|
78
78
|
n.scrollIntoView({ block: "start" });
|
|
79
79
|
break;
|
|
80
80
|
}
|
|
@@ -84,8 +84,8 @@ function V() {
|
|
|
84
84
|
Ue(t === n ? "" : e.state.doc.textBetween(t, n, "\n\n").trim());
|
|
85
85
|
});
|
|
86
86
|
}, []);
|
|
87
|
-
|
|
88
|
-
let e =
|
|
87
|
+
j(() => {
|
|
88
|
+
let e = O.current;
|
|
89
89
|
if (!U || !V || !e) return;
|
|
90
90
|
let { from: t, to: n } = e.state.selection, r = e.state.doc;
|
|
91
91
|
G({
|
|
@@ -94,8 +94,8 @@ function V() {
|
|
|
94
94
|
quoteSuffix: r.textBetween(n, Math.min(r.content.size, n + 64), "\n")
|
|
95
95
|
});
|
|
96
96
|
}, [U, V]);
|
|
97
|
-
let
|
|
98
|
-
let t =
|
|
97
|
+
let Je = (e) => {
|
|
98
|
+
let t = O.current;
|
|
99
99
|
if (!t || !e.quote) return;
|
|
100
100
|
let n = t.state.doc, r = n.textBetween(0, n.content.size, "\n"), i = -1, a = -1;
|
|
101
101
|
for (let t = r.indexOf(e.quote); t >= 0; t = r.indexOf(e.quote, t + 1)) {
|
|
@@ -123,21 +123,21 @@ function V() {
|
|
|
123
123
|
from: u,
|
|
124
124
|
to: d
|
|
125
125
|
}).scrollIntoView().run();
|
|
126
|
-
},
|
|
127
|
-
let
|
|
128
|
-
if (!
|
|
129
|
-
let n =
|
|
130
|
-
|
|
131
|
-
team:
|
|
132
|
-
title: (
|
|
133
|
-
body:
|
|
126
|
+
}, Ye = () => {
|
|
127
|
+
let t = V;
|
|
128
|
+
if (!t || !m) return;
|
|
129
|
+
let n = t.split("\n").map((e) => e ? `> ${e}` : ">").join("\n");
|
|
130
|
+
T({
|
|
131
|
+
team: m.key,
|
|
132
|
+
title: (t.split("\n")[0] ?? "").slice(0, Ne),
|
|
133
|
+
body: e("fromDoc", {
|
|
134
134
|
quote: n,
|
|
135
|
-
title:
|
|
136
|
-
url:
|
|
135
|
+
title: d.title,
|
|
136
|
+
url: ve(i, d)
|
|
137
137
|
}),
|
|
138
|
-
origin: { doc:
|
|
138
|
+
origin: { doc: d.key },
|
|
139
139
|
onCreated: (e) => {
|
|
140
|
-
let t =
|
|
140
|
+
let t = O.current;
|
|
141
141
|
t && t.chain().insertContentAt(t.state.selection.to, [{
|
|
142
142
|
type: "text",
|
|
143
143
|
text: " "
|
|
@@ -146,92 +146,92 @@ function V() {
|
|
|
146
146
|
text: e.identifier,
|
|
147
147
|
marks: [{
|
|
148
148
|
type: "link",
|
|
149
|
-
attrs: { href:
|
|
149
|
+
attrs: { href: xe(i, e.identifier) }
|
|
150
150
|
}]
|
|
151
151
|
}]).run();
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
|
-
}, Xe =
|
|
154
|
+
}, Xe = d.ancestors ?? [], $ = !!d.archivedAt;
|
|
155
155
|
return /* @__PURE__ */ R("div", {
|
|
156
156
|
className: "flex h-full flex-col",
|
|
157
157
|
children: [/* @__PURE__ */ R("header", {
|
|
158
158
|
className: "flex h-12 shrink-0 items-center gap-2 border-b border-border px-4 text-sm md:px-5",
|
|
159
|
-
onContextMenu: (e) =>
|
|
159
|
+
onContextMenu: (e) => S(e, C(d, { onRename: () => H.current?.focus() })),
|
|
160
160
|
children: [
|
|
161
161
|
/* @__PURE__ */ L(Ve, {
|
|
162
|
-
workspace:
|
|
163
|
-
doc:
|
|
162
|
+
workspace: i,
|
|
163
|
+
doc: d,
|
|
164
164
|
path: Xe,
|
|
165
|
-
space:
|
|
165
|
+
space: m?.name ?? h.name
|
|
166
166
|
}),
|
|
167
|
-
/* @__PURE__ */ L(
|
|
168
|
-
workspace:
|
|
167
|
+
/* @__PURE__ */ L(le, {
|
|
168
|
+
workspace: i,
|
|
169
169
|
kind: "doc",
|
|
170
|
-
target:
|
|
170
|
+
target: d.id
|
|
171
171
|
}),
|
|
172
172
|
/* @__PURE__ */ R("span", {
|
|
173
173
|
className: "ml-auto flex shrink-0 items-center gap-3",
|
|
174
174
|
children: [
|
|
175
|
-
V && !$ && /* @__PURE__ */ L(
|
|
175
|
+
V && !$ && /* @__PURE__ */ L(E, {
|
|
176
176
|
type: "button",
|
|
177
177
|
size: "sm",
|
|
178
178
|
onMouseDown: (e) => e.preventDefault(),
|
|
179
|
-
onClick:
|
|
180
|
-
children:
|
|
179
|
+
onClick: Ye,
|
|
180
|
+
children: e("createIssue")
|
|
181
181
|
}),
|
|
182
|
-
|
|
182
|
+
w.rename.isPending && /* @__PURE__ */ L("span", {
|
|
183
183
|
className: "text-xs text-muted-foreground",
|
|
184
|
-
children:
|
|
184
|
+
children: t("saving")
|
|
185
185
|
}),
|
|
186
|
-
/* @__PURE__ */ L(
|
|
187
|
-
workspace:
|
|
186
|
+
/* @__PURE__ */ L(pe, {
|
|
187
|
+
workspace: i,
|
|
188
188
|
others: b
|
|
189
189
|
}),
|
|
190
|
-
/* @__PURE__ */ R(
|
|
190
|
+
/* @__PURE__ */ R(E, {
|
|
191
191
|
type: "button",
|
|
192
192
|
size: "sm",
|
|
193
193
|
"aria-pressed": U,
|
|
194
194
|
onClick: () => {
|
|
195
|
-
W((e) => !e), G(void 0), q(!1),
|
|
195
|
+
W((e) => !e), G(void 0), q(!1), Y(!1), X(!1);
|
|
196
196
|
},
|
|
197
|
-
...K > 0 && { "aria-label":
|
|
197
|
+
...K > 0 && { "aria-label": e("commentsCount", { count: K }) },
|
|
198
198
|
className: "relative aria-pressed:bg-muted max-md:hidden",
|
|
199
|
-
children: [
|
|
199
|
+
children: [e("comments"), /* @__PURE__ */ L(He, { count: K })]
|
|
200
200
|
}),
|
|
201
|
-
/* @__PURE__ */ L(
|
|
201
|
+
/* @__PURE__ */ L(E, {
|
|
202
202
|
type: "button",
|
|
203
203
|
size: "sm",
|
|
204
204
|
"aria-pressed": Ge,
|
|
205
205
|
onClick: () => {
|
|
206
|
-
q((e) => !e),
|
|
206
|
+
q((e) => !e), Q(void 0), W(!1), Y(!1), X(!1);
|
|
207
207
|
},
|
|
208
208
|
className: "aria-pressed:bg-muted max-md:hidden",
|
|
209
|
-
children:
|
|
209
|
+
children: e("history")
|
|
210
210
|
}),
|
|
211
|
-
!$ && /* @__PURE__ */ R(
|
|
211
|
+
!$ && /* @__PURE__ */ R(E, {
|
|
212
212
|
type: "button",
|
|
213
213
|
size: "sm",
|
|
214
|
-
"aria-pressed":
|
|
214
|
+
"aria-pressed": J,
|
|
215
215
|
onClick: () => {
|
|
216
|
-
|
|
216
|
+
Y((e) => !e), W(!1), q(!1), Q(void 0), X(!1);
|
|
217
217
|
},
|
|
218
|
-
...z.length > 0 && { "aria-label":
|
|
218
|
+
...z.length > 0 && { "aria-label": e("unlinkedCount", { count: z.length }) },
|
|
219
219
|
className: "relative aria-pressed:bg-muted max-md:hidden",
|
|
220
|
-
children: [
|
|
220
|
+
children: [e("links"), /* @__PURE__ */ L(He, { count: z.length })]
|
|
221
221
|
}),
|
|
222
|
-
!$ && /* @__PURE__ */ L(
|
|
222
|
+
!$ && /* @__PURE__ */ L(E, {
|
|
223
223
|
type: "button",
|
|
224
224
|
size: "sm",
|
|
225
|
-
"aria-pressed":
|
|
225
|
+
"aria-pressed": Ke,
|
|
226
226
|
onClick: () => {
|
|
227
|
-
|
|
227
|
+
X((e) => !e), W(!1), q(!1), Q(void 0), Y(!1);
|
|
228
228
|
},
|
|
229
229
|
className: "aria-pressed:bg-muted max-md:hidden",
|
|
230
|
-
children:
|
|
230
|
+
children: e("graph")
|
|
231
231
|
}),
|
|
232
232
|
/* @__PURE__ */ L(Me, {
|
|
233
|
-
items: () =>
|
|
234
|
-
label:
|
|
233
|
+
items: () => C(d, { onRename: () => H.current?.focus() }),
|
|
234
|
+
label: t("moreActionsFor", { name: d.title }),
|
|
235
235
|
visible: !0
|
|
236
236
|
})
|
|
237
237
|
]
|
|
@@ -243,148 +243,148 @@ function V() {
|
|
|
243
243
|
/* @__PURE__ */ R("div", {
|
|
244
244
|
ref: I,
|
|
245
245
|
className: "min-h-0 flex-1 overflow-y-auto",
|
|
246
|
-
children: [!
|
|
247
|
-
workspace:
|
|
248
|
-
doc:
|
|
246
|
+
children: [!Z && /* @__PURE__ */ L(ie, {
|
|
247
|
+
workspace: i,
|
|
248
|
+
doc: d,
|
|
249
249
|
editable: !$
|
|
250
250
|
}), /* @__PURE__ */ R("div", {
|
|
251
251
|
className: "flex w-full gap-10 px-4 pt-6 md:px-8 md:pt-8",
|
|
252
252
|
children: [/* @__PURE__ */ R("article", {
|
|
253
|
-
className: `group/doc min-w-0 flex-1 pb-24 ${
|
|
253
|
+
className: `group/doc min-w-0 flex-1 pb-24 ${d.fullWidth ? "" : "mx-auto max-w-3xl"}`,
|
|
254
254
|
children: [
|
|
255
255
|
$ && /* @__PURE__ */ R("div", {
|
|
256
256
|
className: "mb-6 flex items-center gap-3 rounded-md border border-border bg-muted px-3 py-2 text-sm",
|
|
257
257
|
children: [/* @__PURE__ */ L("span", {
|
|
258
258
|
className: "flex-1",
|
|
259
|
-
children:
|
|
260
|
-
}), /* @__PURE__ */ L(
|
|
259
|
+
children: e("archivedNotice")
|
|
260
|
+
}), /* @__PURE__ */ L(E, {
|
|
261
261
|
type: "button",
|
|
262
262
|
variant: "primary",
|
|
263
263
|
size: "sm",
|
|
264
|
-
onClick: () =>
|
|
265
|
-
children:
|
|
264
|
+
onClick: () => w.restore.mutate(d),
|
|
265
|
+
children: e("restore")
|
|
266
266
|
})]
|
|
267
267
|
}),
|
|
268
|
-
/* @__PURE__ */ L(
|
|
269
|
-
workspace:
|
|
270
|
-
doc:
|
|
271
|
-
editable: !$ && !
|
|
268
|
+
/* @__PURE__ */ L(ae, {
|
|
269
|
+
workspace: i,
|
|
270
|
+
doc: d,
|
|
271
|
+
editable: !$ && !Z
|
|
272
272
|
}),
|
|
273
273
|
/* @__PURE__ */ L(Pe, {
|
|
274
|
-
doc:
|
|
274
|
+
doc: d,
|
|
275
275
|
input: H,
|
|
276
|
-
autoFocus: !!
|
|
276
|
+
autoFocus: !!l,
|
|
277
277
|
readOnly: $,
|
|
278
278
|
onFocus: () => y("title"),
|
|
279
279
|
onBlur: () => y(void 0),
|
|
280
|
-
onSave: (e) =>
|
|
281
|
-
doc:
|
|
280
|
+
onSave: (e) => w.rename.mutate({
|
|
281
|
+
doc: d,
|
|
282
282
|
title: e
|
|
283
283
|
})
|
|
284
|
-
},
|
|
285
|
-
/* @__PURE__ */ L(
|
|
286
|
-
workspace:
|
|
284
|
+
}, d.id),
|
|
285
|
+
/* @__PURE__ */ L(fe, {
|
|
286
|
+
workspace: i,
|
|
287
287
|
others: b,
|
|
288
288
|
field: "title"
|
|
289
289
|
}),
|
|
290
|
-
|
|
290
|
+
w.rename.isError && /* @__PURE__ */ L(D, {
|
|
291
291
|
className: "mt-1",
|
|
292
|
-
children:
|
|
292
|
+
children: n(w.rename.error)
|
|
293
293
|
}),
|
|
294
294
|
/* @__PURE__ */ R("div", {
|
|
295
295
|
className: "mt-2 flex flex-wrap items-center gap-x-3 gap-y-1",
|
|
296
296
|
children: [/* @__PURE__ */ L(Fe, {
|
|
297
|
-
workspace:
|
|
298
|
-
doc:
|
|
299
|
-
}), /* @__PURE__ */ L(
|
|
300
|
-
workspace:
|
|
301
|
-
teamId:
|
|
302
|
-
value:
|
|
303
|
-
onChange: (e) =>
|
|
304
|
-
doc:
|
|
297
|
+
workspace: i,
|
|
298
|
+
doc: d
|
|
299
|
+
}), /* @__PURE__ */ L(u, {
|
|
300
|
+
workspace: i,
|
|
301
|
+
teamId: d.teamId,
|
|
302
|
+
value: d.areaId,
|
|
303
|
+
onChange: (e) => w.fileUnder.mutate({
|
|
304
|
+
doc: d,
|
|
305
305
|
area: e
|
|
306
306
|
}),
|
|
307
307
|
disabled: $,
|
|
308
308
|
className: "flex h-6 items-center gap-1.5 rounded-md px-1.5 text-xs hover:bg-muted"
|
|
309
309
|
})]
|
|
310
310
|
}),
|
|
311
|
-
!
|
|
312
|
-
workspace:
|
|
313
|
-
doc:
|
|
314
|
-
space:
|
|
311
|
+
!Z && /* @__PURE__ */ L(se, {
|
|
312
|
+
workspace: i,
|
|
313
|
+
doc: d,
|
|
314
|
+
space: m?.key ?? "workspace",
|
|
315
315
|
editable: !$
|
|
316
316
|
}),
|
|
317
317
|
/* @__PURE__ */ L("div", {
|
|
318
|
-
onContextMenu: (
|
|
319
|
-
label:
|
|
320
|
-
onClick:
|
|
321
|
-
},
|
|
322
|
-
children:
|
|
323
|
-
workspace:
|
|
324
|
-
doc:
|
|
325
|
-
versionId:
|
|
326
|
-
onDone: () =>
|
|
318
|
+
onContextMenu: (t) => V && !$ && S(t, [{
|
|
319
|
+
label: e("createIssue"),
|
|
320
|
+
onClick: Ye
|
|
321
|
+
}, we(e("copySelection"), V)]),
|
|
322
|
+
children: Z ? /* @__PURE__ */ L(re, {
|
|
323
|
+
workspace: i,
|
|
324
|
+
doc: d,
|
|
325
|
+
versionId: Z,
|
|
326
|
+
onDone: () => Q(void 0)
|
|
327
327
|
}) : $ ? /* @__PURE__ */ L("div", {
|
|
328
328
|
className: "mt-4",
|
|
329
|
-
children: /* @__PURE__ */ L(
|
|
330
|
-
value:
|
|
329
|
+
children: /* @__PURE__ */ L(ce, {
|
|
330
|
+
value: d.body ?? "",
|
|
331
331
|
editable: !1,
|
|
332
332
|
className: "min-h-32"
|
|
333
333
|
})
|
|
334
334
|
}) : /* @__PURE__ */ L(Ie, {
|
|
335
|
-
workspace:
|
|
336
|
-
doc:
|
|
337
|
-
onEditor:
|
|
335
|
+
workspace: i,
|
|
336
|
+
doc: d,
|
|
337
|
+
onEditor: qe,
|
|
338
338
|
onFocus: () => y("body"),
|
|
339
339
|
onBlur: () => y(void 0)
|
|
340
340
|
})
|
|
341
341
|
}),
|
|
342
342
|
/* @__PURE__ */ L(Re, {
|
|
343
|
-
workspace:
|
|
344
|
-
docKey:
|
|
343
|
+
workspace: i,
|
|
344
|
+
docKey: d.key
|
|
345
345
|
}),
|
|
346
346
|
/* @__PURE__ */ L(ze, {
|
|
347
|
-
workspace:
|
|
348
|
-
docKey:
|
|
347
|
+
workspace: i,
|
|
348
|
+
docKey: d.key
|
|
349
349
|
}),
|
|
350
350
|
/* @__PURE__ */ L(Le, {
|
|
351
|
-
workspace:
|
|
352
|
-
docKey:
|
|
351
|
+
workspace: i,
|
|
352
|
+
docKey: d.key
|
|
353
353
|
}),
|
|
354
354
|
/* @__PURE__ */ L(Be, {
|
|
355
|
-
workspace:
|
|
356
|
-
docKey:
|
|
355
|
+
workspace: i,
|
|
356
|
+
docKey: d.key
|
|
357
357
|
})
|
|
358
358
|
]
|
|
359
|
-
}), !$ && !
|
|
360
|
-
editor:
|
|
359
|
+
}), !$ && !Z && /* @__PURE__ */ L(oe, {
|
|
360
|
+
editor: k,
|
|
361
361
|
scroller: I
|
|
362
362
|
})]
|
|
363
363
|
})]
|
|
364
364
|
}),
|
|
365
|
-
U && /* @__PURE__ */ L(
|
|
366
|
-
workspace:
|
|
367
|
-
doc:
|
|
365
|
+
U && /* @__PURE__ */ L(ee, {
|
|
366
|
+
workspace: i,
|
|
367
|
+
doc: d,
|
|
368
368
|
draft: We,
|
|
369
369
|
onDraftDone: () => G(void 0),
|
|
370
|
-
onShowQuote:
|
|
370
|
+
onShowQuote: Je
|
|
371
371
|
}),
|
|
372
|
-
Ge && /* @__PURE__ */ L(
|
|
373
|
-
workspace:
|
|
374
|
-
doc:
|
|
375
|
-
selected:
|
|
376
|
-
onSelect:
|
|
372
|
+
Ge && /* @__PURE__ */ L(ne, {
|
|
373
|
+
workspace: i,
|
|
374
|
+
doc: d,
|
|
375
|
+
selected: Z,
|
|
376
|
+
onSelect: Q
|
|
377
377
|
}),
|
|
378
|
-
|
|
379
|
-
editor:
|
|
378
|
+
J && !$ && /* @__PURE__ */ L(me, {
|
|
379
|
+
editor: k,
|
|
380
380
|
suggestions: z
|
|
381
381
|
}),
|
|
382
|
-
|
|
383
|
-
"aria-label":
|
|
382
|
+
Ke && !$ && /* @__PURE__ */ L("aside", {
|
|
383
|
+
"aria-label": e("graph"),
|
|
384
384
|
className: "w-96 shrink-0 overflow-y-auto border-l border-border px-3 py-4 max-md:hidden",
|
|
385
|
-
children: /* @__PURE__ */ L(
|
|
386
|
-
workspace:
|
|
387
|
-
of: { doc:
|
|
385
|
+
children: /* @__PURE__ */ L(ue, {
|
|
386
|
+
workspace: i,
|
|
387
|
+
of: { doc: d.key },
|
|
388
388
|
width: 352
|
|
389
389
|
})
|
|
390
390
|
})
|
|
@@ -397,7 +397,7 @@ function Pe({ doc: e, input: t, autoFocus: n, readOnly: r, onSave: i, onFocus: a
|
|
|
397
397
|
return /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L("h1", {
|
|
398
398
|
className: "sr-only",
|
|
399
399
|
children: e.title
|
|
400
|
-
}), /* @__PURE__ */ L(
|
|
400
|
+
}), /* @__PURE__ */ L(O, {
|
|
401
401
|
ref: t,
|
|
402
402
|
value: e.title,
|
|
403
403
|
onCommit: i,
|
|
@@ -409,14 +409,14 @@ function Pe({ doc: e, input: t, autoFocus: n, readOnly: r, onSave: i, onFocus: a
|
|
|
409
409
|
})] });
|
|
410
410
|
}
|
|
411
411
|
function Fe({ workspace: e, doc: t }) {
|
|
412
|
-
let n = F("docs"), r =
|
|
412
|
+
let n = F("docs"), r = C(), { actorName: i, person: a, avatarOf: o } = x(e), s = i(t.editor);
|
|
413
413
|
return /* @__PURE__ */ R("p", {
|
|
414
414
|
className: "flex items-center gap-1.5 text-xs text-muted-foreground",
|
|
415
|
-
children: [/* @__PURE__ */ L(
|
|
415
|
+
children: [/* @__PURE__ */ L(m, {
|
|
416
416
|
workspace: e,
|
|
417
417
|
kind: t.editor.kind,
|
|
418
418
|
handle: t.editor.handle,
|
|
419
|
-
children: /* @__PURE__ */ L(
|
|
419
|
+
children: /* @__PURE__ */ L(w, {
|
|
420
420
|
kind: t.editor.kind === "agent" ? "agent" : "person",
|
|
421
421
|
name: s,
|
|
422
422
|
src: o(t.editor.kind, t.editor.handle),
|
|
@@ -426,7 +426,7 @@ function Fe({ workspace: e, doc: t }) {
|
|
|
426
426
|
name: s,
|
|
427
427
|
person: a(t.editor.onBehalfOf ?? "").name,
|
|
428
428
|
time: r.relative(t.updatedAt),
|
|
429
|
-
when: (e) => /* @__PURE__ */ L(
|
|
429
|
+
when: (e) => /* @__PURE__ */ L(k, {
|
|
430
430
|
content: r.full(t.updatedAt),
|
|
431
431
|
children: /* @__PURE__ */ L("time", {
|
|
432
432
|
dateTime: t.updatedAt,
|
|
@@ -437,43 +437,43 @@ function Fe({ workspace: e, doc: t }) {
|
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
function Ie({ workspace: e, doc: t, onEditor: n, onFocus: r, onBlur: i }) {
|
|
440
|
-
let
|
|
441
|
-
name:
|
|
442
|
-
color:
|
|
440
|
+
let o = F("docs"), { data: s } = B(a), c = N(null), l = M(() => ({
|
|
441
|
+
name: s?.user.name ?? o("someone"),
|
|
442
|
+
color: h(s?.user.username ?? "")
|
|
443
443
|
}), [
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
]), { session: u, error:
|
|
444
|
+
s?.user.name,
|
|
445
|
+
s?.user.username,
|
|
446
|
+
o
|
|
447
|
+
]), { session: u, error: ee } = g({
|
|
448
448
|
workspace: e,
|
|
449
449
|
target: { doc: t.key },
|
|
450
450
|
user: l,
|
|
451
|
-
getMarkdown:
|
|
451
|
+
getMarkdown: c
|
|
452
452
|
});
|
|
453
453
|
return /* @__PURE__ */ R("div", {
|
|
454
454
|
className: "mt-6 min-h-48",
|
|
455
|
-
children: [u ? /* @__PURE__ */ L(
|
|
455
|
+
children: [u ? /* @__PURE__ */ L(d, {
|
|
456
456
|
session: u,
|
|
457
457
|
user: l,
|
|
458
|
-
getMarkdown:
|
|
458
|
+
getMarkdown: c,
|
|
459
459
|
onEditor: n,
|
|
460
460
|
onFocus: r,
|
|
461
461
|
onBlur: i,
|
|
462
|
-
placeholder:
|
|
463
|
-
label:
|
|
462
|
+
placeholder: o("bodyPlaceholder"),
|
|
463
|
+
label: o("body"),
|
|
464
464
|
className: "min-h-48"
|
|
465
|
-
}, `${u.generation}:${u.doc.guid}`) : /* @__PURE__ */ L(
|
|
465
|
+
}, `${u.generation}:${u.doc.guid}`) : /* @__PURE__ */ L(ce, {
|
|
466
466
|
value: t.body ?? "",
|
|
467
467
|
editable: !1,
|
|
468
468
|
className: "min-h-48"
|
|
469
|
-
}), /* @__PURE__ */ L(
|
|
469
|
+
}), /* @__PURE__ */ L(D, {
|
|
470
470
|
className: "mt-1",
|
|
471
|
-
children:
|
|
471
|
+
children: ee
|
|
472
472
|
})]
|
|
473
473
|
});
|
|
474
474
|
}
|
|
475
|
-
function Le({ workspace: e, docKey:
|
|
476
|
-
let r = F("docs"), { data: i } = B(
|
|
475
|
+
function Le({ workspace: e, docKey: t }) {
|
|
476
|
+
let r = F("docs"), { data: i } = B(n(e, t)), a = A(), o = y(e);
|
|
477
477
|
return i.length === 0 ? null : /* @__PURE__ */ R("section", {
|
|
478
478
|
className: "mt-10",
|
|
479
479
|
"aria-label": r("linkedIssues"),
|
|
@@ -482,161 +482,161 @@ function Le({ workspace: e, docKey: n }) {
|
|
|
482
482
|
children: r("linkedIssues")
|
|
483
483
|
}), /* @__PURE__ */ L("ul", {
|
|
484
484
|
className: "mt-2 space-y-0.5",
|
|
485
|
-
children: i.map((
|
|
485
|
+
children: i.map((t) => /* @__PURE__ */ L("li", { children: /* @__PURE__ */ R(S, {
|
|
486
486
|
to: "/$workspace/issues/$identifier",
|
|
487
487
|
params: {
|
|
488
488
|
workspace: e,
|
|
489
|
-
identifier:
|
|
489
|
+
identifier: t.identifier
|
|
490
490
|
},
|
|
491
|
-
onContextMenu: (e) =>
|
|
491
|
+
onContextMenu: (e) => a(e, o([t])),
|
|
492
492
|
className: "flex h-8 items-center gap-2 rounded-md px-2 text-sm hover:bg-muted",
|
|
493
493
|
children: [
|
|
494
|
-
/* @__PURE__ */ L(
|
|
495
|
-
category:
|
|
496
|
-
step:
|
|
494
|
+
/* @__PURE__ */ L(p, {
|
|
495
|
+
category: t.status.category,
|
|
496
|
+
step: t.status.step
|
|
497
497
|
}),
|
|
498
498
|
/* @__PURE__ */ L("span", {
|
|
499
499
|
className: "shrink-0 text-muted-foreground",
|
|
500
|
-
children:
|
|
500
|
+
children: t.identifier
|
|
501
501
|
}),
|
|
502
502
|
/* @__PURE__ */ L("span", {
|
|
503
503
|
className: "truncate",
|
|
504
|
-
children:
|
|
504
|
+
children: t.title
|
|
505
505
|
})
|
|
506
506
|
]
|
|
507
|
-
}) },
|
|
507
|
+
}) }, t.id))
|
|
508
508
|
})]
|
|
509
509
|
});
|
|
510
510
|
}
|
|
511
|
-
function Re({ workspace: e, docKey:
|
|
512
|
-
let
|
|
513
|
-
return
|
|
511
|
+
function Re({ workspace: e, docKey: t }) {
|
|
512
|
+
let n = F("docs"), { data: r = [] } = z(i(e, t));
|
|
513
|
+
return r.length === 0 ? null : /* @__PURE__ */ R("section", {
|
|
514
514
|
className: "mt-10 rounded-lg border border-warning/60 px-4 py-3",
|
|
515
|
-
"aria-label":
|
|
515
|
+
"aria-label": n("lostSections"),
|
|
516
516
|
children: [
|
|
517
517
|
/* @__PURE__ */ L("h2", {
|
|
518
518
|
className: "text-sm font-semibold",
|
|
519
|
-
children:
|
|
519
|
+
children: n("lostSections")
|
|
520
520
|
}),
|
|
521
521
|
/* @__PURE__ */ L("p", {
|
|
522
522
|
className: "mt-1 text-xs text-muted-foreground",
|
|
523
|
-
children:
|
|
523
|
+
children: n("lostSectionsHelp")
|
|
524
524
|
}),
|
|
525
525
|
/* @__PURE__ */ L("ul", {
|
|
526
526
|
className: "mt-2 space-y-1 text-sm",
|
|
527
|
-
children:
|
|
527
|
+
children: r.map((t) => /* @__PURE__ */ L("li", { children: /* @__PURE__ */ L(S, {
|
|
528
528
|
to: "/$workspace/knowledge/$term",
|
|
529
529
|
params: {
|
|
530
530
|
workspace: e,
|
|
531
|
-
term:
|
|
531
|
+
term: b(t)
|
|
532
532
|
},
|
|
533
533
|
className: "hover:underline",
|
|
534
|
-
children:
|
|
535
|
-
name:
|
|
536
|
-
section:
|
|
534
|
+
children: n("lostSection", {
|
|
535
|
+
name: t.name,
|
|
536
|
+
section: t.source.section ?? ""
|
|
537
537
|
})
|
|
538
|
-
}) },
|
|
538
|
+
}) }, t.id))
|
|
539
539
|
})
|
|
540
540
|
]
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
|
-
function ze({ workspace: e, docKey:
|
|
544
|
-
let
|
|
543
|
+
function ze({ workspace: e, docKey: n }) {
|
|
544
|
+
let r = F("docs"), { data: i } = B(t(e, n)), a = i.filter((e) => !e.canceled);
|
|
545
545
|
return a.length === 0 ? null : /* @__PURE__ */ R("section", {
|
|
546
546
|
className: "mt-10 space-y-3",
|
|
547
|
-
"aria-label":
|
|
547
|
+
"aria-label": r("questions"),
|
|
548
548
|
children: [/* @__PURE__ */ L("h2", {
|
|
549
549
|
className: "text-sm font-semibold",
|
|
550
|
-
children:
|
|
551
|
-
}), a.map((t) => t.answer ? /* @__PURE__ */ L(
|
|
550
|
+
children: r("questions")
|
|
551
|
+
}), a.map((t) => t.answer ? /* @__PURE__ */ L(c, {
|
|
552
552
|
workspace: e,
|
|
553
553
|
decision: t,
|
|
554
554
|
showIssue: !0
|
|
555
|
-
}, t.id) : /* @__PURE__ */ L(
|
|
555
|
+
}, t.id) : /* @__PURE__ */ L(l, {
|
|
556
556
|
workspace: e,
|
|
557
557
|
decision: t,
|
|
558
558
|
showIssue: !0
|
|
559
559
|
}, t.id))]
|
|
560
560
|
});
|
|
561
561
|
}
|
|
562
|
-
function Be({ workspace:
|
|
563
|
-
let
|
|
564
|
-
return
|
|
562
|
+
function Be({ workspace: t, docKey: n }) {
|
|
563
|
+
let r = F("docs"), { data: i } = B(e(t, n)), a = A(), o = v(t), s = y(t), c = "flex h-8 items-center gap-2 rounded-md px-2 text-sm hover:bg-muted";
|
|
564
|
+
return i.docs.length + i.issues.length + i.comments.length === 0 ? null : /* @__PURE__ */ R("section", {
|
|
565
565
|
className: "mt-10",
|
|
566
|
-
"aria-label":
|
|
566
|
+
"aria-label": r("linkedFrom"),
|
|
567
567
|
children: [/* @__PURE__ */ L("h2", {
|
|
568
568
|
className: "text-base font-semibold",
|
|
569
|
-
children:
|
|
569
|
+
children: r("linkedFrom")
|
|
570
570
|
}), /* @__PURE__ */ R("ul", {
|
|
571
571
|
className: "mt-2 space-y-0.5",
|
|
572
572
|
children: [
|
|
573
|
-
|
|
573
|
+
i.docs.map((e) => /* @__PURE__ */ L("li", { children: /* @__PURE__ */ R(S, {
|
|
574
574
|
to: "/$workspace/docs/$doc",
|
|
575
575
|
params: {
|
|
576
|
-
workspace:
|
|
577
|
-
doc:
|
|
576
|
+
workspace: t,
|
|
577
|
+
doc: _(e)
|
|
578
578
|
},
|
|
579
|
-
onContextMenu: (
|
|
580
|
-
className:
|
|
581
|
-
children: [/* @__PURE__ */ L(
|
|
582
|
-
icon:
|
|
579
|
+
onContextMenu: (t) => a(t, o(e)),
|
|
580
|
+
className: c,
|
|
581
|
+
children: [/* @__PURE__ */ L(f, {
|
|
582
|
+
icon: e.icon,
|
|
583
583
|
className: "size-3.5",
|
|
584
584
|
emojiClassName: "text-xs"
|
|
585
585
|
}), /* @__PURE__ */ L("span", {
|
|
586
586
|
className: "truncate",
|
|
587
|
-
children:
|
|
587
|
+
children: e.title
|
|
588
588
|
})]
|
|
589
|
-
}) },
|
|
590
|
-
|
|
589
|
+
}) }, e.id)),
|
|
590
|
+
i.issues.map((e) => /* @__PURE__ */ L("li", { children: /* @__PURE__ */ R(S, {
|
|
591
591
|
to: "/$workspace/issues/$identifier",
|
|
592
592
|
params: {
|
|
593
|
-
workspace:
|
|
594
|
-
identifier:
|
|
593
|
+
workspace: t,
|
|
594
|
+
identifier: e.identifier
|
|
595
595
|
},
|
|
596
|
-
onContextMenu: (
|
|
597
|
-
className:
|
|
596
|
+
onContextMenu: (t) => a(t, s([e])),
|
|
597
|
+
className: c,
|
|
598
598
|
children: [
|
|
599
|
-
/* @__PURE__ */ L(
|
|
600
|
-
category:
|
|
601
|
-
step:
|
|
599
|
+
/* @__PURE__ */ L(p, {
|
|
600
|
+
category: e.status.category,
|
|
601
|
+
step: e.status.step
|
|
602
602
|
}),
|
|
603
603
|
/* @__PURE__ */ L("span", {
|
|
604
604
|
className: "shrink-0 text-muted-foreground",
|
|
605
|
-
children:
|
|
605
|
+
children: e.identifier
|
|
606
606
|
}),
|
|
607
607
|
/* @__PURE__ */ L("span", {
|
|
608
608
|
className: "truncate",
|
|
609
|
-
children:
|
|
609
|
+
children: e.title
|
|
610
610
|
})
|
|
611
611
|
]
|
|
612
|
-
}) },
|
|
613
|
-
|
|
612
|
+
}) }, e.id)),
|
|
613
|
+
i.comments.map((e) => /* @__PURE__ */ L("li", { children: /* @__PURE__ */ R(S, {
|
|
614
614
|
to: "/$workspace/issues/$identifier",
|
|
615
615
|
params: {
|
|
616
|
-
workspace:
|
|
617
|
-
identifier:
|
|
616
|
+
workspace: t,
|
|
617
|
+
identifier: e.identifier
|
|
618
618
|
},
|
|
619
|
-
hash: `comment-${
|
|
620
|
-
className:
|
|
619
|
+
hash: `comment-${e.comment.id}`,
|
|
620
|
+
className: c,
|
|
621
621
|
children: [
|
|
622
|
-
/* @__PURE__ */ L(
|
|
622
|
+
/* @__PURE__ */ L(de, { className: "size-3.5 text-muted-foreground" }),
|
|
623
623
|
/* @__PURE__ */ L("span", {
|
|
624
624
|
className: "shrink-0 text-muted-foreground",
|
|
625
|
-
children:
|
|
625
|
+
children: r("commentOn", { identifier: e.identifier })
|
|
626
626
|
}),
|
|
627
627
|
/* @__PURE__ */ L("span", {
|
|
628
628
|
className: "truncate",
|
|
629
|
-
children:
|
|
629
|
+
children: e.issueTitle
|
|
630
630
|
})
|
|
631
631
|
]
|
|
632
|
-
}) },
|
|
632
|
+
}) }, e.comment.id))
|
|
633
633
|
]
|
|
634
634
|
})]
|
|
635
635
|
});
|
|
636
636
|
}
|
|
637
637
|
function Ve({ workspace: e, doc: t, path: n, space: r }) {
|
|
638
638
|
let i = F("docs");
|
|
639
|
-
return /* @__PURE__ */ L(
|
|
639
|
+
return /* @__PURE__ */ L(T, {
|
|
640
640
|
label: i("breadcrumbs"),
|
|
641
641
|
className: "min-w-0",
|
|
642
642
|
crumbs: [
|
|
@@ -647,8 +647,8 @@ function Ve({ workspace: e, doc: t, path: n, space: r }) {
|
|
|
647
647
|
{ label: r },
|
|
648
648
|
...n.map((t) => ({
|
|
649
649
|
label: t.title,
|
|
650
|
-
href: `/${e}/docs/${
|
|
651
|
-
icon: t.icon && /* @__PURE__ */ L(
|
|
650
|
+
href: `/${e}/docs/${_(t)}`,
|
|
651
|
+
icon: t.icon && /* @__PURE__ */ L(f, {
|
|
652
652
|
icon: t.icon,
|
|
653
653
|
className: "size-3.5",
|
|
654
654
|
emojiClassName: "text-xs"
|
|
@@ -656,7 +656,7 @@ function Ve({ workspace: e, doc: t, path: n, space: r }) {
|
|
|
656
656
|
})),
|
|
657
657
|
{
|
|
658
658
|
label: t.title,
|
|
659
|
-
icon: t.icon && /* @__PURE__ */ L(
|
|
659
|
+
icon: t.icon && /* @__PURE__ */ L(f, {
|
|
660
660
|
icon: t.icon,
|
|
661
661
|
className: "size-3.5",
|
|
662
662
|
emojiClassName: "text-xs"
|