@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
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { api as e, unwrap as t } from "../api/client.js";
|
|
2
2
|
import { useNavigate as n } from "../lib/router.js";
|
|
3
3
|
import { cyclesQuery as r, issueTemplatesQuery as i, labelsQuery as a, statusesQuery as ee, teamsQuery as te } from "../api/queries.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { scalePoints as ve, useEstimateLabel as ye } from "./Planning.js";
|
|
12
|
-
import { PickManyBox as be, usePickMany as xe } from "../lib/pickMany.js";
|
|
13
|
-
import { parseAssigneeKey as Se, useAssigneeOptions as Ce } from "../lib/assignees.js";
|
|
4
|
+
import { invalidateIssueViews as ne } from "../api/mutations.js";
|
|
5
|
+
import { CalendarIcon as re, CycleIcon as ie, EstimateIcon as ae, FileTextIcon as oe, FolderIcon as se, PriorityIcon as ce, StatusIcon as le, TagIcon as ue, UserIcon as de, usePriorityNames as fe } from "./icons.js";
|
|
6
|
+
import { useTime as pe } from "../lib/time.js";
|
|
7
|
+
import { scalePoints as me, useEstimateLabel as he } from "./Planning.js";
|
|
8
|
+
import { PickManyBox as ge, usePickMany as _e } from "../lib/pickMany.js";
|
|
9
|
+
import { parseAssigneeKey as ve, useAssigneeOptions as ye } from "../lib/assignees.js";
|
|
10
|
+
import { attachmentPrefix as be, insertPreviews as xe, readDataURL as Se, uploadAttachment as Ce } from "../lib/attachments.js";
|
|
14
11
|
import { useCan as we } from "../lib/roles.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
12
|
+
import { hasValue as o } from "../lib/customFields.js";
|
|
13
|
+
import { useConfirm as Te } from "../lib/confirm.js";
|
|
14
|
+
import { issueTypesQuery as Ee, typesFor as De } from "../lib/issueTypes.js";
|
|
15
|
+
import { TypeIcon as Oe } from "./IssueTypes.js";
|
|
16
|
+
import { NewIssueFields as ke } from "./CustomFields.js";
|
|
17
17
|
import { AttachButton as Ae, useAttachmentsOn as je } from "./Attachments.js";
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
18
|
+
import { Editor as Me } from "./Editor.js";
|
|
19
|
+
import { withoutLink as Ne } from "../lib/markdownLinks.js";
|
|
20
20
|
import { TeamForm as Pe } from "./TeamForm.js";
|
|
21
21
|
import { Button as Fe, Combobox as s, CreateModal as Ie, DatePicker as Le, Modal as Re, buttonClasses as ze, toast as Be } from "@parallelworks/ui";
|
|
22
22
|
import { useEffect as Ve, useRef as c, useState as l } from "react";
|
|
@@ -26,36 +26,36 @@ import { Fragment as Ue, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
|
26
26
|
import { useQuery as p, useQueryClient as We, useSuspenseQuery as Ge } from "@tanstack/react-query";
|
|
27
27
|
// src/components/NewIssueDialog.tsx
|
|
28
28
|
function m({ workspace: m, defaultTeam: h, defaultTitle: Je = "", defaultBody: g = "", defaultArea: _, origin: v, defaults: y = {}, onCreated: Ye, onClose: b }) {
|
|
29
|
-
let { data: Xe } = Ge(te(m)), x = Xe.filter((e) => !e.archivedAt), S = !Je && !g && !_ && !v && Object.keys(y).length === 0, [
|
|
30
|
-
...ee(m,
|
|
31
|
-
enabled: !!
|
|
29
|
+
let { data: Xe } = Ge(te(m)), x = Xe.filter((e) => !e.archivedAt), S = !Je && !g && !_ && !v && Object.keys(y).length === 0, [C] = l(() => S ? Ke(m) : void 0), [w, Ze] = l(h ?? x.find((e) => e.key === C?.team)?.key ?? x[0]?.key ?? ""), { data: Qe = [] } = p({
|
|
30
|
+
...ee(m, w),
|
|
31
|
+
enabled: !!w
|
|
32
32
|
}), { data: $e = [] } = p(a(m)), { data: T = [] } = p({
|
|
33
|
-
...i(m,
|
|
34
|
-
enabled: !!
|
|
35
|
-
}), [E, et] = l(null), tt = T.find((e) => e.id === E), [D, nt] = l(Je ||
|
|
36
|
-
...r(m,
|
|
37
|
-
enabled: !!x.find((e) => e.key ===
|
|
33
|
+
...i(m, w),
|
|
34
|
+
enabled: !!w
|
|
35
|
+
}), [E, et] = l(null), tt = T.find((e) => e.id === E), [D, nt] = l(Je || C?.title || ""), O = c(D), rt = u("issueTemplates"), it = ye(m, !0), at = fe(), k = u("newIssue"), ot = He(), A = u("common"), j = we(m, "manage_teams"), [M, N] = l(g || C?.body || ""), st = c(M), [ct, lt] = l(y.statusId ?? null), [P, ut] = l(y.priority ?? 0), [F, dt] = l(0), [I, ft] = l(""), [L, pt] = l(y.cycleId ?? ""), R = u("planning"), mt = he(), ht = pe(), { data: gt = [] } = p({
|
|
36
|
+
...r(m, w),
|
|
37
|
+
enabled: !!x.find((e) => e.key === w)?.cyclesEnabled
|
|
38
38
|
}), _t = gt.find((e) => e.id === L), vt = (e) => e.name ? R("cycleNamed", {
|
|
39
39
|
number: e.number,
|
|
40
40
|
name: e.name
|
|
41
|
-
}) : R("cycle", { number: e.number }), z = x.find((e) => e.key ===
|
|
41
|
+
}) : R("cycle", { number: e.number }), z = x.find((e) => e.key === w)?.estimateScale ?? "none", [B, yt] = l(y.assignees ?? []), [V, bt] = l(y.labelIds ?? []), [H, U] = l({}), [W, G] = l(null), { data: xt } = p(Ee(m)), K = De(xt, x.find((e) => e.key === w)?.id), q = K.find((e) => e.id === W), St = u("issueTypes"), [J, Y] = l(null), Ct = _e(J === "assignees", () => Y(null)), wt = _e(J === "labels", () => Y(null)), [Tt, Et] = l(null), Dt = We(), Ot = n(), { confirm: kt, dialog: At } = Te(), X = c(!1);
|
|
42
42
|
Ve(() => {
|
|
43
43
|
let e = () => {
|
|
44
44
|
S && qe(m, {
|
|
45
|
-
team:
|
|
45
|
+
team: w,
|
|
46
46
|
title: O.current,
|
|
47
47
|
body: M
|
|
48
48
|
}), b();
|
|
49
49
|
}, t = (t) => {
|
|
50
|
-
if (!(t.key !== "Escape" || J !== null ||
|
|
50
|
+
if (!(t.key !== "Escape" || J !== null || X.current) && !document.querySelector("[role=\"menu\"], [role=\"listbox\"]")) {
|
|
51
51
|
if (O.current === D && M === st.current) return e();
|
|
52
|
-
|
|
52
|
+
X.current = !0, kt({
|
|
53
53
|
title: k("closeTitle"),
|
|
54
54
|
description: k(S ? "closeKeepsDraft" : "closeLoses"),
|
|
55
55
|
confirmLabel: A("close"),
|
|
56
56
|
onConfirm: async () => e()
|
|
57
57
|
}).finally(() => {
|
|
58
|
-
|
|
58
|
+
X.current = !1;
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
};
|
|
@@ -64,7 +64,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Je = "", defaultBody: g
|
|
|
64
64
|
J,
|
|
65
65
|
S,
|
|
66
66
|
m,
|
|
67
|
-
|
|
67
|
+
w,
|
|
68
68
|
M,
|
|
69
69
|
D,
|
|
70
70
|
b,
|
|
@@ -81,30 +81,30 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Je = "", defaultBody: g
|
|
|
81
81
|
};
|
|
82
82
|
return window.addEventListener("keydown", e, !0), () => window.removeEventListener("keydown", e, !0);
|
|
83
83
|
}, []);
|
|
84
|
-
let
|
|
84
|
+
let jt = () => {
|
|
85
85
|
S && qe(m, {
|
|
86
|
-
team:
|
|
86
|
+
team: w,
|
|
87
87
|
title: "",
|
|
88
88
|
body: ""
|
|
89
89
|
}), b();
|
|
90
|
-
},
|
|
90
|
+
}, Z = Qe.find((e) => e.id === ct) ?? Qe.find((e) => e.category === "unstarted"), Q = c(null), Mt = c(/* @__PURE__ */ new Map()), Nt = je(), Pt = u("issue.attachments"), Ft = async (e, t) => {
|
|
91
91
|
if (!Nt) {
|
|
92
92
|
Be.error(Pt("off", { name: e[0]?.name ?? "" }));
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
95
|
let n = await Promise.all(e.map(async (e) => ({
|
|
96
96
|
file: e,
|
|
97
|
-
src: await
|
|
97
|
+
src: await Se(e)
|
|
98
98
|
})));
|
|
99
|
-
for (let { file: e, src: t } of n)
|
|
100
|
-
|
|
99
|
+
for (let { file: e, src: t } of n) Mt.current.set(t, e);
|
|
100
|
+
Q.current && !Q.current.isDestroyed && xe(Q.current, n, t);
|
|
101
101
|
}, It = async (t) => {
|
|
102
102
|
let n = M;
|
|
103
|
-
for (let [e, r] of
|
|
104
|
-
let i = await
|
|
105
|
-
n = n.replaceAll(`(${e})`, `(${
|
|
103
|
+
for (let [e, r] of Mt.current) if (M.includes(e)) try {
|
|
104
|
+
let i = await Ce(m, t, r);
|
|
105
|
+
n = n.replaceAll(`(${e})`, `(${be}${i.id})`);
|
|
106
106
|
} catch (t) {
|
|
107
|
-
n =
|
|
107
|
+
n = Ne(n, e), Be.error(k("attachFailed", {
|
|
108
108
|
name: r.name,
|
|
109
109
|
reason: ot(t)
|
|
110
110
|
}));
|
|
@@ -117,33 +117,33 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Je = "", defaultBody: g
|
|
|
117
117
|
body: { body: n }
|
|
118
118
|
});
|
|
119
119
|
}, Lt = async (n, r) => {
|
|
120
|
-
if (!
|
|
120
|
+
if (!w) return !1;
|
|
121
121
|
Et(null);
|
|
122
|
-
let i = [...
|
|
122
|
+
let i = [...Mt.current.keys()].filter((e) => M.includes(e));
|
|
123
123
|
try {
|
|
124
124
|
let a = t(await e.POST("/api/v1/workspaces/{workspace}/teams/{key}/issues", {
|
|
125
125
|
params: { path: {
|
|
126
126
|
workspace: m,
|
|
127
|
-
key:
|
|
127
|
+
key: w
|
|
128
128
|
} },
|
|
129
129
|
body: {
|
|
130
130
|
title: n,
|
|
131
|
-
body: i.reduce(
|
|
131
|
+
body: i.reduce(Ne, M),
|
|
132
132
|
priority: P,
|
|
133
|
-
...
|
|
134
|
-
assignees: B.map(
|
|
133
|
+
...Z && { statusId: Z.id },
|
|
134
|
+
assignees: B.map(ve),
|
|
135
135
|
labelIds: V,
|
|
136
136
|
...q && { typeId: q.id },
|
|
137
137
|
...Object.values(H).some(o) && { fields: Object.fromEntries(Object.entries(H).filter(([, e]) => o(e))) },
|
|
138
|
-
...F &&
|
|
138
|
+
...F && me(z).includes(F) && { estimate: F },
|
|
139
139
|
...I && { dueDate: I },
|
|
140
140
|
...L && { cycleId: L },
|
|
141
|
-
...(!h ||
|
|
142
|
-
...(!h ||
|
|
143
|
-
...(!h ||
|
|
141
|
+
...(!h || w === h) && _ && { area: _ },
|
|
142
|
+
...(!h || w === h) && v && { origin: v },
|
|
143
|
+
...(!h || w === h) && y.projectId && { projectId: y.projectId }
|
|
144
144
|
}
|
|
145
145
|
}));
|
|
146
|
-
return i.length > 0 && await It(a.identifier),
|
|
146
|
+
return i.length > 0 && await It(a.identifier), ne(Dt, m, a.identifier), Ye?.(a), r && Ot({
|
|
147
147
|
to: "/$workspace/issues/$identifier",
|
|
148
148
|
params: {
|
|
149
149
|
workspace: m,
|
|
@@ -168,22 +168,22 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Je = "", defaultBody: g
|
|
|
168
168
|
children: j && /* @__PURE__ */ d(Pe, {
|
|
169
169
|
workspace: m,
|
|
170
170
|
autoFocus: !0,
|
|
171
|
-
onCreated: (e) =>
|
|
171
|
+
onCreated: (e) => Ze(e.key)
|
|
172
172
|
})
|
|
173
173
|
});
|
|
174
|
-
let Rt = x.find((e) => e.key ===
|
|
174
|
+
let Rt = x.find((e) => e.key === w);
|
|
175
175
|
return /* @__PURE__ */ f(Ue, { children: [/* @__PURE__ */ d(Ie, {
|
|
176
176
|
open: !0,
|
|
177
|
-
onClose:
|
|
177
|
+
onClose: jt,
|
|
178
178
|
size: "xl",
|
|
179
|
-
typeIcon: /* @__PURE__ */ d(
|
|
179
|
+
typeIcon: /* @__PURE__ */ d(se, { className: "size-3.5" }),
|
|
180
180
|
typeLabel: Rt?.name ?? "",
|
|
181
181
|
typeMenu: x.map((e) => ({
|
|
182
182
|
label: e.name,
|
|
183
183
|
hint: e.key,
|
|
184
|
-
checked: e.key ===
|
|
184
|
+
checked: e.key === w,
|
|
185
185
|
onClick: () => {
|
|
186
|
-
|
|
186
|
+
Ze(e.key), lt(null), et(null), U({}), G(null), pt("");
|
|
187
187
|
}
|
|
188
188
|
})),
|
|
189
189
|
typeMenuSearch: {
|
|
@@ -198,20 +198,20 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Je = "", defaultBody: g
|
|
|
198
198
|
submitLabel: k("create"),
|
|
199
199
|
descriptionField: /* @__PURE__ */ f("div", {
|
|
200
200
|
className: "min-h-24 pb-2",
|
|
201
|
-
children: [/* @__PURE__ */ d(
|
|
201
|
+
children: [/* @__PURE__ */ d(Me, {
|
|
202
202
|
value: M,
|
|
203
203
|
onChange: N,
|
|
204
204
|
onFiles: (e, t) => void Ft(e, t),
|
|
205
205
|
onEditor: (e) => {
|
|
206
|
-
|
|
206
|
+
Q.current = e;
|
|
207
207
|
},
|
|
208
208
|
onSubmit: () => {},
|
|
209
209
|
placeholder: k("descriptionPlaceholder"),
|
|
210
210
|
label: A("description"),
|
|
211
211
|
className: "min-h-24"
|
|
212
|
-
}), /* @__PURE__ */ d(
|
|
212
|
+
}), /* @__PURE__ */ d(ke, {
|
|
213
213
|
workspace: m,
|
|
214
|
-
teamId: x.find((e) => e.key ===
|
|
214
|
+
teamId: x.find((e) => e.key === w)?.id,
|
|
215
215
|
typeId: W,
|
|
216
216
|
values: H,
|
|
217
217
|
onChange: U
|
|
@@ -228,7 +228,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Je = "", defaultBody: g
|
|
|
228
228
|
items: T.map((e) => ({
|
|
229
229
|
value: e.id,
|
|
230
230
|
label: e.name,
|
|
231
|
-
icon: /* @__PURE__ */ d(
|
|
231
|
+
icon: /* @__PURE__ */ d(oe, { className: "size-3.5 text-muted-foreground" })
|
|
232
232
|
})),
|
|
233
233
|
value: E,
|
|
234
234
|
onValueChange: (e) => {
|
|
@@ -239,7 +239,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Je = "", defaultBody: g
|
|
|
239
239
|
trigger: /* @__PURE__ */ f("button", {
|
|
240
240
|
type: "button",
|
|
241
241
|
className: $,
|
|
242
|
-
children: [/* @__PURE__ */ d(
|
|
242
|
+
children: [/* @__PURE__ */ d(oe, { className: "size-3.5" }), tt?.name ?? rt("choose")]
|
|
243
243
|
})
|
|
244
244
|
}),
|
|
245
245
|
K.length > 0 && /* @__PURE__ */ d(s, {
|
|
@@ -248,7 +248,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Je = "", defaultBody: g
|
|
|
248
248
|
items: K.map((e) => ({
|
|
249
249
|
value: e.id,
|
|
250
250
|
label: e.name,
|
|
251
|
-
icon: /* @__PURE__ */ d(
|
|
251
|
+
icon: /* @__PURE__ */ d(Oe, {
|
|
252
252
|
type: e,
|
|
253
253
|
className: "size-3.5"
|
|
254
254
|
})
|
|
@@ -262,7 +262,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Je = "", defaultBody: g
|
|
|
262
262
|
trigger: /* @__PURE__ */ f("button", {
|
|
263
263
|
type: "button",
|
|
264
264
|
className: $,
|
|
265
|
-
children: [q && /* @__PURE__ */ d(
|
|
265
|
+
children: [q && /* @__PURE__ */ d(Oe, {
|
|
266
266
|
type: q,
|
|
267
267
|
className: "size-3.5"
|
|
268
268
|
}), q?.name ?? St("type")]
|
|
@@ -271,18 +271,18 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Je = "", defaultBody: g
|
|
|
271
271
|
/* @__PURE__ */ d(s, {
|
|
272
272
|
open: J === "status",
|
|
273
273
|
onOpenChange: (e) => Y(e ? "status" : null),
|
|
274
|
-
items:
|
|
274
|
+
items: Qe.map((e) => ({
|
|
275
275
|
value: e.id,
|
|
276
276
|
label: e.name,
|
|
277
|
-
icon: /* @__PURE__ */ d(
|
|
277
|
+
icon: /* @__PURE__ */ d(le, { category: e.category })
|
|
278
278
|
})),
|
|
279
|
-
value:
|
|
279
|
+
value: Z?.id ?? null,
|
|
280
280
|
onValueChange: (e) => e !== null && lt(e),
|
|
281
281
|
placeholder: k("changeStatus"),
|
|
282
282
|
trigger: /* @__PURE__ */ f("button", {
|
|
283
283
|
type: "button",
|
|
284
284
|
className: $,
|
|
285
|
-
children: [
|
|
285
|
+
children: [Z && /* @__PURE__ */ d(le, { category: Z.category }), Z?.name ?? A("status")]
|
|
286
286
|
})
|
|
287
287
|
}),
|
|
288
288
|
/* @__PURE__ */ d(s, {
|
|
@@ -297,7 +297,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Je = "", defaultBody: g
|
|
|
297
297
|
].map((e) => ({
|
|
298
298
|
value: String(e),
|
|
299
299
|
label: at[e] ?? "",
|
|
300
|
-
icon: /* @__PURE__ */ d(
|
|
300
|
+
icon: /* @__PURE__ */ d(ce, { priority: e })
|
|
301
301
|
})),
|
|
302
302
|
value: String(P),
|
|
303
303
|
onValueChange: (e) => e !== null && ut(Number(e)),
|
|
@@ -305,7 +305,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Je = "", defaultBody: g
|
|
|
305
305
|
trigger: /* @__PURE__ */ f("button", {
|
|
306
306
|
type: "button",
|
|
307
307
|
className: $,
|
|
308
|
-
children: [/* @__PURE__ */ d(
|
|
308
|
+
children: [/* @__PURE__ */ d(ce, { priority: P }), P ? at[P] : A("priority")]
|
|
309
309
|
})
|
|
310
310
|
}),
|
|
311
311
|
/* @__PURE__ */ d(s, {
|
|
@@ -321,7 +321,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Je = "", defaultBody: g
|
|
|
321
321
|
trigger: /* @__PURE__ */ f("button", {
|
|
322
322
|
type: "button",
|
|
323
323
|
className: $,
|
|
324
|
-
children: [/* @__PURE__ */ d(
|
|
324
|
+
children: [/* @__PURE__ */ d(de, { className: "size-3.5" }), B.length ? k("assignedCount", { count: B.length }) : A("assignee")]
|
|
325
325
|
})
|
|
326
326
|
}),
|
|
327
327
|
/* @__PURE__ */ d(s, {
|
|
@@ -333,7 +333,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Je = "", defaultBody: g
|
|
|
333
333
|
label: e.name,
|
|
334
334
|
icon: /* @__PURE__ */ f("span", {
|
|
335
335
|
className: "flex items-center gap-2",
|
|
336
|
-
children: [/* @__PURE__ */ d(
|
|
336
|
+
children: [/* @__PURE__ */ d(ge, {}), /* @__PURE__ */ d("span", {
|
|
337
337
|
className: "size-2.5 rounded-full",
|
|
338
338
|
style: { background: e.color }
|
|
339
339
|
})]
|
|
@@ -347,13 +347,13 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Je = "", defaultBody: g
|
|
|
347
347
|
trigger: /* @__PURE__ */ f("button", {
|
|
348
348
|
type: "button",
|
|
349
349
|
className: $,
|
|
350
|
-
children: [/* @__PURE__ */ d(
|
|
350
|
+
children: [/* @__PURE__ */ d(ue, { className: "size-3.5" }), V.length ? k("labelCount", { count: V.length }) : A("labels")]
|
|
351
351
|
})
|
|
352
352
|
}),
|
|
353
353
|
z !== "none" && /* @__PURE__ */ d(s, {
|
|
354
354
|
open: J === "estimate",
|
|
355
355
|
onOpenChange: (e) => Y(e ? "estimate" : null),
|
|
356
|
-
items: [0, ...
|
|
356
|
+
items: [0, ...me(z)].map((e) => ({
|
|
357
357
|
value: String(e),
|
|
358
358
|
label: e ? mt(e, z) : R("noEstimate")
|
|
359
359
|
})),
|
|
@@ -363,7 +363,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Je = "", defaultBody: g
|
|
|
363
363
|
trigger: /* @__PURE__ */ f("button", {
|
|
364
364
|
type: "button",
|
|
365
365
|
className: $,
|
|
366
|
-
children: [/* @__PURE__ */ d(
|
|
366
|
+
children: [/* @__PURE__ */ d(ae, { className: "size-3.5" }), F ? mt(F, z) : R("estimate")]
|
|
367
367
|
})
|
|
368
368
|
}),
|
|
369
369
|
Rt?.cyclesEnabled && /* @__PURE__ */ d(s, {
|
|
@@ -386,7 +386,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Je = "", defaultBody: g
|
|
|
386
386
|
trigger: /* @__PURE__ */ f("button", {
|
|
387
387
|
type: "button",
|
|
388
388
|
className: $,
|
|
389
|
-
children: [/* @__PURE__ */ d(
|
|
389
|
+
children: [/* @__PURE__ */ d(ie, { className: "size-3.5" }), _t ? vt(_t) : R("cycleLabel")]
|
|
390
390
|
})
|
|
391
391
|
}),
|
|
392
392
|
/* @__PURE__ */ d(Le, {
|
|
@@ -396,7 +396,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Je = "", defaultBody: g
|
|
|
396
396
|
trigger: /* @__PURE__ */ f("button", {
|
|
397
397
|
type: "button",
|
|
398
398
|
className: $,
|
|
399
|
-
children: [/* @__PURE__ */ d(
|
|
399
|
+
children: [/* @__PURE__ */ d(re, { className: "size-3.5" }), I ? R("dueOn", { date: ht.day(I) }) : R("dueDate")]
|
|
400
400
|
})
|
|
401
401
|
}),
|
|
402
402
|
/* @__PURE__ */ d(Ae, { onFiles: (e) => void Ft(e) })
|