@parallelworks/tandem-web 0.172.0 → 0.174.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 +7 -1
- package/_virtual/_virtual_i18n/es/common.js +7 -1
- package/_virtual/_virtual_i18n/ja/common.js +7 -1
- package/_virtual/_virtual_i18n/ko/common.js +7 -1
- package/_virtual/_virtual_i18n/zh/common.js +7 -1
- package/components/ActivityTimeline.js +1 -0
- package/components/CommandPalette.js +1 -0
- package/components/DocLinkPicker.js +1 -0
- package/components/FavoritesNav.js +1 -0
- package/components/IssueEvent.js +11 -1
- package/components/IssueFilters.js +1 -0
- package/components/IssueGroup.js +24 -31
- package/components/IssueInsights.js +120 -117
- package/components/IssueRelations.js +2 -0
- package/components/IssueRow.js +1 -0
- package/components/NewIssueDialog.js +2 -0
- package/components/Reports.js +1 -0
- package/components/TeamWorkflow.js +18 -3
- package/components/editorPlugins.js +103 -102
- package/components/icons.js +24 -23
- package/lib/boardMove.js +63 -62
- package/lib/issueList.js +51 -57
- package/lib/issueMenu.js +2 -0
- package/lib/issuePicker.js +1 -0
- package/lib/pagedGroups.js +8 -0
- package/lib/statusGroup.js +14 -0
- package/package.json +1 -1
- package/pages/triage.js +2 -0
- package/routes/_workspace/docs/_doc2.js +2 -0
- package/routes/_workspace/issues/_identifier2.js +2 -0
- package/routes/_workspace/notifications2.js +2 -0
- package/styles.css +9 -0
package/lib/boardMove.js
CHANGED
|
@@ -2,131 +2,132 @@ import { api as e, unwrap as t } from "../api/client.js";
|
|
|
2
2
|
import { invalidateIssueViews as n } from "../api/mutations.js";
|
|
3
3
|
import { issueQuery as r, statusesQuery as i } from "../api/queries.js";
|
|
4
4
|
import { setIssueFields as a } from "./customFields.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { statusGroup as o } from "./statusGroup.js";
|
|
6
|
+
import { toast as s } from "@parallelworks/ui";
|
|
7
|
+
import { useCallback as c } from "react";
|
|
8
|
+
import { useErrorMessage as l } from "@parallelworks/problem/react";
|
|
9
|
+
import { useQueries as u, useQueryClient as d } from "@tanstack/react-query";
|
|
9
10
|
// src/lib/boardMove.ts
|
|
10
|
-
function
|
|
11
|
-
let
|
|
12
|
-
return
|
|
13
|
-
let
|
|
14
|
-
if (
|
|
15
|
-
let e =
|
|
16
|
-
if (
|
|
17
|
-
let t = i.fields[
|
|
18
|
-
e =
|
|
11
|
+
function f(f, p) {
|
|
12
|
+
let m = d(), h = l(), g = u({ queries: p.map((e) => i(f, e.key)) });
|
|
13
|
+
return c(async (i, c, l, u, d, _) => {
|
|
14
|
+
let v, y, b;
|
|
15
|
+
if (_) {
|
|
16
|
+
let e = u === "none" ? null : u;
|
|
17
|
+
if (_.kind === "checkbox" && (e = u === "true"), _.kind === "multi_select") {
|
|
18
|
+
let t = i.fields[_.id] ?? [];
|
|
19
|
+
e = u === "none" ? [] : [...t.filter((e) => e !== l && e !== u), u];
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
+
y = { [_.id]: e }, b = {
|
|
21
22
|
...i,
|
|
22
23
|
fields: {
|
|
23
24
|
...i.fields,
|
|
24
|
-
[
|
|
25
|
+
[_.id]: e
|
|
25
26
|
}
|
|
26
27
|
};
|
|
27
|
-
} else if (
|
|
28
|
-
let e =
|
|
29
|
-
|
|
28
|
+
} else if (c === "type") {
|
|
29
|
+
let e = u === "none" ? void 0 : d?.type;
|
|
30
|
+
v = { typeId: u === "none" ? "" : u };
|
|
30
31
|
let { type: t, ...n } = i;
|
|
31
|
-
|
|
32
|
+
b = e ? {
|
|
32
33
|
...n,
|
|
33
34
|
type: e
|
|
34
35
|
} : n;
|
|
35
|
-
} else if (
|
|
36
|
-
let e = (
|
|
36
|
+
} else if (c === "status") {
|
|
37
|
+
let e = (g[p.findIndex((e) => e.id === i.teamId)]?.data ?? []).filter((e) => o(e) === u).sort((e, t) => e.position - t.position)[0];
|
|
37
38
|
if (!e) return;
|
|
38
|
-
|
|
39
|
+
v = { statusId: e.id }, b = {
|
|
39
40
|
...i,
|
|
40
41
|
status: e
|
|
41
42
|
};
|
|
42
|
-
} else if (
|
|
43
|
+
} else if (c === "priority") v = { priority: Number(u) }, b = {
|
|
43
44
|
...i,
|
|
44
|
-
priority: Number(
|
|
45
|
+
priority: Number(u)
|
|
45
46
|
};
|
|
46
|
-
else if (
|
|
47
|
-
let e =
|
|
48
|
-
if (
|
|
49
|
-
|
|
47
|
+
else if (c === "project") {
|
|
48
|
+
let e = u === "none" ? void 0 : d?.project;
|
|
49
|
+
if (u !== "none" && !e) return;
|
|
50
|
+
v = { projectId: e?.id ?? "" };
|
|
50
51
|
let { project: t, ...n } = i;
|
|
51
|
-
|
|
52
|
+
b = e ? {
|
|
52
53
|
...n,
|
|
53
54
|
project: e
|
|
54
55
|
} : n;
|
|
55
|
-
} else if (
|
|
56
|
-
let e = (e) => `${e.kind}:${e.handle}`, t =
|
|
57
|
-
if (
|
|
58
|
-
let n = i.assignees.find((t) => e(t) ===
|
|
56
|
+
} else if (c === "assignee") {
|
|
57
|
+
let e = (e) => `${e.kind}:${e.handle}`, t = u === "none" ? void 0 : d?.assignees.find((t) => e(t) === u);
|
|
58
|
+
if (u !== "none" && !t) return;
|
|
59
|
+
let n = i.assignees.find((t) => e(t) === l);
|
|
59
60
|
if (t) {
|
|
60
61
|
let e = i.assignees.filter((e) => e !== n);
|
|
61
|
-
|
|
62
|
+
v = {
|
|
62
63
|
addAssignees: [t],
|
|
63
64
|
...n && { removeAssignees: [n] }
|
|
64
|
-
},
|
|
65
|
+
}, b = {
|
|
65
66
|
...i,
|
|
66
67
|
assignees: [...e, t]
|
|
67
68
|
};
|
|
68
|
-
} else
|
|
69
|
+
} else v = { removeAssignees: i.assignees }, b = {
|
|
69
70
|
...i,
|
|
70
71
|
assignees: []
|
|
71
72
|
};
|
|
72
73
|
} else {
|
|
73
|
-
let e =
|
|
74
|
-
if (
|
|
75
|
-
let t = i.labels.find((e) => e.id ===
|
|
74
|
+
let e = u === "none" ? void 0 : d?.labels.find((e) => e.id === u);
|
|
75
|
+
if (u !== "none" && !e) return;
|
|
76
|
+
let t = i.labels.find((e) => e.id === l);
|
|
76
77
|
if (e) {
|
|
77
78
|
let n = i.labels.filter((e) => e !== t);
|
|
78
|
-
|
|
79
|
+
v = {
|
|
79
80
|
addLabels: [e.id],
|
|
80
81
|
...t && { removeLabels: [t.id] }
|
|
81
|
-
},
|
|
82
|
+
}, b = {
|
|
82
83
|
...i,
|
|
83
84
|
labels: [...n, e]
|
|
84
85
|
};
|
|
85
|
-
} else
|
|
86
|
+
} else v = { removeLabels: i.labels.map((e) => e.id) }, b = {
|
|
86
87
|
...i,
|
|
87
88
|
labels: []
|
|
88
89
|
};
|
|
89
90
|
}
|
|
90
|
-
let
|
|
91
|
+
let x = (e) => ({
|
|
91
92
|
...e,
|
|
92
|
-
issues: e.issues.map((e) => e.id === i.id ?
|
|
93
|
-
}),
|
|
93
|
+
issues: e.issues.map((e) => e.id === i.id ? b : e)
|
|
94
|
+
}), S = { queryKey: [
|
|
94
95
|
"workspace",
|
|
95
|
-
|
|
96
|
+
f,
|
|
96
97
|
"issues",
|
|
97
98
|
"list"
|
|
98
99
|
] };
|
|
99
|
-
|
|
100
|
-
let
|
|
100
|
+
m.setQueriesData(S, (e) => e && x(e));
|
|
101
|
+
let C = { queryKey: [
|
|
101
102
|
"workspace",
|
|
102
|
-
|
|
103
|
+
f,
|
|
103
104
|
"issues",
|
|
104
105
|
"pages"
|
|
105
106
|
] };
|
|
106
|
-
|
|
107
|
+
m.setQueriesData(C, (e) => e && {
|
|
107
108
|
...e,
|
|
108
|
-
pages: e.pages.map(
|
|
109
|
+
pages: e.pages.map(x)
|
|
109
110
|
});
|
|
110
111
|
try {
|
|
111
|
-
let n =
|
|
112
|
+
let n = y ? await a(f, i.identifier, y) : t(await e.PATCH("/api/v1/workspaces/{workspace}/issues/{identifier}", {
|
|
112
113
|
params: { path: {
|
|
113
|
-
workspace:
|
|
114
|
+
workspace: f,
|
|
114
115
|
identifier: i.identifier
|
|
115
116
|
} },
|
|
116
|
-
body:
|
|
117
|
+
body: v ?? {}
|
|
117
118
|
}));
|
|
118
|
-
|
|
119
|
+
m.setQueryData(r(f, i.identifier).queryKey, n);
|
|
119
120
|
} catch (e) {
|
|
120
|
-
|
|
121
|
+
s.error(h(e));
|
|
121
122
|
} finally {
|
|
122
|
-
n(
|
|
123
|
+
n(m, f, i.identifier);
|
|
123
124
|
}
|
|
124
125
|
}, [
|
|
125
|
-
|
|
126
|
-
d,
|
|
126
|
+
m,
|
|
127
127
|
f,
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
p,
|
|
129
|
+
g,
|
|
130
|
+
h
|
|
130
131
|
]);
|
|
131
132
|
}
|
|
132
|
-
export {
|
|
133
|
+
export { f as useBoardMove };
|
package/lib/issueList.js
CHANGED
|
@@ -2,21 +2,22 @@ import { TypeIcon as e } from "../components/IssueTypes.js";
|
|
|
2
2
|
import { PriorityIcon as t, StatusIcon as n } from "../components/icons.js";
|
|
3
3
|
import { fieldRef as r, groupableKinds as i, parseFieldFilters as a, sortableKinds as o } from "./customFields.js";
|
|
4
4
|
import { statusRef as s } from "./refs.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { statusGroup as c, statusGroupOrder as l } from "./statusGroup.js";
|
|
6
|
+
import { Avatar as u } from "@parallelworks/ui";
|
|
7
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
7
8
|
// src/lib/issueList.tsx
|
|
8
|
-
var
|
|
9
|
+
var f = {
|
|
9
10
|
active: { categories: ["started", "unstarted"] },
|
|
10
11
|
backlog: { categories: ["backlog"] },
|
|
11
12
|
done: { categories: ["completed", "canceled"] },
|
|
12
13
|
all: { categories: [] }
|
|
13
|
-
},
|
|
14
|
+
}, p = [
|
|
14
15
|
"updated",
|
|
15
16
|
"priority",
|
|
16
17
|
"created",
|
|
17
18
|
"due",
|
|
18
19
|
"requests"
|
|
19
|
-
],
|
|
20
|
+
], m = [
|
|
20
21
|
"status",
|
|
21
22
|
"assignee",
|
|
22
23
|
"priority",
|
|
@@ -24,10 +25,10 @@ var u = {
|
|
|
24
25
|
"label",
|
|
25
26
|
"type",
|
|
26
27
|
"none"
|
|
27
|
-
],
|
|
28
|
-
function
|
|
29
|
-
let t = {}, n =
|
|
30
|
-
n && n in
|
|
28
|
+
], h = (e, t) => p.includes(e) || t.some((t) => r(e) === t.id && o.includes(t.kind)), g = (e, t) => m.includes(e) || t.some((t) => r(e) === t.id && i.includes(t.kind)), _ = (e) => typeof e == "number" ? String(e) : typeof e == "string" && e !== "" ? e : void 0;
|
|
29
|
+
function v(e) {
|
|
30
|
+
let t = {}, n = _(e.view);
|
|
31
|
+
n && n in f && (t.view = n);
|
|
31
32
|
for (let n of [
|
|
32
33
|
"team",
|
|
33
34
|
"assignee",
|
|
@@ -43,36 +44,29 @@ function g(e) {
|
|
|
43
44
|
"q",
|
|
44
45
|
"saved"
|
|
45
46
|
]) {
|
|
46
|
-
let r =
|
|
47
|
+
let r = _(e[n]);
|
|
47
48
|
r && (t[n] = r);
|
|
48
49
|
}
|
|
49
50
|
t.assignee && e.assigneeKind === "agent" && (t.assigneeKind = "agent"), t.assignee || e.unassigned !== "true" && e.unassigned !== !0 || (t.unassigned = "true"), (e.overdue === "true" || e.overdue === !0) && (t.overdue = "true");
|
|
50
|
-
let i =
|
|
51
|
-
i && i !== "updated" && (
|
|
52
|
-
let a =
|
|
53
|
-
return a && a !== "status" && (
|
|
51
|
+
let i = _(e.order);
|
|
52
|
+
i && i !== "updated" && (p.includes(i) || r(i)) && (t.order = i), e.layout === "board" && (t.layout = "board"), e.scope === "workspace" && (t.scope = "workspace");
|
|
53
|
+
let a = _(e.group);
|
|
54
|
+
return a && a !== "status" && (m.includes(a) || r(a)) && (t.group = a), t;
|
|
54
55
|
}
|
|
55
|
-
var
|
|
56
|
-
|
|
57
|
-
"unstarted",
|
|
58
|
-
"backlog",
|
|
59
|
-
"triage",
|
|
60
|
-
"completed",
|
|
61
|
-
"canceled"
|
|
62
|
-
], v = (e) => e === 0 ? 5 : e;
|
|
63
|
-
function y(e, t, n = []) {
|
|
56
|
+
var y = (e) => e === 0 ? 5 : e;
|
|
57
|
+
function b(e, t, n = []) {
|
|
64
58
|
let i = n.find((e) => e.id === r(t));
|
|
65
|
-
if (i) return [...e].sort(
|
|
59
|
+
if (i) return [...e].sort(x(i));
|
|
66
60
|
let a = {
|
|
67
61
|
updated: () => 0,
|
|
68
|
-
priority: (e, t) =>
|
|
62
|
+
priority: (e, t) => y(e.priority) - y(t.priority),
|
|
69
63
|
created: (e, t) => t.createdAt.localeCompare(e.createdAt),
|
|
70
64
|
due: (e, t) => (e.dueDate ?? "9999").localeCompare(t.dueDate ?? "9999"),
|
|
71
65
|
requests: (e, t) => (t.requests ?? 0) - (e.requests ?? 0)
|
|
72
66
|
}[t];
|
|
73
67
|
return [...e].sort(a ?? (() => 0));
|
|
74
68
|
}
|
|
75
|
-
function
|
|
69
|
+
function x(e) {
|
|
76
70
|
let t = (t) => {
|
|
77
71
|
let n = t.fields[e.id];
|
|
78
72
|
if (n != null) return e.kind === "select" ? e.options.findIndex((e) => e.id === n) : typeof n == "number" ? n : String(n);
|
|
@@ -82,18 +76,18 @@ function b(e) {
|
|
|
82
76
|
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
77
|
};
|
|
84
78
|
}
|
|
85
|
-
function
|
|
86
|
-
let
|
|
87
|
-
if (
|
|
79
|
+
function S(i, a, o, s = !1, f = [], p = []) {
|
|
80
|
+
let m = f.find((e) => e.id === r(a));
|
|
81
|
+
if (m) return C(i, m, o, s);
|
|
88
82
|
if (a === "type") {
|
|
89
83
|
let t = {
|
|
90
84
|
key: "none",
|
|
91
85
|
label: o.noType ?? o.none.all,
|
|
92
86
|
issues: []
|
|
93
|
-
}, n =
|
|
87
|
+
}, n = p.map((t) => ({
|
|
94
88
|
key: t.id,
|
|
95
89
|
label: t.name,
|
|
96
|
-
icon: /* @__PURE__ */
|
|
90
|
+
icon: /* @__PURE__ */ d(e, {
|
|
97
91
|
type: t,
|
|
98
92
|
className: "size-3.5"
|
|
99
93
|
}),
|
|
@@ -108,7 +102,7 @@ function x(i, a, o, s = !1, u = [], d = []) {
|
|
|
108
102
|
i || (i = {
|
|
109
103
|
key: r.type.id,
|
|
110
104
|
label: r.type.name,
|
|
111
|
-
icon: /* @__PURE__ */
|
|
105
|
+
icon: /* @__PURE__ */ d(e, {
|
|
112
106
|
type: r.type,
|
|
113
107
|
className: "size-3.5"
|
|
114
108
|
}),
|
|
@@ -122,11 +116,11 @@ function x(i, a, o, s = !1, u = [], d = []) {
|
|
|
122
116
|
label: o.none.all,
|
|
123
117
|
issues: i
|
|
124
118
|
}] : [];
|
|
125
|
-
if (a === "status") return
|
|
119
|
+
if (a === "status") return l.map((e) => ({
|
|
126
120
|
key: e,
|
|
127
121
|
label: o.status(e),
|
|
128
|
-
icon: /* @__PURE__ */
|
|
129
|
-
issues: i.filter((t) => t.status
|
|
122
|
+
icon: /* @__PURE__ */ d(n, { category: e }),
|
|
123
|
+
issues: i.filter((t) => c(t.status) === e)
|
|
130
124
|
})).filter((e) => s || e.issues.length > 0);
|
|
131
125
|
if (a === "priority") return [
|
|
132
126
|
1,
|
|
@@ -137,49 +131,49 @@ function x(i, a, o, s = !1, u = [], d = []) {
|
|
|
137
131
|
].map((e) => ({
|
|
138
132
|
key: String(e),
|
|
139
133
|
label: o.priority(e),
|
|
140
|
-
icon: /* @__PURE__ */
|
|
134
|
+
icon: /* @__PURE__ */ d(t, { priority: e }),
|
|
141
135
|
issues: i.filter((t) => t.priority === e)
|
|
142
136
|
})).filter((e) => s || e.issues.length > 0);
|
|
143
|
-
let
|
|
137
|
+
let h = /* @__PURE__ */ new Map(), g = {
|
|
144
138
|
key: "",
|
|
145
139
|
label: "",
|
|
146
140
|
issues: []
|
|
147
|
-
},
|
|
148
|
-
let i =
|
|
141
|
+
}, _ = (e, t, n, r) => {
|
|
142
|
+
let i = h.get(t) ?? {
|
|
149
143
|
key: t,
|
|
150
144
|
label: n,
|
|
151
145
|
icon: r,
|
|
152
146
|
issues: []
|
|
153
147
|
};
|
|
154
|
-
i.issues.push(e),
|
|
148
|
+
i.issues.push(e), h.set(t, i);
|
|
155
149
|
};
|
|
156
150
|
for (let e of i) if (a === "assignee") {
|
|
157
151
|
for (let t of s ? e.assignees : e.assignees.slice(0, 1)) {
|
|
158
152
|
let n = o.person(t.kind, t.handle);
|
|
159
|
-
|
|
153
|
+
_(e, `${t.kind}:${t.handle}`, n, /* @__PURE__ */ d(u, {
|
|
160
154
|
name: n,
|
|
161
155
|
src: o.avatar(t.kind, t.handle),
|
|
162
156
|
size: "xs",
|
|
163
157
|
decorative: !0
|
|
164
158
|
}));
|
|
165
159
|
}
|
|
166
|
-
e.assignees.length === 0 &&
|
|
167
|
-
} else if (a === "project") e.project ?
|
|
160
|
+
e.assignees.length === 0 && g.issues.push(e);
|
|
161
|
+
} else if (a === "project") e.project ? _(e, e.project.id, e.project.name) : g.issues.push(e);
|
|
168
162
|
else {
|
|
169
|
-
for (let t of s ? e.labels : e.labels.slice(0, 1))
|
|
163
|
+
for (let t of s ? e.labels : e.labels.slice(0, 1)) _(e, t.id, t.name, /* @__PURE__ */ d("span", {
|
|
170
164
|
className: "size-2 rounded-full",
|
|
171
165
|
style: { background: t.color }
|
|
172
166
|
}));
|
|
173
|
-
e.labels.length === 0 &&
|
|
167
|
+
e.labels.length === 0 && g.issues.push(e);
|
|
174
168
|
}
|
|
175
|
-
let
|
|
176
|
-
return (s ||
|
|
177
|
-
...
|
|
169
|
+
let v = [...h.values()].sort((e, t) => e.label.localeCompare(t.label));
|
|
170
|
+
return (s || g.issues.length > 0) && v.push({
|
|
171
|
+
...g,
|
|
178
172
|
key: "none",
|
|
179
173
|
label: o.none[a]
|
|
180
|
-
}),
|
|
174
|
+
}), v;
|
|
181
175
|
}
|
|
182
|
-
function
|
|
176
|
+
function C(e, t, n, r) {
|
|
183
177
|
let i = {
|
|
184
178
|
key: "none",
|
|
185
179
|
label: n.noField?.(t.name) ?? n.none.all,
|
|
@@ -187,7 +181,7 @@ function S(e, t, n, r) {
|
|
|
187
181
|
}, a = (e) => {
|
|
188
182
|
let n = e.fields[t.id];
|
|
189
183
|
return Array.isArray(n) ? r ? n.map(String) : n.slice(0, 1).map(String) : n === !0 ? ["true"] : typeof n == "string" && n ? [n] : [];
|
|
190
|
-
}, o = /* @__PURE__ */ new Map(), s = (e) => e ? /* @__PURE__ */
|
|
184
|
+
}, o = /* @__PURE__ */ new Map(), s = (e) => e ? /* @__PURE__ */ d("span", {
|
|
191
185
|
className: "size-2 rounded-full",
|
|
192
186
|
style: { background: e }
|
|
193
187
|
}) : void 0;
|
|
@@ -216,7 +210,7 @@ function S(e, t, n, r) {
|
|
|
216
210
|
key: i,
|
|
217
211
|
label: r,
|
|
218
212
|
issues: [],
|
|
219
|
-
...t.kind === "person" && { icon: /* @__PURE__ */
|
|
213
|
+
...t.kind === "person" && { icon: /* @__PURE__ */ d(u, {
|
|
220
214
|
name: r,
|
|
221
215
|
src: n.avatar("user", i),
|
|
222
216
|
size: "xs",
|
|
@@ -227,10 +221,10 @@ function S(e, t, n, r) {
|
|
|
227
221
|
e.issues.push(r);
|
|
228
222
|
}
|
|
229
223
|
}
|
|
230
|
-
let
|
|
231
|
-
return t.kind === "person" &&
|
|
224
|
+
let c = [...o.values()];
|
|
225
|
+
return t.kind === "person" && c.sort((e, t) => e.label.localeCompare(t.label)), c.push(i), c.filter((e) => r || e.issues.length > 0);
|
|
232
226
|
}
|
|
233
|
-
function
|
|
227
|
+
function w(e, t) {
|
|
234
228
|
let n = e.view ?? "active", r = (e.status ?? "").split(",").flatMap((e) => {
|
|
235
229
|
let n = t?.filter((t) => s(t) === e).map((e) => e.id) ?? [];
|
|
236
230
|
return n.length > 0 ? n : [e];
|
|
@@ -251,8 +245,8 @@ function C(e, t) {
|
|
|
251
245
|
...e.fields && { field: a(e.fields).map((e) => `${e.field}:${e.value}`) },
|
|
252
246
|
...e.overdue && { overdue: !0 },
|
|
253
247
|
...e.q && { q: e.q },
|
|
254
|
-
...
|
|
248
|
+
...f[n].categories.length > 0 && { category: f[n].categories },
|
|
255
249
|
...n === "all" && { triage: "include" }
|
|
256
250
|
};
|
|
257
251
|
}
|
|
258
|
-
export {
|
|
252
|
+
export { S as groupIssues, m as groupings, g as isGrouping, h as isOrder, w as issueFilterOf, v as issueSearch, p as orders, b as sortIssues, f as views };
|
package/lib/issueMenu.js
CHANGED
|
@@ -192,6 +192,7 @@ function R(x) {
|
|
|
192
192
|
label: K("status"),
|
|
193
193
|
icon: /* @__PURE__ */ N(p, {
|
|
194
194
|
category: a.status.category,
|
|
195
|
+
review: a.status.review,
|
|
195
196
|
step: a.status.step
|
|
196
197
|
}),
|
|
197
198
|
shortcut: "S",
|
|
@@ -199,6 +200,7 @@ function R(x) {
|
|
|
199
200
|
label: e.name,
|
|
200
201
|
icon: /* @__PURE__ */ N(p, {
|
|
201
202
|
category: e.category,
|
|
203
|
+
review: e.review,
|
|
202
204
|
step: e.step
|
|
203
205
|
}),
|
|
204
206
|
checked: s((t) => t.status.name === e.name),
|
package/lib/issuePicker.js
CHANGED
package/lib/pagedGroups.js
CHANGED
|
@@ -13,6 +13,14 @@ function c(e, t, n) {
|
|
|
13
13
|
case "status": return n === "triage" ? {
|
|
14
14
|
...e,
|
|
15
15
|
triage: "only"
|
|
16
|
+
} : n === "review" ? {
|
|
17
|
+
...e,
|
|
18
|
+
category: ["started"],
|
|
19
|
+
review: "only"
|
|
20
|
+
} : n === "started" ? {
|
|
21
|
+
...e,
|
|
22
|
+
category: ["started"],
|
|
23
|
+
review: "exclude"
|
|
16
24
|
} : {
|
|
17
25
|
...e,
|
|
18
26
|
category: [n]
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// src/lib/statusGroup.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
return e.category === "started" && e.review ? "review" : e.category;
|
|
4
|
+
}
|
|
5
|
+
var t = [
|
|
6
|
+
"review",
|
|
7
|
+
"started",
|
|
8
|
+
"unstarted",
|
|
9
|
+
"backlog",
|
|
10
|
+
"triage",
|
|
11
|
+
"completed",
|
|
12
|
+
"canceled"
|
|
13
|
+
];
|
|
14
|
+
export { e as statusGroup, t as statusGroupOrder };
|
package/package.json
CHANGED
package/pages/triage.js
CHANGED
|
@@ -254,6 +254,7 @@ function ne({ workspace: e, issue: t, onEligible: n, picked: r, current: i, open
|
|
|
254
254
|
className: "flex h-4 items-center",
|
|
255
255
|
children: [/* @__PURE__ */ z(l, {
|
|
256
256
|
category: t.status.category,
|
|
257
|
+
review: t.status.review,
|
|
257
258
|
step: t.status.step
|
|
258
259
|
}), /* @__PURE__ */ z("span", {
|
|
259
260
|
className: "sr-only",
|
|
@@ -362,6 +363,7 @@ function re({ workspace: e, issue: t, onBack: i, onDecided: a }) {
|
|
|
362
363
|
className: "inline-flex items-center gap-1.5",
|
|
363
364
|
children: [/* @__PURE__ */ z(l, {
|
|
364
365
|
category: x.status.category,
|
|
366
|
+
review: x.status.review,
|
|
365
367
|
step: x.status.step
|
|
366
368
|
}), x.status.name]
|
|
367
369
|
}),
|
|
@@ -493,6 +493,7 @@ function Le({ workspace: e, docKey: t }) {
|
|
|
493
493
|
children: [
|
|
494
494
|
/* @__PURE__ */ L(p, {
|
|
495
495
|
category: t.status.category,
|
|
496
|
+
review: t.status.review,
|
|
496
497
|
step: t.status.step
|
|
497
498
|
}),
|
|
498
499
|
/* @__PURE__ */ L("span", {
|
|
@@ -598,6 +599,7 @@ function Be({ workspace: t, docKey: n }) {
|
|
|
598
599
|
children: [
|
|
599
600
|
/* @__PURE__ */ L(p, {
|
|
600
601
|
category: e.status.category,
|
|
602
|
+
review: e.status.review,
|
|
601
603
|
step: e.status.step
|
|
602
604
|
}),
|
|
603
605
|
/* @__PURE__ */ L("span", {
|
|
@@ -509,6 +509,7 @@ function Bt({ workspace: n, issue: r, team: i, open: a, setOpen: o, update: s })
|
|
|
509
509
|
label: e.name,
|
|
510
510
|
icon: /* @__PURE__ */ q(ge, {
|
|
511
511
|
category: e.category,
|
|
512
|
+
review: e.review,
|
|
512
513
|
step: e.step
|
|
513
514
|
})
|
|
514
515
|
})),
|
|
@@ -520,6 +521,7 @@ function Bt({ workspace: n, issue: r, team: i, open: a, setOpen: o, update: s })
|
|
|
520
521
|
className: A,
|
|
521
522
|
children: [/* @__PURE__ */ q(ge, {
|
|
522
523
|
category: r.status.category,
|
|
524
|
+
review: r.status.review,
|
|
523
525
|
step: r.status.step
|
|
524
526
|
}), r.status.name]
|
|
525
527
|
})
|
|
@@ -390,6 +390,7 @@ function fe({ workspace: e, group: t, selected: n, picked: r, actions: a }) {
|
|
|
390
390
|
className: "flex h-4 items-center",
|
|
391
391
|
children: [/* @__PURE__ */ B(h, {
|
|
392
392
|
category: d.status.category,
|
|
393
|
+
review: d.status.review,
|
|
393
394
|
step: d.status.step
|
|
394
395
|
}), /* @__PURE__ */ B("span", {
|
|
395
396
|
className: "sr-only",
|
|
@@ -426,6 +427,7 @@ function pe({ workspace: e, identifier: n }) {
|
|
|
426
427
|
className: "inline-flex items-center gap-1.5",
|
|
427
428
|
children: [/* @__PURE__ */ B(h, {
|
|
428
429
|
category: r.status.category,
|
|
430
|
+
review: r.status.review,
|
|
429
431
|
step: r.status.step
|
|
430
432
|
}), r.status.name]
|
|
431
433
|
}),
|
package/styles.css
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
--color-status-triage: var(--theme-warning-text);
|
|
21
21
|
--color-status-unstarted: var(--theme-muted-text-color);
|
|
22
22
|
--color-status-started: var(--theme-info);
|
|
23
|
+
--color-status-review: color-mix(in oklab, var(--theme-info) 45%, var(--theme-success));
|
|
23
24
|
--color-status-completed: var(--theme-success);
|
|
24
25
|
--color-status-canceled: color-mix(
|
|
25
26
|
in oklab,
|
|
@@ -613,6 +614,10 @@ body[data-tandem] > :not(:has(.tandem)) {
|
|
|
613
614
|
border-color: var(--color-warning);
|
|
614
615
|
background: var(--color-warning);
|
|
615
616
|
}
|
|
617
|
+
.prose-issue .linked-issue[data-category="review"]::before {
|
|
618
|
+
border-color: var(--color-status-review);
|
|
619
|
+
background: var(--color-status-review);
|
|
620
|
+
}
|
|
616
621
|
.prose-issue .linked-issue[data-category="completed"]::before {
|
|
617
622
|
border-color: var(--color-primary);
|
|
618
623
|
background: var(--color-primary);
|
|
@@ -745,6 +750,10 @@ body[data-tandem] > :not(:has(.tandem)) {
|
|
|
745
750
|
border-color: var(--color-status-started);
|
|
746
751
|
background: linear-gradient(90deg, transparent 50%, var(--color-status-started) 50%);
|
|
747
752
|
}
|
|
753
|
+
.issue-mention-status[data-category="review"] {
|
|
754
|
+
border-color: var(--color-status-review);
|
|
755
|
+
background: conic-gradient(var(--color-status-review) 0 75%, transparent 75% 100%);
|
|
756
|
+
}
|
|
748
757
|
.issue-mention-status[data-category="completed"] {
|
|
749
758
|
border-color: var(--color-status-completed);
|
|
750
759
|
background: var(--color-status-completed);
|