@parallelworks/tandem-web 0.154.0 → 0.155.1
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 +12 -1
- package/_virtual/_virtual_i18n/es/common.js +12 -1
- package/_virtual/_virtual_i18n/ja/common.js +12 -1
- package/_virtual/_virtual_i18n/ko/common.js +12 -1
- package/_virtual/_virtual_i18n/zh/common.js +12 -1
- package/api/queries.js +90 -80
- package/components/AgentWork.js +142 -137
- package/components/CodeHostSettings.js +4 -1
- package/components/GitHub.js +24 -12
- package/components/IssueCode.js +82 -75
- package/components/SettingsNav.js +74 -65
- package/components/TeamRepositories.js +58 -55
- package/components/icons.js +33 -29
- package/package.json +1 -1
- package/routeTree.gen.js +197 -191
- package/routes/_workspace/issues/_identifier2.js +37 -37
- package/routes/_workspace/settings/gitlab.js +6 -0
- package/routes/_workspace/settings/gitlab2.js +54 -0
- package/routes/_workspace/settings/gitlab3.js +4 -0
- package/routes/login2.js +5 -5
|
@@ -25,21 +25,21 @@ import { IssueFields as Oe } from "../../../components/CustomFields.js";
|
|
|
25
25
|
import { PersonHoverCard as ke } from "../../../components/PersonHoverCard.js";
|
|
26
26
|
import { AttachButton as Ae, IssueAttachments as je, UploadStatus as Me, useAttachmentUpload as Ne } from "../../../components/Attachments.js";
|
|
27
27
|
import { Editor as R } from "../../../components/Editor.js";
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
28
|
+
import { IssueCode as Pe } from "../../../components/IssueCode.js";
|
|
29
|
+
import { AgentWork as Fe } from "../../../components/AgentWork.js";
|
|
30
|
+
import { AreaLink as Ie } from "../../../components/AreaLink.js";
|
|
31
|
+
import { useShortcuts as Le } from "../../../lib/shortcuts.js";
|
|
32
|
+
import { Route as Re } from "./_identifier.js";
|
|
33
|
+
import { rememberPage as ze } from "../../../lib/recent.js";
|
|
34
|
+
import { useOthersOn as Be, useReportLocation as Ve } from "../../../lib/live.js";
|
|
35
|
+
import { useReadIssueNotifications as He } from "../../../lib/notifications.js";
|
|
36
|
+
import { FavoriteStar as Ue } from "../../../components/FavoriteStar.js";
|
|
37
|
+
import { caretColor as We, useCollabSession as Ge } from "../../../lib/collab.js";
|
|
38
|
+
import { CollabEditor as Ke } from "../../../components/CollabEditor.js";
|
|
39
|
+
import { FieldNote as qe, Viewers as Je } from "../../../components/Presence.js";
|
|
40
|
+
import { Timeline as Ye } from "../../../components/ActivityTimeline.js";
|
|
41
|
+
import { CustomerRequests as Xe } from "../../../components/CustomerRequests.js";
|
|
42
|
+
import { IssueLinkChips as Ze, IssueLinks as Qe, SharedThreadHeader as $e } from "../../../components/GitHub.js";
|
|
43
43
|
import { EventLine as et } from "../../../components/IssueEvent.js";
|
|
44
44
|
import { ParentProperty as tt, SubIssuesAndRelations as nt } from "../../../components/IssueRelations.js";
|
|
45
45
|
import { IssueZendesk as rt } from "../../../components/IssueZendesk.js";
|
|
@@ -57,11 +57,11 @@ import { MoreButton as kt } from "@parallelworks/ui/list";
|
|
|
57
57
|
import { ArchiveIcon as At } from "@parallelworks/ui/icons";
|
|
58
58
|
// src/routes/$workspace/issues/$identifier.tsx?tsr-split=component
|
|
59
59
|
function jt() {
|
|
60
|
-
let o = G("issue"), s = ne(), c = Dt(), l = G("common"), { workspace: u, identifier: d } =
|
|
61
|
-
|
|
60
|
+
let o = G("issue"), s = ne(), c = Dt(), l = G("common"), { workspace: u, identifier: d } = Re.useParams(), { data: m } = Q(p(u, d)), { data: g } = Q(y(u)), { data: _ } = Q(h), { data: v = [] } = X(f(u, d)), [S, C] = W();
|
|
61
|
+
Ve({
|
|
62
62
|
identifier: m.identifier,
|
|
63
63
|
...S && { field: S }
|
|
64
|
-
}), r(`${m.identifier} ${m.title}`),
|
|
64
|
+
}), r(`${m.identifier} ${m.title}`), He(u, m.identifier);
|
|
65
65
|
let w = a(), T = n(m.identifier, m.title);
|
|
66
66
|
Tt(() => {
|
|
67
67
|
window.location.pathname.endsWith(`/issues/${T}`) || w({
|
|
@@ -115,7 +115,7 @@ function jt() {
|
|
|
115
115
|
}
|
|
116
116
|
}), [w, u]);
|
|
117
117
|
ge(u, m.body, N), Tt(() => {
|
|
118
|
-
|
|
118
|
+
ze(u, {
|
|
119
119
|
kind: "issue",
|
|
120
120
|
href: `/${u}/issues/${m.identifier}`,
|
|
121
121
|
label: `${m.identifier} ${m.title}`
|
|
@@ -125,8 +125,8 @@ function jt() {
|
|
|
125
125
|
m.identifier,
|
|
126
126
|
m.title
|
|
127
127
|
]);
|
|
128
|
-
let P =
|
|
129
|
-
return
|
|
128
|
+
let P = Be({ issue: m.identifier }, _?.user.username), F = g.find((e) => e.id === m.teamId), I = x(u, d), [ee, L] = W(null), te = H(), re = he(u);
|
|
129
|
+
return Le({
|
|
130
130
|
s: () => L("status"),
|
|
131
131
|
p: () => L("priority"),
|
|
132
132
|
a: () => L("assignees"),
|
|
@@ -160,7 +160,7 @@ function jt() {
|
|
|
160
160
|
className: "shrink-0 font-medium whitespace-nowrap",
|
|
161
161
|
children: m.identifier
|
|
162
162
|
}),
|
|
163
|
-
/* @__PURE__ */ q(
|
|
163
|
+
/* @__PURE__ */ q(Ue, {
|
|
164
164
|
workspace: u,
|
|
165
165
|
kind: "issue",
|
|
166
166
|
target: m.id
|
|
@@ -179,7 +179,7 @@ function jt() {
|
|
|
179
179
|
failure: o("copyFailed"),
|
|
180
180
|
className: "max-sm:hidden"
|
|
181
181
|
}),
|
|
182
|
-
/* @__PURE__ */ q(
|
|
182
|
+
/* @__PURE__ */ q(Ze, { links: v }),
|
|
183
183
|
/* @__PURE__ */ J("span", {
|
|
184
184
|
className: "ml-auto flex items-center gap-3",
|
|
185
185
|
children: [
|
|
@@ -187,7 +187,7 @@ function jt() {
|
|
|
187
187
|
className: "text-xs text-muted-foreground",
|
|
188
188
|
children: l("saving")
|
|
189
189
|
}),
|
|
190
|
-
/* @__PURE__ */ q(
|
|
190
|
+
/* @__PURE__ */ q(Je, {
|
|
191
191
|
workspace: u,
|
|
192
192
|
others: P
|
|
193
193
|
}),
|
|
@@ -248,7 +248,7 @@ function jt() {
|
|
|
248
248
|
issue: m,
|
|
249
249
|
onSave: (e) => I.mutate({ title: e })
|
|
250
250
|
}),
|
|
251
|
-
/* @__PURE__ */ q(
|
|
251
|
+
/* @__PURE__ */ q(qe, {
|
|
252
252
|
workspace: u,
|
|
253
253
|
others: P,
|
|
254
254
|
field: "title"
|
|
@@ -257,7 +257,7 @@ function jt() {
|
|
|
257
257
|
workspace: u,
|
|
258
258
|
issue: m
|
|
259
259
|
}),
|
|
260
|
-
/* @__PURE__ */ q(
|
|
260
|
+
/* @__PURE__ */ q(qe, {
|
|
261
261
|
workspace: u,
|
|
262
262
|
others: P,
|
|
263
263
|
field: "body"
|
|
@@ -266,7 +266,7 @@ function jt() {
|
|
|
266
266
|
workspace: u,
|
|
267
267
|
issue: m
|
|
268
268
|
}),
|
|
269
|
-
/* @__PURE__ */ q(
|
|
269
|
+
/* @__PURE__ */ q(Xe, {
|
|
270
270
|
workspace: u,
|
|
271
271
|
identifier: m.identifier,
|
|
272
272
|
enabled: !!F?.customerRequestsEnabled
|
|
@@ -275,7 +275,7 @@ function jt() {
|
|
|
275
275
|
workspace: u,
|
|
276
276
|
identifier: d
|
|
277
277
|
}),
|
|
278
|
-
/* @__PURE__ */ q(
|
|
278
|
+
/* @__PURE__ */ q(Pe, {
|
|
279
279
|
workspace: u,
|
|
280
280
|
identifier: d,
|
|
281
281
|
title: m.title
|
|
@@ -284,7 +284,7 @@ function jt() {
|
|
|
284
284
|
workspace: u,
|
|
285
285
|
identifier: d
|
|
286
286
|
}),
|
|
287
|
-
/* @__PURE__ */ q(
|
|
287
|
+
/* @__PURE__ */ q(Fe, {
|
|
288
288
|
workspace: u,
|
|
289
289
|
identifier: d
|
|
290
290
|
}),
|
|
@@ -379,12 +379,12 @@ function Nt({ issue: e, onSave: t }) {
|
|
|
379
379
|
function Pt({ workspace: e, issue: t }) {
|
|
380
380
|
let n = G("issue"), r = G("common"), i = wt(Jt), { data: a } = Q(h), o = U(null), s = Et(() => ({
|
|
381
381
|
name: a?.user.name ?? n("someone"),
|
|
382
|
-
color:
|
|
382
|
+
color: We(a?.user.username ?? "")
|
|
383
383
|
}), [
|
|
384
384
|
a?.user.name,
|
|
385
385
|
a?.user.username,
|
|
386
386
|
n
|
|
387
|
-
]), { session: c, error: l } =
|
|
387
|
+
]), { session: c, error: l } = Ge({
|
|
388
388
|
workspace: e,
|
|
389
389
|
target: { issue: t.identifier },
|
|
390
390
|
user: s,
|
|
@@ -393,7 +393,7 @@ function Pt({ workspace: e, issue: t }) {
|
|
|
393
393
|
return /* @__PURE__ */ J("div", {
|
|
394
394
|
className: "group mt-4 min-h-32",
|
|
395
395
|
children: [
|
|
396
|
-
c ? /* @__PURE__ */ q(
|
|
396
|
+
c ? /* @__PURE__ */ q(Ke, {
|
|
397
397
|
session: c,
|
|
398
398
|
user: s,
|
|
399
399
|
getMarkdown: o,
|
|
@@ -714,7 +714,7 @@ function It({ workspace: n, issue: r, team: i, open: o, setOpen: s, update: c })
|
|
|
714
714
|
}),
|
|
715
715
|
y.length > 0 && /* @__PURE__ */ q($, {
|
|
716
716
|
label: d("syncedWith"),
|
|
717
|
-
children: /* @__PURE__ */ q(
|
|
717
|
+
children: /* @__PURE__ */ q(Qe, { links: y })
|
|
718
718
|
})
|
|
719
719
|
]
|
|
720
720
|
});
|
|
@@ -747,7 +747,7 @@ function Rt({ workspace: e, origin: t, className: n }) {
|
|
|
747
747
|
})
|
|
748
748
|
})]
|
|
749
749
|
});
|
|
750
|
-
case "area": return /* @__PURE__ */ J(
|
|
750
|
+
case "area": return /* @__PURE__ */ J(Ie, {
|
|
751
751
|
workspace: e,
|
|
752
752
|
area: { key: t.key },
|
|
753
753
|
className: n,
|
|
@@ -1066,7 +1066,7 @@ function Vt({ workspace: e, identifier: t }) {
|
|
|
1066
1066
|
className: "mt-3 text-xs text-muted-foreground hover:text-foreground",
|
|
1067
1067
|
children: n("showEarlier", { count: s })
|
|
1068
1068
|
}),
|
|
1069
|
-
/* @__PURE__ */ q(
|
|
1069
|
+
/* @__PURE__ */ q(Ye, {
|
|
1070
1070
|
className: "mt-3",
|
|
1071
1071
|
children: o.slice(s).map((t) => /* @__PURE__ */ q(et, {
|
|
1072
1072
|
workspace: e,
|
|
@@ -1112,7 +1112,7 @@ function Ht({ workspace: e, identifier: t, others: n }) {
|
|
|
1112
1112
|
"aria-label": c && r("sharedThreadLabel", { source: c })
|
|
1113
1113
|
}),
|
|
1114
1114
|
children: [
|
|
1115
|
-
o && c ? /* @__PURE__ */ q(
|
|
1115
|
+
o && c ? /* @__PURE__ */ q($e, {
|
|
1116
1116
|
source: c,
|
|
1117
1117
|
link: a.find((e) => e.connector === o)
|
|
1118
1118
|
}) : /* @__PURE__ */ q(Gt, {
|
|
@@ -1166,7 +1166,7 @@ function Ht({ workspace: e, identifier: t, others: n }) {
|
|
|
1166
1166
|
}),
|
|
1167
1167
|
/* @__PURE__ */ q("div", {
|
|
1168
1168
|
className: "mt-2",
|
|
1169
|
-
children: /* @__PURE__ */ q(
|
|
1169
|
+
children: /* @__PURE__ */ q(qe, {
|
|
1170
1170
|
workspace: e,
|
|
1171
1171
|
others: n,
|
|
1172
1172
|
field: "comment"
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createFileRoute as e, lazyFn as t, lazyRouteComponent as n } from "@tanstack/react-router";
|
|
2
|
+
var r = e("/$workspace/settings/gitlab")({
|
|
3
|
+
loader: t(() => import("./gitlab3.js"), "loader"),
|
|
4
|
+
component: n(() => import("./gitlab2.js"), "component")
|
|
5
|
+
});
|
|
6
|
+
export { r as Route };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { gitlabQuery as e } from "../../../api/queries.js";
|
|
2
|
+
import { externalUrl as t } from "../../../lib/externalUrl.js";
|
|
3
|
+
import { useCan as n } from "../../../lib/roles.js";
|
|
4
|
+
import { SettingsPage as r } from "../../../components/settings.js";
|
|
5
|
+
import { Route as i } from "./gitlab.js";
|
|
6
|
+
import { SettingsCard as a, StatusLabel as o, buttonClasses as s } from "@parallelworks/ui";
|
|
7
|
+
import { useFormatter as c, useTranslations as l } from "use-intl";
|
|
8
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
9
|
+
import { useSuspenseQuery as f } from "@tanstack/react-query";
|
|
10
|
+
import { GitLabIcon as p } from "@parallelworks/ui/brand-icons";
|
|
11
|
+
// src/routes/$workspace/settings/gitlab.tsx?tsr-split=component
|
|
12
|
+
function m() {
|
|
13
|
+
let { workspace: m } = i.useParams(), { data: h } = f(e(m)), g = n(m, "manage_workspace"), _ = l("settingsNav"), v = l("gitlab"), y = c(), b = h.settingsUrl ? t(h.settingsUrl) : void 0;
|
|
14
|
+
return /* @__PURE__ */ u(r, {
|
|
15
|
+
title: _("gitlab"),
|
|
16
|
+
description: v("pageDescription"),
|
|
17
|
+
children: h.enabled ? /* @__PURE__ */ u(a, {
|
|
18
|
+
title: v("groups"),
|
|
19
|
+
description: v("groupsHelp"),
|
|
20
|
+
...g && b && { action: /* @__PURE__ */ u("a", {
|
|
21
|
+
href: b,
|
|
22
|
+
className: s({ size: "sm" }),
|
|
23
|
+
children: v("manage")
|
|
24
|
+
}) },
|
|
25
|
+
children: h.groups.length === 0 ? /* @__PURE__ */ u("p", {
|
|
26
|
+
className: "px-3 py-3 text-sm text-muted-foreground",
|
|
27
|
+
children: v("none")
|
|
28
|
+
}) : /* @__PURE__ */ u("ul", {
|
|
29
|
+
className: "divide-y divide-border",
|
|
30
|
+
children: h.groups.map((e) => /* @__PURE__ */ d("li", {
|
|
31
|
+
className: "flex min-h-10 items-center gap-3 px-3 py-1.5",
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ u(p, { className: "size-4 shrink-0" }),
|
|
34
|
+
/* @__PURE__ */ u("span", {
|
|
35
|
+
className: "min-w-0 flex-1 truncate font-mono text-sm",
|
|
36
|
+
children: e.path
|
|
37
|
+
}),
|
|
38
|
+
e.removed ? /* @__PURE__ */ u(o, {
|
|
39
|
+
off: !0,
|
|
40
|
+
children: v("removed")
|
|
41
|
+
}) : /* @__PURE__ */ u("span", {
|
|
42
|
+
className: "text-xs text-muted-foreground",
|
|
43
|
+
children: v("since", { date: y.dateTime(new Date(e.createdAt), { dateStyle: "medium" }) })
|
|
44
|
+
})
|
|
45
|
+
]
|
|
46
|
+
}, e.path))
|
|
47
|
+
})
|
|
48
|
+
}) : /* @__PURE__ */ u(a, { children: /* @__PURE__ */ u("p", {
|
|
49
|
+
className: "px-3 py-2 text-sm text-muted-foreground",
|
|
50
|
+
children: v("notConfigured")
|
|
51
|
+
}) })
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
export { m as component };
|
package/routes/login2.js
CHANGED
|
@@ -10,8 +10,8 @@ import { useErrorMessage as p } from "@parallelworks/problem/react";
|
|
|
10
10
|
import { useTranslations as m } from "use-intl";
|
|
11
11
|
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
12
12
|
import { useQueryClient as _, useSuspenseQuery as v } from "@tanstack/react-query";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
13
|
+
import { OIDCIcon as y } from "@parallelworks/ui/brand-icons";
|
|
14
|
+
import { KeyIcon as b, MailIcon as x } from "@parallelworks/ui/icons";
|
|
15
15
|
// src/routes/login.tsx?tsr-split=component
|
|
16
16
|
var S = [
|
|
17
17
|
"refused",
|
|
@@ -76,18 +76,18 @@ function w() {
|
|
|
76
76
|
children: [
|
|
77
77
|
E.oidc && /* @__PURE__ */ h(d, {
|
|
78
78
|
href: `/auth/login?next=${encodeURIComponent(k)}`,
|
|
79
|
-
icon: /* @__PURE__ */ h(
|
|
79
|
+
icon: /* @__PURE__ */ h(y, { className: "size-5" }),
|
|
80
80
|
label: E.oidcName ? S("continueWith", { name: E.oidcName }) : S("sso"),
|
|
81
81
|
description: S("ssoDescription")
|
|
82
82
|
}),
|
|
83
83
|
E.sso && /* @__PURE__ */ h(d, {
|
|
84
|
-
icon: /* @__PURE__ */ h(
|
|
84
|
+
icon: /* @__PURE__ */ h(x, { className: "size-5" }),
|
|
85
85
|
label: S("workEmailMethod"),
|
|
86
86
|
description: S("ssoHint"),
|
|
87
87
|
onClick: () => V("work")
|
|
88
88
|
}),
|
|
89
89
|
E.devLogin && /* @__PURE__ */ h(d, {
|
|
90
|
-
icon: /* @__PURE__ */ h(
|
|
90
|
+
icon: /* @__PURE__ */ h(b, { className: "size-5" }),
|
|
91
91
|
label: S("devMethod"),
|
|
92
92
|
description: S("devHint"),
|
|
93
93
|
onClick: () => V("dev")
|