@parallelworks/tandem-web 0.171.0 → 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/_virtual/_virtual_i18n/en/common.js +1 -0
- package/_virtual/_virtual_i18n/es/common.js +1 -0
- package/_virtual/_virtual_i18n/ja/common.js +1 -0
- package/_virtual/_virtual_i18n/ko/common.js +1 -0
- package/_virtual/_virtual_i18n/zh/common.js +1 -0
- 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 +103 -99
- 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/assigneeOrder.js +6 -0
- package/lib/assignees.js +24 -20
- 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
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { api as e, unwrap as t } from "../api/client.js";
|
|
2
|
-
import {
|
|
3
|
-
import { cyclesQuery as r, issueTemplatesQuery as i, labelsQuery as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { scalePoints as he, useEstimateLabel as ge } from "./Planning.js";
|
|
8
|
-
import { PickManyBox as _e, usePickMany as ve } from "../lib/pickMany.js";
|
|
9
|
-
import { parseAssigneeKey as ye, useAssigneeOptions as be } from "../lib/assignees.js";
|
|
10
|
-
import { attachmentPrefix as xe, insertPreviews as Se, readDataURL as Ce, uploadAttachment as we } from "../lib/attachments.js";
|
|
11
|
-
import { useCan as Te } from "../lib/roles.js";
|
|
2
|
+
import { invalidateIssueViews as n } from "../api/mutations.js";
|
|
3
|
+
import { cyclesQuery as r, issueTemplatesQuery as i, labelsQuery as ee, myTeamsQuery as a, statusesQuery as te, teamsQuery as ne } from "../api/queries.js";
|
|
4
|
+
import { parseAssigneeKey as re, useAssigneeOptions as ie } from "../lib/assignees.js";
|
|
5
|
+
import { attachmentPrefix as ae, insertPreviews as oe, readDataURL as se, uploadAttachment as ce } from "../lib/attachments.js";
|
|
6
|
+
import { useConfirm as le } from "../lib/confirm.js";
|
|
12
7
|
import { hasValue as o } from "../lib/customFields.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
8
|
+
import { issueTypesQuery as ue, typesFor as de } from "../lib/issueTypes.js";
|
|
9
|
+
import { withoutLink as fe } from "../lib/markdownLinks.js";
|
|
10
|
+
import { PickManyBox as pe, usePickMany as me } from "../lib/pickMany.js";
|
|
11
|
+
import { useCan as he } from "../lib/roles.js";
|
|
12
|
+
import { useNavigate as ge } from "../lib/router.js";
|
|
13
|
+
import { useTime as _e } from "../lib/time.js";
|
|
14
|
+
import { AttachButton as ve, useAttachmentsOn as ye } from "./Attachments.js";
|
|
15
|
+
import { NewIssueFields as be } from "./CustomFields.js";
|
|
16
|
+
import { Editor as xe } from "./Editor.js";
|
|
17
|
+
import { TypeIcon as Se } from "./IssueTypes.js";
|
|
18
|
+
import { CalendarIcon as Ce, CycleIcon as we, EstimateIcon as Te, FileTextIcon as Ee, FolderIcon as De, PriorityIcon as Oe, StatusIcon as ke, TagIcon as Ae, UserIcon as je, usePriorityNames as Me } from "./icons.js";
|
|
19
|
+
import { scalePoints as Ne, useEstimateLabel as Pe } from "./Planning.js";
|
|
20
20
|
import { TeamForm as Fe } from "./TeamForm.js";
|
|
21
21
|
import { Button as Ie, Combobox as s, CreateModal as Le, DatePicker as Re, Modal as ze, buttonClasses as Be, toast as Ve } from "@parallelworks/ui";
|
|
22
22
|
import { useEffect as He, useRef as c, useState as l } from "react";
|
|
@@ -26,19 +26,19 @@ import { Fragment as We, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
|
26
26
|
import { useQuery as p, useQueryClient as Ge, useSuspenseQuery as Ke } from "@tanstack/react-query";
|
|
27
27
|
// src/components/NewIssueDialog.tsx
|
|
28
28
|
function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g = "", defaultArea: _, origin: v, defaults: y = {}, onCreated: Xe, onClose: b }) {
|
|
29
|
-
let { data: Ze } = Ke(
|
|
29
|
+
let { data: Ze } = Ke(a(m)), { data: Qe = [] } = p(ne(m)), $e = h && !Ze.some((e) => e.key === h) ? Qe.find((e) => e.key === h) : void 0, x = [...Ze, ...$e ? [$e] : []].filter((e) => !e.archivedAt), S = !Ye && !g && !_ && !v && Object.keys(y).length === 0, [C] = l(() => S ? qe(m) : void 0), [w, et] = l(h ?? x.find((e) => e.key === C?.team)?.key ?? x[0]?.key ?? ""), { data: T = [] } = p({
|
|
30
30
|
...te(m, w),
|
|
31
31
|
enabled: !!w
|
|
32
|
-
}), { data: tt = [] } = p(
|
|
32
|
+
}), { data: tt = [] } = p(ee(m)), { data: E = [] } = p({
|
|
33
33
|
...i(m, w),
|
|
34
34
|
enabled: !!w
|
|
35
|
-
}), [D, nt] = l(null), rt = E.find((e) => e.id === D), [O, it] = l(Ye || C?.title || ""), k = c(O), at = u("issueTemplates"), ot =
|
|
35
|
+
}), [D, nt] = l(null), rt = E.find((e) => e.id === D), [O, it] = l(Ye || C?.title || ""), k = c(O), at = u("issueTemplates"), ot = ie(m, !0), st = Me(), A = u("newIssue"), ct = Ue(), j = u("common"), M = he(m, "manage_teams"), [N, P] = l(g || C?.body || ""), lt = c(N), [ut, dt] = l(y.statusId ?? null), [F, ft] = l(y.priority ?? 0), [I, pt] = l(0), [L, mt] = l(""), [R, ht] = l(y.cycleId ?? ""), z = u("planning"), gt = Pe(), _t = _e(), { data: vt = [] } = p({
|
|
36
36
|
...r(m, w),
|
|
37
37
|
enabled: !!x.find((e) => e.key === w)?.cyclesEnabled
|
|
38
38
|
}), yt = vt.find((e) => e.id === R), bt = (e) => e.name ? z("cycleNamed", {
|
|
39
39
|
number: e.number,
|
|
40
40
|
name: e.name
|
|
41
|
-
}) : z("cycle", { number: e.number }), B = x.find((e) => e.key === w)?.estimateScale ?? "none", [V, xt] = l(y.assignees ?? []), [H, St] = l(y.labelIds ?? []), [U, W] = l({}), [G, Ct] = l(null), { data: wt } = p(
|
|
41
|
+
}) : z("cycle", { number: e.number }), B = x.find((e) => e.key === w)?.estimateScale ?? "none", [V, xt] = l(y.assignees ?? []), [H, St] = l(y.labelIds ?? []), [U, W] = l({}), [G, Ct] = l(null), { data: wt } = p(ue(m)), K = de(wt, x.find((e) => e.key === w)?.id), q = K.find((e) => e.id === G), Tt = u("issueTypes"), [J, Y] = l(null), Et = me(J === "assignees", () => Y(null)), Dt = me(J === "labels", () => Y(null)), [Ot, kt] = l(null), At = Ge(), jt = ge(), { confirm: Mt, dialog: Nt } = le(), Pt = c(!1);
|
|
42
42
|
He(() => {
|
|
43
43
|
let e = () => {
|
|
44
44
|
S && Je(m, {
|
|
@@ -87,24 +87,24 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
|
|
|
87
87
|
title: "",
|
|
88
88
|
body: ""
|
|
89
89
|
}), b();
|
|
90
|
-
}, X = T.find((e) => e.id === ut) ?? T.find((e) => e.category === "unstarted"), Z = c(null), Q = c(/* @__PURE__ */ new Map()), It =
|
|
90
|
+
}, X = T.find((e) => e.id === ut) ?? T.find((e) => e.category === "unstarted"), Z = c(null), Q = c(/* @__PURE__ */ new Map()), It = ye(), Lt = u("issue.attachments"), Rt = async (e, t) => {
|
|
91
91
|
if (!It) {
|
|
92
92
|
Ve.error(Lt("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
99
|
for (let { file: e, src: t } of n) Q.current.set(t, e);
|
|
100
|
-
Z.current && !Z.current.isDestroyed &&
|
|
100
|
+
Z.current && !Z.current.isDestroyed && oe(Z.current, n, t);
|
|
101
101
|
}, zt = async (t) => {
|
|
102
102
|
let n = N;
|
|
103
103
|
for (let [e, r] of Q.current) if (N.includes(e)) try {
|
|
104
|
-
let i = await
|
|
105
|
-
n = n.replaceAll(`(${e})`, `(${
|
|
104
|
+
let i = await ce(m, t, r);
|
|
105
|
+
n = n.replaceAll(`(${e})`, `(${ae}${i.id})`);
|
|
106
106
|
} catch (t) {
|
|
107
|
-
n =
|
|
107
|
+
n = fe(n, e), Ve.error(A("attachFailed", {
|
|
108
108
|
name: r.name,
|
|
109
109
|
reason: ct(t)
|
|
110
110
|
}));
|
|
@@ -116,10 +116,10 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
|
|
|
116
116
|
} },
|
|
117
117
|
body: { body: n }
|
|
118
118
|
});
|
|
119
|
-
}, Bt = async (
|
|
119
|
+
}, Bt = async (r, i) => {
|
|
120
120
|
if (!w) return !1;
|
|
121
121
|
kt(null);
|
|
122
|
-
let
|
|
122
|
+
let ee = [...Q.current.keys()].filter((e) => N.includes(e));
|
|
123
123
|
try {
|
|
124
124
|
let a = t(await e.POST("/api/v1/workspaces/{workspace}/teams/{key}/issues", {
|
|
125
125
|
params: { path: {
|
|
@@ -127,15 +127,15 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
|
|
|
127
127
|
key: w
|
|
128
128
|
} },
|
|
129
129
|
body: {
|
|
130
|
-
title:
|
|
131
|
-
body:
|
|
130
|
+
title: r,
|
|
131
|
+
body: ee.reduce(fe, N),
|
|
132
132
|
priority: F,
|
|
133
133
|
...X && { statusId: X.id },
|
|
134
|
-
assignees: V.map(
|
|
134
|
+
assignees: V.map(re),
|
|
135
135
|
labelIds: H,
|
|
136
136
|
...q && { typeId: q.id },
|
|
137
137
|
...Object.values(U).some(o) && { fields: Object.fromEntries(Object.entries(U).filter(([, e]) => o(e))) },
|
|
138
|
-
...I &&
|
|
138
|
+
...I && Ne(B).includes(I) && { estimate: I },
|
|
139
139
|
...L && { dueDate: L },
|
|
140
140
|
...R && { cycleId: R },
|
|
141
141
|
...(!h || w === h) && _ && { area: _ },
|
|
@@ -143,7 +143,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
|
|
|
143
143
|
...(!h || w === h) && y.projectId && { projectId: y.projectId }
|
|
144
144
|
}
|
|
145
145
|
}));
|
|
146
|
-
return
|
|
146
|
+
return ee.length > 0 && await zt(a.identifier), n(At, m, a.identifier), Xe?.(a), i && jt({
|
|
147
147
|
to: "/$workspace/issues/$identifier",
|
|
148
148
|
params: {
|
|
149
149
|
workspace: m,
|
|
@@ -176,7 +176,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
|
|
|
176
176
|
open: !0,
|
|
177
177
|
onClose: Ft,
|
|
178
178
|
size: "xl",
|
|
179
|
-
typeIcon: /* @__PURE__ */ d(
|
|
179
|
+
typeIcon: /* @__PURE__ */ d(De, { className: "size-3.5" }),
|
|
180
180
|
typeLabel: Vt?.name ?? "",
|
|
181
181
|
typeMenu: x.map((e) => ({
|
|
182
182
|
label: e.name,
|
|
@@ -198,7 +198,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
|
|
|
198
198
|
submitLabel: A("create"),
|
|
199
199
|
descriptionField: /* @__PURE__ */ f("div", {
|
|
200
200
|
className: "min-h-24 pb-2",
|
|
201
|
-
children: [/* @__PURE__ */ d(
|
|
201
|
+
children: [/* @__PURE__ */ d(xe, {
|
|
202
202
|
value: N,
|
|
203
203
|
onChange: P,
|
|
204
204
|
onFiles: (e, t) => void Rt(e, t),
|
|
@@ -209,7 +209,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
|
|
|
209
209
|
placeholder: A("descriptionPlaceholder"),
|
|
210
210
|
label: j("description"),
|
|
211
211
|
className: "min-h-24"
|
|
212
|
-
}), /* @__PURE__ */ d(
|
|
212
|
+
}), /* @__PURE__ */ d(be, {
|
|
213
213
|
workspace: m,
|
|
214
214
|
teamId: x.find((e) => e.key === w)?.id,
|
|
215
215
|
typeId: G,
|
|
@@ -228,7 +228,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
|
|
|
228
228
|
items: E.map((e) => ({
|
|
229
229
|
value: e.id,
|
|
230
230
|
label: e.name,
|
|
231
|
-
icon: /* @__PURE__ */ d(
|
|
231
|
+
icon: /* @__PURE__ */ d(Ee, { className: "size-3.5 text-muted-foreground" })
|
|
232
232
|
})),
|
|
233
233
|
value: D,
|
|
234
234
|
onValueChange: (e) => {
|
|
@@ -239,7 +239,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
|
|
|
239
239
|
trigger: /* @__PURE__ */ f("button", {
|
|
240
240
|
type: "button",
|
|
241
241
|
className: $,
|
|
242
|
-
children: [/* @__PURE__ */ d(
|
|
242
|
+
children: [/* @__PURE__ */ d(Ee, { className: "size-3.5" }), rt?.name ?? at("choose")]
|
|
243
243
|
})
|
|
244
244
|
}),
|
|
245
245
|
K.length > 0 && /* @__PURE__ */ d(s, {
|
|
@@ -248,7 +248,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", 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(Se, {
|
|
252
252
|
type: e,
|
|
253
253
|
className: "size-3.5"
|
|
254
254
|
})
|
|
@@ -262,7 +262,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", 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(Se, {
|
|
266
266
|
type: q,
|
|
267
267
|
className: "size-3.5"
|
|
268
268
|
}), q?.name ?? Tt("type")]
|
|
@@ -274,7 +274,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
|
|
|
274
274
|
items: T.map((e) => ({
|
|
275
275
|
value: e.id,
|
|
276
276
|
label: e.name,
|
|
277
|
-
icon: /* @__PURE__ */ d(
|
|
277
|
+
icon: /* @__PURE__ */ d(ke, {
|
|
278
278
|
category: e.category,
|
|
279
279
|
step: e.step
|
|
280
280
|
})
|
|
@@ -285,7 +285,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
|
|
|
285
285
|
trigger: /* @__PURE__ */ f("button", {
|
|
286
286
|
type: "button",
|
|
287
287
|
className: $,
|
|
288
|
-
children: [X && /* @__PURE__ */ d(
|
|
288
|
+
children: [X && /* @__PURE__ */ d(ke, {
|
|
289
289
|
category: X.category,
|
|
290
290
|
step: X.step
|
|
291
291
|
}), X?.name ?? j("status")]
|
|
@@ -303,7 +303,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
|
|
|
303
303
|
].map((e) => ({
|
|
304
304
|
value: String(e),
|
|
305
305
|
label: st[e] ?? "",
|
|
306
|
-
icon: /* @__PURE__ */ d(
|
|
306
|
+
icon: /* @__PURE__ */ d(Oe, { priority: e })
|
|
307
307
|
})),
|
|
308
308
|
value: String(F),
|
|
309
309
|
onValueChange: (e) => e !== null && ft(Number(e)),
|
|
@@ -311,7 +311,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
|
|
|
311
311
|
trigger: /* @__PURE__ */ f("button", {
|
|
312
312
|
type: "button",
|
|
313
313
|
className: $,
|
|
314
|
-
children: [/* @__PURE__ */ d(
|
|
314
|
+
children: [/* @__PURE__ */ d(Oe, { priority: F }), F ? st[F] : j("priority")]
|
|
315
315
|
})
|
|
316
316
|
}),
|
|
317
317
|
/* @__PURE__ */ d(s, {
|
|
@@ -327,7 +327,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
|
|
|
327
327
|
trigger: /* @__PURE__ */ f("button", {
|
|
328
328
|
type: "button",
|
|
329
329
|
className: $,
|
|
330
|
-
children: [/* @__PURE__ */ d(
|
|
330
|
+
children: [/* @__PURE__ */ d(je, { className: "size-3.5" }), V.length ? A("assignedCount", { count: V.length }) : j("assignee")]
|
|
331
331
|
})
|
|
332
332
|
}),
|
|
333
333
|
/* @__PURE__ */ d(s, {
|
|
@@ -339,7 +339,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
|
|
|
339
339
|
label: e.name,
|
|
340
340
|
icon: /* @__PURE__ */ f("span", {
|
|
341
341
|
className: "flex items-center gap-2",
|
|
342
|
-
children: [/* @__PURE__ */ d(
|
|
342
|
+
children: [/* @__PURE__ */ d(pe, {}), /* @__PURE__ */ d("span", {
|
|
343
343
|
className: "size-2.5 rounded-full",
|
|
344
344
|
style: { background: e.color }
|
|
345
345
|
})]
|
|
@@ -353,13 +353,13 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
|
|
|
353
353
|
trigger: /* @__PURE__ */ f("button", {
|
|
354
354
|
type: "button",
|
|
355
355
|
className: $,
|
|
356
|
-
children: [/* @__PURE__ */ d(
|
|
356
|
+
children: [/* @__PURE__ */ d(Ae, { className: "size-3.5" }), H.length ? A("labelCount", { count: H.length }) : j("labels")]
|
|
357
357
|
})
|
|
358
358
|
}),
|
|
359
359
|
B !== "none" && /* @__PURE__ */ d(s, {
|
|
360
360
|
open: J === "estimate",
|
|
361
361
|
onOpenChange: (e) => Y(e ? "estimate" : null),
|
|
362
|
-
items: [0, ...
|
|
362
|
+
items: [0, ...Ne(B)].map((e) => ({
|
|
363
363
|
value: String(e),
|
|
364
364
|
label: e ? gt(e, B) : z("noEstimate")
|
|
365
365
|
})),
|
|
@@ -369,7 +369,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
|
|
|
369
369
|
trigger: /* @__PURE__ */ f("button", {
|
|
370
370
|
type: "button",
|
|
371
371
|
className: $,
|
|
372
|
-
children: [/* @__PURE__ */ d(
|
|
372
|
+
children: [/* @__PURE__ */ d(Te, { className: "size-3.5" }), I ? gt(I, B) : z("estimate")]
|
|
373
373
|
})
|
|
374
374
|
}),
|
|
375
375
|
Vt?.cyclesEnabled && /* @__PURE__ */ d(s, {
|
|
@@ -392,7 +392,7 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
|
|
|
392
392
|
trigger: /* @__PURE__ */ f("button", {
|
|
393
393
|
type: "button",
|
|
394
394
|
className: $,
|
|
395
|
-
children: [/* @__PURE__ */ d(
|
|
395
|
+
children: [/* @__PURE__ */ d(we, { className: "size-3.5" }), yt ? bt(yt) : z("cycleLabel")]
|
|
396
396
|
})
|
|
397
397
|
}),
|
|
398
398
|
/* @__PURE__ */ d(Re, {
|
|
@@ -402,10 +402,10 @@ function m({ workspace: m, defaultTeam: h, defaultTitle: Ye = "", defaultBody: g
|
|
|
402
402
|
trigger: /* @__PURE__ */ f("button", {
|
|
403
403
|
type: "button",
|
|
404
404
|
className: $,
|
|
405
|
-
children: [/* @__PURE__ */ d(
|
|
405
|
+
children: [/* @__PURE__ */ d(Ce, { className: "size-3.5" }), L ? z("dueOn", { date: _t.day(L) }) : z("dueDate")]
|
|
406
406
|
})
|
|
407
407
|
}),
|
|
408
|
-
/* @__PURE__ */ d(
|
|
408
|
+
/* @__PURE__ */ d(ve, { onFiles: (e) => void Rt(e) })
|
|
409
409
|
] })
|
|
410
410
|
}), Nt] });
|
|
411
411
|
}
|