@parallelworks/tandem-web 0.161.1 → 0.162.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 +3 -1
- package/_virtual/_virtual_i18n/es/common.js +3 -1
- package/_virtual/_virtual_i18n/ja/common.js +3 -1
- package/_virtual/_virtual_i18n/ko/common.js +3 -1
- package/_virtual/_virtual_i18n/zh/common.js +3 -1
- package/components/IssueFilters.js +98 -89
- package/lib/issueList.js +2 -1
- package/lib/views.js +1 -0
- package/package.json +1 -1
|
@@ -903,7 +903,8 @@ var e = {
|
|
|
903
903
|
project: "Project",
|
|
904
904
|
cycle: "Cycle",
|
|
905
905
|
overdue: "Overdue",
|
|
906
|
-
customer: "Customer"
|
|
906
|
+
customer: "Customer",
|
|
907
|
+
noAssignee: "No assignee"
|
|
907
908
|
},
|
|
908
909
|
issue: {
|
|
909
910
|
archivedNote: "Archived on {when}.",
|
|
@@ -1093,6 +1094,7 @@ var e = {
|
|
|
1093
1094
|
},
|
|
1094
1095
|
apiErrors: {
|
|
1095
1096
|
network: "Could not reach the server. Check your connection and try again.",
|
|
1097
|
+
compute_admin_required: "Only platform admins can see and turn on compute for agents.",
|
|
1096
1098
|
conflict: "This changed since you loaded it. Reload and try again.",
|
|
1097
1099
|
device_code_invalid: "That code is unknown, expired or already used.",
|
|
1098
1100
|
insufficient_scope: "This app can only read Tandem. Sign in to it again and allow it to make changes.",
|
|
@@ -903,7 +903,8 @@ var e = {
|
|
|
903
903
|
project: "Proyecto",
|
|
904
904
|
cycle: "Ciclo",
|
|
905
905
|
overdue: "Vencidas",
|
|
906
|
-
customer: "Cliente"
|
|
906
|
+
customer: "Cliente",
|
|
907
|
+
noAssignee: "Sin asignar"
|
|
907
908
|
},
|
|
908
909
|
issue: {
|
|
909
910
|
archivedNote: "Archivada el {when}.",
|
|
@@ -1093,6 +1094,7 @@ var e = {
|
|
|
1093
1094
|
},
|
|
1094
1095
|
apiErrors: {
|
|
1095
1096
|
network: "No se pudo conectar con el servidor. Revisa tu conexión e inténtalo de nuevo.",
|
|
1097
|
+
compute_admin_required: "Solo los administradores de la plataforma pueden ver y activar el cómputo para los agentes.",
|
|
1096
1098
|
conflict: "Esto cambió desde que lo cargaste. Recarga e inténtalo de nuevo.",
|
|
1097
1099
|
device_code_invalid: "Ese código no existe, ha caducado o ya se usó.",
|
|
1098
1100
|
insufficient_scope: "Esta app solo puede leer Tandem. Vuelve a iniciar sesión en ella y permite que haga cambios.",
|
|
@@ -903,7 +903,8 @@ var e = {
|
|
|
903
903
|
project: "プロジェクト",
|
|
904
904
|
cycle: "サイクル",
|
|
905
905
|
overdue: "期限切れ",
|
|
906
|
-
customer: "顧客"
|
|
906
|
+
customer: "顧客",
|
|
907
|
+
noAssignee: "担当者なし"
|
|
907
908
|
},
|
|
908
909
|
issue: {
|
|
909
910
|
archivedNote: "{when} にアーカイブしました。",
|
|
@@ -1093,6 +1094,7 @@ var e = {
|
|
|
1093
1094
|
},
|
|
1094
1095
|
apiErrors: {
|
|
1095
1096
|
network: "サーバーに接続できませんでした。接続を確認して、もう一度お試しください。",
|
|
1097
|
+
compute_admin_required: "エージェント用のコンピュートを表示・有効化できるのはプラットフォーム管理者だけです。",
|
|
1096
1098
|
conflict: "読み込んだ後に変更されています。再読み込みして、もう一度お試しください。",
|
|
1097
1099
|
device_code_invalid: "このコードは不明、期限切れ、または使用済みです。",
|
|
1098
1100
|
insufficient_scope: "このアプリは Tandem の読み取りのみ許可されています。もう一度サインインし、変更を許可してください。",
|
|
@@ -903,7 +903,8 @@ var e = {
|
|
|
903
903
|
project: "프로젝트",
|
|
904
904
|
cycle: "사이클",
|
|
905
905
|
overdue: "기한 지남",
|
|
906
|
-
customer: "고객"
|
|
906
|
+
customer: "고객",
|
|
907
|
+
noAssignee: "담당자 없음"
|
|
907
908
|
},
|
|
908
909
|
issue: {
|
|
909
910
|
archivedNote: "{when}에 보관됨.",
|
|
@@ -1093,6 +1094,7 @@ var e = {
|
|
|
1093
1094
|
},
|
|
1094
1095
|
apiErrors: {
|
|
1095
1096
|
network: "서버에 연결할 수 없습니다. 연결 상태를 확인하고 다시 시도하세요.",
|
|
1097
|
+
compute_admin_required: "에이전트용 컴퓨트는 플랫폼 관리자만 보고 켤 수 있습니다.",
|
|
1096
1098
|
conflict: "불러온 뒤 내용이 변경되었습니다. 새로 고친 후 다시 시도하세요.",
|
|
1097
1099
|
device_code_invalid: "알 수 없거나 만료되었거나 이미 사용된 코드입니다.",
|
|
1098
1100
|
insufficient_scope: "이 앱은 Tandem을 읽기만 할 수 있습니다. 앱에 다시 로그인하고 변경을 허용하세요.",
|
|
@@ -903,7 +903,8 @@ var e = {
|
|
|
903
903
|
project: "项目",
|
|
904
904
|
cycle: "周期",
|
|
905
905
|
overdue: "已逾期",
|
|
906
|
-
customer: "客户"
|
|
906
|
+
customer: "客户",
|
|
907
|
+
noAssignee: "无负责人"
|
|
907
908
|
},
|
|
908
909
|
issue: {
|
|
909
910
|
archivedNote: "已于 {when} 归档。",
|
|
@@ -1093,6 +1094,7 @@ var e = {
|
|
|
1093
1094
|
},
|
|
1094
1095
|
apiErrors: {
|
|
1095
1096
|
network: "无法连接到服务器。请检查网络连接后重试。",
|
|
1097
|
+
compute_admin_required: "只有平台管理员可以查看并为代理启用计算资源。",
|
|
1096
1098
|
conflict: "加载后此内容已被更改。请重新加载后重试。",
|
|
1097
1099
|
device_code_invalid: "该代码无效、已过期或已被使用。",
|
|
1098
1100
|
insufficient_scope: "此应用只能读取 Tandem。请重新登录该应用,并允许它进行更改。",
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { customersQuery as e, cyclesQuery as t, labelsQuery as n, myTeamsQuery as r, projectsQuery as i, statusesQuery as
|
|
2
|
-
import { CalendarIcon as
|
|
3
|
-
import { usePeople as
|
|
4
|
-
import { ProjectStatusIcon as
|
|
5
|
-
import { projectRef as
|
|
6
|
-
import { customFieldsQuery as
|
|
7
|
-
import { issueTypesQuery as
|
|
8
|
-
import { TypeIcon as
|
|
9
|
-
import { statusRef as
|
|
10
|
-
import { Avatar as
|
|
11
|
-
import { useMemo as
|
|
12
|
-
import { useTranslations as
|
|
13
|
-
import { jsx as
|
|
14
|
-
import { useQuery as
|
|
15
|
-
import { useListFilters as
|
|
1
|
+
import { customersQuery as e, cyclesQuery as t, labelsQuery as n, myTeamsQuery as r, projectsQuery as i, statusesQuery as a, teamsQuery as o } from "../api/queries.js";
|
|
2
|
+
import { CalendarIcon as ee, CycleIcon as s, FolderIcon as c, PriorityIcon as l, ProjectIcon as u, StatusIcon as d, TagIcon as f, UserIcon as p, UsersIcon as te, usePriorityNames as ne } from "./icons.js";
|
|
3
|
+
import { usePeople as re } from "../lib/people.js";
|
|
4
|
+
import { ProjectStatusIcon as m } from "./Planning.js";
|
|
5
|
+
import { projectRef as ie } from "../lib/projects.js";
|
|
6
|
+
import { customFieldsQuery as h, fieldsFor as g, filterableKinds as _, formatFieldFilters as v, parseFieldFilters as y } from "../lib/customFields.js";
|
|
7
|
+
import { issueTypesQuery as ae } from "../lib/issueTypes.js";
|
|
8
|
+
import { TypeIcon as oe } from "./IssueTypes.js";
|
|
9
|
+
import { statusRef as b } from "../lib/refs.js";
|
|
10
|
+
import { Avatar as x } from "@parallelworks/ui";
|
|
11
|
+
import { useMemo as S } from "react";
|
|
12
|
+
import { useTranslations as C } from "use-intl";
|
|
13
|
+
import { jsx as w } from "react/jsx-runtime";
|
|
14
|
+
import { useQuery as T } from "@tanstack/react-query";
|
|
15
|
+
import { useListFilters as E } from "@parallelworks/ui/list";
|
|
16
16
|
// src/components/IssueFilters.tsx
|
|
17
|
-
var
|
|
17
|
+
var D = (e) => `field:${e}`, O = [
|
|
18
18
|
"team",
|
|
19
19
|
"assignee",
|
|
20
20
|
"assigneeKind",
|
|
21
|
+
"unassigned",
|
|
21
22
|
"creator",
|
|
22
23
|
"status",
|
|
23
24
|
"priority",
|
|
@@ -28,8 +29,8 @@ var O = (e) => `field:${e}`, k = [
|
|
|
28
29
|
"type",
|
|
29
30
|
"fields",
|
|
30
31
|
"overdue"
|
|
31
|
-
], A = (e) => `agent:${e}`;
|
|
32
|
-
function
|
|
32
|
+
], k = ":none", A = (e) => `agent:${e}`;
|
|
33
|
+
function se(e) {
|
|
33
34
|
let t = [], n = (e, n) => {
|
|
34
35
|
n && t.push({
|
|
35
36
|
field: e,
|
|
@@ -37,7 +38,7 @@ function oe(e) {
|
|
|
37
38
|
values: [n]
|
|
38
39
|
});
|
|
39
40
|
};
|
|
40
|
-
n("team", e.team), n("assignee", e.assignee
|
|
41
|
+
n("team", e.team), n("assignee", e.assignee ? e.assigneeKind === "agent" ? A(e.assignee) : e.assignee : e.unassigned && k), n("creator", e.creator);
|
|
41
42
|
for (let n of ["status", "priority"]) {
|
|
42
43
|
let r = e[n]?.split(",").filter(Boolean) ?? [];
|
|
43
44
|
r.length > 0 && t.push({
|
|
@@ -56,13 +57,13 @@ function oe(e) {
|
|
|
56
57
|
let i = /* @__PURE__ */ new Map();
|
|
57
58
|
for (let t of y(e.fields)) i.set(t.field, [...i.get(t.field) ?? [], t.value]);
|
|
58
59
|
for (let [e, n] of i) t.push({
|
|
59
|
-
field:
|
|
60
|
+
field: D(e),
|
|
60
61
|
op: "is",
|
|
61
62
|
values: n
|
|
62
63
|
});
|
|
63
64
|
return n("overdue", e.overdue), t;
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
+
function ce(e) {
|
|
66
67
|
let t = {}, n = [];
|
|
67
68
|
for (let r of e) {
|
|
68
69
|
let e = r.values[0];
|
|
@@ -73,7 +74,7 @@ function se(e) {
|
|
|
73
74
|
});
|
|
74
75
|
else switch (r.field) {
|
|
75
76
|
case "assignee":
|
|
76
|
-
e.startsWith("agent:") ? (t.assignee = e.slice(6), t.assigneeKind = "agent") : t.assignee = e;
|
|
77
|
+
e === k ? t.unassigned = "true" : e.startsWith("agent:") ? (t.assignee = e.slice(6), t.assigneeKind = "agent") : t.assignee = e;
|
|
77
78
|
break;
|
|
78
79
|
case "overdue":
|
|
79
80
|
e === "true" && (t.overdue = "true");
|
|
@@ -96,20 +97,20 @@ function se(e) {
|
|
|
96
97
|
}
|
|
97
98
|
function j(e, t) {
|
|
98
99
|
let n = { ...e };
|
|
99
|
-
for (let e of
|
|
100
|
+
for (let e of O) delete n[e];
|
|
100
101
|
return {
|
|
101
102
|
...n,
|
|
102
103
|
...t
|
|
103
104
|
};
|
|
104
105
|
}
|
|
105
|
-
function M(v,
|
|
106
|
-
let N =
|
|
106
|
+
function M(v, O, j, M = !1) {
|
|
107
|
+
let N = C("issueFilters"), P = C("planning"), { data: F = [] } = T(o(v)), { data: I = [] } = T(r(v)), L = I.some((e) => e.key === O.team) ? I : [...I, ...F.filter((e) => e.key === O.team)], { data: R = [] } = T(n(v)), { data: z = [] } = T(i(v)), { data: B = [] } = T(e(v)), V = L.find((e) => e.key === O.team), { data: H = [] } = T({
|
|
107
108
|
...t(v, V?.key ?? ""),
|
|
108
109
|
enabled: !!V?.cyclesEnabled
|
|
109
|
-
}), { data: U = [] } =
|
|
110
|
-
...
|
|
110
|
+
}), { data: U = [] } = T({
|
|
111
|
+
...a(v, V?.key ?? ""),
|
|
111
112
|
enabled: !!V
|
|
112
|
-
}), W =
|
|
113
|
+
}), W = ne(), { members: G, agents: K, person: q, agentName: J } = re(v), { data: Y } = T(h(v)), { data: X } = T(ae(v)), Z = C("issueTypes"), Q = C("customFields"), le = S(() => {
|
|
113
114
|
let e = {
|
|
114
115
|
multiple: !1,
|
|
115
116
|
operators: ["is"]
|
|
@@ -120,7 +121,7 @@ function M(v, k, j, M = !1) {
|
|
|
120
121
|
{
|
|
121
122
|
key: "team",
|
|
122
123
|
label: N("team"),
|
|
123
|
-
icon: /* @__PURE__ */
|
|
124
|
+
icon: /* @__PURE__ */ w(c, {}),
|
|
124
125
|
kind: "enum",
|
|
125
126
|
...e,
|
|
126
127
|
required: M,
|
|
@@ -133,42 +134,50 @@ function M(v, k, j, M = !1) {
|
|
|
133
134
|
{
|
|
134
135
|
key: "assignee",
|
|
135
136
|
label: N("assignee"),
|
|
136
|
-
icon: /* @__PURE__ */
|
|
137
|
+
icon: /* @__PURE__ */ w(p, {}),
|
|
137
138
|
kind: "people",
|
|
138
139
|
...e,
|
|
139
|
-
options: [
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
140
|
+
options: [
|
|
141
|
+
{
|
|
142
|
+
value: k,
|
|
143
|
+
label: N("noAssignee"),
|
|
144
|
+
icon: /* @__PURE__ */ w(p, {})
|
|
145
|
+
},
|
|
146
|
+
...G.map((e) => ({
|
|
147
|
+
value: e.user.username,
|
|
148
|
+
label: e.user.name,
|
|
149
|
+
group: N("people"),
|
|
150
|
+
icon: /* @__PURE__ */ w(x, {
|
|
151
|
+
name: e.user.name,
|
|
152
|
+
src: e.user.avatarUrl,
|
|
153
|
+
size: "xs",
|
|
154
|
+
decorative: !0
|
|
155
|
+
})
|
|
156
|
+
})),
|
|
157
|
+
...K.map((e) => ({
|
|
158
|
+
value: A(e.slug),
|
|
159
|
+
label: e.name,
|
|
160
|
+
group: N("agents"),
|
|
161
|
+
icon: /* @__PURE__ */ w(x, {
|
|
162
|
+
name: e.name,
|
|
163
|
+
kind: "agent",
|
|
164
|
+
size: "xs",
|
|
165
|
+
decorative: !0
|
|
166
|
+
})
|
|
167
|
+
}))
|
|
168
|
+
],
|
|
160
169
|
valueLabel: (e) => e.startsWith("agent:") ? J(e.slice(6)) : q(e).name
|
|
161
170
|
},
|
|
162
171
|
{
|
|
163
172
|
key: "creator",
|
|
164
173
|
label: N("creator"),
|
|
165
|
-
icon: /* @__PURE__ */
|
|
174
|
+
icon: /* @__PURE__ */ w(p, {}),
|
|
166
175
|
kind: "people",
|
|
167
176
|
...e,
|
|
168
177
|
options: G.map((e) => ({
|
|
169
178
|
value: e.user.username,
|
|
170
179
|
label: e.user.name,
|
|
171
|
-
icon: /* @__PURE__ */
|
|
180
|
+
icon: /* @__PURE__ */ w(x, {
|
|
172
181
|
name: e.user.name,
|
|
173
182
|
src: e.user.avatarUrl,
|
|
174
183
|
size: "xs",
|
|
@@ -180,7 +189,7 @@ function M(v, k, j, M = !1) {
|
|
|
180
189
|
{
|
|
181
190
|
key: "priority",
|
|
182
191
|
label: N("priority"),
|
|
183
|
-
icon: /* @__PURE__ */
|
|
192
|
+
icon: /* @__PURE__ */ w(l, { priority: 2 }),
|
|
184
193
|
kind: "enum",
|
|
185
194
|
operators: ["is"],
|
|
186
195
|
options: [
|
|
@@ -192,19 +201,19 @@ function M(v, k, j, M = !1) {
|
|
|
192
201
|
].map((e) => ({
|
|
193
202
|
value: String(e),
|
|
194
203
|
label: W[e] ?? "",
|
|
195
|
-
icon: /* @__PURE__ */
|
|
204
|
+
icon: /* @__PURE__ */ w(l, { priority: e })
|
|
196
205
|
}))
|
|
197
206
|
},
|
|
198
207
|
{
|
|
199
208
|
key: "label",
|
|
200
209
|
label: N("label"),
|
|
201
|
-
icon: /* @__PURE__ */
|
|
210
|
+
icon: /* @__PURE__ */ w(f, {}),
|
|
202
211
|
kind: "enum",
|
|
203
212
|
...e,
|
|
204
213
|
options: R.map((e) => ({
|
|
205
214
|
value: e.name,
|
|
206
215
|
label: e.name,
|
|
207
|
-
icon: /* @__PURE__ */
|
|
216
|
+
icon: /* @__PURE__ */ w("span", {
|
|
208
217
|
className: "size-2 rounded-full",
|
|
209
218
|
style: { background: e.color }
|
|
210
219
|
})
|
|
@@ -214,44 +223,44 @@ function M(v, k, j, M = !1) {
|
|
|
214
223
|
{
|
|
215
224
|
key: "project",
|
|
216
225
|
label: N("project"),
|
|
217
|
-
icon: /* @__PURE__ */
|
|
226
|
+
icon: /* @__PURE__ */ w(u, {}),
|
|
218
227
|
kind: "enum",
|
|
219
228
|
...e,
|
|
220
229
|
options: z.map((e) => ({
|
|
221
|
-
value:
|
|
230
|
+
value: ie(e),
|
|
222
231
|
label: e.name,
|
|
223
|
-
icon: /* @__PURE__ */
|
|
232
|
+
icon: /* @__PURE__ */ w(m, { status: e.status })
|
|
224
233
|
}))
|
|
225
234
|
}
|
|
226
235
|
];
|
|
227
|
-
(B.length > 0 ||
|
|
236
|
+
(B.length > 0 || O.customer) && n.push({
|
|
228
237
|
key: "customer",
|
|
229
238
|
label: N("customer"),
|
|
230
|
-
icon: /* @__PURE__ */
|
|
239
|
+
icon: /* @__PURE__ */ w(te, {}),
|
|
231
240
|
kind: "enum",
|
|
232
241
|
...e,
|
|
233
242
|
options: B.map((e) => ({
|
|
234
243
|
value: e.id,
|
|
235
244
|
label: e.name
|
|
236
245
|
}))
|
|
237
|
-
}), (V ||
|
|
246
|
+
}), (V || O.status) && n.splice(3, 0, {
|
|
238
247
|
key: "status",
|
|
239
248
|
label: N("status"),
|
|
240
|
-
icon: /* @__PURE__ */
|
|
249
|
+
icon: /* @__PURE__ */ w(d, { category: "started" }),
|
|
241
250
|
kind: "enum",
|
|
242
251
|
operators: ["is"],
|
|
243
252
|
options: U.map((e) => ({
|
|
244
|
-
value:
|
|
253
|
+
value: b(e),
|
|
245
254
|
label: e.name,
|
|
246
|
-
icon: /* @__PURE__ */
|
|
255
|
+
icon: /* @__PURE__ */ w(d, {
|
|
247
256
|
category: e.category,
|
|
248
257
|
step: e.step
|
|
249
258
|
})
|
|
250
259
|
}))
|
|
251
|
-
}), (V?.cyclesEnabled ||
|
|
260
|
+
}), (V?.cyclesEnabled || O.cycle) && n.push({
|
|
252
261
|
key: "cycle",
|
|
253
262
|
label: N("cycle"),
|
|
254
|
-
icon: /* @__PURE__ */
|
|
263
|
+
icon: /* @__PURE__ */ w(s, {}),
|
|
255
264
|
kind: "enum",
|
|
256
265
|
...e,
|
|
257
266
|
options: H.map((e) => ({
|
|
@@ -261,17 +270,17 @@ function M(v, k, j, M = !1) {
|
|
|
261
270
|
}))
|
|
262
271
|
});
|
|
263
272
|
let r = (X ?? []).filter((e) => !e.archivedAt && (!V || e.teamIds.length === 0 || e.teamIds.includes(V.id)));
|
|
264
|
-
(r.length > 0 ||
|
|
273
|
+
(r.length > 0 || O.type) && n.push({
|
|
265
274
|
key: "type",
|
|
266
275
|
label: Z("type"),
|
|
267
|
-
icon: /* @__PURE__ */
|
|
276
|
+
icon: /* @__PURE__ */ w(f, {}),
|
|
268
277
|
kind: "enum",
|
|
269
278
|
multiple: !0,
|
|
270
279
|
operators: ["is"],
|
|
271
280
|
options: [...r.map((e) => ({
|
|
272
281
|
value: e.id,
|
|
273
282
|
label: e.name,
|
|
274
|
-
icon: /* @__PURE__ */
|
|
283
|
+
icon: /* @__PURE__ */ w(oe, {
|
|
275
284
|
type: e,
|
|
276
285
|
className: "size-3.5"
|
|
277
286
|
})
|
|
@@ -280,23 +289,23 @@ function M(v, k, j, M = !1) {
|
|
|
280
289
|
label: Z("noType")
|
|
281
290
|
}]
|
|
282
291
|
});
|
|
283
|
-
let i = new Set(y(
|
|
284
|
-
for (let e of (Y ?? []).filter((e) => e.target === "issue" && _.includes(e.kind) && (
|
|
292
|
+
let i = new Set(y(O.fields).map((e) => e.field));
|
|
293
|
+
for (let e of (Y ?? []).filter((e) => e.target === "issue" && _.includes(e.kind) && (g([e], "issue", V?.id).length > 0 || i.has(e.id)))) {
|
|
285
294
|
let t = {
|
|
286
295
|
value: "none",
|
|
287
296
|
label: Q("noValue")
|
|
288
297
|
};
|
|
289
298
|
n.push({
|
|
290
|
-
key:
|
|
299
|
+
key: D(e.id),
|
|
291
300
|
label: e.name,
|
|
292
|
-
icon: /* @__PURE__ */
|
|
301
|
+
icon: /* @__PURE__ */ w(f, {}),
|
|
293
302
|
kind: "enum",
|
|
294
303
|
multiple: !0,
|
|
295
304
|
operators: ["is"],
|
|
296
305
|
options: e.kind === "person" ? [...G.map((e) => ({
|
|
297
306
|
value: e.user.username,
|
|
298
307
|
label: e.user.name,
|
|
299
|
-
icon: /* @__PURE__ */
|
|
308
|
+
icon: /* @__PURE__ */ w(x, {
|
|
300
309
|
name: e.user.name,
|
|
301
310
|
src: e.user.avatarUrl,
|
|
302
311
|
size: "xs",
|
|
@@ -308,7 +317,7 @@ function M(v, k, j, M = !1) {
|
|
|
308
317
|
}, t] : [...e.options.map((e) => ({
|
|
309
318
|
value: e.id ?? "",
|
|
310
319
|
label: e.name,
|
|
311
|
-
...e.color && { icon: /* @__PURE__ */
|
|
320
|
+
...e.color && { icon: /* @__PURE__ */ w("span", {
|
|
312
321
|
className: "size-2 rounded-full",
|
|
313
322
|
style: { background: e.color }
|
|
314
323
|
}) }
|
|
@@ -318,16 +327,16 @@ function M(v, k, j, M = !1) {
|
|
|
318
327
|
return n.push({
|
|
319
328
|
key: "overdue",
|
|
320
329
|
label: N("overdue"),
|
|
321
|
-
icon: /* @__PURE__ */
|
|
330
|
+
icon: /* @__PURE__ */ w(ee, {}),
|
|
322
331
|
kind: "boolean"
|
|
323
332
|
}), n;
|
|
324
333
|
}, [
|
|
325
334
|
X,
|
|
326
335
|
Z,
|
|
327
|
-
|
|
336
|
+
O.type,
|
|
328
337
|
Y,
|
|
329
338
|
Q,
|
|
330
|
-
|
|
339
|
+
O.fields,
|
|
331
340
|
N,
|
|
332
341
|
P,
|
|
333
342
|
L,
|
|
@@ -336,27 +345,27 @@ function M(v, k, j, M = !1) {
|
|
|
336
345
|
R,
|
|
337
346
|
z,
|
|
338
347
|
B,
|
|
339
|
-
|
|
348
|
+
O.customer,
|
|
340
349
|
H,
|
|
341
350
|
U,
|
|
342
351
|
W,
|
|
343
352
|
V,
|
|
344
|
-
|
|
345
|
-
|
|
353
|
+
O.cycle,
|
|
354
|
+
O.status,
|
|
346
355
|
q,
|
|
347
356
|
J,
|
|
348
357
|
M
|
|
349
|
-
]), $ =
|
|
358
|
+
]), $ = se(O), ue = {
|
|
350
359
|
value: $.length > 0 ? $ : null,
|
|
351
360
|
onChange: (e) => {
|
|
352
|
-
let t =
|
|
353
|
-
t.team !==
|
|
361
|
+
let t = ce(e);
|
|
362
|
+
t.team !== O.team && delete t.status, j(t);
|
|
354
363
|
}
|
|
355
364
|
};
|
|
356
|
-
return
|
|
365
|
+
return E({
|
|
357
366
|
storageKey: `issues:${v}`,
|
|
358
|
-
fields:
|
|
359
|
-
store:
|
|
367
|
+
fields: le,
|
|
368
|
+
store: ue,
|
|
360
369
|
remember: !1
|
|
361
370
|
});
|
|
362
371
|
}
|
package/lib/issueList.js
CHANGED
|
@@ -46,7 +46,7 @@ function g(e) {
|
|
|
46
46
|
let r = h(e[n]);
|
|
47
47
|
r && (t[n] = r);
|
|
48
48
|
}
|
|
49
|
-
t.assignee && e.assigneeKind === "agent" && (t.assigneeKind = "agent"), (e.overdue === "true" || e.overdue === !0) && (t.overdue = "true");
|
|
49
|
+
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
50
|
let i = h(e.order);
|
|
51
51
|
i && i !== "updated" && (d.includes(i) || n(i)) && (t.order = i), e.layout === "board" && (t.layout = "board"), e.scope === "workspace" && (t.scope = "workspace");
|
|
52
52
|
let a = h(e.group);
|
|
@@ -239,6 +239,7 @@ function C(e, t) {
|
|
|
239
239
|
...e.team && { team: e.team },
|
|
240
240
|
...e.assignee && { assignee: e.assignee },
|
|
241
241
|
...e.assignee && e.assigneeKind && { assigneeKind: e.assigneeKind },
|
|
242
|
+
...!e.assignee && e.unassigned && { unassigned: !0 },
|
|
242
243
|
...e.creator && { creator: e.creator },
|
|
243
244
|
...e.status && { status: r },
|
|
244
245
|
...e.priority && { priority: e.priority.split(",").map(Number) },
|
package/lib/views.js
CHANGED