@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
package/pages/decisions.js
CHANGED
|
@@ -2,8 +2,8 @@ import { issuePath as e } from "../lib/branch.js";
|
|
|
2
2
|
import { usePageTitle as t } from "../lib/pageTitle.js";
|
|
3
3
|
import { Link as n } from "../lib/router.js";
|
|
4
4
|
import { allDecisionsQuery as r, inboxQuery as i, myAllDecisionsQuery as a, myDecisionsQuery as o, teamsQuery as s } from "../api/queries.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { copyItem as c, useLinkItems as l } from "../lib/menus.js";
|
|
6
|
+
import { ChevronRightIcon as u, PriorityIcon as d, usePriorityNames as f } from "../components/icons.js";
|
|
7
7
|
import { AnsweredDecision as p, DecisionCard as m } from "../components/AgentWork.js";
|
|
8
8
|
import { FavoriteStar as h } from "../components/FavoriteStar.js";
|
|
9
9
|
import { recentlyAnswered as g, saveScope as _, savedScope as v } from "../lib/decisionScope.js";
|
|
@@ -24,7 +24,7 @@ function A(e) {
|
|
|
24
24
|
return [...t.values()];
|
|
25
25
|
}
|
|
26
26
|
function j({ first: t, count: r, open: i, onToggle: a, showWorkspace: o, children: s }) {
|
|
27
|
-
let p = T("decisions"), m =
|
|
27
|
+
let p = T("decisions"), m = l(), h = x(), g = f();
|
|
28
28
|
return /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("div", {
|
|
29
29
|
className: "mb-1.5 flex min-w-0 items-center gap-1 text-xs text-muted-foreground",
|
|
30
30
|
children: [
|
|
@@ -34,7 +34,7 @@ function j({ first: t, count: r, open: i, onToggle: a, showWorkspace: o, childre
|
|
|
34
34
|
"aria-expanded": i,
|
|
35
35
|
"aria-label": p(i ? "hideDecisions" : "showDecisions", { issue: t.identifier }),
|
|
36
36
|
className: "-ml-1 shrink-0 rounded p-0.5 hover:bg-muted hover:text-foreground",
|
|
37
|
-
children: /* @__PURE__ */ E(
|
|
37
|
+
children: /* @__PURE__ */ E(u, { className: i ? "size-3.5 rotate-90" : "size-3.5" })
|
|
38
38
|
}),
|
|
39
39
|
/* @__PURE__ */ D(n, {
|
|
40
40
|
to: "/$workspace/issues/$identifier",
|
|
@@ -42,7 +42,7 @@ function j({ first: t, count: r, open: i, onToggle: a, showWorkspace: o, childre
|
|
|
42
42
|
workspace: t.workspace,
|
|
43
43
|
identifier: t.identifier
|
|
44
44
|
},
|
|
45
|
-
onContextMenu: (n) => h(n, [...m(e(t.workspace, t.identifier)),
|
|
45
|
+
onContextMenu: (n) => h(n, [...m(e(t.workspace, t.identifier)), c(p("copyId"), t.identifier)]),
|
|
46
46
|
className: "flex min-w-0 items-center gap-2 hover:text-foreground",
|
|
47
47
|
children: [
|
|
48
48
|
o && /* @__PURE__ */ E("span", {
|
|
@@ -53,7 +53,7 @@ function j({ first: t, count: r, open: i, onToggle: a, showWorkspace: o, childre
|
|
|
53
53
|
content: g[t.issuePriority],
|
|
54
54
|
children: /* @__PURE__ */ D("span", {
|
|
55
55
|
className: "flex",
|
|
56
|
-
children: [/* @__PURE__ */ E(
|
|
56
|
+
children: [/* @__PURE__ */ E(d, { priority: t.issuePriority }), /* @__PURE__ */ E("span", {
|
|
57
57
|
className: "sr-only",
|
|
58
58
|
children: g[t.issuePriority]
|
|
59
59
|
})]
|
|
@@ -80,15 +80,15 @@ function j({ first: t, count: r, open: i, onToggle: a, showWorkspace: o, childre
|
|
|
80
80
|
})] });
|
|
81
81
|
}
|
|
82
82
|
function M() {
|
|
83
|
-
let { workspace: e, key: n } = S({ strict: !1 }),
|
|
84
|
-
t(
|
|
83
|
+
let { workspace: e, key: n } = S({ strict: !1 }), c = T("decisions"), l = x(), { team: d = n } = C({ strict: !1 }), { data: f } = O(s(e)), b = f.find((e) => e.key === d);
|
|
84
|
+
t(c("title"), b?.name);
|
|
85
85
|
let [M, N] = w(v), P = b ? "workspace" : M, F = P === "all", I = (e) => b ? e.filter((e) => e.identifier.startsWith(`${b.key}-`)) : e, L = (e) => {
|
|
86
86
|
N(e), _(e);
|
|
87
87
|
}, { data: R } = O(F ? o : i(e)), { data: z } = O(F ? a : r(e)), B = I(R), V = g(I(z)), [H, U] = w(/* @__PURE__ */ new Set()), [W, G] = w(!1), K = (e) => U((t) => {
|
|
88
88
|
let n = new Set(t);
|
|
89
89
|
return n.delete(e) || n.add(e), n;
|
|
90
90
|
}), q = () => k.map((e) => ({
|
|
91
|
-
label:
|
|
91
|
+
label: c(`scopes.${e}`),
|
|
92
92
|
checked: e === P,
|
|
93
93
|
onClick: () => L(e)
|
|
94
94
|
}));
|
|
@@ -99,7 +99,7 @@ function M() {
|
|
|
99
99
|
children: [
|
|
100
100
|
/* @__PURE__ */ E("h1", {
|
|
101
101
|
className: "text-sm font-semibold",
|
|
102
|
-
children: b ?
|
|
102
|
+
children: b ? c("teamTitle", { team: b.name }) : c("title")
|
|
103
103
|
}),
|
|
104
104
|
!b && /* @__PURE__ */ E(h, {
|
|
105
105
|
workspace: e,
|
|
@@ -108,20 +108,20 @@ function M() {
|
|
|
108
108
|
}),
|
|
109
109
|
/* @__PURE__ */ E("span", {
|
|
110
110
|
className: "text-xs text-muted-foreground",
|
|
111
|
-
children:
|
|
111
|
+
children: c("openCount", { count: B.length })
|
|
112
112
|
}),
|
|
113
113
|
!b && /* @__PURE__ */ E("div", {
|
|
114
114
|
className: "ml-auto",
|
|
115
115
|
children: /* @__PURE__ */ E(y, {
|
|
116
116
|
size: "sm",
|
|
117
|
-
label:
|
|
117
|
+
label: c("scope"),
|
|
118
118
|
options: k.map((e) => ({
|
|
119
119
|
value: e,
|
|
120
|
-
label:
|
|
120
|
+
label: c(`scopes.${e}`)
|
|
121
121
|
})),
|
|
122
122
|
value: P,
|
|
123
123
|
onValueChange: L,
|
|
124
|
-
onContextMenu: (e) =>
|
|
124
|
+
onContextMenu: (e) => l(e, q())
|
|
125
125
|
})
|
|
126
126
|
})
|
|
127
127
|
]
|
|
@@ -134,7 +134,7 @@ function M() {
|
|
|
134
134
|
let [t] = e, n = `open:${t.workspace}/${t.identifier}`;
|
|
135
135
|
return /* @__PURE__ */ E(j, {
|
|
136
136
|
first: t,
|
|
137
|
-
count:
|
|
137
|
+
count: c("openCount", { count: e.length }),
|
|
138
138
|
open: !H.has(n),
|
|
139
139
|
onToggle: () => K(n),
|
|
140
140
|
showWorkspace: F,
|
|
@@ -148,23 +148,23 @@ function M() {
|
|
|
148
148
|
className: "py-24 text-center",
|
|
149
149
|
children: [/* @__PURE__ */ E("p", {
|
|
150
150
|
className: "text-sm font-medium",
|
|
151
|
-
children:
|
|
151
|
+
children: c("emptyTitle")
|
|
152
152
|
}), /* @__PURE__ */ E("p", {
|
|
153
153
|
className: "mt-1 text-sm text-muted-foreground",
|
|
154
|
-
children:
|
|
154
|
+
children: c(F ? "emptyDescriptionAll" : "emptyDescription")
|
|
155
155
|
})]
|
|
156
156
|
}),
|
|
157
157
|
V.length > 0 && /* @__PURE__ */ D("section", {
|
|
158
158
|
className: "space-y-3 pt-6",
|
|
159
|
-
"aria-label":
|
|
159
|
+
"aria-label": c("recentlyAnswered"),
|
|
160
160
|
children: [/* @__PURE__ */ E("h2", { children: /* @__PURE__ */ D("button", {
|
|
161
161
|
type: "button",
|
|
162
162
|
onClick: () => G((e) => !e),
|
|
163
163
|
"aria-expanded": W,
|
|
164
164
|
className: "-ml-1 flex items-center gap-1 rounded px-1 text-base font-semibold hover:bg-muted",
|
|
165
165
|
children: [
|
|
166
|
-
/* @__PURE__ */ E(
|
|
167
|
-
|
|
166
|
+
/* @__PURE__ */ E(u, { className: W ? "size-4 rotate-90" : "size-4" }),
|
|
167
|
+
c("recentlyAnswered"),
|
|
168
168
|
/* @__PURE__ */ E("span", {
|
|
169
169
|
className: "ml-1 text-xs font-normal text-muted-foreground",
|
|
170
170
|
children: V.length
|
|
@@ -174,7 +174,7 @@ function M() {
|
|
|
174
174
|
let [t] = e, n = `answered:${t.workspace}/${t.identifier}`;
|
|
175
175
|
return /* @__PURE__ */ E(j, {
|
|
176
176
|
first: t,
|
|
177
|
-
count:
|
|
177
|
+
count: c("answeredCount", { count: e.length }),
|
|
178
178
|
open: H.has(n),
|
|
179
179
|
onToggle: () => K(n),
|
|
180
180
|
showWorkspace: F,
|
package/pages/issues.js
CHANGED
|
@@ -3,26 +3,26 @@ import { ErrorMessage as t } from "../components/status.js";
|
|
|
3
3
|
import { usePageTitle as n } from "../lib/pageTitle.js";
|
|
4
4
|
import { useNavigate as r } from "../lib/router.js";
|
|
5
5
|
import { cyclesQuery as i, issuesQuery as ee, labelsQuery as te, meQuery as ne, projectsQuery as re, statusesQuery as ie, teamsQuery as ae } from "../api/queries.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
6
|
+
import { BoardIcon as oe, ChartIcon as se, CloseIcon as ce, DownloadIcon as le, ListViewIcon as ue, SidePanelIcon as de, UploadIcon as fe, usePriorityNames as pe } from "../components/icons.js";
|
|
7
|
+
import { useNewIssue as me } from "../lib/newIssue.js";
|
|
8
|
+
import { usePeople as he } from "../lib/people.js";
|
|
9
|
+
import { useIssueMenu as ge } from "../lib/issueMenu.js";
|
|
10
|
+
import { projectRef as _e } from "../lib/projects.js";
|
|
11
|
+
import { useCan as ve } from "../lib/roles.js";
|
|
12
|
+
import { customFieldsQuery as ye, fieldRef as be, fieldsForTeams as xe, groupableKinds as Se, sortableKinds as Ce } from "../lib/customFields.js";
|
|
13
|
+
import { useBoardMove as we } from "../lib/boardMove.js";
|
|
14
|
+
import { issueTypesQuery as Te } from "../lib/issueTypes.js";
|
|
15
|
+
import { isViewAt as Ee, viewRef as De } from "../lib/refs.js";
|
|
16
|
+
import { groupIssues as Oe, groupings as ke, isGrouping as Ae, isOrder as je, issueFilterOf as Me, orders as Ne, sortIssues as Pe, views as Fe } from "../lib/issueList.js";
|
|
17
|
+
import { issuesHref as Ie } from "../lib/teamPaths.js";
|
|
18
|
+
import { ViewDialog as Le } from "../components/ViewDialog.js";
|
|
19
|
+
import { filtersOf as Re, sameFilters as ze, useSavedViews as Be, viewSearch as Ve } from "../lib/views.js";
|
|
20
|
+
import { IssueBoard as He } from "../components/IssueBoard.js";
|
|
21
|
+
import { useIssueFilters as Ue, withIssueFilters as We } from "../components/IssueFilters.js";
|
|
22
|
+
import { IssueRow as Ge } from "../components/IssueRow.js";
|
|
23
|
+
import { useShortcuts as Ke } from "../lib/shortcuts.js";
|
|
24
|
+
import { usePaletteSelection as qe } from "../lib/palette.js";
|
|
25
|
+
import { useLive as Je } from "../lib/live.js";
|
|
26
26
|
import { FavoriteStar as Ye } from "../components/FavoriteStar.js";
|
|
27
27
|
import { DisplayMenu as Xe } from "../components/DisplayMenu.js";
|
|
28
28
|
import { IssueBreakdown as Ze, breakdownKeys as Qe } from "../components/IssueBreakdown.js";
|
|
@@ -55,7 +55,7 @@ function _({ person: e } = {}) {
|
|
|
55
55
|
} : {
|
|
56
56
|
...b,
|
|
57
57
|
assignee: e
|
|
58
|
-
} : b, Dt = r(), Ot = (t) => e ?
|
|
58
|
+
} : b, Dt = r(), Ot = (t) => e ? Ie(v, { ...Ct(t) }).replace(`/${v}/issues`, `/${v}/people/${encodeURIComponent(e)}`) : Ie(v, { ...t }), S = (t, n) => {
|
|
59
59
|
let { team: r, ...i } = t;
|
|
60
60
|
return Dt(e ? {
|
|
61
61
|
to: "/$workspace/people/$username",
|
|
@@ -83,7 +83,7 @@ function _({ person: e } = {}) {
|
|
|
83
83
|
kt.current = (e) => S(e, !0);
|
|
84
84
|
let At = d((e) => S(o(x, "q", e), !0));
|
|
85
85
|
At.current = (e) => S(o(x, "q", e), !0);
|
|
86
|
-
let { data: C } = yt(ne), { data: w } = yt(ae(v)), jt =
|
|
86
|
+
let { data: C } = yt(ne), { data: w } = yt(ae(v)), jt = me(), T = x.view ?? "active", [E, Mt] = f(x.q ?? ""), D = d(null);
|
|
87
87
|
l(() => {
|
|
88
88
|
let e = setTimeout(() => {
|
|
89
89
|
(x.q ?? "") !== E && At.current(E);
|
|
@@ -93,15 +93,15 @@ function _({ person: e } = {}) {
|
|
|
93
93
|
let { data: Nt } = g({
|
|
94
94
|
...ie(v, x.team ?? ""),
|
|
95
95
|
enabled: !!x.status && !!x.team
|
|
96
|
-
}), Pt =
|
|
96
|
+
}), Pt = Me(x, Nt), { data: O, error: Ft, isFetching: It } = g({
|
|
97
97
|
...ee(v, Pt),
|
|
98
98
|
placeholderData: vt,
|
|
99
99
|
enabled: !x.status || !x.team || !!Nt
|
|
100
|
-
}), k = O?.issues ?? [], Lt =
|
|
100
|
+
}), k = O?.issues ?? [], Lt = pe(), { nameOf: Rt, avatarOf: zt } = he(v), A = x.saved ? {} : ct(), { data: Bt } = g(ye(v)), j = w.find((e) => e.key === x.team), M = u(() => xe(Bt, j ? [j.id] : w.map((e) => e.id)), [
|
|
101
101
|
Bt,
|
|
102
102
|
j,
|
|
103
103
|
w
|
|
104
|
-
]), N = p("customFields"), Vt = p("issueTypes"), { data: Ht } = g(
|
|
104
|
+
]), N = p("customFields"), Vt = p("issueTypes"), { data: Ht } = g(Te(v)), Ut = u(() => (Ht ?? []).filter((e) => !e.archivedAt && (!j || e.teamIds.length === 0 || e.teamIds.includes(j.id))), [Ht, j]), P = je(x.order, M) ? x.order : je(A.order, M) ? A.order : "updated", F = Ae(x.group, M) ? x.group : Ae(A.group, M) ? A.group : "status", Wt = M.find((e) => e.id === be(F)), [Gt, Kt] = f(() => ot(v)), qt = M.filter((e) => Gt.includes(e.id)), I = x.layout === "board" || !x.layout && A.layout === "board", [Jt, Yt] = f(() => {
|
|
105
105
|
try {
|
|
106
106
|
return localStorage.getItem(at) !== "hidden";
|
|
107
107
|
} catch {
|
|
@@ -123,7 +123,7 @@ function _({ person: e } = {}) {
|
|
|
123
123
|
localStorage.setItem(rt, e ? "hidden" : "shown");
|
|
124
124
|
} catch {}
|
|
125
125
|
return !e;
|
|
126
|
-
}), [en, tn] = f("assignees"), [L, nn] = f(null), R = L ? k.filter((e) => Qe(e, L.tab).includes(L.key)) : k, z = u(() =>
|
|
126
|
+
}), [en, tn] = f("assignees"), [L, nn] = f(null), R = L ? k.filter((e) => Qe(e, L.tab).includes(L.key)) : k, z = u(() => Oe(Pe(R, P, M), F, {
|
|
127
127
|
status: (e) => _(`groups.${e}`),
|
|
128
128
|
priority: (e) => Lt[e] ?? "",
|
|
129
129
|
person: Rt,
|
|
@@ -150,7 +150,7 @@ function _({ person: e } = {}) {
|
|
|
150
150
|
I,
|
|
151
151
|
M,
|
|
152
152
|
Ut
|
|
153
|
-
]), B = u(() => z.flatMap((e) => e.issues), [z]), [rn, an] = f(0), V = B[Math.min(rn, B.length - 1)], [H, U] = f(/* @__PURE__ */ new Set()), W = d(null), on =
|
|
153
|
+
]), B = u(() => z.flatMap((e) => e.issues), [z]), [rn, an] = f(0), V = B[Math.min(rn, B.length - 1)], [H, U] = f(/* @__PURE__ */ new Set()), W = d(null), on = ge(v), sn = we(v, w), { people: cn } = Je(), ln = u(() => {
|
|
154
154
|
let e = /* @__PURE__ */ new Map();
|
|
155
155
|
for (let t of cn) {
|
|
156
156
|
if (!t.identifier || t.username === C?.user.username) continue;
|
|
@@ -159,7 +159,7 @@ function _({ person: e } = {}) {
|
|
|
159
159
|
}
|
|
160
160
|
return e;
|
|
161
161
|
}, [cn, C?.user.username]), un = mt(), dn = u(() => B.filter((e) => H.has(e.id)), [B, H]);
|
|
162
|
-
|
|
162
|
+
qe(dn);
|
|
163
163
|
let fn = (e) => U((t) => {
|
|
164
164
|
let n = new Set(t);
|
|
165
165
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
@@ -182,7 +182,7 @@ function _({ person: e } = {}) {
|
|
|
182
182
|
let n = H.has(t.id) ? B.filter((e) => H.has(e.id)) : [t];
|
|
183
183
|
H.has(t.id) || U(/* @__PURE__ */ new Set()), un(e, on(n));
|
|
184
184
|
};
|
|
185
|
-
|
|
185
|
+
Ke({
|
|
186
186
|
...!I && {
|
|
187
187
|
j: () => G(1, !1),
|
|
188
188
|
k: () => G(-1, !1),
|
|
@@ -209,7 +209,7 @@ function _({ person: e } = {}) {
|
|
|
209
209
|
}, []), l(() => {
|
|
210
210
|
document.getElementById(`row-${V?.id}`)?.scrollIntoView({ block: "nearest" });
|
|
211
211
|
}, [V]);
|
|
212
|
-
let K = w.find((e) => e.key === x.team), q =
|
|
212
|
+
let K = w.find((e) => e.key === x.team), q = Ue(v, x, (e) => S(We(x, e), !0), !!y && !x.assignee && !x.creator && !x.saved), _n = Ie(v, { ...o(x, "q", void 0) }), { views: vn, create: yn, update: bn } = Be(v), J = vn.find((e) => Ee(e, x.saved)), { data: xn } = g(te(v)), { data: Sn } = g(re(v)), { data: Cn } = g({
|
|
213
213
|
...i(v, K?.key ?? ""),
|
|
214
214
|
enabled: !!K
|
|
215
215
|
});
|
|
@@ -217,9 +217,9 @@ function _({ person: e } = {}) {
|
|
|
217
217
|
let e = /^[0-9a-f]{8}-[0-9a-f]{4}-/i, t = { ...x }, n = xn?.find((e) => e.id === x.label);
|
|
218
218
|
x.label && e.test(x.label) && n && (t.label = n.name);
|
|
219
219
|
let r = Sn?.find((e) => e.id === x.project);
|
|
220
|
-
x.project && e.test(x.project) && r && (t.project =
|
|
220
|
+
x.project && e.test(x.project) && r && (t.project = _e(r));
|
|
221
221
|
let i = Cn?.find((e) => e.id === x.cycle);
|
|
222
|
-
x.cycle && e.test(x.cycle) && i && (t.cycle = String(i.number)), x.saved && e.test(x.saved) && J && (t.saved =
|
|
222
|
+
x.cycle && e.test(x.cycle) && i && (t.cycle = String(i.number)), x.saved && e.test(x.saved) && J && (t.saved = De(J)), JSON.stringify(t) !== JSON.stringify(x) && kt.current(t);
|
|
223
223
|
}, [
|
|
224
224
|
x,
|
|
225
225
|
xn,
|
|
@@ -227,12 +227,12 @@ function _({ person: e } = {}) {
|
|
|
227
227
|
Cn,
|
|
228
228
|
J
|
|
229
229
|
]);
|
|
230
|
-
let Y =
|
|
230
|
+
let Y = Re({
|
|
231
231
|
...x,
|
|
232
232
|
...P !== "updated" && { order: P },
|
|
233
233
|
...F !== "status" && { group: F },
|
|
234
234
|
...I && { layout: "board" }
|
|
235
|
-
}), wn = J ? !
|
|
235
|
+
}), wn = J ? !ze(J.filters, Y) : Object.keys(Y).length > 0, Tn = ve(v, "create_issues", x.team ? { team: x.team } : void 0), En = ve(v, "save_views"), [Dn, On] = f(!1), [kn, An] = f(null), X = p("savedViews"), Z = C?.user.username, jn = !J && !K && (!x.assigneeKind && x.assignee === Z && !x.creator || x.creator === Z && !x.assignee), Q = e ?? (jn ? Z : void 0), $ = J?.name ?? K?.name ?? (e && e !== Z ? _("personIssues", { name: Rt("user", e) }) : !x.assigneeKind && x.assignee === Z || x.creator === Z ? _("mine") : _("all")), Mn = p("workspace");
|
|
236
236
|
n(...K && !J ? [Mn("issues"), K.name] : [$]);
|
|
237
237
|
let Nn = wn && /* @__PURE__ */ h(_t, { children: [J?.canEdit && /* @__PURE__ */ m(s, {
|
|
238
238
|
type: "button",
|
|
@@ -286,7 +286,7 @@ function _({ person: e } = {}) {
|
|
|
286
286
|
variant: "segmented",
|
|
287
287
|
size: "sm",
|
|
288
288
|
label: _("view"),
|
|
289
|
-
items: Object.keys(
|
|
289
|
+
items: Object.keys(Fe).map((e) => ({
|
|
290
290
|
value: e,
|
|
291
291
|
label: _(`views.${e}`),
|
|
292
292
|
href: Ot(o(x, "view", e === "active" ? void 0 : e))
|
|
@@ -313,11 +313,11 @@ function _({ person: e } = {}) {
|
|
|
313
313
|
layouts: [{
|
|
314
314
|
value: "list",
|
|
315
315
|
label: _("layouts.list"),
|
|
316
|
-
icon: /* @__PURE__ */ m(
|
|
316
|
+
icon: /* @__PURE__ */ m(ue, {})
|
|
317
317
|
}, {
|
|
318
318
|
value: "board",
|
|
319
319
|
label: _("layouts.board"),
|
|
320
|
-
icon: /* @__PURE__ */ m(
|
|
320
|
+
icon: /* @__PURE__ */ m(oe, {})
|
|
321
321
|
}],
|
|
322
322
|
layout: I ? "board" : "list",
|
|
323
323
|
onLayoutChange: (e) => {
|
|
@@ -329,10 +329,10 @@ function _({ person: e } = {}) {
|
|
|
329
329
|
label: _("orderBy"),
|
|
330
330
|
children: /* @__PURE__ */ m(ft, {
|
|
331
331
|
value: P,
|
|
332
|
-
items: [...
|
|
332
|
+
items: [...Ne.map((e) => ({
|
|
333
333
|
value: e,
|
|
334
334
|
label: _(`order.${e}`)
|
|
335
|
-
})), ...M.filter((e) =>
|
|
335
|
+
})), ...M.filter((e) => Ce.includes(e.kind)).map((e) => ({
|
|
336
336
|
value: `field:${e.id}`,
|
|
337
337
|
label: e.name
|
|
338
338
|
}))],
|
|
@@ -347,10 +347,10 @@ function _({ person: e } = {}) {
|
|
|
347
347
|
label: _("groupBy"),
|
|
348
348
|
children: /* @__PURE__ */ m(ft, {
|
|
349
349
|
value: F,
|
|
350
|
-
items: [...
|
|
350
|
+
items: [...ke.map((e) => ({
|
|
351
351
|
value: e,
|
|
352
352
|
label: _(`grouping.${e}`)
|
|
353
|
-
})), ...M.filter((e) =>
|
|
353
|
+
})), ...M.filter((e) => Se.includes(e.kind)).map((e) => ({
|
|
354
354
|
value: `field:${e.id}`,
|
|
355
355
|
label: e.name
|
|
356
356
|
}))],
|
|
@@ -383,7 +383,7 @@ function _({ person: e } = {}) {
|
|
|
383
383
|
/* @__PURE__ */ m(c, {
|
|
384
384
|
variant: "secondary",
|
|
385
385
|
size: "sm",
|
|
386
|
-
icon: /* @__PURE__ */ m(
|
|
386
|
+
icon: /* @__PURE__ */ m(de, { className: "size-3.5" }),
|
|
387
387
|
label: _(Jt ? "hidePanel" : "showPanel"),
|
|
388
388
|
"aria-pressed": Jt,
|
|
389
389
|
onClick: Xt,
|
|
@@ -392,7 +392,7 @@ function _({ person: e } = {}) {
|
|
|
392
392
|
/* @__PURE__ */ m(c, {
|
|
393
393
|
variant: "secondary",
|
|
394
394
|
size: "sm",
|
|
395
|
-
icon: /* @__PURE__ */ m(
|
|
395
|
+
icon: /* @__PURE__ */ m(se, { className: "size-3.5" }),
|
|
396
396
|
label: _(Zt ? "hideInsights" : "showInsights"),
|
|
397
397
|
"aria-pressed": Zt,
|
|
398
398
|
onClick: $t
|
|
@@ -400,14 +400,14 @@ function _({ person: e } = {}) {
|
|
|
400
400
|
/* @__PURE__ */ m(c, {
|
|
401
401
|
variant: "secondary",
|
|
402
402
|
size: "sm",
|
|
403
|
-
icon: /* @__PURE__ */ m(
|
|
403
|
+
icon: /* @__PURE__ */ m(le, { className: "size-3.5" }),
|
|
404
404
|
label: _("exportCsv"),
|
|
405
405
|
onClick: () => Tt(v, Pt)
|
|
406
406
|
}),
|
|
407
407
|
x.team && Tn && /* @__PURE__ */ m(c, {
|
|
408
408
|
variant: "secondary",
|
|
409
409
|
size: "sm",
|
|
410
|
-
icon: /* @__PURE__ */ m(
|
|
410
|
+
icon: /* @__PURE__ */ m(fe, { className: "size-3.5" }),
|
|
411
411
|
label: _("importCsv"),
|
|
412
412
|
onClick: () => et((e, t) => An({
|
|
413
413
|
name: e,
|
|
@@ -433,7 +433,7 @@ function _({ person: e } = {}) {
|
|
|
433
433
|
file: kn,
|
|
434
434
|
onClose: () => An(null)
|
|
435
435
|
}),
|
|
436
|
-
Dn && /* @__PURE__ */ m(
|
|
436
|
+
Dn && /* @__PURE__ */ m(Le, {
|
|
437
437
|
title: X("saveTitle"),
|
|
438
438
|
submitLabel: X("save"),
|
|
439
439
|
share: { allowed: En },
|
|
@@ -444,7 +444,7 @@ function _({ person: e } = {}) {
|
|
|
444
444
|
shared: t,
|
|
445
445
|
filters: Y
|
|
446
446
|
});
|
|
447
|
-
S(
|
|
447
|
+
S(Ve(n), !0);
|
|
448
448
|
}
|
|
449
449
|
}),
|
|
450
450
|
/* @__PURE__ */ h("div", {
|
|
@@ -480,7 +480,7 @@ function _({ person: e } = {}) {
|
|
|
480
480
|
/* @__PURE__ */ m(c, {
|
|
481
481
|
size: "sm",
|
|
482
482
|
variant: "ghost",
|
|
483
|
-
icon: /* @__PURE__ */ m(
|
|
483
|
+
icon: /* @__PURE__ */ m(ce, {}),
|
|
484
484
|
label: _("clear"),
|
|
485
485
|
onClick: () => U(/* @__PURE__ */ new Set())
|
|
486
486
|
})
|
|
@@ -499,9 +499,9 @@ function _({ person: e } = {}) {
|
|
|
499
499
|
children: Et("issueBreakdown.showAll")
|
|
500
500
|
})]
|
|
501
501
|
}),
|
|
502
|
-
I && O && /* @__PURE__ */ m(
|
|
502
|
+
I && O && /* @__PURE__ */ m(He, {
|
|
503
503
|
workspace: v,
|
|
504
|
-
columns: F === "status" &&
|
|
504
|
+
columns: F === "status" && Fe[T].categories.length > 0 ? z.filter((e) => e.issues.length > 0 || e.key === "completed" || Fe[T].categories.includes(e.key)) : z,
|
|
505
505
|
onMove: F === "none" ? void 0 : (e, t, n) => sn(e, F, t, n, z.find((e) => e.key === n)?.issues[0], Wt),
|
|
506
506
|
onContextMenu: gn
|
|
507
507
|
}),
|
|
@@ -509,7 +509,7 @@ function _({ person: e } = {}) {
|
|
|
509
509
|
label: e.label,
|
|
510
510
|
icon: e.icon,
|
|
511
511
|
count: e.issues.length,
|
|
512
|
-
children: e.issues.map((e) => /* @__PURE__ */ m(
|
|
512
|
+
children: e.issues.map((e) => /* @__PURE__ */ m(Ge, {
|
|
513
513
|
issue: e,
|
|
514
514
|
team: w.find((t) => t.id === e.teamId),
|
|
515
515
|
workspace: v,
|
|
@@ -550,7 +550,7 @@ function _({ person: e } = {}) {
|
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
552
|
function wt({ workspace: e, filtered: t, onCreate: n }) {
|
|
553
|
-
let r = p("issues.empty"), { data: i = [] } = g(ae(e)), ee =
|
|
553
|
+
let r = p("issues.empty"), { data: i = [] } = g(ae(e)), ee = ve(e, "manage_teams");
|
|
554
554
|
return i.some((e) => !e.archivedAt) ? /* @__PURE__ */ h("div", {
|
|
555
555
|
className: "mx-auto max-w-sm px-4 py-24 text-center",
|
|
556
556
|
children: [
|