@parallelworks/tandem-web 0.150.2 → 0.151.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 +32 -3
- package/_virtual/_virtual_i18n/es/common.js +32 -3
- package/_virtual/_virtual_i18n/ja/common.js +32 -3
- package/_virtual/_virtual_i18n/ko/common.js +32 -3
- package/_virtual/_virtual_i18n/zh/common.js +32 -3
- package/api/queries.js +88 -77
- package/components/AccessGrants.js +6 -6
- package/components/ActivityTimeline.js +4 -4
- package/components/AgentWork.js +111 -111
- package/components/AreaLink.js +32 -0
- package/components/AreaTiles.js +10 -13
- package/components/AreaWork.js +25 -1
- package/components/BugRotation.js +3 -3
- package/components/CodeHostSettings.js +30 -30
- package/components/CommandPalette.js +53 -53
- package/components/CustomFields.js +116 -116
- package/components/DateChip.js +11 -11
- package/components/DocButton.js +6 -6
- package/components/DocHistory.js +4 -4
- package/components/DocLinkPicker.js +8 -8
- package/components/DocProperties.js +15 -15
- package/components/DocTable.js +15 -15
- package/components/DocsTree.js +80 -80
- package/components/Editor.js +35 -35
- package/components/FavoritesNav.js +53 -53
- package/components/GitHub.js +18 -18
- package/components/Graph.js +15 -15
- package/components/HostActions.js +21 -21
- package/components/HostPanel.js +6 -6
- package/components/HoverCards.js +38 -38
- package/components/IssueBoard.js +4 -4
- package/components/IssueCode.js +14 -14
- package/components/IssueEvent.js +3 -3
- package/components/IssueFilters.js +71 -71
- package/components/IssueListBlock.js +32 -32
- package/components/IssueRow.js +21 -21
- package/components/IssueTemplates.js +118 -118
- package/components/IssueTypes.js +40 -40
- package/components/NewIssueDialog.js +76 -76
- package/components/NewProjectDialog.js +145 -145
- package/components/PersonActivity.js +4 -4
- package/components/SharedViewer.js +5 -5
- package/components/SlashMenu.js +29 -29
- package/components/TeamRepositories.js +51 -51
- package/components/TeamWorkflow.js +6 -6
- package/components/UnlinkedMentions.js +20 -20
- package/components/Updates.js +3 -3
- package/components/Widgets.js +20 -20
- package/components/columns.js +17 -17
- package/components/editorPlugins.js +80 -80
- package/components/mathDiagrams.js +17 -17
- package/lib/boardMove.js +5 -5
- package/lib/issueList.js +58 -58
- package/lib/issueMenu.js +27 -27
- package/lib/knowledge.js +106 -106
- package/lib/views.js +9 -9
- package/package.json +2 -2
- package/pages/area.js +291 -0
- package/pages/areas.js +258 -287
- package/pages/decisions.js +21 -21
- package/pages/issues.js +52 -52
- package/pages/projects.js +125 -125
- package/pages/triage.js +12 -12
- package/routeTree.gen.js +186 -180
- package/routes/_workspace/agents/_slug2.js +11 -11
- package/routes/_workspace/agents/index2.js +10 -10
- package/routes/_workspace/areas/_area.js +7 -8
- package/routes/_workspace/areas/_area2.js +3 -290
- package/routes/_workspace/areas/_area3.js +7 -8
- package/routes/_workspace/docs/_doc2.js +230 -230
- package/routes/_workspace/docs/space2._space.js +27 -27
- package/routes/_workspace/issues/_identifier2.js +222 -224
- package/routes/_workspace/knowledge/_term2.js +43 -43
- package/routes/_workspace/knowledge/index.js +6 -6
- package/routes/_workspace/knowledge/index2.js +15 -15
- package/routes/_workspace/measures3.js +70 -72
- package/routes/_workspace/notifications2.js +150 -150
- package/routes/_workspace/people/_username2.js +10 -10
- package/routes/_workspace/projects/_projectId3.js +276 -276
- package/routes/_workspace/settings/audit-log3.js +136 -138
- package/routes/_workspace/settings/fields2.js +11 -11
- package/routes/_workspace/settings/github2.js +6 -6
- package/routes/_workspace/settings/groups2.js +26 -26
- package/routes/_workspace/settings/import2.js +398 -147
- package/routes/_workspace/settings/import3.js +7 -3
- package/routes/_workspace/settings/index2.js +6 -6
- package/routes/_workspace/settings/labels2.js +21 -21
- package/routes/_workspace/settings/members2.js +27 -27
- package/routes/_workspace/settings/notifications2.js +8 -8
- package/routes/_workspace/settings/parallelworks2.js +32 -32
- package/routes/_workspace/settings/roles2.js +24 -24
- package/routes/_workspace/settings/runners2.js +15 -15
- package/routes/_workspace/settings/sessions2.js +17 -17
- package/routes/_workspace/settings/slack2.js +7 -7
- package/routes/_workspace/settings/sso2.js +31 -31
- package/routes/_workspace/settings/teams2.js +25 -25
- package/routes/_workspace/settings/tokens2.js +12 -12
- package/routes/_workspace/settings/webhooks2.js +13 -13
- package/routes/_workspace/teams/_key/areas/_area.js +8 -0
- package/routes/_workspace/teams/_key/areas/_area2.js +4 -0
- package/routes/_workspace/teams/_key/areas/_area3.js +9 -0
- package/routes/_workspace/teams/_key/areas/index.js +6 -0
- package/routes/_workspace/teams/_key/areas/index2.js +4 -0
- package/routes/_workspace/teams/_key/{areas3.js → areas/index3.js} +2 -2
- package/routes/_workspace/teams/_key/cycles/_number2.js +27 -27
- package/routes/_workspace/teams/_key/cycles/index2.js +24 -24
- package/routes/_workspace/teams/_key/settings2.js +29 -29
- package/routes/_workspace2.js +368 -368
- package/routes/_workspace/teams/_key/areas.js +0 -6
- package/routes/_workspace/teams/_key/areas2.js +0 -4
package/components/HoverCards.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { api as e, unwrap as t } from "../api/client.js";
|
|
2
2
|
import { Link as n, useNavigate as r } from "../lib/router.js";
|
|
3
3
|
import { docQuery as i, docsQuery as a, knowledgeQuery as o, membersQuery as s, teamsQuery as c } from "../api/queries.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
4
|
+
import { docKey as l, docRef as u } from "../lib/docs.js";
|
|
5
|
+
import { FileTextIcon as d } from "./icons.js";
|
|
6
|
+
import { glossary as f, headingAnchor as p } from "../lib/glossary.js";
|
|
7
|
+
import { termRef as m } from "../lib/knowledgeKinds.js";
|
|
8
|
+
import { useTermRefs as h } from "../lib/knowledge.js";
|
|
9
|
+
import { DocIcon as g } from "./DocIcon.js";
|
|
10
|
+
import { docLooks as _ } from "../lib/docLooks.js";
|
|
11
|
+
import { issueRefs as v } from "../lib/issueRefs.js";
|
|
12
12
|
import { mentionable as y } from "../lib/mentions.js";
|
|
13
13
|
import { teamNames as b } from "../lib/teamNames.js";
|
|
14
14
|
import { termCaretEvent as x } from "./editorPlugins.js";
|
|
@@ -43,27 +43,27 @@ function R(e) {
|
|
|
43
43
|
return r?.[1] ? {
|
|
44
44
|
kind: "doc",
|
|
45
45
|
el: t,
|
|
46
|
-
key:
|
|
46
|
+
key: l(r[1])
|
|
47
47
|
} : null;
|
|
48
48
|
}
|
|
49
49
|
function z({ workspace: n }) {
|
|
50
|
-
let [i, l] = O(null),
|
|
51
|
-
|
|
52
|
-
let t =
|
|
50
|
+
let [i, l] = O(null), u = D(null), d = D(void 0), { data: p } = N(o(n)), h = r(), g = D((e) => {});
|
|
51
|
+
g.current = (e) => {
|
|
52
|
+
let t = p?.find((t) => t.id === e);
|
|
53
53
|
h({
|
|
54
54
|
to: "/$workspace/knowledge/$term",
|
|
55
55
|
params: {
|
|
56
56
|
workspace: n,
|
|
57
|
-
term: t ?
|
|
57
|
+
term: t ? m(t) : e
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
}, E(() => {
|
|
61
|
-
|
|
62
|
-
}, [
|
|
61
|
+
f.set(p ?? []);
|
|
62
|
+
}, [p]), E(() => () => f.set([]), []);
|
|
63
63
|
let { data: w } = N(a(n));
|
|
64
64
|
E(() => {
|
|
65
|
-
|
|
66
|
-
}, [w]), E(() => () =>
|
|
65
|
+
_.set(w ?? []);
|
|
66
|
+
}, [w]), E(() => () => _.set([]), []);
|
|
67
67
|
let { data: T } = N(s(n));
|
|
68
68
|
E(() => {
|
|
69
69
|
y.set((T ?? []).map((e) => e.user.username));
|
|
@@ -74,7 +74,7 @@ function z({ workspace: n }) {
|
|
|
74
74
|
}, [k]), E(() => () => b.set([]), []);
|
|
75
75
|
let A = P();
|
|
76
76
|
E(() => {
|
|
77
|
-
|
|
77
|
+
v.set(n, async (r) => {
|
|
78
78
|
let { issues: i } = t(await e.POST("/api/v1/workspaces/{workspace}/issue-refs", {
|
|
79
79
|
params: { path: { workspace: n } },
|
|
80
80
|
body: { identifiers: r }
|
|
@@ -82,10 +82,10 @@ function z({ workspace: n }) {
|
|
|
82
82
|
return new Map(i.map((e) => [e.identifier, e.issue]));
|
|
83
83
|
});
|
|
84
84
|
let r, i = A.getQueryCache().subscribe((e) => {
|
|
85
|
-
e.type === "updated" && e.query.queryKey[2] === "issues" && (clearTimeout(r), r = setTimeout(() =>
|
|
85
|
+
e.type === "updated" && e.query.queryKey[2] === "issues" && (clearTimeout(r), r = setTimeout(() => v.refresh(), 1e3));
|
|
86
86
|
});
|
|
87
87
|
return () => {
|
|
88
|
-
clearTimeout(r), i(),
|
|
88
|
+
clearTimeout(r), i(), v.set("", void 0);
|
|
89
89
|
};
|
|
90
90
|
}, [n, A]);
|
|
91
91
|
let M = D((e) => {});
|
|
@@ -105,17 +105,17 @@ function z({ workspace: n }) {
|
|
|
105
105
|
}
|
|
106
106
|
}), E(() => {
|
|
107
107
|
let e = (e, t) => {
|
|
108
|
-
clearTimeout(
|
|
108
|
+
clearTimeout(d.current), d.current = setTimeout(e, t);
|
|
109
109
|
}, t = (t) => {
|
|
110
110
|
if (t.pointerType === "touch") return;
|
|
111
111
|
let n = R(t.target);
|
|
112
112
|
n && e(() => l(n), I);
|
|
113
113
|
}, n = (t) => {
|
|
114
114
|
let n = t.relatedTarget;
|
|
115
|
-
n &&
|
|
115
|
+
n && u.current?.contains(n) || R(t.target) && e(() => l(null), L);
|
|
116
116
|
}, r = (e) => {
|
|
117
117
|
let t = R(e.target);
|
|
118
|
-
t && (clearTimeout(
|
|
118
|
+
t && (clearTimeout(d.current), l(t));
|
|
119
119
|
}, i = (e) => {
|
|
120
120
|
e.target.matches?.(".kb-term[tabindex], .prose-issue a[href*=\"/docs/\"]") && r(e);
|
|
121
121
|
}, a = (e) => {
|
|
@@ -132,18 +132,18 @@ function z({ workspace: n }) {
|
|
|
132
132
|
let o = e.target.closest?.(".kb-term");
|
|
133
133
|
if (!o) return;
|
|
134
134
|
let s = o.dataset.term;
|
|
135
|
-
s && (!o.closest("[contenteditable=\"true\"]") || e.metaKey || e.ctrlKey) ? (e.preventDefault(), l(null),
|
|
135
|
+
s && (!o.closest("[contenteditable=\"true\"]") || e.metaKey || e.ctrlKey) ? (e.preventDefault(), l(null), g.current(s)) : r(e);
|
|
136
136
|
}, o = (e) => {
|
|
137
|
-
e.key === "Escape" &&
|
|
137
|
+
e.key === "Escape" && u.current?.isConnected && (e.stopPropagation(), e.preventDefault(), l((e) => (e?.el.tabIndex === 0 && e.el.focus(), null)));
|
|
138
138
|
};
|
|
139
139
|
return document.addEventListener("pointerover", t), document.addEventListener("pointerout", n), document.addEventListener("focusin", i), document.addEventListener("click", a), document.addEventListener(x, r), document.addEventListener("keydown", o, !0), () => {
|
|
140
|
-
clearTimeout(
|
|
140
|
+
clearTimeout(d.current), document.removeEventListener("pointerover", t), document.removeEventListener("pointerout", n), document.removeEventListener("focusin", i), document.removeEventListener("click", a), document.removeEventListener(x, r), document.removeEventListener("keydown", o, !0);
|
|
141
141
|
};
|
|
142
142
|
}, []), E(() => {
|
|
143
143
|
if (!i) return;
|
|
144
144
|
let e = (e) => {
|
|
145
145
|
let t = e.target;
|
|
146
|
-
!
|
|
146
|
+
!u.current?.contains(t) && !i.el.contains(t) && l(null);
|
|
147
147
|
};
|
|
148
148
|
return document.addEventListener("pointerdown", e), () => document.removeEventListener("pointerdown", e);
|
|
149
149
|
}, [i]);
|
|
@@ -154,18 +154,18 @@ function z({ workspace: n }) {
|
|
|
154
154
|
onOpenChange: (e) => {
|
|
155
155
|
e || l(null);
|
|
156
156
|
},
|
|
157
|
-
onPointerEnter: () => clearTimeout(
|
|
157
|
+
onPointerEnter: () => clearTimeout(d.current),
|
|
158
158
|
onPointerLeave: () => {
|
|
159
|
-
clearTimeout(
|
|
159
|
+
clearTimeout(d.current), d.current = setTimeout(() => l(null), L);
|
|
160
160
|
},
|
|
161
161
|
card: z && /* @__PURE__ */ j("div", {
|
|
162
|
-
ref:
|
|
162
|
+
ref: u,
|
|
163
163
|
role: "dialog",
|
|
164
164
|
"aria-label": z.kind === "doc" ? z.key : z.kind === "person" ? z.username : void 0,
|
|
165
165
|
className: z.kind === "person" ? "" : "w-80 max-w-[calc(100vw-16px)] p-3 text-sm",
|
|
166
166
|
children: z.kind === "term" ? /* @__PURE__ */ j(H, {
|
|
167
167
|
workspace: n,
|
|
168
|
-
entry:
|
|
168
|
+
entry: p?.find((e) => e.id === z.id)
|
|
169
169
|
}) : z.kind === "person" ? /* @__PURE__ */ j(S, {
|
|
170
170
|
workspace: n,
|
|
171
171
|
handle: z.username
|
|
@@ -193,7 +193,7 @@ function V({ status: e }) {
|
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
195
|
function H({ workspace: e, entry: t }) {
|
|
196
|
-
let r = k("knowledge"), i =
|
|
196
|
+
let r = k("knowledge"), i = h(e);
|
|
197
197
|
if (!t) return /* @__PURE__ */ j("p", {
|
|
198
198
|
className: "text-muted-foreground",
|
|
199
199
|
children: r("gone")
|
|
@@ -207,7 +207,7 @@ function H({ workspace: e, entry: t }) {
|
|
|
207
207
|
to: "/$workspace/knowledge/$term",
|
|
208
208
|
params: {
|
|
209
209
|
workspace: e,
|
|
210
|
-
term:
|
|
210
|
+
term: m(t)
|
|
211
211
|
},
|
|
212
212
|
className: "font-semibold hover:underline",
|
|
213
213
|
children: t.name
|
|
@@ -244,11 +244,11 @@ function H({ workspace: e, entry: t }) {
|
|
|
244
244
|
to: "/$workspace/docs/$doc",
|
|
245
245
|
params: {
|
|
246
246
|
workspace: e,
|
|
247
|
-
doc:
|
|
247
|
+
doc: u(a)
|
|
248
248
|
},
|
|
249
|
-
...t.source.section && { hash:
|
|
249
|
+
...t.source.section && { hash: p(t.source.section) },
|
|
250
250
|
className: "inline-flex items-center gap-1 hover:text-foreground",
|
|
251
|
-
children: [/* @__PURE__ */ j(
|
|
251
|
+
children: [/* @__PURE__ */ j(d, { className: "size-3" }), t.source.section ? r("sourceSection", {
|
|
252
252
|
doc: a.title,
|
|
253
253
|
section: t.source.section
|
|
254
254
|
}) : a.title]
|
|
@@ -266,7 +266,7 @@ function H({ workspace: e, entry: t }) {
|
|
|
266
266
|
to: "/$workspace/knowledge/$term",
|
|
267
267
|
params: {
|
|
268
268
|
workspace: e,
|
|
269
|
-
term:
|
|
269
|
+
term: m(t)
|
|
270
270
|
},
|
|
271
271
|
className: "mt-2 block text-xs text-primary hover:underline",
|
|
272
272
|
children: r("openEntry")
|
|
@@ -286,7 +286,7 @@ function W({ workspace: e, docKey: t }) {
|
|
|
286
286
|
children: n("unavailable")
|
|
287
287
|
}) : r ? /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ M("p", {
|
|
288
288
|
className: "flex items-center gap-2 font-semibold",
|
|
289
|
-
children: [/* @__PURE__ */ j(
|
|
289
|
+
children: [/* @__PURE__ */ j(g, {
|
|
290
290
|
icon: r.icon,
|
|
291
291
|
className: "size-3.5",
|
|
292
292
|
emojiClassName: "text-xs"
|
package/components/IssueBoard.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Link as e } from "../lib/router.js";
|
|
2
2
|
import { PriorityIcon as t, ProjectIcon as n } from "./icons.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { usePeople as r } from "../lib/people.js";
|
|
4
|
+
import { TypeIcon as i } from "./IssueTypes.js";
|
|
5
5
|
import { Avatar as a } from "@parallelworks/ui";
|
|
6
6
|
import { useState as o } from "react";
|
|
7
7
|
import { useTranslations as s } from "use-intl";
|
|
@@ -58,7 +58,7 @@ function u({ workspace: e, columns: t, onMove: n, onContextMenu: r }) {
|
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
function d({ workspace: o, issue: s, draggable: u, onDragStart: d, onDragEnd: f, onContextMenu: p }) {
|
|
61
|
-
let { nameOf: m, avatarOf: h } =
|
|
61
|
+
let { nameOf: m, avatarOf: h } = r(o), g = s.assignees[0];
|
|
62
62
|
return /* @__PURE__ */ c("li", { children: /* @__PURE__ */ l(e, {
|
|
63
63
|
to: "/$workspace/issues/$identifier",
|
|
64
64
|
params: {
|
|
@@ -77,7 +77,7 @@ function d({ workspace: o, issue: s, draggable: u, onDragStart: d, onDragEnd: f,
|
|
|
77
77
|
className: "flex items-center gap-2 text-xs text-muted-foreground",
|
|
78
78
|
children: [
|
|
79
79
|
/* @__PURE__ */ c(t, { priority: s.priority }),
|
|
80
|
-
s.type && /* @__PURE__ */ c(
|
|
80
|
+
s.type && /* @__PURE__ */ c(i, {
|
|
81
81
|
type: s.type,
|
|
82
82
|
className: "size-3.5"
|
|
83
83
|
}),
|
package/components/IssueCode.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { api as e, unwrap as t } from "../api/client.js";
|
|
2
2
|
import { branchName as n } from "../lib/branch.js";
|
|
3
3
|
import { branchesQuery as r, pullRequestsQuery as i, repositoriesQuery as a } from "../api/queries.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { copyItem as o } from "../lib/menus.js";
|
|
5
|
+
import { externalUrl as s } from "../lib/externalUrl.js";
|
|
6
|
+
import { BranchIcon as c, CloseIcon as l, PullRequestIcon as u } from "./icons.js";
|
|
7
|
+
import { useCan as d } from "../lib/roles.js";
|
|
8
8
|
import { Card as f, CopyButton as p, IconButton as m, useOpenMenu as h } from "@parallelworks/ui";
|
|
9
9
|
import { useTranslations as g } from "use-intl";
|
|
10
10
|
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
@@ -21,7 +21,7 @@ var C = {
|
|
|
21
21
|
failing: "text-danger"
|
|
22
22
|
}, T = (e) => e.state === "open" && e.draft ? "draft" : e.state;
|
|
23
23
|
function E({ workspace: E, identifier: D, title: O }) {
|
|
24
|
-
let k = g("code"), A = g("common"), { data: j } = S(i(E, D)), { data: M } = S(r(E, D)), N = h(), P = new Set(j.map((e) => `${e.repository} ${e.headRef}`)), F = M.filter((e) => !P.has(`${e.repository} ${e.name}`)), I = D.slice(0, D.lastIndexOf("-")), { data: L = [] } = b(a(E, I)), R =
|
|
24
|
+
let k = g("code"), A = g("common"), { data: j } = S(i(E, D)), { data: M } = S(r(E, D)), N = h(), P = new Set(j.map((e) => `${e.repository} ${e.headRef}`)), F = M.filter((e) => !P.has(`${e.repository} ${e.name}`)), I = D.slice(0, D.lastIndexOf("-")), { data: L = [] } = b(a(E, I)), R = d(E, "edit_issues"), z = x(), B = y({
|
|
25
25
|
mutationFn: async (n) => t(await e.DELETE("/api/v1/workspaces/{workspace}/issues/{identifier}/pull-requests/{pullRequestId}", { params: { path: {
|
|
26
26
|
workspace: E,
|
|
27
27
|
identifier: D,
|
|
@@ -43,7 +43,7 @@ function E({ workspace: E, identifier: D, title: O }) {
|
|
|
43
43
|
}), /* @__PURE__ */ v("div", {
|
|
44
44
|
className: "mt-1 flex items-start gap-3 rounded-xl border border-dashed border-border px-3 py-2",
|
|
45
45
|
children: [
|
|
46
|
-
/* @__PURE__ */ _(
|
|
46
|
+
/* @__PURE__ */ _(c, { className: "mt-0.5 size-4 shrink-0 text-muted-foreground" }),
|
|
47
47
|
/* @__PURE__ */ v("div", {
|
|
48
48
|
className: "min-w-0 flex-1",
|
|
49
49
|
children: [/* @__PURE__ */ _("p", {
|
|
@@ -87,7 +87,7 @@ function E({ workspace: E, identifier: D, title: O }) {
|
|
|
87
87
|
render: /* @__PURE__ */ _("ul", {}),
|
|
88
88
|
className: "mt-1",
|
|
89
89
|
children: [j.map((e) => {
|
|
90
|
-
let t = T(e), n =
|
|
90
|
+
let t = T(e), n = s(e.url);
|
|
91
91
|
return /* @__PURE__ */ v("li", {
|
|
92
92
|
className: "group flex items-center hover:bg-muted",
|
|
93
93
|
children: [/* @__PURE__ */ v("a", {
|
|
@@ -96,8 +96,8 @@ function E({ workspace: E, identifier: D, title: O }) {
|
|
|
96
96
|
rel: "noopener noreferrer",
|
|
97
97
|
onContextMenu: (t) => N(t, [
|
|
98
98
|
V(n),
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
o(A("copyLink"), e.url),
|
|
100
|
+
o(k("copyBranch"), e.headRef),
|
|
101
101
|
...R ? [{
|
|
102
102
|
label: k("unlinkPullRequest"),
|
|
103
103
|
onClick: () => B.mutate(e.id)
|
|
@@ -105,7 +105,7 @@ function E({ workspace: E, identifier: D, title: O }) {
|
|
|
105
105
|
]),
|
|
106
106
|
className: "flex min-w-0 flex-1 flex-wrap items-center gap-x-3 gap-y-1 px-3 py-2 text-sm",
|
|
107
107
|
children: [
|
|
108
|
-
/* @__PURE__ */ _(
|
|
108
|
+
/* @__PURE__ */ _(u, { className: `size-4 ${C[t]}` }),
|
|
109
109
|
/* @__PURE__ */ v("span", {
|
|
110
110
|
className: "min-w-0 flex-1 truncate",
|
|
111
111
|
children: [
|
|
@@ -139,7 +139,7 @@ function E({ workspace: E, identifier: D, title: O }) {
|
|
|
139
139
|
})
|
|
140
140
|
]
|
|
141
141
|
}), R && /* @__PURE__ */ _(m, {
|
|
142
|
-
icon: /* @__PURE__ */ _(
|
|
142
|
+
icon: /* @__PURE__ */ _(l, {}),
|
|
143
143
|
label: k("unlinkPullRequest"),
|
|
144
144
|
variant: "ghost",
|
|
145
145
|
size: "sm",
|
|
@@ -149,15 +149,15 @@ function E({ workspace: E, identifier: D, title: O }) {
|
|
|
149
149
|
})]
|
|
150
150
|
}, `${e.repository}#${e.number}`);
|
|
151
151
|
}), F.map((e) => {
|
|
152
|
-
let t =
|
|
152
|
+
let t = s(e.url);
|
|
153
153
|
return /* @__PURE__ */ _("li", { children: /* @__PURE__ */ v("a", {
|
|
154
154
|
href: t,
|
|
155
155
|
target: "_blank",
|
|
156
156
|
rel: "noopener noreferrer",
|
|
157
|
-
onContextMenu: (n) => N(n, [V(t),
|
|
157
|
+
onContextMenu: (n) => N(n, [V(t), o(k("copyBranch"), e.name)]),
|
|
158
158
|
className: "flex items-center gap-3 px-3 py-2 text-sm hover:bg-muted",
|
|
159
159
|
children: [
|
|
160
|
-
/* @__PURE__ */ _(
|
|
160
|
+
/* @__PURE__ */ _(c, { className: "size-4 text-muted-foreground" }),
|
|
161
161
|
/* @__PURE__ */ _("span", {
|
|
162
162
|
className: "min-w-0 flex-1 truncate font-mono text-xs",
|
|
163
163
|
children: e.name
|
package/components/IssueEvent.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StatusIcon as e, usePriorityNames as t } from "./icons.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { usePeople as n } from "../lib/people.js";
|
|
3
|
+
import { useTime as r } from "../lib/time.js";
|
|
4
4
|
import { useMoney as i } from "./AgentWork.js";
|
|
5
5
|
import { TimelineItem as a, activityIcon as o } from "./ActivityTimeline.js";
|
|
6
6
|
import { useFormatter as s, useTranslations as c } from "use-intl";
|
|
@@ -13,7 +13,7 @@ function d(e) {
|
|
|
13
13
|
return e.type === "related" ? "related" : e.type === "blocks" ? e.outgoing ? "blocks" : "blockedBy" : e.outgoing ? "duplicates" : "duplicatedBy";
|
|
14
14
|
}
|
|
15
15
|
function f({ workspace: f, event: p }) {
|
|
16
|
-
let m = c("relations"), h = c("flow"), g = c("issue.events"), _ = s(), v = i(), y = t(), b =
|
|
16
|
+
let m = c("relations"), h = c("flow"), g = c("issue.events"), _ = s(), v = i(), y = t(), b = r(), { nameOf: x, actorName: S } = n(f), C = p.data, w = () => x(String(C.kind), String(C.handle)), T = (t, n = {}) => g.rich(t, {
|
|
17
17
|
...n,
|
|
18
18
|
name: S(p.actor),
|
|
19
19
|
actor: (e) => /* @__PURE__ */ l("span", {
|