@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/lib/issueList.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { PriorityIcon as e, StatusIcon as t } from "../components/icons.js";
|
|
2
|
+
import { fieldRef as n, groupableKinds as r, parseFieldFilters as i, sortableKinds as a } from "./customFields.js";
|
|
3
3
|
import { TypeIcon as o } from "../components/IssueTypes.js";
|
|
4
4
|
import { statusRef as s } from "./refs.js";
|
|
5
5
|
import { Avatar as c } from "@parallelworks/ui";
|
|
@@ -24,11 +24,11 @@ var u = {
|
|
|
24
24
|
"label",
|
|
25
25
|
"type",
|
|
26
26
|
"none"
|
|
27
|
-
], p = (
|
|
28
|
-
function g(
|
|
29
|
-
let
|
|
30
|
-
r && r in u && (
|
|
31
|
-
for (let
|
|
27
|
+
], p = (e, t) => d.includes(e) || t.some((t) => n(e) === t.id && a.includes(t.kind)), m = (e, t) => f.includes(e) || t.some((t) => n(e) === t.id && r.includes(t.kind)), h = (e) => typeof e == "number" ? String(e) : typeof e == "string" && e !== "" ? e : void 0;
|
|
28
|
+
function g(e) {
|
|
29
|
+
let t = {}, r = h(e.view);
|
|
30
|
+
r && r in u && (t.view = r);
|
|
31
|
+
for (let n of [
|
|
32
32
|
"team",
|
|
33
33
|
"assignee",
|
|
34
34
|
"creator",
|
|
@@ -43,14 +43,14 @@ function g(t) {
|
|
|
43
43
|
"q",
|
|
44
44
|
"saved"
|
|
45
45
|
]) {
|
|
46
|
-
let r = h(
|
|
47
|
-
r && (n
|
|
46
|
+
let r = h(e[n]);
|
|
47
|
+
r && (t[n] = r);
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
let i = h(
|
|
51
|
-
i && i !== "updated" && (d.includes(i) ||
|
|
52
|
-
let a = h(
|
|
53
|
-
return a && a !== "status" && (f.includes(a) ||
|
|
49
|
+
t.assignee && e.assigneeKind === "agent" && (t.assigneeKind = "agent"), (e.overdue === "true" || e.overdue === !0) && (t.overdue = "true");
|
|
50
|
+
let i = h(e.order);
|
|
51
|
+
i && i !== "updated" && (d.includes(i) || n(i)) && (t.order = i), e.layout === "board" && (t.layout = "board");
|
|
52
|
+
let a = h(e.group);
|
|
53
|
+
return a && a !== "status" && (f.includes(a) || n(a)) && (t.group = a), t;
|
|
54
54
|
}
|
|
55
55
|
var _ = [
|
|
56
56
|
"started",
|
|
@@ -60,17 +60,17 @@ var _ = [
|
|
|
60
60
|
"completed",
|
|
61
61
|
"canceled"
|
|
62
62
|
], v = (e) => e === 0 ? 5 : e;
|
|
63
|
-
function y(
|
|
64
|
-
let i = r.find((
|
|
65
|
-
if (i) return [...
|
|
63
|
+
function y(e, t, r = []) {
|
|
64
|
+
let i = r.find((e) => e.id === n(t));
|
|
65
|
+
if (i) return [...e].sort(b(i));
|
|
66
66
|
let a = {
|
|
67
67
|
updated: () => 0,
|
|
68
68
|
priority: (e, t) => v(e.priority) - v(t.priority),
|
|
69
69
|
created: (e, t) => t.createdAt.localeCompare(e.createdAt),
|
|
70
70
|
due: (e, t) => (e.dueDate ?? "9999").localeCompare(t.dueDate ?? "9999"),
|
|
71
71
|
requests: (e, t) => (t.requests ?? 0) - (e.requests ?? 0)
|
|
72
|
-
}[
|
|
73
|
-
return [...
|
|
72
|
+
}[t];
|
|
73
|
+
return [...e].sort(a ?? (() => 0));
|
|
74
74
|
}
|
|
75
75
|
function b(e) {
|
|
76
76
|
let t = (t) => {
|
|
@@ -82,15 +82,15 @@ function b(e) {
|
|
|
82
82
|
return r === void 0 || i === void 0 ? Number(r === void 0) - Number(i === void 0) : typeof r == "number" && typeof i == "number" ? r - i : String(r).localeCompare(String(i));
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
function x(
|
|
86
|
-
let f = u.find((
|
|
87
|
-
if (f) return S(
|
|
88
|
-
if (
|
|
85
|
+
function x(r, i, a, s = !1, u = [], d = []) {
|
|
86
|
+
let f = u.find((e) => e.id === n(i));
|
|
87
|
+
if (f) return S(r, f, a, s);
|
|
88
|
+
if (i === "type") {
|
|
89
89
|
let e = {
|
|
90
90
|
key: "none",
|
|
91
|
-
label:
|
|
91
|
+
label: a.noType ?? a.none.all,
|
|
92
92
|
issues: []
|
|
93
|
-
},
|
|
93
|
+
}, t = d.map((e) => ({
|
|
94
94
|
key: e.id,
|
|
95
95
|
label: e.name,
|
|
96
96
|
icon: /* @__PURE__ */ l(o, {
|
|
@@ -99,46 +99,46 @@ function x(t, n, r, s = !1, u = [], d = []) {
|
|
|
99
99
|
}),
|
|
100
100
|
issues: []
|
|
101
101
|
}));
|
|
102
|
-
for (let
|
|
103
|
-
if (!
|
|
104
|
-
e.issues.push(
|
|
102
|
+
for (let n of r) {
|
|
103
|
+
if (!n.type) {
|
|
104
|
+
e.issues.push(n);
|
|
105
105
|
continue;
|
|
106
106
|
}
|
|
107
|
-
let
|
|
108
|
-
|
|
109
|
-
key:
|
|
110
|
-
label:
|
|
107
|
+
let r = t.find((e) => e.key === n.type?.id);
|
|
108
|
+
r || (r = {
|
|
109
|
+
key: n.type.id,
|
|
110
|
+
label: n.type.name,
|
|
111
111
|
icon: /* @__PURE__ */ l(o, {
|
|
112
|
-
type:
|
|
112
|
+
type: n.type,
|
|
113
113
|
className: "size-3.5"
|
|
114
114
|
}),
|
|
115
115
|
issues: []
|
|
116
|
-
},
|
|
116
|
+
}, t.push(r)), r.issues.push(n);
|
|
117
117
|
}
|
|
118
|
-
return
|
|
118
|
+
return t.push(e), t.filter((e) => s || e.issues.length > 0);
|
|
119
119
|
}
|
|
120
|
-
if (
|
|
120
|
+
if (i === "none") return r.length > 0 ? [{
|
|
121
121
|
key: "all",
|
|
122
|
-
label:
|
|
123
|
-
issues:
|
|
122
|
+
label: a.none.all,
|
|
123
|
+
issues: r
|
|
124
124
|
}] : [];
|
|
125
|
-
if (
|
|
125
|
+
if (i === "status") return _.map((e) => ({
|
|
126
126
|
key: e,
|
|
127
|
-
label:
|
|
128
|
-
icon: /* @__PURE__ */ l(
|
|
129
|
-
issues:
|
|
127
|
+
label: a.status(e),
|
|
128
|
+
icon: /* @__PURE__ */ l(t, { category: e }),
|
|
129
|
+
issues: r.filter((t) => t.status.category === e)
|
|
130
130
|
})).filter((e) => s || e.issues.length > 0);
|
|
131
|
-
if (
|
|
131
|
+
if (i === "priority") return [
|
|
132
132
|
1,
|
|
133
133
|
2,
|
|
134
134
|
3,
|
|
135
135
|
4,
|
|
136
136
|
0
|
|
137
|
-
].map((
|
|
138
|
-
key: String(
|
|
139
|
-
label:
|
|
140
|
-
icon: /* @__PURE__ */ l(
|
|
141
|
-
issues:
|
|
137
|
+
].map((t) => ({
|
|
138
|
+
key: String(t),
|
|
139
|
+
label: a.priority(t),
|
|
140
|
+
icon: /* @__PURE__ */ l(e, { priority: t }),
|
|
141
|
+
issues: r.filter((e) => e.priority === t)
|
|
142
142
|
})).filter((e) => s || e.issues.length > 0);
|
|
143
143
|
let p = /* @__PURE__ */ new Map(), m = {
|
|
144
144
|
key: "",
|
|
@@ -153,18 +153,18 @@ function x(t, n, r, s = !1, u = [], d = []) {
|
|
|
153
153
|
};
|
|
154
154
|
i.issues.push(e), p.set(t, i);
|
|
155
155
|
};
|
|
156
|
-
for (let e of
|
|
156
|
+
for (let e of r) if (i === "assignee") {
|
|
157
157
|
for (let t of s ? e.assignees : e.assignees.slice(0, 1)) {
|
|
158
|
-
let n =
|
|
158
|
+
let n = a.person(t.kind, t.handle);
|
|
159
159
|
h(e, `${t.kind}:${t.handle}`, n, /* @__PURE__ */ l(c, {
|
|
160
160
|
name: n,
|
|
161
|
-
src:
|
|
161
|
+
src: a.avatar(t.kind, t.handle),
|
|
162
162
|
size: "xs",
|
|
163
163
|
decorative: !0
|
|
164
164
|
}));
|
|
165
165
|
}
|
|
166
166
|
e.assignees.length === 0 && m.issues.push(e);
|
|
167
|
-
} else if (
|
|
167
|
+
} else if (i === "project") e.project ? h(e, e.project.id, e.project.name) : m.issues.push(e);
|
|
168
168
|
else {
|
|
169
169
|
for (let t of s ? e.labels : e.labels.slice(0, 1)) h(e, t.id, t.name, /* @__PURE__ */ l("span", {
|
|
170
170
|
className: "size-2 rounded-full",
|
|
@@ -176,7 +176,7 @@ function x(t, n, r, s = !1, u = [], d = []) {
|
|
|
176
176
|
return (s || m.issues.length > 0) && g.push({
|
|
177
177
|
...m,
|
|
178
178
|
key: "none",
|
|
179
|
-
label:
|
|
179
|
+
label: a.none[i]
|
|
180
180
|
}), g;
|
|
181
181
|
}
|
|
182
182
|
function S(e, t, n, r) {
|
|
@@ -231,7 +231,7 @@ function S(e, t, n, r) {
|
|
|
231
231
|
return t.kind === "person" && u.sort((e, t) => e.label.localeCompare(t.label)), u.push(i), u.filter((e) => r || e.issues.length > 0);
|
|
232
232
|
}
|
|
233
233
|
function C(e, t) {
|
|
234
|
-
let
|
|
234
|
+
let n = e.view ?? "active", r = (e.status ?? "").split(",").flatMap((e) => {
|
|
235
235
|
let n = t?.filter((t) => s(t) === e).map((e) => e.id) ?? [];
|
|
236
236
|
return n.length > 0 ? n : [e];
|
|
237
237
|
});
|
|
@@ -240,18 +240,18 @@ function C(e, t) {
|
|
|
240
240
|
...e.assignee && { assignee: e.assignee },
|
|
241
241
|
...e.assignee && e.assigneeKind && { assigneeKind: e.assigneeKind },
|
|
242
242
|
...e.creator && { creator: e.creator },
|
|
243
|
-
...e.status && { status:
|
|
243
|
+
...e.status && { status: r },
|
|
244
244
|
...e.priority && { priority: e.priority.split(",").map(Number) },
|
|
245
245
|
...e.label && { label: e.label },
|
|
246
246
|
...e.project && { project: e.project },
|
|
247
247
|
...e.customer && { customer: e.customer },
|
|
248
248
|
...e.cycle && { cycle: e.cycle },
|
|
249
249
|
...e.type && { type: e.type.split(",") },
|
|
250
|
-
...e.fields && { field:
|
|
250
|
+
...e.fields && { field: i(e.fields).map((e) => `${e.field}:${e.value}`) },
|
|
251
251
|
...e.overdue && { overdue: !0 },
|
|
252
252
|
...e.q && { q: e.q },
|
|
253
|
-
...u[
|
|
254
|
-
...
|
|
253
|
+
...u[n].categories.length > 0 && { category: u[n].categories },
|
|
254
|
+
...n === "all" && { triage: "include" }
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
257
|
export { x as groupIssues, f as groupings, m as isGrouping, p as isOrder, C as issueFilterOf, g as issueSearch, d as orders, y as sortIssues, u as views };
|
package/lib/issueMenu.js
CHANGED
|
@@ -3,10 +3,10 @@ import { api as t, unwrap as n } from "../api/client.js";
|
|
|
3
3
|
import { branchName as r, issuePath as i } from "./branch.js";
|
|
4
4
|
import { useNavigate as a } from "./router.js";
|
|
5
5
|
import { cyclesQuery as o, issueQuery as s, labelsQuery as c, projectsQuery as l, statusesQuery as u, teamsQuery as d } from "../api/queries.js";
|
|
6
|
-
import {
|
|
7
|
-
import { useFavorites as
|
|
8
|
-
import { copyItem as
|
|
9
|
-
import {
|
|
6
|
+
import { invalidateIssueViews as f } from "../api/mutations.js";
|
|
7
|
+
import { useFavorites as p } from "./favorites.js";
|
|
8
|
+
import { copyItem as m } from "./menus.js";
|
|
9
|
+
import { CalendarIcon as ee, CycleIcon as h, EstimateIcon as g, FolderIcon as _, PriorityIcon as v, ProjectIcon as y, StatusIcon as b, TagIcon as x, UserIcon as te, usePriorityNames as S } from "../components/icons.js";
|
|
10
10
|
import { addDays as C, today as w } from "./time.js";
|
|
11
11
|
import { ProjectStatusIcon as T, scalePoints as E, useEstimateLabel as D } from "../components/Planning.js";
|
|
12
12
|
import { assigneeKey as O, parseAssigneeKey as k, useAssigneeOptions as A } from "./assignees.js";
|
|
@@ -20,7 +20,7 @@ function R(t, n) {
|
|
|
20
20
|
return e(i(t, n));
|
|
21
21
|
}
|
|
22
22
|
function z(e) {
|
|
23
|
-
let i = L(), z = a(), { data: B = [] } = I(d(e)), { data: V = [] } = I(c(e)), H = A(e), U =
|
|
23
|
+
let i = L(), z = a(), { data: B = [] } = I(d(e)), { data: V = [] } = I(c(e)), H = A(e), U = p(e), W = S(), G = N("issueMenu"), K = N("common"), q = N("favorites"), J = F({ queries: B.map((t) => u(e, t.key)) }), Y = N("planning"), X = D(), { data: Z = [] } = I(l(e)), Q = F({ queries: B.map((t) => ({
|
|
24
24
|
...o(e, t.key),
|
|
25
25
|
enabled: t.cyclesEnabled
|
|
26
26
|
})) });
|
|
@@ -41,7 +41,7 @@ function z(e) {
|
|
|
41
41
|
} },
|
|
42
42
|
body: o
|
|
43
43
|
}));
|
|
44
|
-
i.setQueryData(s(e, a.identifier).queryKey, c),
|
|
44
|
+
i.setQueryData(s(e, a.identifier).queryKey, c), f(i, e, a.identifier);
|
|
45
45
|
}));
|
|
46
46
|
}, d = async (r) => {
|
|
47
47
|
await Promise.all(a.filter((e) => e.identifier.split("-")[0] !== r).map(async (a) => {
|
|
@@ -52,7 +52,7 @@ function z(e) {
|
|
|
52
52
|
} },
|
|
53
53
|
body: { team: r }
|
|
54
54
|
}));
|
|
55
|
-
i.setQueryData(s(e, o.identifier).queryKey, o),
|
|
55
|
+
i.setQueryData(s(e, o.identifier).queryKey, o), f(i, e, a.identifier), window.location.pathname.toLowerCase().includes(a.identifier.toLowerCase()) && z({
|
|
56
56
|
to: "/$workspace/issues/$identifier",
|
|
57
57
|
params: {
|
|
58
58
|
workspace: e,
|
|
@@ -61,15 +61,15 @@ function z(e) {
|
|
|
61
61
|
replace: !0
|
|
62
62
|
});
|
|
63
63
|
}));
|
|
64
|
-
},
|
|
64
|
+
}, p = async (r) => {
|
|
65
65
|
await Promise.all(a.filter((e) => !!e.archivedAt !== r).map(async (a) => {
|
|
66
66
|
let o = { params: { path: {
|
|
67
67
|
workspace: e,
|
|
68
68
|
identifier: a.identifier
|
|
69
69
|
} } }, c = n(r ? await t.POST("/api/v1/workspaces/{workspace}/issues/{identifier}/archive", o) : await t.POST("/api/v1/workspaces/{workspace}/issues/{identifier}/restore", o));
|
|
70
|
-
i.setQueryData(s(e, a.identifier).queryKey, c),
|
|
70
|
+
i.setQueryData(s(e, a.identifier).queryKey, c), f(i, e, a.identifier);
|
|
71
71
|
}));
|
|
72
|
-
},
|
|
72
|
+
}, S = (e, t) => {
|
|
73
73
|
let n = c(t.teamId);
|
|
74
74
|
return (n.find((t) => t.name === e.name) ?? n.find((t) => t.category === e.category))?.id;
|
|
75
75
|
}, D = a.length === 1, A = l((e) => e.teamId === o.teamId) ? B.findIndex((e) => e.id === o.teamId) : -1, M = B[A], N = (M?.cyclesEnabled ? Q[A]?.data ?? [] : []).filter((e) => e.state !== "past"), F = M?.estimateScale ?? "none", I = l((e) => e.project?.id === o.project?.id) ? o.project?.id : void 0, L = Z.find((e) => e.id === I)?.milestones ?? [], ne = (e) => e.name ? Y("cycleNamed", {
|
|
@@ -95,7 +95,7 @@ function z(e) {
|
|
|
95
95
|
], ie = [
|
|
96
96
|
{
|
|
97
97
|
label: Y("project"),
|
|
98
|
-
icon: /* @__PURE__ */ P(
|
|
98
|
+
icon: /* @__PURE__ */ P(y, { className: "size-4" }),
|
|
99
99
|
disabled: Z.length === 0,
|
|
100
100
|
items: [{
|
|
101
101
|
label: Y("noProject"),
|
|
@@ -122,7 +122,7 @@ function z(e) {
|
|
|
122
122
|
}] : [],
|
|
123
123
|
...M?.cyclesEnabled ? [{
|
|
124
124
|
label: Y("cycleLabel"),
|
|
125
|
-
icon: /* @__PURE__ */ P(
|
|
125
|
+
icon: /* @__PURE__ */ P(h, { className: "size-4" }),
|
|
126
126
|
items: [{
|
|
127
127
|
label: Y("noCycle"),
|
|
128
128
|
checked: l((e) => !e.cycle),
|
|
@@ -138,7 +138,7 @@ function z(e) {
|
|
|
138
138
|
}] : [],
|
|
139
139
|
...F === "none" ? [] : [{
|
|
140
140
|
label: Y("estimate"),
|
|
141
|
-
icon: /* @__PURE__ */ P(
|
|
141
|
+
icon: /* @__PURE__ */ P(g, { className: "size-4" }),
|
|
142
142
|
items: [0, ...E(F)].map((e) => ({
|
|
143
143
|
label: e ? X(e, F) : Y("noEstimate"),
|
|
144
144
|
checked: l((t) => (t.estimate ?? 0) === e),
|
|
@@ -147,7 +147,7 @@ function z(e) {
|
|
|
147
147
|
}],
|
|
148
148
|
{
|
|
149
149
|
label: Y("dueDate"),
|
|
150
|
-
icon: /* @__PURE__ */ P(
|
|
150
|
+
icon: /* @__PURE__ */ P(ee, { className: "size-4" }),
|
|
151
151
|
items: [
|
|
152
152
|
...re.map((e) => ({
|
|
153
153
|
label: e.label,
|
|
@@ -166,21 +166,21 @@ function z(e) {
|
|
|
166
166
|
return [
|
|
167
167
|
{
|
|
168
168
|
label: K("status"),
|
|
169
|
-
icon: /* @__PURE__ */ P(
|
|
169
|
+
icon: /* @__PURE__ */ P(b, { category: o.status.category }),
|
|
170
170
|
shortcut: "S",
|
|
171
171
|
items: c(o.teamId).map((e) => ({
|
|
172
172
|
label: e.name,
|
|
173
|
-
icon: /* @__PURE__ */ P(
|
|
173
|
+
icon: /* @__PURE__ */ P(b, { category: e.category }),
|
|
174
174
|
checked: l((t) => t.status.name === e.name),
|
|
175
175
|
onClick: () => u((t) => {
|
|
176
|
-
let n =
|
|
176
|
+
let n = S(e, t);
|
|
177
177
|
return n && n !== t.status.id ? { statusId: n } : null;
|
|
178
178
|
})
|
|
179
179
|
}))
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
label: K("priority"),
|
|
183
|
-
icon: /* @__PURE__ */ P(
|
|
183
|
+
icon: /* @__PURE__ */ P(v, { priority: o.priority }),
|
|
184
184
|
shortcut: "P",
|
|
185
185
|
items: [
|
|
186
186
|
1,
|
|
@@ -190,14 +190,14 @@ function z(e) {
|
|
|
190
190
|
0
|
|
191
191
|
].map((e) => ({
|
|
192
192
|
label: W[e] ?? "",
|
|
193
|
-
icon: /* @__PURE__ */ P(
|
|
193
|
+
icon: /* @__PURE__ */ P(v, { priority: e }),
|
|
194
194
|
checked: l((t) => t.priority === e),
|
|
195
195
|
onClick: () => u((t) => t.priority === e ? null : { priority: e })
|
|
196
196
|
}))
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
label: K("assignee"),
|
|
200
|
-
icon: /* @__PURE__ */ P(
|
|
200
|
+
icon: /* @__PURE__ */ P(te, {}),
|
|
201
201
|
shortcut: "A",
|
|
202
202
|
items: H.map((e) => {
|
|
203
203
|
let t = k(e.value), n = (t) => t.assignees.some((t) => O(t) === e.value), r = l(n);
|
|
@@ -211,7 +211,7 @@ function z(e) {
|
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
label: K("labels"),
|
|
214
|
-
icon: /* @__PURE__ */ P(
|
|
214
|
+
icon: /* @__PURE__ */ P(x, {}),
|
|
215
215
|
shortcut: "L",
|
|
216
216
|
disabled: V.length === 0,
|
|
217
217
|
items: V.map((e) => {
|
|
@@ -230,7 +230,7 @@ function z(e) {
|
|
|
230
230
|
...ie,
|
|
231
231
|
{
|
|
232
232
|
label: G("moveToTeam"),
|
|
233
|
-
icon: /* @__PURE__ */ P(
|
|
233
|
+
icon: /* @__PURE__ */ P(_, {}),
|
|
234
234
|
disabled: B.length < 2,
|
|
235
235
|
items: B.filter((e) => !e.archivedAt).map((e) => ({
|
|
236
236
|
label: e.name,
|
|
@@ -257,9 +257,9 @@ function z(e) {
|
|
|
257
257
|
},
|
|
258
258
|
j
|
|
259
259
|
] : [],
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
...D ? [
|
|
260
|
+
m(G("copyLinks", { count: a.length }), a.map((t) => R(e, t.identifier)).join("\n")),
|
|
261
|
+
m(G("copyIds", { count: a.length }), a.map((e) => e.identifier).join(", ")),
|
|
262
|
+
...D ? [m(G("copyTitle"), o.title), m(G("copyBranch"), r(o.identifier, o.title))] : [],
|
|
263
263
|
...D ? [j, {
|
|
264
264
|
label: U.find("issue", o.id) ? q("remove") : q("add"),
|
|
265
265
|
onClick: () => U.toggle("issue", o.id)
|
|
@@ -267,10 +267,10 @@ function z(e) {
|
|
|
267
267
|
j,
|
|
268
268
|
l((e) => !!e.archivedAt) ? {
|
|
269
269
|
label: G("restore"),
|
|
270
|
-
onClick: () =>
|
|
270
|
+
onClick: () => p(!1)
|
|
271
271
|
} : {
|
|
272
272
|
label: G("archive"),
|
|
273
|
-
onClick: () =>
|
|
273
|
+
onClick: () => p(!0)
|
|
274
274
|
}
|
|
275
275
|
];
|
|
276
276
|
}, [
|