@parallelworks/tandem-web 0.150.3 → 0.152.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 +36 -4
- package/_virtual/_virtual_i18n/es/common.js +36 -4
- package/_virtual/_virtual_i18n/ja/common.js +36 -4
- package/_virtual/_virtual_i18n/ko/common.js +36 -4
- package/_virtual/_virtual_i18n/zh/common.js +36 -4
- 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 +1 -1
- 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 +414 -151
- 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
|
@@ -3,14 +3,14 @@ import { api as t, unwrap as n } from "../../../../api/client.js";
|
|
|
3
3
|
import { usePageTitle as r } from "../../../../lib/pageTitle.js";
|
|
4
4
|
import { useNavigate as i } from "../../../../lib/router.js";
|
|
5
5
|
import { agentsQuery as a, meQuery as o, teamAccessQuery as s, teamMembersQuery as c, teamsQuery as l } from "../../../../api/queries.js";
|
|
6
|
-
import {
|
|
6
|
+
import { copyItem as u } from "../../../../lib/menus.js";
|
|
7
7
|
import { AddIcon as d, ShieldIcon as f, UsersIcon as p } from "../../../../components/icons.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
8
|
+
import { usePeople as m } from "../../../../lib/people.js";
|
|
9
|
+
import { usePermissions as h } from "../../../../lib/roles.js";
|
|
10
|
+
import { useConfirm as g } from "../../../../lib/confirm.js";
|
|
11
|
+
import { FieldSettings as _ } from "../../../../components/CustomFields.js";
|
|
12
12
|
import { PersonHoverCard as v } from "../../../../components/PersonHoverCard.js";
|
|
13
|
-
import {
|
|
13
|
+
import { Route as y } from "./settings.js";
|
|
14
14
|
import { FavoriteStar as b } from "../../../../components/FavoriteStar.js";
|
|
15
15
|
import { IconUpload as x } from "../../../../components/IconUpload.js";
|
|
16
16
|
import { AccessGrants as S } from "../../../../components/AccessGrants.js";
|
|
@@ -28,7 +28,7 @@ import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
|
|
|
28
28
|
import { useMutation as Y, useQuery as X, useQueryClient as Z, useSuspenseQuery as Q } from "@tanstack/react-query";
|
|
29
29
|
// src/routes/$workspace/teams/$key/settings.tsx?tsr-split=component
|
|
30
30
|
function ne() {
|
|
31
|
-
let { workspace: e, key: i } =
|
|
31
|
+
let { workspace: e, key: i } = y.useParams(), { data: a } = Q(l(e)), o = h(e, { team: i }), s = o.has("manage_teams"), c = G("settingsNav"), u = Z(), d = Y({
|
|
32
32
|
mutationFn: async (r) => n(await t.PATCH("/api/v1/workspaces/{workspace}/teams/{key}", {
|
|
33
33
|
params: { path: {
|
|
34
34
|
workspace: e,
|
|
@@ -106,7 +106,7 @@ function ne() {
|
|
|
106
106
|
teamKey: i,
|
|
107
107
|
isAdmin: o.has("manage_labels")
|
|
108
108
|
}),
|
|
109
|
-
o.has("manage_labels") && /* @__PURE__ */ q(
|
|
109
|
+
o.has("manage_labels") && /* @__PURE__ */ q(_, {
|
|
110
110
|
workspace: e,
|
|
111
111
|
target: "issue",
|
|
112
112
|
team: {
|
|
@@ -728,7 +728,7 @@ function le({ workspace: e, team: r, isAdmin: i }) {
|
|
|
728
728
|
});
|
|
729
729
|
}
|
|
730
730
|
function ue({ workspace: e, teamKey: r, isAdmin: a }) {
|
|
731
|
-
let { data: s } = Q(c(e, r)), { data: l } = Q(o), { members:
|
|
731
|
+
let { data: s } = Q(c(e, r)), { data: l } = Q(o), { members: f, person: p } = m(e), h = Z(), g = H(), _ = i(), [y, b] = U(null), x = G("team"), S = W(), C = G("common"), w = Y({
|
|
732
732
|
mutationFn: async (i) => {
|
|
733
733
|
for (let { username: a, add: o } of i) {
|
|
734
734
|
let i = { params: { path: {
|
|
@@ -741,7 +741,7 @@ function ue({ workspace: e, teamKey: r, isAdmin: a }) {
|
|
|
741
741
|
},
|
|
742
742
|
onMutate: () => b(null),
|
|
743
743
|
onError: (e) => b(S(e)),
|
|
744
|
-
onSettled: () =>
|
|
744
|
+
onSettled: () => h.invalidateQueries({ queryKey: c(e, r).queryKey })
|
|
745
745
|
}), T = (e) => w.mutate([...e.filter((e) => !s.includes(e)).map((e) => ({
|
|
746
746
|
username: e,
|
|
747
747
|
add: !0
|
|
@@ -766,7 +766,7 @@ function ue({ workspace: e, teamKey: r, isAdmin: a }) {
|
|
|
766
766
|
children: x("join")
|
|
767
767
|
}), a && /* @__PURE__ */ q(te, {
|
|
768
768
|
multiple: !0,
|
|
769
|
-
items:
|
|
769
|
+
items: f.map((e) => ({
|
|
770
770
|
value: e.user.username,
|
|
771
771
|
label: e.user.name,
|
|
772
772
|
hint: e.user.email,
|
|
@@ -800,7 +800,7 @@ function ue({ workspace: e, teamKey: r, isAdmin: a }) {
|
|
|
800
800
|
interactive: !1,
|
|
801
801
|
render: /* @__PURE__ */ q("ul", {}),
|
|
802
802
|
children: [s.map((t) => /* @__PURE__ */ J("li", {
|
|
803
|
-
onContextMenu: (n) =>
|
|
803
|
+
onContextMenu: (n) => g(n, [
|
|
804
804
|
{
|
|
805
805
|
label: x("viewIssues"),
|
|
806
806
|
onClick: () => _({
|
|
@@ -812,7 +812,7 @@ function ue({ workspace: e, teamKey: r, isAdmin: a }) {
|
|
|
812
812
|
search: { assignee: t }
|
|
813
813
|
})
|
|
814
814
|
},
|
|
815
|
-
|
|
815
|
+
u(C("copyEmail"), p(t).email ?? ""),
|
|
816
816
|
...a || t === E ? [V, {
|
|
817
817
|
label: x(t === E ? "leaveTeam" : "removeFromTeam"),
|
|
818
818
|
destructive: !0,
|
|
@@ -828,14 +828,14 @@ function ue({ workspace: e, teamKey: r, isAdmin: a }) {
|
|
|
828
828
|
workspace: e,
|
|
829
829
|
handle: t,
|
|
830
830
|
children: /* @__PURE__ */ q(k, {
|
|
831
|
-
name:
|
|
832
|
-
src:
|
|
831
|
+
name: p(t).name,
|
|
832
|
+
src: p(t).avatarUrl,
|
|
833
833
|
size: "md"
|
|
834
834
|
})
|
|
835
835
|
}),
|
|
836
836
|
/* @__PURE__ */ J("span", {
|
|
837
837
|
className: "flex-1",
|
|
838
|
-
children: [
|
|
838
|
+
children: [p(t).name, t === E && /* @__PURE__ */ J("span", {
|
|
839
839
|
className: "text-muted-foreground",
|
|
840
840
|
children: [" ", x("you")]
|
|
841
841
|
})]
|
|
@@ -917,7 +917,7 @@ function de({ workspace: e, teamKey: r }) {
|
|
|
917
917
|
});
|
|
918
918
|
}
|
|
919
919
|
function fe({ workspace: e, team: r }) {
|
|
920
|
-
let i = G("team"), a = Z(), o = W(), { confirm: s, dialog: c } =
|
|
920
|
+
let i = G("team"), a = Z(), o = W(), { confirm: s, dialog: c } = g(), u = !!r.archivedAt, d = Y({
|
|
921
921
|
mutationFn: async (i) => n(await t.PATCH("/api/v1/workspaces/{workspace}/teams/{key}", {
|
|
922
922
|
params: { path: {
|
|
923
923
|
workspace: e,
|
|
@@ -926,34 +926,34 @@ function fe({ workspace: e, team: r }) {
|
|
|
926
926
|
body: { archived: i }
|
|
927
927
|
})),
|
|
928
928
|
onSettled: () => a.invalidateQueries({ queryKey: l(e).queryKey })
|
|
929
|
-
}),
|
|
929
|
+
}), f = () => s({
|
|
930
930
|
title: i("archiveConfirm", { name: r.name }),
|
|
931
931
|
description: i("archiveDetail"),
|
|
932
932
|
confirmLabel: i("archive"),
|
|
933
|
-
onConfirm: () =>
|
|
933
|
+
onConfirm: () => d.mutateAsync(!0)
|
|
934
934
|
});
|
|
935
935
|
return /* @__PURE__ */ J(I, {
|
|
936
936
|
variant: "card",
|
|
937
|
-
...!
|
|
937
|
+
...!u && { tone: "error" },
|
|
938
938
|
collapsible: !1,
|
|
939
939
|
headingLevel: 2,
|
|
940
|
-
title: i(
|
|
941
|
-
description: i(
|
|
940
|
+
title: i(u ? "archived" : "dangerZone"),
|
|
941
|
+
description: i(u ? "archivedDetail" : "archiveDetail"),
|
|
942
942
|
children: [
|
|
943
|
-
|
|
944
|
-
onClick: () =>
|
|
945
|
-
loading:
|
|
943
|
+
u ? /* @__PURE__ */ q(A, {
|
|
944
|
+
onClick: () => d.mutate(!1),
|
|
945
|
+
loading: d.isPending,
|
|
946
946
|
children: i("restore")
|
|
947
947
|
}) : /* @__PURE__ */ q(A, {
|
|
948
948
|
variant: "danger",
|
|
949
|
-
onClick:
|
|
950
|
-
loading:
|
|
949
|
+
onClick: f,
|
|
950
|
+
loading: d.isPending,
|
|
951
951
|
children: i("archive")
|
|
952
952
|
}),
|
|
953
|
-
|
|
953
|
+
d.error && !d.variables && /* @__PURE__ */ q(N, {
|
|
954
954
|
size: "md",
|
|
955
955
|
className: "mt-3",
|
|
956
|
-
children: o(
|
|
956
|
+
children: o(d.error)
|
|
957
957
|
}),
|
|
958
958
|
c,
|
|
959
959
|
/* @__PURE__ */ q(pe, {
|