@parallelworks/tandem-web 0.171.1 → 0.171.2
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/components/AccessGrants.js +6 -6
- package/components/ActivityTimeline.js +57 -57
- package/components/ActorAvatar.js +4 -4
- 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 +29 -29
- package/components/BlockHandle.js +3 -3
- package/components/BugRotation.js +8 -8
- package/components/CodeHostSettings.js +38 -38
- 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 +23 -23
- 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 +12 -12
- 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 +4 -4
- 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 +4 -4
- 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/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 +109 -109
- 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 +477 -477
- package/routes/_workspace/issues/index.js +13 -13
- package/routes/_workspace/knowledge/_term2.js +175 -175
- package/routes/_workspace/knowledge/_term3.js +4 -4
- package/routes/_workspace/knowledge/index.js +12 -12
- package/routes/_workspace/knowledge/index2.js +117 -117
- 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
package/pages/issues.js
CHANGED
|
@@ -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 {
|
|
1
|
+
import { cyclesQuery as e, issueCountsQuery as t, issueOrders as n, issuePagesQuery as r, labelsQuery as i, meQuery as ee, projectsQuery as te, statusesQuery as ne, teamsQuery as re } from "../api/queries.js";
|
|
2
|
+
import { DisplayMenu as a } from "../components/DisplayMenu.js";
|
|
3
|
+
import { FavoriteStar as ie } from "../components/FavoriteStar.js";
|
|
4
|
+
import { IssueBoard as ae } from "../components/IssueBoard.js";
|
|
5
|
+
import { IssueBreakdown as oe, breakdownKeys as se } from "../components/IssueBreakdown.js";
|
|
6
|
+
import { useIssueFilters as ce, withIssueFilters as le } from "../components/IssueFilters.js";
|
|
7
|
+
import { IssueGroupList as ue } from "../components/IssueGroupList.js";
|
|
8
|
+
import { IssueImport as de, pickCsv as fe } from "../components/IssueImport.js";
|
|
9
|
+
import { IssueInsights as pe } from "../components/IssueInsights.js";
|
|
10
|
+
import { IssueRow as o } from "../components/IssueRow.js";
|
|
11
|
+
import { BoardIcon as me, ChartIcon as he, CloseIcon as ge, DownloadIcon as _e, ListViewIcon as ve, SidePanelIcon as ye, UploadIcon as be, usePriorityNames as xe } from "../components/icons.js";
|
|
12
|
+
import { ErrorMessage as Se } from "../components/status.js";
|
|
13
|
+
import { ViewDialog as Ce } from "../components/ViewDialog.js";
|
|
14
|
+
import { basePath as s } from "../lib/base.js";
|
|
13
15
|
import { useBoardMove as we } from "../lib/boardMove.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { groupIssues as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
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 s } from "../components/IssueRow.js";
|
|
23
|
-
import { useShortcuts as Ge } from "../lib/shortcuts.js";
|
|
24
|
-
import { usePaletteSelection as Ke } from "../lib/palette.js";
|
|
16
|
+
import { customFieldsQuery as Te, fieldRef as Ee, fieldsForTeams as De, groupableKinds as Oe, sortableKinds as ke } from "../lib/customFields.js";
|
|
17
|
+
import { insightsKey as Ae, listTabs as je, panelKey as Me, shownFields as Ne, storeDisplay as Pe, storeShownFields as Fe, storedDisplay as Ie, withParam as c } from "../lib/issueDisplay.js";
|
|
18
|
+
import { groupIssues as Le, groupings as Re, isGrouping as ze, isOrder as Be, issueFilterOf as Ve, orders as He, sortIssues as Ue, views as We } from "../lib/issueList.js";
|
|
19
|
+
import { useIssueMenu as Ge } from "../lib/issueMenu.js";
|
|
20
|
+
import { issueTypesQuery as Ke } from "../lib/issueTypes.js";
|
|
25
21
|
import { useLive as qe } from "../lib/live.js";
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
22
|
+
import { useNewIssue as Je } from "../lib/newIssue.js";
|
|
23
|
+
import { pagedGroupings as Ye, usePagedGroups as Xe } from "../lib/pagedGroups.js";
|
|
24
|
+
import { usePageTitle as Ze } from "../lib/pageTitle.js";
|
|
25
|
+
import { usePaletteSelection as Qe } from "../lib/palette.js";
|
|
26
|
+
import { usePeople as $e } from "../lib/people.js";
|
|
27
|
+
import { projectRef as et } from "../lib/projects.js";
|
|
28
|
+
import { isViewAt as tt, viewRef as nt } from "../lib/refs.js";
|
|
29
|
+
import { useCan as rt } from "../lib/roles.js";
|
|
30
|
+
import { useNavigate as it } from "../lib/router.js";
|
|
31
|
+
import { useShortcuts as at } from "../lib/shortcuts.js";
|
|
32
|
+
import { issuesHref as ot } from "../lib/teamPaths.js";
|
|
33
|
+
import { filtersOf as st, sameFilters as ct, useSavedViews as lt, viewSearch as ut } from "../lib/views.js";
|
|
34
34
|
import { ActionMenu as dt, Button as l, ConfirmModal as ft, Field as pt, IconButton as u, SearchInput as mt, Select as ht, Tabs as gt, useOpenMenu as _t } from "@parallelworks/ui";
|
|
35
35
|
import { useParams as vt, useSearch as yt } from "@tanstack/react-router";
|
|
36
36
|
import { memo as bt, useCallback as xt, useEffect as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
@@ -52,45 +52,45 @@ function jt(e) {
|
|
|
52
52
|
creator: n
|
|
53
53
|
} : r;
|
|
54
54
|
}
|
|
55
|
-
function Mt({ person:
|
|
55
|
+
function Mt({ person: o } = {}) {
|
|
56
56
|
let s = h("issues"), bt = h("planning"), Mt = h("common"), { workspace: y, key: It } = vt({ strict: !1 }), b = yt({ strict: !1 }), x = It ? {
|
|
57
57
|
...b,
|
|
58
58
|
team: It
|
|
59
|
-
} :
|
|
59
|
+
} : o ? b.creator ? {
|
|
60
60
|
...jt(b),
|
|
61
|
-
creator:
|
|
61
|
+
creator: o
|
|
62
62
|
} : {
|
|
63
63
|
...b,
|
|
64
|
-
assignee:
|
|
65
|
-
} : b, Lt =
|
|
66
|
-
let { team:
|
|
67
|
-
return Lt(
|
|
64
|
+
assignee: o
|
|
65
|
+
} : b, Lt = it(), Rt = (e) => o ? ot(y, { ...jt(e) }).replace(`/${y}/issues`, `/${y}/people/${encodeURIComponent(o)}`) : ot(y, { ...e }), S = (e, t) => {
|
|
66
|
+
let { team: n, ...r } = e;
|
|
67
|
+
return Lt(o ? {
|
|
68
68
|
to: "/$workspace/people/$username",
|
|
69
69
|
params: {
|
|
70
70
|
workspace: y,
|
|
71
|
-
username:
|
|
71
|
+
username: o
|
|
72
72
|
},
|
|
73
|
-
search: jt(
|
|
74
|
-
...
|
|
75
|
-
} :
|
|
73
|
+
search: jt(r),
|
|
74
|
+
...t && { replace: t }
|
|
75
|
+
} : n ? {
|
|
76
76
|
to: "/$workspace/teams/$key/issues",
|
|
77
77
|
params: {
|
|
78
78
|
workspace: y,
|
|
79
|
-
key:
|
|
79
|
+
key: n
|
|
80
80
|
},
|
|
81
|
-
search:
|
|
82
|
-
...
|
|
81
|
+
search: r,
|
|
82
|
+
...t && { replace: t }
|
|
83
83
|
} : {
|
|
84
84
|
to: "/$workspace/issues",
|
|
85
85
|
params: { workspace: y },
|
|
86
|
-
search:
|
|
87
|
-
...
|
|
86
|
+
search: r,
|
|
87
|
+
...t && { replace: t }
|
|
88
88
|
});
|
|
89
89
|
}, zt = p((e) => S(e, !0));
|
|
90
90
|
zt.current = (e) => S(e, !0);
|
|
91
91
|
let Bt = p((e) => S(c(x, "q", e), !0));
|
|
92
92
|
Bt.current = (e) => S(c(x, "q", e), !0);
|
|
93
|
-
let { data: Vt } = Tt(
|
|
93
|
+
let { data: Vt } = Tt(ee), { data: C } = Tt(re(y)), Ht = Je(), w = x.view ?? "active", [T, Ut] = m(x.q ?? ""), Wt = p(null);
|
|
94
94
|
d(() => {
|
|
95
95
|
let e = setTimeout(() => {
|
|
96
96
|
(x.q ?? "") !== T && Bt.current(T);
|
|
@@ -98,36 +98,36 @@ function Mt({ person: e } = {}) {
|
|
|
98
98
|
return () => clearTimeout(e);
|
|
99
99
|
}, [T, x.q]);
|
|
100
100
|
let { data: Gt } = v({
|
|
101
|
-
...
|
|
101
|
+
...ne(y, x.team ?? ""),
|
|
102
102
|
enabled: !!x.status && !!x.team
|
|
103
|
-
}), Kt =
|
|
103
|
+
}), Kt = Ve(x, Gt), qt = !x.status || !x.team || !!Gt, Jt = xe(), { nameOf: Yt, avatarOf: Xt } = $e(y), E = x.saved ? {} : Ie(), { data: Zt } = v(Te(y)), D = C.find((e) => e.key === x.team), O = f(() => De(Zt, D ? [D.id] : C.map((e) => e.id)), [
|
|
104
104
|
Zt,
|
|
105
105
|
D,
|
|
106
106
|
C
|
|
107
|
-
]), k = h("customFields"), Qt = h("issueTypes"), { data: $t } = v(
|
|
107
|
+
]), k = h("customFields"), Qt = h("issueTypes"), { data: $t } = v(Ke(y)), en = f(() => ($t ?? []).filter((e) => !e.archivedAt && (!D || e.teamIds.length === 0 || e.teamIds.includes(D.id))), [$t, D]), A = Be(x.order, O) ? x.order : Be(E.order, O) ? E.order : "updated", j = ze(x.group, O) ? x.group : ze(E.group, O) ? E.group : "status", tn = O.find((e) => e.id === Ee(j)), [nn, rn] = m(() => Ne(y)), an = f(() => O.filter((e) => nn.includes(e.id)), [O, nn]), M = x.layout === "board" || !x.layout && E.layout === "board", [on, sn] = m(() => {
|
|
108
108
|
try {
|
|
109
|
-
return localStorage.getItem(
|
|
109
|
+
return localStorage.getItem(Me) !== "hidden";
|
|
110
110
|
} catch {
|
|
111
111
|
return !0;
|
|
112
112
|
}
|
|
113
113
|
}), cn = () => sn((e) => {
|
|
114
114
|
try {
|
|
115
|
-
localStorage.setItem(
|
|
115
|
+
localStorage.setItem(Me, e ? "hidden" : "shown");
|
|
116
116
|
} catch {}
|
|
117
117
|
return !e;
|
|
118
118
|
}), [ln, un] = m(() => {
|
|
119
119
|
try {
|
|
120
|
-
return localStorage.getItem(
|
|
120
|
+
return localStorage.getItem(Ae) === "shown";
|
|
121
121
|
} catch {
|
|
122
122
|
return !1;
|
|
123
123
|
}
|
|
124
124
|
}), dn = () => un((e) => {
|
|
125
125
|
try {
|
|
126
|
-
localStorage.setItem(
|
|
126
|
+
localStorage.setItem(Ae, e ? "hidden" : "shown");
|
|
127
127
|
} catch {}
|
|
128
128
|
return !e;
|
|
129
|
-
}), [fn, pn] = m("assignees"), [N, mn] = m(null), P = !M && !N && !x.status &&
|
|
130
|
-
...
|
|
129
|
+
}), [fn, pn] = m("assignees"), [N, mn] = m(null), P = !M && !N && !x.status && Ye.includes(j) && n.includes(A) ? j : void 0, F = wt({
|
|
130
|
+
...r(y, Kt),
|
|
131
131
|
placeholderData: Ct,
|
|
132
132
|
enabled: qt && !P
|
|
133
133
|
}), { hasNextPage: hn, isFetchingNextPage: gn, fetchNextPage: _n } = F;
|
|
@@ -141,17 +141,17 @@ function Mt({ person: e } = {}) {
|
|
|
141
141
|
_n
|
|
142
142
|
]);
|
|
143
143
|
let I = v({
|
|
144
|
-
...
|
|
144
|
+
...t(y, st(x), P ?? "status"),
|
|
145
145
|
placeholderData: Ct,
|
|
146
146
|
enabled: qt && !!P
|
|
147
|
-
}), L =
|
|
147
|
+
}), L = Xe(y, Kt, P ?? "status", A, I.data?.byKey, qt && !!P), R = P ? I.data : F.data, vn = P ? I.error ?? L.error : F.error, yn = P ? I.isFetching : F.isFetching, z = P ? L.fetching : !!hn, B = P ? L.complete : !hn, V = f(() => P ? [...L.issues.values()].flat() : F.data?.pages.flatMap((e) => e.issues) ?? [], [
|
|
148
148
|
P,
|
|
149
149
|
L.issues,
|
|
150
150
|
F.data
|
|
151
151
|
]), { data: bn } = v({
|
|
152
|
-
...
|
|
152
|
+
...te(y),
|
|
153
153
|
enabled: P === "project"
|
|
154
|
-
}), xn = N ? V.filter((e) =>
|
|
154
|
+
}), xn = N ? V.filter((e) => se(e, N.tab).includes(N.key)) : V, Sn = f(() => Le(Ue(xn, A, O), j, {
|
|
155
155
|
status: (e) => s(`groups.${e}`),
|
|
156
156
|
priority: (e) => Jt[e] ?? "",
|
|
157
157
|
person: Yt,
|
|
@@ -201,14 +201,14 @@ function Mt({ person: e } = {}) {
|
|
|
201
201
|
bn,
|
|
202
202
|
L.more
|
|
203
203
|
]), U = f(() => H.flatMap((e) => e.issues), [H]), Cn = f(() => new Map(U.map((e, t) => [e.id, t])), [U]), wn = !N && !x.status ? kt[j] : void 0, { data: Tn } = v({
|
|
204
|
-
...
|
|
204
|
+
...t(y, st(x), wn ?? "status"),
|
|
205
205
|
enabled: z && !!wn
|
|
206
206
|
}), En = xt((e) => P ? I.data?.byKey.get(e.key) ?? e.issues.length : z && Tn?.byKey.get(e.key) || e.issues.length, [
|
|
207
207
|
P,
|
|
208
208
|
I.data,
|
|
209
209
|
z,
|
|
210
210
|
Tn
|
|
211
|
-
]), Dn = f(() => new Map(C.map((e) => [e.id, e])), [C]), [On, kn] = m(0), W = U[Math.min(On, U.length - 1)], [G, K] = m(/* @__PURE__ */ new Set()), An = p(null), jn =
|
|
211
|
+
]), Dn = f(() => new Map(C.map((e) => [e.id, e])), [C]), [On, kn] = m(0), W = U[Math.min(On, U.length - 1)], [G, K] = m(/* @__PURE__ */ new Set()), An = p(null), jn = Ge(y), Mn = we(y, C), { people: Nn } = qe(), Pn = f(() => {
|
|
212
212
|
let e = /* @__PURE__ */ new Map();
|
|
213
213
|
for (let t of Nn) {
|
|
214
214
|
if (!t.identifier || t.username === Vt?.user.username) continue;
|
|
@@ -217,7 +217,7 @@ function Mt({ person: e } = {}) {
|
|
|
217
217
|
}
|
|
218
218
|
return new Map([...e].map(([e, t]) => [e, [...t]]));
|
|
219
219
|
}, [Nn, Vt?.user.username]), Fn = _t(), In = f(() => U.filter((e) => G.has(e.id)), [U, G]);
|
|
220
|
-
|
|
220
|
+
Qe(In);
|
|
221
221
|
let Ln = (e) => K((t) => {
|
|
222
222
|
let n = new Set(t);
|
|
223
223
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
@@ -261,7 +261,7 @@ function Mt({ person: e } = {}) {
|
|
|
261
261
|
U
|
|
262
262
|
]);
|
|
263
263
|
let { data: Un } = v({
|
|
264
|
-
...
|
|
264
|
+
...t(y, st(x), "status"),
|
|
265
265
|
enabled: Y
|
|
266
266
|
}), Wn = () => {
|
|
267
267
|
K(new Set(U.map((e) => e.id))), P && L.loadAll(), Hn(!B);
|
|
@@ -280,7 +280,7 @@ function Mt({ person: e } = {}) {
|
|
|
280
280
|
let e = qn("⌫");
|
|
281
281
|
e && "onClick" in e && Yn(() => e.onClick);
|
|
282
282
|
};
|
|
283
|
-
|
|
283
|
+
at({
|
|
284
284
|
...!M && {
|
|
285
285
|
j: () => J(1, !1),
|
|
286
286
|
k: () => J(-1, !1),
|
|
@@ -316,17 +316,17 @@ function Mt({ person: e } = {}) {
|
|
|
316
316
|
};
|
|
317
317
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
318
318
|
}, []);
|
|
319
|
-
let Zn = p(null), Z = C.find((e) => e.key === x.team), Qn =
|
|
320
|
-
...
|
|
319
|
+
let Zn = p(null), Z = C.find((e) => e.key === x.team), Qn = ce(y, x, (e) => S(le(x, e), !0), !!It && !x.assignee && !x.creator && !x.saved && !x.scope), $n = ot(y, { ...c(x, "q", void 0) }), { views: er, create: tr, update: nr } = lt(y), Q = er.find((e) => tt(e, x.saved)), { data: rr } = v(i(y)), { data: ir } = v(te(y)), { data: ar } = v({
|
|
320
|
+
...e(y, Z?.key ?? ""),
|
|
321
321
|
enabled: !!Z
|
|
322
322
|
});
|
|
323
323
|
d(() => {
|
|
324
324
|
let e = /^[0-9a-f]{8}-[0-9a-f]{4}-/i, t = { ...x }, n = rr?.find((e) => e.id === x.label);
|
|
325
325
|
x.label && e.test(x.label) && n && (t.label = n.name);
|
|
326
326
|
let r = ir?.find((e) => e.id === x.project);
|
|
327
|
-
x.project && e.test(x.project) && r && (t.project =
|
|
327
|
+
x.project && e.test(x.project) && r && (t.project = et(r));
|
|
328
328
|
let i = ar?.find((e) => String(e.number) === x.cycle);
|
|
329
|
-
i && (t.cycle = i.id), x.saved && e.test(x.saved) && Q && (t.saved =
|
|
329
|
+
i && (t.cycle = i.id), x.saved && e.test(x.saved) && Q && (t.saved = nt(Q)), JSON.stringify(t) !== JSON.stringify(x) && zt.current(t);
|
|
330
330
|
}, [
|
|
331
331
|
x,
|
|
332
332
|
rr,
|
|
@@ -334,13 +334,13 @@ function Mt({ person: e } = {}) {
|
|
|
334
334
|
ar,
|
|
335
335
|
Q
|
|
336
336
|
]);
|
|
337
|
-
let or =
|
|
337
|
+
let or = st({
|
|
338
338
|
...x,
|
|
339
339
|
...A !== "updated" && { order: A },
|
|
340
340
|
...j !== "status" && { group: j },
|
|
341
341
|
...M && { layout: "board" }
|
|
342
|
-
}), sr = Q ? !
|
|
343
|
-
|
|
342
|
+
}), sr = Q ? !ct(Q.filters, or) : Object.keys(or).length > 0, cr = rt(y, "create_issues", x.team ? { team: x.team } : void 0), lr = rt(y, "save_views"), [ur, dr] = m(!1), [fr, pr] = m(null), mr = h("savedViews"), $ = Vt?.user.username, hr = !Q && !Z && (!x.assigneeKind && x.assignee === $ && !x.creator || x.creator === $ && !x.assignee), gr = o ?? (hr ? $ : void 0), _r = Q?.name ?? Z?.name ?? (o && o !== $ ? s("personIssues", { name: Yt("user", o) }) : !x.assigneeKind && x.assignee === $ || x.creator === $ ? s("mine") : s("all")), vr = h("workspace");
|
|
343
|
+
Ze(...Z && !Q ? [vr("issues"), Z.name] : [_r]);
|
|
344
344
|
let yr = sr && /* @__PURE__ */ _(St, { children: [Q?.canEdit && /* @__PURE__ */ g(l, {
|
|
345
345
|
type: "button",
|
|
346
346
|
size: "sm",
|
|
@@ -366,7 +366,7 @@ function Mt({ person: e } = {}) {
|
|
|
366
366
|
className: "text-sm font-semibold whitespace-nowrap",
|
|
367
367
|
children: _r
|
|
368
368
|
}),
|
|
369
|
-
/* @__PURE__ */ g(
|
|
369
|
+
/* @__PURE__ */ g(ie, {
|
|
370
370
|
workspace: y,
|
|
371
371
|
kind: "view",
|
|
372
372
|
target: $n,
|
|
@@ -393,7 +393,7 @@ function Mt({ person: e } = {}) {
|
|
|
393
393
|
variant: "segmented",
|
|
394
394
|
size: "sm",
|
|
395
395
|
label: s("view"),
|
|
396
|
-
items: Object.keys(
|
|
396
|
+
items: Object.keys(We).map((e) => ({
|
|
397
397
|
value: e,
|
|
398
398
|
label: s(`views.${e}`),
|
|
399
399
|
href: Rt(c(x, "view", e === "active" ? void 0 : e))
|
|
@@ -416,19 +416,19 @@ function Mt({ person: e } = {}) {
|
|
|
416
416
|
className: "min-w-0 flex-1 max-md:order-first max-md:basis-full md:w-56 md:flex-initial"
|
|
417
417
|
}),
|
|
418
418
|
/* @__PURE__ */ g(Dt, { filters: Qn }),
|
|
419
|
-
/* @__PURE__ */ _(
|
|
419
|
+
/* @__PURE__ */ _(a, {
|
|
420
420
|
layouts: [{
|
|
421
421
|
value: "list",
|
|
422
422
|
label: s("layouts.list"),
|
|
423
|
-
icon: /* @__PURE__ */ g(
|
|
423
|
+
icon: /* @__PURE__ */ g(ve, {})
|
|
424
424
|
}, {
|
|
425
425
|
value: "board",
|
|
426
426
|
label: s("layouts.board"),
|
|
427
|
-
icon: /* @__PURE__ */ g(
|
|
427
|
+
icon: /* @__PURE__ */ g(me, {})
|
|
428
428
|
}],
|
|
429
429
|
layout: M ? "board" : "list",
|
|
430
430
|
onLayoutChange: (e) => {
|
|
431
|
-
|
|
431
|
+
Pe({ layout: e }), S(c(x, "layout", e === "board" ? "board" : void 0));
|
|
432
432
|
},
|
|
433
433
|
changed: A !== "updated" || j !== "status" || M,
|
|
434
434
|
children: [
|
|
@@ -436,15 +436,15 @@ function Mt({ person: e } = {}) {
|
|
|
436
436
|
label: s("orderBy"),
|
|
437
437
|
children: /* @__PURE__ */ g(ht, {
|
|
438
438
|
value: A,
|
|
439
|
-
items: [...
|
|
439
|
+
items: [...He.map((e) => ({
|
|
440
440
|
value: e,
|
|
441
441
|
label: s(`order.${e}`)
|
|
442
|
-
})), ...O.filter((e) =>
|
|
442
|
+
})), ...O.filter((e) => ke.includes(e.kind)).map((e) => ({
|
|
443
443
|
value: `field:${e.id}`,
|
|
444
444
|
label: e.name
|
|
445
445
|
}))],
|
|
446
446
|
onValueChange: (e) => {
|
|
447
|
-
|
|
447
|
+
Pe({ order: e }), S(c(x, "order", e === "updated" ? void 0 : e));
|
|
448
448
|
},
|
|
449
449
|
"aria-label": s("orderBy"),
|
|
450
450
|
size: "sm"
|
|
@@ -454,15 +454,15 @@ function Mt({ person: e } = {}) {
|
|
|
454
454
|
label: s("groupBy"),
|
|
455
455
|
children: /* @__PURE__ */ g(ht, {
|
|
456
456
|
value: j,
|
|
457
|
-
items: [...
|
|
457
|
+
items: [...Re.map((e) => ({
|
|
458
458
|
value: e,
|
|
459
459
|
label: s(`grouping.${e}`)
|
|
460
|
-
})), ...O.filter((e) =>
|
|
460
|
+
})), ...O.filter((e) => Oe.includes(e.kind)).map((e) => ({
|
|
461
461
|
value: `field:${e.id}`,
|
|
462
462
|
label: e.name
|
|
463
463
|
}))],
|
|
464
464
|
onValueChange: (e) => {
|
|
465
|
-
|
|
465
|
+
Pe({ group: e }), S(c(x, "group", e === "status" ? void 0 : e));
|
|
466
466
|
},
|
|
467
467
|
"aria-label": s("groupBy"),
|
|
468
468
|
size: "sm"
|
|
@@ -478,7 +478,7 @@ function Mt({ person: e } = {}) {
|
|
|
478
478
|
label: e.name
|
|
479
479
|
})),
|
|
480
480
|
onValueChange: (e) => {
|
|
481
|
-
|
|
481
|
+
Fe(y, e), rn(e);
|
|
482
482
|
},
|
|
483
483
|
placeholder: k("noneOnRows"),
|
|
484
484
|
"aria-label": k("onRows"),
|
|
@@ -490,7 +490,7 @@ function Mt({ person: e } = {}) {
|
|
|
490
490
|
/* @__PURE__ */ g(u, {
|
|
491
491
|
variant: "secondary",
|
|
492
492
|
size: "sm",
|
|
493
|
-
icon: /* @__PURE__ */ g(
|
|
493
|
+
icon: /* @__PURE__ */ g(ye, { className: "size-3.5" }),
|
|
494
494
|
label: s(on ? "hidePanel" : "showPanel"),
|
|
495
495
|
"aria-pressed": on,
|
|
496
496
|
onClick: cn,
|
|
@@ -499,7 +499,7 @@ function Mt({ person: e } = {}) {
|
|
|
499
499
|
/* @__PURE__ */ g(u, {
|
|
500
500
|
variant: "secondary",
|
|
501
501
|
size: "sm",
|
|
502
|
-
icon: /* @__PURE__ */ g(
|
|
502
|
+
icon: /* @__PURE__ */ g(he, { className: "size-3.5" }),
|
|
503
503
|
label: s(ln ? "hideInsights" : "showInsights"),
|
|
504
504
|
"aria-pressed": ln,
|
|
505
505
|
onClick: dn
|
|
@@ -507,16 +507,16 @@ function Mt({ person: e } = {}) {
|
|
|
507
507
|
/* @__PURE__ */ g(u, {
|
|
508
508
|
variant: "secondary",
|
|
509
509
|
size: "sm",
|
|
510
|
-
icon: /* @__PURE__ */ g(
|
|
510
|
+
icon: /* @__PURE__ */ g(_e, { className: "size-3.5" }),
|
|
511
511
|
label: s("exportCsv"),
|
|
512
512
|
onClick: () => Ft(y, Kt)
|
|
513
513
|
}),
|
|
514
514
|
x.team && cr && /* @__PURE__ */ g(u, {
|
|
515
515
|
variant: "secondary",
|
|
516
516
|
size: "sm",
|
|
517
|
-
icon: /* @__PURE__ */ g(
|
|
517
|
+
icon: /* @__PURE__ */ g(be, { className: "size-3.5" }),
|
|
518
518
|
label: s("importCsv"),
|
|
519
|
-
onClick: () =>
|
|
519
|
+
onClick: () => fe((e, t) => pr({
|
|
520
520
|
name: e,
|
|
521
521
|
text: t
|
|
522
522
|
}))
|
|
@@ -530,17 +530,17 @@ function Mt({ person: e } = {}) {
|
|
|
530
530
|
trailing: yr,
|
|
531
531
|
className: "shrink-0 border-b border-border px-4 py-2 md:px-5"
|
|
532
532
|
}),
|
|
533
|
-
ln && /* @__PURE__ */ g(
|
|
533
|
+
ln && /* @__PURE__ */ g(pe, {
|
|
534
534
|
workspace: y,
|
|
535
535
|
issues: xn
|
|
536
536
|
}),
|
|
537
|
-
fr && x.team && /* @__PURE__ */ g(
|
|
537
|
+
fr && x.team && /* @__PURE__ */ g(de, {
|
|
538
538
|
workspace: y,
|
|
539
539
|
team: x.team,
|
|
540
540
|
file: fr,
|
|
541
541
|
onClose: () => pr(null)
|
|
542
542
|
}),
|
|
543
|
-
ur && /* @__PURE__ */ g(
|
|
543
|
+
ur && /* @__PURE__ */ g(Ce, {
|
|
544
544
|
title: mr("saveTitle"),
|
|
545
545
|
submitLabel: mr("save"),
|
|
546
546
|
share: { allowed: lr },
|
|
@@ -551,7 +551,7 @@ function Mt({ person: e } = {}) {
|
|
|
551
551
|
shared: t,
|
|
552
552
|
filters: or
|
|
553
553
|
});
|
|
554
|
-
S(
|
|
554
|
+
S(ut(n), !0);
|
|
555
555
|
}
|
|
556
556
|
}),
|
|
557
557
|
/* @__PURE__ */ g(ft, {
|
|
@@ -599,7 +599,7 @@ function Mt({ person: e } = {}) {
|
|
|
599
599
|
/* @__PURE__ */ g(u, {
|
|
600
600
|
size: "sm",
|
|
601
601
|
variant: "ghost",
|
|
602
|
-
icon: /* @__PURE__ */ g(
|
|
602
|
+
icon: /* @__PURE__ */ g(ge, {}),
|
|
603
603
|
label: s("clear"),
|
|
604
604
|
onClick: Gn
|
|
605
605
|
})
|
|
@@ -619,13 +619,13 @@ function Mt({ person: e } = {}) {
|
|
|
619
619
|
children: bt("issueBreakdown.showAll")
|
|
620
620
|
})]
|
|
621
621
|
}),
|
|
622
|
-
M && R && /* @__PURE__ */ g(
|
|
622
|
+
M && R && /* @__PURE__ */ g(ae, {
|
|
623
623
|
workspace: y,
|
|
624
|
-
columns: j === "status" &&
|
|
624
|
+
columns: j === "status" && We[w].categories.length > 0 ? H.filter((e) => e.issues.length > 0 || e.key === "completed" || We[w].categories.includes(e.key)) : H,
|
|
625
625
|
onMove: j === "none" ? void 0 : (e, t, n) => Mn(e, j, t, n, H.find((e) => e.key === n)?.issues[0], tn),
|
|
626
626
|
onContextMenu: Bn
|
|
627
627
|
}),
|
|
628
|
-
!M && /* @__PURE__ */ g(
|
|
628
|
+
!M && /* @__PURE__ */ g(ue, {
|
|
629
629
|
groups: H,
|
|
630
630
|
count: En,
|
|
631
631
|
scrollRef: Zn,
|
|
@@ -653,7 +653,7 @@ function Mt({ person: e } = {}) {
|
|
|
653
653
|
total: Tn.total
|
|
654
654
|
}) : s("loadingMore", { loaded: V.length })
|
|
655
655
|
}),
|
|
656
|
-
!R && (vn ? /* @__PURE__ */ g(
|
|
656
|
+
!R && (vn ? /* @__PURE__ */ g(Se, { error: vn }) : /* @__PURE__ */ g(Ot, { rows: 8 })),
|
|
657
657
|
R && !z && V.length === 0 && /* @__PURE__ */ g(Pt, {
|
|
658
658
|
workspace: y,
|
|
659
659
|
filtered: !!x.q || w !== "active" || Qn.count > +!!It,
|
|
@@ -664,10 +664,10 @@ function Mt({ person: e } = {}) {
|
|
|
664
664
|
on && R && /* @__PURE__ */ g("aside", {
|
|
665
665
|
"aria-label": bt("issueBreakdown.label"),
|
|
666
666
|
className: "hidden w-80 shrink-0 overflow-y-auto border-l border-border px-4 py-4 xl:block",
|
|
667
|
-
children: /* @__PURE__ */ g(
|
|
667
|
+
children: /* @__PURE__ */ g(oe, {
|
|
668
668
|
workspace: y,
|
|
669
669
|
issues: V,
|
|
670
|
-
tabs:
|
|
670
|
+
tabs: je,
|
|
671
671
|
tab: fn,
|
|
672
672
|
onTabChange: pn,
|
|
673
673
|
focus: N,
|
|
@@ -679,26 +679,26 @@ function Mt({ person: e } = {}) {
|
|
|
679
679
|
]
|
|
680
680
|
});
|
|
681
681
|
}
|
|
682
|
-
var Nt = bt(function({ issue: e, index: t, place: n, team: r, workspace: i, selected:
|
|
683
|
-
return /* @__PURE__ */ g(
|
|
682
|
+
var Nt = bt(function({ issue: e, index: t, place: n, team: r, workspace: i, selected: ee, picked: te, viewers: ne, fields: re, actions: a }) {
|
|
683
|
+
return /* @__PURE__ */ g(o, {
|
|
684
684
|
ref: n.ref,
|
|
685
685
|
style: n.style,
|
|
686
686
|
index: n.index,
|
|
687
687
|
issue: e,
|
|
688
688
|
team: r,
|
|
689
689
|
workspace: i,
|
|
690
|
-
selected:
|
|
691
|
-
picked:
|
|
692
|
-
viewers:
|
|
693
|
-
fields:
|
|
694
|
-
onPick: (e) =>
|
|
695
|
-
onHover: () =>
|
|
696
|
-
onClick: (e) =>
|
|
697
|
-
onContextMenu: (t) =>
|
|
690
|
+
selected: ee,
|
|
691
|
+
picked: te,
|
|
692
|
+
viewers: ne,
|
|
693
|
+
fields: re,
|
|
694
|
+
onPick: (e) => a.current.pick(t, e),
|
|
695
|
+
onHover: () => a.current.select(t),
|
|
696
|
+
onClick: (e) => a.current.click(e, t),
|
|
697
|
+
onContextMenu: (t) => a.current.menu(t, e)
|
|
698
698
|
});
|
|
699
699
|
});
|
|
700
700
|
function Pt({ workspace: e, filtered: t, onCreate: n }) {
|
|
701
|
-
let r = h("issues.empty"), { data: i = [] } = v(
|
|
701
|
+
let r = h("issues.empty"), { data: i = [] } = v(re(e)), ee = rt(e, "manage_teams");
|
|
702
702
|
return i.some((e) => !e.archivedAt) ? /* @__PURE__ */ _("div", {
|
|
703
703
|
className: "mx-auto max-w-sm px-4 py-24 text-center",
|
|
704
704
|
children: [
|
|
@@ -727,9 +727,9 @@ function Pt({ workspace: e, filtered: t, onCreate: n }) {
|
|
|
727
727
|
}),
|
|
728
728
|
/* @__PURE__ */ g("p", {
|
|
729
729
|
className: "mt-1 text-sm text-muted-foreground",
|
|
730
|
-
children: r(
|
|
730
|
+
children: r(ee ? "noTeamsDescription" : "noTeamsAskAdmin")
|
|
731
731
|
}),
|
|
732
|
-
|
|
732
|
+
ee && /* @__PURE__ */ g(l, {
|
|
733
733
|
type: "button",
|
|
734
734
|
variant: "primary",
|
|
735
735
|
onClick: n,
|
|
@@ -739,13 +739,13 @@ function Pt({ workspace: e, filtered: t, onCreate: n }) {
|
|
|
739
739
|
]
|
|
740
740
|
});
|
|
741
741
|
}
|
|
742
|
-
function Ft(
|
|
743
|
-
let
|
|
742
|
+
function Ft(e, t) {
|
|
743
|
+
let n = new URLSearchParams({
|
|
744
744
|
triage: "exclude",
|
|
745
745
|
archived: "exclude"
|
|
746
746
|
});
|
|
747
|
-
for (let [e,
|
|
748
|
-
let
|
|
749
|
-
|
|
747
|
+
for (let [e, r] of Object.entries(t)) n.set(e, Array.isArray(r) ? r.join(",") : String(r));
|
|
748
|
+
let r = document.createElement("a");
|
|
749
|
+
r.href = `${s}/api/v1/workspaces/${encodeURIComponent(e)}/exports/issues.csv?${n}`, r.download = "", r.click();
|
|
750
750
|
}
|
|
751
751
|
export { Mt as IssueList };
|