@parallelworks/tandem-web 0.150.2 → 0.151.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.
Files changed (110) hide show
  1. package/_virtual/_virtual_i18n/en/common.js +32 -3
  2. package/_virtual/_virtual_i18n/es/common.js +32 -3
  3. package/_virtual/_virtual_i18n/ja/common.js +32 -3
  4. package/_virtual/_virtual_i18n/ko/common.js +32 -3
  5. package/_virtual/_virtual_i18n/zh/common.js +32 -3
  6. package/api/queries.js +88 -77
  7. package/components/AccessGrants.js +6 -6
  8. package/components/ActivityTimeline.js +4 -4
  9. package/components/AgentWork.js +111 -111
  10. package/components/AreaLink.js +32 -0
  11. package/components/AreaTiles.js +10 -13
  12. package/components/AreaWork.js +25 -1
  13. package/components/BugRotation.js +3 -3
  14. package/components/CodeHostSettings.js +30 -30
  15. package/components/CommandPalette.js +53 -53
  16. package/components/CustomFields.js +116 -116
  17. package/components/DateChip.js +11 -11
  18. package/components/DocButton.js +6 -6
  19. package/components/DocHistory.js +4 -4
  20. package/components/DocLinkPicker.js +8 -8
  21. package/components/DocProperties.js +15 -15
  22. package/components/DocTable.js +15 -15
  23. package/components/DocsTree.js +80 -80
  24. package/components/Editor.js +35 -35
  25. package/components/FavoritesNav.js +53 -53
  26. package/components/GitHub.js +18 -18
  27. package/components/Graph.js +15 -15
  28. package/components/HostActions.js +21 -21
  29. package/components/HostPanel.js +6 -6
  30. package/components/HoverCards.js +38 -38
  31. package/components/IssueBoard.js +4 -4
  32. package/components/IssueCode.js +14 -14
  33. package/components/IssueEvent.js +3 -3
  34. package/components/IssueFilters.js +71 -71
  35. package/components/IssueListBlock.js +32 -32
  36. package/components/IssueRow.js +21 -21
  37. package/components/IssueTemplates.js +118 -118
  38. package/components/IssueTypes.js +40 -40
  39. package/components/NewIssueDialog.js +76 -76
  40. package/components/NewProjectDialog.js +145 -145
  41. package/components/PersonActivity.js +4 -4
  42. package/components/SharedViewer.js +5 -5
  43. package/components/SlashMenu.js +29 -29
  44. package/components/TeamRepositories.js +51 -51
  45. package/components/TeamWorkflow.js +6 -6
  46. package/components/UnlinkedMentions.js +20 -20
  47. package/components/Updates.js +3 -3
  48. package/components/Widgets.js +20 -20
  49. package/components/columns.js +17 -17
  50. package/components/editorPlugins.js +80 -80
  51. package/components/mathDiagrams.js +17 -17
  52. package/lib/boardMove.js +5 -5
  53. package/lib/issueList.js +58 -58
  54. package/lib/issueMenu.js +27 -27
  55. package/lib/knowledge.js +106 -106
  56. package/lib/views.js +9 -9
  57. package/package.json +2 -2
  58. package/pages/area.js +291 -0
  59. package/pages/areas.js +258 -287
  60. package/pages/decisions.js +21 -21
  61. package/pages/issues.js +52 -52
  62. package/pages/projects.js +125 -125
  63. package/pages/triage.js +12 -12
  64. package/routeTree.gen.js +186 -180
  65. package/routes/_workspace/agents/_slug2.js +11 -11
  66. package/routes/_workspace/agents/index2.js +10 -10
  67. package/routes/_workspace/areas/_area.js +7 -8
  68. package/routes/_workspace/areas/_area2.js +3 -290
  69. package/routes/_workspace/areas/_area3.js +7 -8
  70. package/routes/_workspace/docs/_doc2.js +230 -230
  71. package/routes/_workspace/docs/space2._space.js +27 -27
  72. package/routes/_workspace/issues/_identifier2.js +222 -224
  73. package/routes/_workspace/knowledge/_term2.js +43 -43
  74. package/routes/_workspace/knowledge/index.js +6 -6
  75. package/routes/_workspace/knowledge/index2.js +15 -15
  76. package/routes/_workspace/measures3.js +70 -72
  77. package/routes/_workspace/notifications2.js +150 -150
  78. package/routes/_workspace/people/_username2.js +10 -10
  79. package/routes/_workspace/projects/_projectId3.js +276 -276
  80. package/routes/_workspace/settings/audit-log3.js +136 -138
  81. package/routes/_workspace/settings/fields2.js +11 -11
  82. package/routes/_workspace/settings/github2.js +6 -6
  83. package/routes/_workspace/settings/groups2.js +26 -26
  84. package/routes/_workspace/settings/import2.js +398 -147
  85. package/routes/_workspace/settings/import3.js +7 -3
  86. package/routes/_workspace/settings/index2.js +6 -6
  87. package/routes/_workspace/settings/labels2.js +21 -21
  88. package/routes/_workspace/settings/members2.js +27 -27
  89. package/routes/_workspace/settings/notifications2.js +8 -8
  90. package/routes/_workspace/settings/parallelworks2.js +32 -32
  91. package/routes/_workspace/settings/roles2.js +24 -24
  92. package/routes/_workspace/settings/runners2.js +15 -15
  93. package/routes/_workspace/settings/sessions2.js +17 -17
  94. package/routes/_workspace/settings/slack2.js +7 -7
  95. package/routes/_workspace/settings/sso2.js +31 -31
  96. package/routes/_workspace/settings/teams2.js +25 -25
  97. package/routes/_workspace/settings/tokens2.js +12 -12
  98. package/routes/_workspace/settings/webhooks2.js +13 -13
  99. package/routes/_workspace/teams/_key/areas/_area.js +8 -0
  100. package/routes/_workspace/teams/_key/areas/_area2.js +4 -0
  101. package/routes/_workspace/teams/_key/areas/_area3.js +9 -0
  102. package/routes/_workspace/teams/_key/areas/index.js +6 -0
  103. package/routes/_workspace/teams/_key/areas/index2.js +4 -0
  104. package/routes/_workspace/teams/_key/{areas3.js → areas/index3.js} +2 -2
  105. package/routes/_workspace/teams/_key/cycles/_number2.js +27 -27
  106. package/routes/_workspace/teams/_key/cycles/index2.js +24 -24
  107. package/routes/_workspace/teams/_key/settings2.js +29 -29
  108. package/routes/_workspace2.js +368 -368
  109. package/routes/_workspace/teams/_key/areas.js +0 -6
  110. package/routes/_workspace/teams/_key/areas2.js +0 -4
@@ -2,36 +2,36 @@ import { api as e, unwrap as t } from "../../../api/client.js";
2
2
  import { usePageTitle as n } from "../../../lib/pageTitle.js";
3
3
  import { Link as r, useNavigate as i } from "../../../lib/router.js";
4
4
  import { issuesQuery as a, meQuery as o, projectEventsQuery as s, projectOf as c, projectQuery as l, projectUpdatesQuery as u, projectsQuery as d, teamsQuery as f } from "../../../api/queries.js";
5
- import { useConfirm as p } from "../../../lib/confirm.js";
6
- import { AddIcon as m, AddUserIcon as h, CalendarIcon as g, LinkIcon as _, PriorityIcon as v, ProjectIcon as y, RemoveUserIcon as b, RenameIcon as x, UsersIcon as S, usePriorityNames as C } from "../../../components/icons.js";
7
- import { projectStatuses as w } from "../../../lib/projectStates.js";
8
- import { projectIssueFilter as T, tabs as E } from "./_projectId.js";
9
- import { Route as D } from "./_projectId2.js";
10
- import { copyItem as ee, useLinkItems as te } from "../../../lib/menus.js";
11
- import { invalidateIssueViews as O } from "../../../api/mutations.js";
12
- import { useTime as k } from "../../../lib/time.js";
13
- import { HealthIcon as A, ProgressBar as j, ProjectStatusIcon as M, healthOf as N } from "../../../components/Planning.js";
14
- import { usePeople as P } from "../../../lib/people.js";
15
- import { useCan as ne } from "../../../lib/roles.js";
16
- import { EntityIcon as re } from "../../../components/EntityIcon.js";
17
- import { ProjectFields as ie } from "../../../components/CustomFields.js";
18
- import { projectRef as ae, projectsUnder as oe } from "../../../lib/projects.js";
19
- import { Editor as se } from "../../../components/Editor.js";
20
- import { FavoriteStar as ce } from "../../../components/FavoriteStar.js";
21
- import { Timeline as F, TimelineItem as le, activityIcon as I } from "../../../components/ActivityTimeline.js";
22
- import { useIssuePicker as L } from "../../../lib/issuePicker.js";
23
- import { IssueBreakdown as ue } from "../../../components/IssueBreakdown.js";
24
- import { FollowButton as de } from "../../../components/FollowButton.js";
25
- import { IconUpload as fe } from "../../../components/IconUpload.js";
26
- import { StatusGroups as R } from "../../../components/IssueGroup.js";
27
- import { ProjectAccessDialog as pe } from "../../../components/ProjectAccess.js";
28
- import { Updates as me } from "../../../components/Updates.js";
29
- import { Avatar as z, AvatarGroup as B, Button as V, Card as he, Combobox as H, DatePicker as ge, EmptyState as _e, ErrorText as U, Input as ve, PageHeader as ye, Select as be, Switch as xe, buttonClasses as W, menuDivider as G, useOpenMenu as Se } from "@parallelworks/ui";
30
- import { useEffect as Ce, useState as K } from "react";
31
- import { useErrorMessage as we } from "@parallelworks/problem/react";
32
- import { useTranslations as q } from "use-intl";
33
- import { Fragment as J, jsx as Y, jsxs as X } from "react/jsx-runtime";
34
- import { useMutation as Z, useQuery as Q, useQueryClient as $, useSuspenseQuery as Te } from "@tanstack/react-query";
5
+ import { invalidateIssueViews as p } from "../../../api/mutations.js";
6
+ import { copyItem as m, useLinkItems as h } from "../../../lib/menus.js";
7
+ import { AddIcon as ee, AddUserIcon as g, CalendarIcon as _, LinkIcon as v, PriorityIcon as y, ProjectIcon as b, RemoveUserIcon as x, RenameIcon as S, UsersIcon as C, usePriorityNames as w } from "../../../components/icons.js";
8
+ import { usePeople as T } from "../../../lib/people.js";
9
+ import { useTime as E } from "../../../lib/time.js";
10
+ import { HealthIcon as D, ProgressBar as O, ProjectStatusIcon as k, healthOf as A } from "../../../components/Planning.js";
11
+ import { projectRef as j, projectsUnder as te } from "../../../lib/projects.js";
12
+ import { EntityIcon as ne } from "../../../components/EntityIcon.js";
13
+ import { useCan as re } from "../../../lib/roles.js";
14
+ import { useConfirm as ie } from "../../../lib/confirm.js";
15
+ import { ProjectFields as ae } from "../../../components/CustomFields.js";
16
+ import { Editor as oe } from "../../../components/Editor.js";
17
+ import { projectStatuses as se } from "../../../lib/projectStates.js";
18
+ import { projectIssueFilter as ce, tabs as le } from "./_projectId.js";
19
+ import { Route as M } from "./_projectId2.js";
20
+ import { FavoriteStar as ue } from "../../../components/FavoriteStar.js";
21
+ import { Timeline as N, TimelineItem as de, activityIcon as P } from "../../../components/ActivityTimeline.js";
22
+ import { useIssuePicker as F } from "../../../lib/issuePicker.js";
23
+ import { IssueBreakdown as fe } from "../../../components/IssueBreakdown.js";
24
+ import { FollowButton as pe } from "../../../components/FollowButton.js";
25
+ import { IconUpload as me } from "../../../components/IconUpload.js";
26
+ import { StatusGroups as I } from "../../../components/IssueGroup.js";
27
+ import { ProjectAccessDialog as he } from "../../../components/ProjectAccess.js";
28
+ import { Updates as ge } from "../../../components/Updates.js";
29
+ import { Avatar as L, AvatarGroup as R, Button as z, Card as _e, Combobox as B, DatePicker as ve, EmptyState as ye, ErrorText as V, Input as be, PageHeader as xe, Select as Se, Switch as Ce, buttonClasses as H, menuDivider as U, useOpenMenu as we } from "@parallelworks/ui";
30
+ import { useEffect as Te, useState as W } from "react";
31
+ import { useErrorMessage as G } from "@parallelworks/problem/react";
32
+ import { useTranslations as K } from "use-intl";
33
+ import { Fragment as q, jsx as J, jsxs as Y } from "react/jsx-runtime";
34
+ import { useMutation as X, useQuery as Z, useQueryClient as Q, useSuspenseQuery as $ } from "@tanstack/react-query";
35
35
  import { MoreButton as Ee } from "@parallelworks/ui/list";
36
36
  // src/routes/$workspace/projects/$projectId.tsx?tsr-split=component
37
37
  var De = [
@@ -40,9 +40,9 @@ var De = [
40
40
  "cycles"
41
41
  ];
42
42
  function Oe() {
43
- let { workspace: s, projectId: u } = D.useParams(), f = q("planning"), m = q("common"), h = we(), { data: g } = Te(l(s, u)), _ = ae(g);
43
+ let { workspace: s, projectId: u } = M.useParams(), f = K("planning"), p = K("common"), ee = G(), { data: g } = $(l(s, u)), _ = j(g);
44
44
  n(g.name);
45
- let v = ne(s, "manage_projects", { project: g.id }), b = ne(s, "delete_projects", { project: g.id }), x = $(), S = i(), C = te(), { confirm: w, dialog: O } = p(), [k, A] = K(!1), { data: M } = Te(o), N = !!D.useSearch().own, { data: P } = Q(a(s, T(g.id, N))), { data: oe = [] } = Q(d(s)), F = oe.filter((e) => e.parentId === g.id), le = N || F.length === 0 ? g.progress : g.treeProgress, [I, L] = K("assignees"), R = Z({
45
+ let v = re(s, "manage_projects", { project: g.id }), y = re(s, "delete_projects", { project: g.id }), x = Q(), S = i(), C = h(), { confirm: w, dialog: T } = ie(), [E, D] = W(!1), { data: k } = $(o), A = !!M.useSearch().own, { data: te } = Z(a(s, ce(g.id, A))), { data: se = [] } = Z(d(s)), N = se.filter((e) => e.parentId === g.id), de = A || N.length === 0 ? g.progress : g.treeProgress, [P, F] = W("assignees"), I = X({
46
46
  mutationFn: async (n) => t(await e.PATCH("/api/v1/workspaces/{workspace}/projects/{projectId}", {
47
47
  params: { path: {
48
48
  workspace: s,
@@ -54,7 +54,7 @@ function Oe() {
54
54
  onSettled: () => {
55
55
  x.invalidateQueries({ queryKey: d(s).queryKey });
56
56
  }
57
- }), me = Z({
57
+ }), ge = X({
58
58
  mutationFn: async () => t(await e.DELETE("/api/v1/workspaces/{workspace}/projects/{projectId}", { params: { path: {
59
59
  workspace: s,
60
60
  projectId: u
@@ -65,7 +65,7 @@ function Oe() {
65
65
  params: { workspace: s }
66
66
  });
67
67
  }
68
- }), z = () => [
68
+ }), L = () => [
69
69
  {
70
70
  label: f("viewIssues"),
71
71
  onClick: () => S({
@@ -79,27 +79,27 @@ function Oe() {
79
79
  },
80
80
  ...v ? [{
81
81
  label: g.template ? f("stopTemplate") : f("useAsTemplate"),
82
- onClick: () => R.mutate({ template: !g.template })
82
+ onClick: () => I.mutate({ template: !g.template })
83
83
  }] : [],
84
- ...M?.mode === "platform" ? [] : [{
84
+ ...k?.mode === "platform" ? [] : [{
85
85
  label: f("manageAccess"),
86
- onClick: () => A(!0)
86
+ onClick: () => D(!0)
87
87
  }],
88
- G,
88
+ U,
89
89
  ...C(`/${s}/projects/${_}`),
90
- ee(m("copyName"), g.name),
91
- ...b ? [G, {
90
+ m(p("copyName"), g.name),
91
+ ...y ? [U, {
92
92
  label: f("deleteProject"),
93
93
  destructive: !0,
94
94
  onClick: () => w({
95
95
  title: f("deleteProjectTitle", { name: g.name }),
96
96
  description: f("deleteProjectDescription"),
97
97
  confirmLabel: f("deleteProject"),
98
- onConfirm: () => me.mutateAsync()
98
+ onConfirm: () => ge.mutateAsync()
99
99
  })
100
100
  }] : []
101
- ], B = D.useSearch().tab ?? "overview", V = P?.issues ?? [];
102
- return Ce(() => {
101
+ ], R = M.useSearch().tab ?? "overview", z = te?.issues ?? [];
102
+ return Te(() => {
103
103
  u !== _ && S({
104
104
  to: "/$workspace/projects/$projectId",
105
105
  params: {
@@ -114,104 +114,104 @@ function Oe() {
114
114
  s,
115
115
  u,
116
116
  _
117
- ]), /* @__PURE__ */ X("div", {
117
+ ]), /* @__PURE__ */ Y("div", {
118
118
  className: "flex h-full min-h-0 flex-col",
119
119
  children: [
120
- /* @__PURE__ */ Y(ye, {
120
+ /* @__PURE__ */ J(xe, {
121
121
  heading: !1,
122
122
  breadcrumbs: [{
123
123
  label: f("projects"),
124
124
  href: `/${s}/projects`
125
125
  }, {
126
126
  label: g.name,
127
- icon: g.icon || g.color ? /* @__PURE__ */ Y(re, {
127
+ icon: g.icon || g.color ? /* @__PURE__ */ J(ne, {
128
128
  icon: g.icon ?? "",
129
129
  color: g.color ?? "",
130
130
  name: g.name
131
- }) : /* @__PURE__ */ Y(y, { className: "size-4 text-muted-foreground" })
131
+ }) : /* @__PURE__ */ J(b, { className: "size-4 text-muted-foreground" })
132
132
  }],
133
- titleActions: /* @__PURE__ */ X(J, { children: [
134
- /* @__PURE__ */ Y(ce, {
133
+ titleActions: /* @__PURE__ */ Y(q, { children: [
134
+ /* @__PURE__ */ J(ue, {
135
135
  workspace: s,
136
136
  kind: "project",
137
137
  target: g.id
138
138
  }),
139
- /* @__PURE__ */ Y(de, {
139
+ /* @__PURE__ */ J(pe, {
140
140
  workspace: s,
141
141
  project: g.id
142
142
  }),
143
- /* @__PURE__ */ Y(Ee, {
144
- items: z,
145
- label: m("moreActionsFor", { name: g.name }),
143
+ /* @__PURE__ */ J(Ee, {
144
+ items: L,
145
+ label: p("moreActionsFor", { name: g.name }),
146
146
  visible: !0
147
147
  })
148
148
  ] }),
149
- actions: R.isPending && /* @__PURE__ */ Y("span", {
149
+ actions: I.isPending && /* @__PURE__ */ J("span", {
150
150
  className: "text-xs text-muted-foreground",
151
- children: m("saving")
151
+ children: p("saving")
152
152
  })
153
153
  }),
154
- /* @__PURE__ */ Y("nav", {
154
+ /* @__PURE__ */ J("nav", {
155
155
  "aria-label": f("projectSections"),
156
156
  className: "flex shrink-0 gap-1 border-b border-border px-4 py-2 md:px-5",
157
- children: E.map((e) => /* @__PURE__ */ X(r, {
157
+ children: le.map((e) => /* @__PURE__ */ Y(r, {
158
158
  to: "/$workspace/projects/$projectId",
159
159
  params: {
160
160
  workspace: s,
161
161
  projectId: u
162
162
  },
163
163
  search: e === "overview" ? {} : { tab: e },
164
- "aria-current": B === e ? "page" : void 0,
164
+ "aria-current": R === e ? "page" : void 0,
165
165
  activeOptions: { exact: !0 },
166
166
  className: "h-7 rounded-full px-3 text-xs leading-7 text-muted-foreground hover:bg-muted hover:text-foreground aria-[current=page]:bg-muted aria-[current=page]:text-foreground",
167
- children: [f(`projectTabs.${e}`), e === "issues" && V.length > 0 && /* @__PURE__ */ Y("span", {
167
+ children: [f(`projectTabs.${e}`), e === "issues" && z.length > 0 && /* @__PURE__ */ J("span", {
168
168
  className: "ml-1 tabular-nums",
169
- children: V.length
169
+ children: z.length
170
170
  })]
171
171
  }, e))
172
172
  }),
173
- /* @__PURE__ */ X("div", {
173
+ /* @__PURE__ */ Y("div", {
174
174
  className: "flex min-h-0 flex-1 flex-col overflow-y-auto xl:flex-row xl:overflow-hidden",
175
- children: [/* @__PURE__ */ X("div", {
176
- className: B === "issues" ? "w-full min-w-0 pb-16 xl:flex-1 xl:overflow-y-auto" : "w-full min-w-0 px-4 pt-6 pb-16 md:px-8 md:pt-8 xl:flex-1 xl:overflow-y-auto",
175
+ children: [/* @__PURE__ */ Y("div", {
176
+ className: R === "issues" ? "w-full min-w-0 pb-16 xl:flex-1 xl:overflow-y-auto" : "w-full min-w-0 px-4 pt-6 pb-16 md:px-8 md:pt-8 xl:flex-1 xl:overflow-y-auto",
177
177
  children: [
178
- B === "overview" && /* @__PURE__ */ X(J, { children: [
179
- /* @__PURE__ */ X("div", {
178
+ R === "overview" && /* @__PURE__ */ Y(q, { children: [
179
+ /* @__PURE__ */ Y("div", {
180
180
  className: "flex items-center gap-3",
181
- children: [/* @__PURE__ */ Y(fe, {
181
+ children: [/* @__PURE__ */ J(me, {
182
182
  workspace: s,
183
183
  icon: g.icon ?? "",
184
184
  name: g.name,
185
- onChange: (e) => R.mutateAsync({
185
+ onChange: (e) => I.mutateAsync({
186
186
  icon: e,
187
187
  color: ""
188
188
  }),
189
189
  disabled: !v,
190
190
  size: 40
191
- }), /* @__PURE__ */ Y(ke, {
191
+ }), /* @__PURE__ */ J(ke, {
192
192
  project: g,
193
193
  canWrite: v,
194
- onSave: (e) => R.mutate({ name: e })
194
+ onSave: (e) => I.mutate({ name: e })
195
195
  })]
196
196
  }),
197
- /* @__PURE__ */ Y(Ae, {
197
+ /* @__PURE__ */ J(Ae, {
198
198
  project: g,
199
199
  canWrite: v,
200
- onSave: (e) => R.mutate({ summary: e })
200
+ onSave: (e) => I.mutate({ summary: e })
201
201
  }),
202
- /* @__PURE__ */ Y(je, {
202
+ /* @__PURE__ */ J(je, {
203
203
  workspace: s,
204
204
  project: g,
205
205
  canWrite: v,
206
- update: (e) => R.mutate(e)
206
+ update: (e) => I.mutate(e)
207
207
  }),
208
- /* @__PURE__ */ Y(Ne, {
208
+ /* @__PURE__ */ J(Ne, {
209
209
  workspace: s,
210
210
  project: g
211
211
  }),
212
- /* @__PURE__ */ Y("div", {
212
+ /* @__PURE__ */ J("div", {
213
213
  className: "mt-4",
214
- children: /* @__PURE__ */ Y(ie, {
214
+ children: /* @__PURE__ */ J(ae, {
215
215
  workspace: s,
216
216
  project: g,
217
217
  editable: v,
@@ -220,20 +220,20 @@ function Oe() {
220
220
  }
221
221
  })
222
222
  }),
223
- R.isError && /* @__PURE__ */ Y(U, {
223
+ I.isError && /* @__PURE__ */ J(V, {
224
224
  size: "md",
225
225
  className: "mt-2",
226
- children: h(R.error)
226
+ children: ee(I.error)
227
227
  }),
228
- /* @__PURE__ */ X("section", {
228
+ /* @__PURE__ */ Y("section", {
229
229
  className: "mt-6",
230
230
  "aria-label": f("progressTitle"),
231
- children: [/* @__PURE__ */ Y(j, { progress: le }), F.length > 0 && /* @__PURE__ */ X("div", {
231
+ children: [/* @__PURE__ */ J(O, { progress: de }), N.length > 0 && /* @__PURE__ */ Y("div", {
232
232
  className: "mt-2 flex items-center gap-2 text-xs text-muted-foreground",
233
- children: [/* @__PURE__ */ Y(xe, {
233
+ children: [/* @__PURE__ */ J(Ce, {
234
234
  "aria-label": f("onlyOwnIssues"),
235
235
  size: "sm",
236
- checked: N,
236
+ checked: A,
237
237
  onCheckedChange: (e) => S({
238
238
  to: "/$workspace/projects/$projectId",
239
239
  params: {
@@ -246,108 +246,108 @@ function Oe() {
246
246
  } : n,
247
247
  replace: !0
248
248
  })
249
- }), /* @__PURE__ */ Y("span", {
249
+ }), /* @__PURE__ */ J("span", {
250
250
  "aria-hidden": "true",
251
251
  children: f("onlyOwnIssues")
252
252
  })]
253
253
  })]
254
254
  }),
255
- /* @__PURE__ */ Y(Fe, {
255
+ /* @__PURE__ */ J(Fe, {
256
256
  workspace: s,
257
- projects: F
257
+ projects: N
258
258
  }),
259
- V.length > 0 && /* @__PURE__ */ Y("section", {
259
+ z.length > 0 && /* @__PURE__ */ J("section", {
260
260
  className: "mt-8 xl:hidden",
261
261
  "aria-label": f("issueBreakdown.label"),
262
- children: /* @__PURE__ */ Y(ue, {
262
+ children: /* @__PURE__ */ J(fe, {
263
263
  workspace: s,
264
- issues: V,
264
+ issues: z,
265
265
  tabs: De,
266
- tab: I,
267
- onTabChange: L
266
+ tab: P,
267
+ onTabChange: F
268
268
  })
269
269
  }),
270
- /* @__PURE__ */ X("section", {
270
+ /* @__PURE__ */ Y("section", {
271
271
  className: "mt-8",
272
- children: [/* @__PURE__ */ Y("h2", {
272
+ children: [/* @__PURE__ */ J("h2", {
273
273
  className: "text-base font-semibold",
274
- children: m("description")
275
- }), /* @__PURE__ */ Y(he, {
274
+ children: p("description")
275
+ }), /* @__PURE__ */ J(_e, {
276
276
  size: "fill",
277
277
  padding: "sm",
278
278
  className: "mt-2 min-h-16",
279
- children: /* @__PURE__ */ Y(se, {
279
+ children: /* @__PURE__ */ J(oe, {
280
280
  value: g.description,
281
281
  editable: v,
282
282
  placeholder: f("addDescription"),
283
- label: m("description"),
284
- onBlur: (e) => e !== g.description && R.mutate({ description: e }),
283
+ label: p("description"),
284
+ onBlur: (e) => e !== g.description && I.mutate({ description: e }),
285
285
  className: "min-h-12"
286
286
  }, g.updatedAt)
287
287
  })]
288
288
  }),
289
- /* @__PURE__ */ Y(Ie, {
289
+ /* @__PURE__ */ J(Ie, {
290
290
  workspace: s,
291
291
  project: g,
292
292
  canWrite: v
293
293
  }),
294
- /* @__PURE__ */ Y(ze, {
294
+ /* @__PURE__ */ J(ze, {
295
295
  workspace: s,
296
296
  projectId: g.id
297
297
  })
298
298
  ] }),
299
- B === "updates" && /* @__PURE__ */ Y(Re, {
299
+ R === "updates" && /* @__PURE__ */ J(Re, {
300
300
  workspace: s,
301
301
  project: g,
302
302
  canWrite: v
303
303
  }),
304
- B === "issues" && /* @__PURE__ */ Y(Le, {
304
+ R === "issues" && /* @__PURE__ */ J(Le, {
305
305
  workspace: s,
306
306
  project: g,
307
307
  canWrite: v
308
308
  })
309
309
  ]
310
- }), B !== "updates" && V.length > 0 && /* @__PURE__ */ Y("aside", {
310
+ }), R !== "updates" && z.length > 0 && /* @__PURE__ */ J("aside", {
311
311
  "aria-label": f("issueBreakdown.label"),
312
312
  className: "hidden w-80 shrink-0 overflow-y-auto border-l border-border px-4 py-6 xl:block",
313
- children: /* @__PURE__ */ Y(ue, {
313
+ children: /* @__PURE__ */ J(fe, {
314
314
  workspace: s,
315
- issues: V,
315
+ issues: z,
316
316
  tabs: De,
317
- tab: I,
318
- onTabChange: L
317
+ tab: P,
318
+ onTabChange: F
319
319
  })
320
320
  })]
321
321
  }),
322
- O,
323
- k && /* @__PURE__ */ Y(pe, {
322
+ T,
323
+ E && /* @__PURE__ */ J(he, {
324
324
  workspace: s,
325
325
  project: g,
326
- onClose: () => A(!1)
326
+ onClose: () => D(!1)
327
327
  })
328
328
  ]
329
329
  });
330
330
  }
331
331
  function ke({ project: e, canWrite: t, onSave: n }) {
332
- let r = q("planning"), [i, a] = K(e.name), [o, s] = K(e.name);
333
- return o !== e.name && (s(e.name), a(e.name)), t ? /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y("h1", {
332
+ let r = K("planning"), [i, a] = W(e.name), [o, s] = W(e.name);
333
+ return o !== e.name && (s(e.name), a(e.name)), t ? /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J("h1", {
334
334
  className: "sr-only",
335
335
  children: e.name
336
- }), /* @__PURE__ */ Y("input", {
336
+ }), /* @__PURE__ */ J("input", {
337
337
  value: i,
338
338
  onChange: (e) => a(e.target.value),
339
339
  onBlur: () => i.trim() && i !== e.name && n(i),
340
340
  onKeyDown: (e) => e.key === "Enter" && e.currentTarget.blur(),
341
341
  "aria-label": r("projectName"),
342
342
  className: "min-w-0 flex-1 rounded-md bg-transparent text-xl font-semibold tracking-tight outline-none focus-visible:outline-2 focus-visible:outline-primary"
343
- })] }) : /* @__PURE__ */ Y("h1", {
343
+ })] }) : /* @__PURE__ */ J("h1", {
344
344
  className: "text-xl font-semibold tracking-tight",
345
345
  children: e.name
346
346
  });
347
347
  }
348
348
  function Ae({ project: e, canWrite: t, onSave: n }) {
349
- let r = q("planning"), [i, a] = K(e.summary ?? ""), [o, s] = K(e.summary ?? "");
350
- return o !== (e.summary ?? "") && (s(e.summary ?? ""), a(e.summary ?? "")), t ? /* @__PURE__ */ Y("input", {
349
+ let r = K("planning"), [i, a] = W(e.summary ?? ""), [o, s] = W(e.summary ?? "");
350
+ return o !== (e.summary ?? "") && (s(e.summary ?? ""), a(e.summary ?? "")), t ? /* @__PURE__ */ J("input", {
351
351
  value: i,
352
352
  onChange: (e) => a(e.target.value),
353
353
  onBlur: () => i !== (e.summary ?? "") && n(i),
@@ -356,55 +356,55 @@ function Ae({ project: e, canWrite: t, onSave: n }) {
356
356
  "aria-label": r("summary"),
357
357
  placeholder: r("summaryPlaceholder"),
358
358
  className: "mt-1 w-full rounded-md bg-transparent text-sm text-muted-foreground outline-none placeholder:text-muted-foreground/60 focus-visible:text-foreground"
359
- }) : e.summary ? /* @__PURE__ */ Y("p", {
359
+ }) : e.summary ? /* @__PURE__ */ J("p", {
360
360
  className: "mt-1 text-sm text-muted-foreground",
361
361
  children: e.summary
362
362
  }) : null;
363
363
  }
364
364
  function je({ workspace: e, project: t, canWrite: n, update: r }) {
365
- let i = q("planning"), a = k(), { members: o, person: s } = P(e), { data: c = [] } = Q(f(e)), l = C(), [u, d] = K(null), p = t.lead ? s(t.lead) : void 0, m = (e, t, i) => {
366
- let o = /* @__PURE__ */ X(J, { children: [
367
- /* @__PURE__ */ Y(g, { className: "size-3.5 text-muted-foreground" }),
368
- /* @__PURE__ */ Y("span", {
365
+ let i = K("planning"), a = E(), { members: o, person: s } = T(e), { data: c = [] } = Z(f(e)), l = w(), [u, d] = W(null), p = t.lead ? s(t.lead) : void 0, m = (e, t, i) => {
366
+ let o = /* @__PURE__ */ Y(q, { children: [
367
+ /* @__PURE__ */ J(_, { className: "size-3.5 text-muted-foreground" }),
368
+ /* @__PURE__ */ J("span", {
369
369
  className: "text-muted-foreground",
370
370
  children: e
371
371
  }),
372
372
  t && a.day(t)
373
373
  ] });
374
- return n ? /* @__PURE__ */ Y(ge, {
374
+ return n ? /* @__PURE__ */ J(ve, {
375
375
  value: t ?? "",
376
376
  onValueChange: (e) => r({ [i]: e }),
377
377
  "aria-label": e,
378
- trigger: /* @__PURE__ */ Y("button", {
378
+ trigger: /* @__PURE__ */ J("button", {
379
379
  type: "button",
380
- className: W({ size: "sm" }),
380
+ className: H({ size: "sm" }),
381
381
  children: o
382
382
  })
383
- }) : /* @__PURE__ */ Y("span", {
383
+ }) : /* @__PURE__ */ J("span", {
384
384
  className: "inline-flex h-7 items-center gap-1.5 rounded-md border border-border bg-card px-2.5 text-xs font-medium",
385
385
  children: o
386
386
  });
387
387
  };
388
- return /* @__PURE__ */ X("div", {
388
+ return /* @__PURE__ */ Y("div", {
389
389
  className: "mt-3 flex flex-wrap items-center gap-1.5",
390
390
  children: [
391
- /* @__PURE__ */ Y(be, {
391
+ /* @__PURE__ */ J(Se, {
392
392
  "aria-label": i("statusLabel"),
393
393
  value: t.status,
394
394
  disabled: !n,
395
395
  onValueChange: (e) => e && r({ status: e }),
396
- items: w.map((e) => ({
396
+ items: se.map((e) => ({
397
397
  value: e,
398
398
  label: i(`status.${e}`),
399
- icon: /* @__PURE__ */ Y(M, { status: e })
399
+ icon: /* @__PURE__ */ J(k, { status: e })
400
400
  })),
401
- trigger: /* @__PURE__ */ X("button", {
401
+ trigger: /* @__PURE__ */ Y("button", {
402
402
  type: "button",
403
- className: W({ size: "sm" }),
404
- children: [/* @__PURE__ */ Y(M, { status: t.status }), i(`status.${t.status}`)]
403
+ className: H({ size: "sm" }),
404
+ children: [/* @__PURE__ */ J(k, { status: t.status }), i(`status.${t.status}`)]
405
405
  })
406
406
  }),
407
- /* @__PURE__ */ Y(H, {
407
+ /* @__PURE__ */ J(B, {
408
408
  "aria-label": i("lead"),
409
409
  value: t.lead ?? "",
410
410
  disabled: !n,
@@ -415,28 +415,28 @@ function je({ workspace: e, project: t, canWrite: n, update: r }) {
415
415
  }, ...o.map((e) => ({
416
416
  value: e.user.username,
417
417
  label: e.user.name,
418
- icon: /* @__PURE__ */ Y(z, {
418
+ icon: /* @__PURE__ */ J(L, {
419
419
  name: e.user.name,
420
420
  src: e.user.avatarUrl,
421
421
  size: "xs",
422
422
  decorative: !0
423
423
  })
424
424
  }))],
425
- trigger: /* @__PURE__ */ Y("button", {
425
+ trigger: /* @__PURE__ */ J("button", {
426
426
  type: "button",
427
- className: W({ size: "sm" }),
428
- children: p ? /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y(z, {
427
+ className: H({ size: "sm" }),
428
+ children: p ? /* @__PURE__ */ Y(q, { children: [/* @__PURE__ */ J(L, {
429
429
  name: p.name,
430
430
  src: p.avatarUrl,
431
431
  size: "xs",
432
432
  decorative: !0
433
- }), i("leadIs", { name: p.name })] }) : /* @__PURE__ */ Y("span", {
433
+ }), i("leadIs", { name: p.name })] }) : /* @__PURE__ */ J("span", {
434
434
  className: "text-muted-foreground",
435
435
  children: i("noLead")
436
436
  })
437
437
  })
438
438
  }),
439
- /* @__PURE__ */ Y(be, {
439
+ /* @__PURE__ */ J(Se, {
440
440
  "aria-label": i("priority"),
441
441
  value: String(t.priority),
442
442
  disabled: !n,
@@ -444,17 +444,17 @@ function je({ workspace: e, project: t, canWrite: n, update: r }) {
444
444
  items: l.map((e, t) => ({
445
445
  value: String(t),
446
446
  label: e,
447
- icon: /* @__PURE__ */ Y(v, { priority: t })
447
+ icon: /* @__PURE__ */ J(y, { priority: t })
448
448
  })),
449
- trigger: /* @__PURE__ */ X("button", {
449
+ trigger: /* @__PURE__ */ Y("button", {
450
450
  type: "button",
451
- className: W({ size: "sm" }),
452
- children: [/* @__PURE__ */ Y(v, { priority: t.priority }), t.priority ? l[t.priority] : i("noPriority")]
451
+ className: H({ size: "sm" }),
452
+ children: [/* @__PURE__ */ J(y, { priority: t.priority }), t.priority ? l[t.priority] : i("noPriority")]
453
453
  })
454
454
  }),
455
455
  m(i("startDate"), t.startDate, "startDate"),
456
456
  m(i("targetDate"), t.targetDate, "targetDate"),
457
- /* @__PURE__ */ Y(H, {
457
+ /* @__PURE__ */ J(B, {
458
458
  "aria-label": i("members"),
459
459
  open: u === "members",
460
460
  onOpenChange: (e) => d(e ? "members" : null),
@@ -463,7 +463,7 @@ function je({ workspace: e, project: t, canWrite: n, update: r }) {
463
463
  items: o.map((e) => ({
464
464
  value: e.user.username,
465
465
  label: e.user.name,
466
- icon: /* @__PURE__ */ Y(z, {
466
+ icon: /* @__PURE__ */ J(L, {
467
467
  name: e.user.name,
468
468
  src: e.user.avatarUrl,
469
469
  size: "xs",
@@ -473,29 +473,29 @@ function je({ workspace: e, project: t, canWrite: n, update: r }) {
473
473
  value: t.members,
474
474
  onValueChange: (e) => r({ members: e }),
475
475
  placeholder: i("members"),
476
- trigger: /* @__PURE__ */ X("button", {
476
+ trigger: /* @__PURE__ */ Y("button", {
477
477
  type: "button",
478
478
  disabled: !n,
479
- className: W({ size: "sm" }),
480
- children: [t.members.length > 0 ? /* @__PURE__ */ Y(B, {
479
+ className: H({ size: "sm" }),
480
+ children: [t.members.length > 0 ? /* @__PURE__ */ J(R, {
481
481
  size: "xs",
482
482
  max: 4,
483
483
  showOverflow: !1,
484
484
  children: t.members.map((e) => {
485
485
  let t = s(e);
486
- return /* @__PURE__ */ Y(z, {
486
+ return /* @__PURE__ */ J(L, {
487
487
  name: t.name,
488
488
  src: t.avatarUrl,
489
489
  decorative: !0
490
490
  }, e);
491
491
  })
492
- }) : /* @__PURE__ */ Y(S, { className: "size-3.5 text-muted-foreground" }), /* @__PURE__ */ Y("span", {
492
+ }) : /* @__PURE__ */ J(C, { className: "size-3.5 text-muted-foreground" }), /* @__PURE__ */ J("span", {
493
493
  className: t.members.length ? "" : "text-muted-foreground",
494
494
  children: t.members.length ? i("memberCount", { count: t.members.length }) : i("members")
495
495
  })]
496
496
  })
497
497
  }),
498
- /* @__PURE__ */ Y(H, {
498
+ /* @__PURE__ */ J(B, {
499
499
  "aria-label": i("teams"),
500
500
  open: u === "teams",
501
501
  onOpenChange: (e) => d(e ? "teams" : null),
@@ -505,7 +505,7 @@ function je({ workspace: e, project: t, canWrite: n, update: r }) {
505
505
  value: e.id,
506
506
  label: e.name,
507
507
  hint: e.key,
508
- icon: /* @__PURE__ */ Y(re, {
508
+ icon: /* @__PURE__ */ J(ne, {
509
509
  icon: e.icon,
510
510
  color: e.color,
511
511
  name: e.name
@@ -514,23 +514,23 @@ function je({ workspace: e, project: t, canWrite: n, update: r }) {
514
514
  value: t.teamIds,
515
515
  onValueChange: (e) => r({ teamIds: e }),
516
516
  placeholder: i("teams"),
517
- trigger: /* @__PURE__ */ X("button", {
517
+ trigger: /* @__PURE__ */ Y("button", {
518
518
  type: "button",
519
519
  disabled: !n,
520
- className: W({ size: "sm" }),
521
- children: [/* @__PURE__ */ Y(S, { className: "size-3.5 text-muted-foreground" }), /* @__PURE__ */ Y("span", {
520
+ className: H({ size: "sm" }),
521
+ children: [/* @__PURE__ */ J(C, { className: "size-3.5 text-muted-foreground" }), /* @__PURE__ */ J("span", {
522
522
  className: t.teamIds.length ? "" : "text-muted-foreground",
523
523
  children: t.teamIds.length ? c.filter((e) => t.teamIds.includes(e.id)).map((e) => e.key).join(", ") : i("teams")
524
524
  })]
525
525
  })
526
526
  }),
527
- /* @__PURE__ */ Y(Pe, {
527
+ /* @__PURE__ */ J(Pe, {
528
528
  workspace: e,
529
529
  project: t,
530
530
  canWrite: n,
531
531
  onChange: (e) => r({ parentId: e })
532
532
  }),
533
- /* @__PURE__ */ Y(Me, {
533
+ /* @__PURE__ */ J(Me, {
534
534
  workspace: e,
535
535
  project: t,
536
536
  canWrite: n,
@@ -540,10 +540,10 @@ function je({ workspace: e, project: t, canWrite: n, update: r }) {
540
540
  });
541
541
  }
542
542
  function Me({ workspace: e, project: t, canWrite: n, onChange: r }) {
543
- let i = q("planning"), { data: a = [] } = Q(d(e)), o = /* @__PURE__ */ new Set(), s = (e) => {
543
+ let i = K("planning"), { data: a = [] } = Z(d(e)), o = /* @__PURE__ */ new Set(), s = (e) => {
544
544
  for (let t of a) t.blockedBy.includes(e) && !o.has(t.id) && (o.add(t.id), s(t.id));
545
545
  };
546
- return s(t.id), /* @__PURE__ */ Y(H, {
546
+ return s(t.id), /* @__PURE__ */ J(B, {
547
547
  multiple: !0,
548
548
  disabled: !n,
549
549
  items: a.filter((e) => e.id !== t.id && !o.has(e.id) && !e.template).map((e) => ({
@@ -554,11 +554,11 @@ function Me({ workspace: e, project: t, canWrite: n, onChange: r }) {
554
554
  onValueChange: r,
555
555
  placeholder: i("waitsOn"),
556
556
  "aria-label": i("waitsOn"),
557
- trigger: /* @__PURE__ */ X("button", {
557
+ trigger: /* @__PURE__ */ Y("button", {
558
558
  type: "button",
559
559
  disabled: !n,
560
- className: W({ size: "sm" }),
561
- children: [/* @__PURE__ */ Y(_, { className: "size-3.5 text-muted-foreground" }), /* @__PURE__ */ Y("span", {
560
+ className: H({ size: "sm" }),
561
+ children: [/* @__PURE__ */ J(v, { className: "size-3.5 text-muted-foreground" }), /* @__PURE__ */ J("span", {
562
562
  className: t.blockedBy.length ? "" : "text-muted-foreground",
563
563
  children: t.blockedBy.length ? i("waitsOnCount", { count: t.blockedBy.length }) : i("waitsOn")
564
564
  })]
@@ -566,31 +566,31 @@ function Me({ workspace: e, project: t, canWrite: n, onChange: r }) {
566
566
  });
567
567
  }
568
568
  function Ne({ workspace: e, project: t }) {
569
- let n = q("planning"), i = k(), { data: a = [] } = Q(d(e)), o = (e) => a.filter((t) => e.includes(t.id)), s = o(t.blockedBy), c = o(t.blocks);
569
+ let n = K("planning"), i = E(), { data: a = [] } = Z(d(e)), o = (e) => a.filter((t) => e.includes(t.id)), s = o(t.blockedBy), c = o(t.blocks);
570
570
  if (s.length === 0 && c.length === 0) return null;
571
- let l = t.targetDate ? s.filter((e) => e.targetDate && e.targetDate > (t.targetDate ?? "")) : [], u = (t) => /* @__PURE__ */ Y(r, {
571
+ let l = t.targetDate ? s.filter((e) => e.targetDate && e.targetDate > (t.targetDate ?? "")) : [], u = (t) => /* @__PURE__ */ J(r, {
572
572
  to: "/$workspace/projects/$projectId",
573
573
  params: {
574
574
  workspace: e,
575
- projectId: ae(t)
575
+ projectId: j(t)
576
576
  },
577
577
  className: "font-medium hover:underline",
578
578
  children: t.name
579
- }, t.id), f = (e) => e.flatMap((e, t) => t === 0 ? [u(e)] : [/* @__PURE__ */ Y("span", { children: ", " }, `${e.id},`), u(e)]);
580
- return /* @__PURE__ */ X("div", {
579
+ }, t.id), f = (e) => e.flatMap((e, t) => t === 0 ? [u(e)] : [/* @__PURE__ */ J("span", { children: ", " }, `${e.id},`), u(e)]);
580
+ return /* @__PURE__ */ Y("div", {
581
581
  className: "mt-3 space-y-1 text-xs text-muted-foreground",
582
582
  children: [
583
- s.length > 0 && /* @__PURE__ */ X("p", { children: [
583
+ s.length > 0 && /* @__PURE__ */ Y("p", { children: [
584
584
  n("waitsOnLabel"),
585
585
  " ",
586
586
  f(s)
587
587
  ] }),
588
- c.length > 0 && /* @__PURE__ */ X("p", { children: [
588
+ c.length > 0 && /* @__PURE__ */ Y("p", { children: [
589
589
  n("blocksLabel"),
590
590
  " ",
591
591
  f(c)
592
592
  ] }),
593
- l.map((e) => /* @__PURE__ */ Y("p", {
593
+ l.map((e) => /* @__PURE__ */ J("p", {
594
594
  role: "status",
595
595
  className: "text-warning",
596
596
  children: n("dueBeforeBlocker", {
@@ -603,8 +603,8 @@ function Ne({ workspace: e, project: t }) {
603
603
  });
604
604
  }
605
605
  function Pe({ workspace: e, project: t, canWrite: n, onChange: r }) {
606
- let i = q("planning"), { data: a = [] } = Q(d(e)), o = new Set(oe(a, t.id).map((e) => e.id)), s = a.find((e) => e.id === t.parentId);
607
- return /* @__PURE__ */ Y(H, {
606
+ let i = K("planning"), { data: a = [] } = Z(d(e)), o = new Set(te(a, t.id).map((e) => e.id)), s = a.find((e) => e.id === t.parentId);
607
+ return /* @__PURE__ */ J(B, {
608
608
  disabled: !n,
609
609
  items: [{
610
610
  value: "",
@@ -617,11 +617,11 @@ function Pe({ workspace: e, project: t, canWrite: n, onChange: r }) {
617
617
  onValueChange: (e) => r(e ?? ""),
618
618
  placeholder: i("parentProject"),
619
619
  "aria-label": i("parentProject"),
620
- trigger: /* @__PURE__ */ X("button", {
620
+ trigger: /* @__PURE__ */ Y("button", {
621
621
  type: "button",
622
622
  disabled: !n,
623
- className: W({ size: "sm" }),
624
- children: [/* @__PURE__ */ Y(y, { className: "size-3.5 text-muted-foreground" }), /* @__PURE__ */ Y("span", {
623
+ className: H({ size: "sm" }),
624
+ children: [/* @__PURE__ */ J(b, { className: "size-3.5 text-muted-foreground" }), /* @__PURE__ */ J("span", {
625
625
  className: s ? "" : "text-muted-foreground",
626
626
  children: s ? i("underProject", { name: s.name }) : i("parentProject")
627
627
  })]
@@ -629,45 +629,45 @@ function Pe({ workspace: e, project: t, canWrite: n, onChange: r }) {
629
629
  });
630
630
  }
631
631
  function Fe({ workspace: e, projects: t }) {
632
- let n = q("planning"), i = k(), { person: a } = P(e);
633
- return t.length === 0 ? null : /* @__PURE__ */ X("section", {
632
+ let n = K("planning"), i = E(), { person: a } = T(e);
633
+ return t.length === 0 ? null : /* @__PURE__ */ Y("section", {
634
634
  className: "mt-8",
635
- children: [/* @__PURE__ */ Y("h2", {
635
+ children: [/* @__PURE__ */ J("h2", {
636
636
  className: "text-base font-semibold",
637
637
  children: n("subProjects")
638
- }), /* @__PURE__ */ Y("ul", {
638
+ }), /* @__PURE__ */ J("ul", {
639
639
  className: "mt-2 divide-y divide-border rounded-lg border border-border",
640
640
  children: t.map((t) => {
641
- let o = N(t), s = t.lead ? a(t.lead) : void 0;
642
- return /* @__PURE__ */ Y("li", { children: /* @__PURE__ */ X(r, {
641
+ let o = A(t), s = t.lead ? a(t.lead) : void 0;
642
+ return /* @__PURE__ */ J("li", { children: /* @__PURE__ */ Y(r, {
643
643
  to: "/$workspace/projects/$projectId",
644
644
  params: {
645
645
  workspace: e,
646
- projectId: ae(t)
646
+ projectId: j(t)
647
647
  },
648
648
  className: "flex flex-wrap items-center gap-x-3 gap-y-1 px-3 py-2.5 text-sm hover:bg-muted/60",
649
649
  children: [
650
- /* @__PURE__ */ Y(M, { status: t.status }),
651
- /* @__PURE__ */ Y("span", {
650
+ /* @__PURE__ */ J(k, { status: t.status }),
651
+ /* @__PURE__ */ J("span", {
652
652
  className: "min-w-0 flex-1 truncate font-medium",
653
653
  children: t.name
654
654
  }),
655
- /* @__PURE__ */ X("span", {
655
+ /* @__PURE__ */ Y("span", {
656
656
  className: "flex items-center gap-1.5 text-xs text-muted-foreground",
657
- children: [/* @__PURE__ */ Y(A, { state: o }), n(`health.${o}`)]
657
+ children: [/* @__PURE__ */ J(D, { state: o }), n(`health.${o}`)]
658
658
  }),
659
- s && /* @__PURE__ */ Y(z, {
659
+ s && /* @__PURE__ */ J(L, {
660
660
  name: s.name,
661
661
  src: s.avatarUrl,
662
662
  size: "xs"
663
663
  }),
664
- /* @__PURE__ */ Y("span", {
664
+ /* @__PURE__ */ J("span", {
665
665
  className: "w-20 text-xs text-muted-foreground tabular-nums",
666
666
  children: t.targetDate ? i.day(t.targetDate) : ""
667
667
  }),
668
- /* @__PURE__ */ Y("span", {
668
+ /* @__PURE__ */ J("span", {
669
669
  className: "w-28",
670
- children: /* @__PURE__ */ Y(j, {
670
+ children: /* @__PURE__ */ J(O, {
671
671
  progress: t.treeProgress,
672
672
  compact: !0
673
673
  })
@@ -679,167 +679,167 @@ function Fe({ workspace: e, projects: t }) {
679
679
  });
680
680
  }
681
681
  function Ie({ workspace: n, project: r, canWrite: i }) {
682
- let a = q("planning"), o = q("common"), s = we(), c = k(), l = $(), u = Se(), [d, f] = K(!1), [p, h] = K(""), [g, _] = K(""), [v, y] = K(null), b = {
682
+ let a = K("planning"), o = K("common"), s = G(), c = E(), l = Q(), u = we(), [d, f] = W(!1), [h, g] = W(""), [_, v] = W(""), [y, b] = W(null), x = {
683
683
  workspace: n,
684
684
  projectId: r.id
685
- }, x = () => {
685
+ }, S = () => {
686
686
  l.invalidateQueries({ queryKey: [
687
687
  "workspace",
688
688
  n,
689
689
  "projects"
690
- ] }), O(l, n);
691
- }, S = Z({
690
+ ] }), p(l, n);
691
+ }, C = X({
692
692
  mutationFn: async () => t(await e.POST("/api/v1/workspaces/{workspace}/projects/{projectId}/milestones", {
693
- params: { path: b },
693
+ params: { path: x },
694
694
  body: {
695
- name: p,
696
- ...g && { targetDate: g }
695
+ name: h,
696
+ ..._ && { targetDate: _ }
697
697
  }
698
698
  })),
699
699
  onSuccess: () => {
700
- h(""), _(""), f(!1);
700
+ g(""), v(""), f(!1);
701
701
  },
702
- onSettled: x
703
- }), C = Z({
702
+ onSettled: S
703
+ }), w = X({
704
704
  mutationFn: async ({ id: n, ...r }) => t(await e.PATCH("/api/v1/workspaces/{workspace}/projects/{projectId}/milestones/{milestoneId}", {
705
705
  params: { path: {
706
- ...b,
706
+ ...x,
707
707
  milestoneId: n
708
708
  } },
709
709
  body: r
710
710
  })),
711
- onSettled: x
712
- }), w = Z({
711
+ onSettled: S
712
+ }), T = X({
713
713
  mutationFn: async (n) => t(await e.DELETE("/api/v1/workspaces/{workspace}/projects/{projectId}/milestones/{milestoneId}", { params: { path: {
714
- ...b,
714
+ ...x,
715
715
  milestoneId: n
716
716
  } } })),
717
- onSettled: x
718
- }), T = r.milestones, E = (e, t) => i ? [
717
+ onSettled: S
718
+ }), D = r.milestones, k = (e, t) => i ? [
719
719
  {
720
720
  label: a("rename"),
721
- onClick: () => y(e.id)
721
+ onClick: () => b(e.id)
722
722
  },
723
723
  {
724
724
  label: a("moveUp"),
725
725
  disabled: t === 0,
726
- onClick: () => C.mutate({
726
+ onClick: () => w.mutate({
727
727
  id: e.id,
728
728
  position: t - 1
729
729
  })
730
730
  },
731
731
  {
732
732
  label: a("moveDown"),
733
- disabled: t === T.length - 1,
734
- onClick: () => C.mutate({
733
+ disabled: t === D.length - 1,
734
+ onClick: () => w.mutate({
735
735
  id: e.id,
736
736
  position: t + 1
737
737
  })
738
738
  },
739
- G,
739
+ U,
740
740
  {
741
741
  label: o("delete"),
742
742
  destructive: !0,
743
- onClick: () => w.mutate(e.id)
743
+ onClick: () => T.mutate(e.id)
744
744
  }
745
- ] : [ee(o("copyName"), e.name)], D = S.error ?? C.error ?? w.error;
746
- return /* @__PURE__ */ X("section", {
745
+ ] : [m(o("copyName"), e.name)], A = C.error ?? w.error ?? T.error;
746
+ return /* @__PURE__ */ Y("section", {
747
747
  className: "mt-10",
748
748
  children: [
749
- /* @__PURE__ */ X("div", {
749
+ /* @__PURE__ */ Y("div", {
750
750
  className: "flex items-center gap-2",
751
- children: [/* @__PURE__ */ Y("h2", {
751
+ children: [/* @__PURE__ */ J("h2", {
752
752
  className: "text-base font-semibold",
753
753
  children: a("milestones")
754
- }), i && !d && /* @__PURE__ */ X(V, {
754
+ }), i && !d && /* @__PURE__ */ Y(z, {
755
755
  type: "button",
756
756
  size: "sm",
757
757
  onClick: () => f(!0),
758
758
  className: "ml-auto",
759
- children: [/* @__PURE__ */ Y(m, { className: "size-3.5" }), a("addMilestone")]
759
+ children: [/* @__PURE__ */ J(ee, { className: "size-3.5" }), a("addMilestone")]
760
760
  })]
761
761
  }),
762
- /* @__PURE__ */ X(he, {
762
+ /* @__PURE__ */ Y(_e, {
763
763
  size: "fill",
764
764
  padding: "none",
765
765
  divided: !0,
766
766
  interactive: !1,
767
- render: /* @__PURE__ */ Y("ul", {}),
767
+ render: /* @__PURE__ */ J("ul", {}),
768
768
  className: "mt-3",
769
769
  children: [
770
- T.map((e, t) => /* @__PURE__ */ X("li", {
771
- onContextMenu: (n) => u(n, E(e, t)),
770
+ D.map((e, t) => /* @__PURE__ */ Y("li", {
771
+ onContextMenu: (n) => u(n, k(e, t)),
772
772
  className: "flex flex-wrap items-center gap-x-4 gap-y-1 py-2 pr-2 pl-3 md:flex-nowrap",
773
773
  children: [
774
- v === e.id ? /* @__PURE__ */ Y(ve, {
774
+ y === e.id ? /* @__PURE__ */ J(be, {
775
775
  autoFocus: !0,
776
776
  defaultValue: e.name,
777
777
  "aria-label": a("milestoneName"),
778
778
  onBlur: (t) => {
779
779
  let n = t.target.value.trim();
780
- n && n !== e.name && C.mutate({
780
+ n && n !== e.name && w.mutate({
781
781
  id: e.id,
782
782
  name: n
783
- }), y(null);
783
+ }), b(null);
784
784
  },
785
785
  onKeyDown: (e) => {
786
- e.key === "Enter" && e.currentTarget.blur(), e.key === "Escape" && y(null);
786
+ e.key === "Enter" && e.currentTarget.blur(), e.key === "Escape" && b(null);
787
787
  },
788
788
  size: "sm",
789
789
  className: "min-w-0 flex-1"
790
- }) : /* @__PURE__ */ Y("span", {
790
+ }) : /* @__PURE__ */ J("span", {
791
791
  className: "min-w-0 flex-1 basis-full truncate text-sm font-medium md:basis-auto",
792
792
  children: e.name
793
793
  }),
794
- /* @__PURE__ */ Y("span", {
794
+ /* @__PURE__ */ J("span", {
795
795
  className: "w-24 shrink-0 text-xs text-muted-foreground",
796
796
  children: e.targetDate && c.day(e.targetDate)
797
797
  }),
798
- /* @__PURE__ */ Y("span", {
798
+ /* @__PURE__ */ J("span", {
799
799
  className: "w-44 shrink-0",
800
- children: /* @__PURE__ */ Y(j, {
800
+ children: /* @__PURE__ */ J(O, {
801
801
  progress: e.progress,
802
802
  compact: !0
803
803
  })
804
804
  }),
805
- /* @__PURE__ */ Y(Ee, {
806
- items: () => E(e, t),
805
+ /* @__PURE__ */ J(Ee, {
806
+ items: () => k(e, t),
807
807
  label: o("moreActionsFor", { name: e.name })
808
808
  })
809
809
  ]
810
810
  }, e.id)),
811
- T.length === 0 && !d && /* @__PURE__ */ Y("li", { children: /* @__PURE__ */ Y(_e, {
811
+ D.length === 0 && !d && /* @__PURE__ */ J("li", { children: /* @__PURE__ */ J(ye, {
812
812
  variant: "bare",
813
813
  title: a("noMilestones")
814
814
  }) }),
815
- d && /* @__PURE__ */ Y("li", { children: /* @__PURE__ */ X("form", {
815
+ d && /* @__PURE__ */ J("li", { children: /* @__PURE__ */ Y("form", {
816
816
  className: "flex flex-wrap items-center gap-2 px-3 py-2",
817
817
  onSubmit: (e) => {
818
- e.preventDefault(), p.trim() && S.mutate();
818
+ e.preventDefault(), h.trim() && C.mutate();
819
819
  },
820
820
  children: [
821
- /* @__PURE__ */ Y(ve, {
821
+ /* @__PURE__ */ J(be, {
822
822
  autoFocus: !0,
823
- value: p,
824
- onChange: (e) => h(e.target.value),
823
+ value: h,
824
+ onChange: (e) => g(e.target.value),
825
825
  placeholder: a("milestoneName"),
826
826
  "aria-label": a("milestoneName"),
827
827
  className: "min-w-0 flex-1"
828
828
  }),
829
- /* @__PURE__ */ Y(ge, {
830
- value: g,
831
- onValueChange: _,
829
+ /* @__PURE__ */ J(ve, {
830
+ value: _,
831
+ onValueChange: v,
832
832
  "aria-label": a("targetDate"),
833
833
  className: "w-auto"
834
834
  }),
835
- /* @__PURE__ */ Y(V, {
835
+ /* @__PURE__ */ J(z, {
836
836
  type: "submit",
837
837
  variant: "primary",
838
- disabled: !p.trim(),
839
- loading: S.isPending,
838
+ disabled: !h.trim(),
839
+ loading: C.isPending,
840
840
  children: a("addMilestone")
841
841
  }),
842
- /* @__PURE__ */ Y(V, {
842
+ /* @__PURE__ */ J(z, {
843
843
  type: "button",
844
844
  variant: "ghost",
845
845
  onClick: () => f(!1),
@@ -849,16 +849,16 @@ function Ie({ workspace: n, project: r, canWrite: i }) {
849
849
  }) })
850
850
  ]
851
851
  }),
852
- D && /* @__PURE__ */ Y(U, {
852
+ A && /* @__PURE__ */ J(V, {
853
853
  size: "md",
854
854
  className: "mt-2",
855
- children: s(D)
855
+ children: s(A)
856
856
  })
857
857
  ]
858
858
  });
859
859
  }
860
860
  function Le({ workspace: n, project: r, canWrite: i }) {
861
- let o = q("planning"), s = we(), c = $(), l = !!D.useSearch().own, { data: u } = Te(a(n, T(r.id, l))), d = L(n, (e) => e.project?.id !== r.id), f = u.issues, p = Z({
861
+ let o = K("planning"), s = G(), c = Q(), l = !!M.useSearch().own, { data: u } = $(a(n, ce(r.id, l))), d = F(n, (e) => e.project?.id !== r.id), f = u.issues, m = X({
862
862
  mutationFn: async (i) => t(await e.PATCH("/api/v1/workspaces/{workspace}/issues/{identifier}", {
863
863
  params: { path: {
864
864
  workspace: n,
@@ -866,36 +866,36 @@ function Le({ workspace: n, project: r, canWrite: i }) {
866
866
  } },
867
867
  body: { projectId: r.id }
868
868
  })),
869
- onSettled: (e, t, r) => O(c, n, r)
869
+ onSettled: (e, t, r) => p(c, n, r)
870
870
  });
871
- return /* @__PURE__ */ X("section", {
871
+ return /* @__PURE__ */ Y("section", {
872
872
  "aria-label": o("issues"),
873
873
  children: [
874
- i && /* @__PURE__ */ Y("div", {
874
+ i && /* @__PURE__ */ J("div", {
875
875
  className: "flex min-h-11 items-center justify-end border-b border-border px-4 py-2 md:px-5",
876
- children: /* @__PURE__ */ Y(H, {
876
+ children: /* @__PURE__ */ J(B, {
877
877
  "aria-label": o("addIssues"),
878
878
  align: "end",
879
879
  ...d,
880
880
  value: null,
881
- onValueChange: (e) => e !== null && p.mutate(e),
881
+ onValueChange: (e) => e !== null && m.mutate(e),
882
882
  placeholder: o("findIssue"),
883
- trigger: /* @__PURE__ */ X(V, {
883
+ trigger: /* @__PURE__ */ Y(z, {
884
884
  type: "button",
885
885
  size: "sm",
886
- children: [/* @__PURE__ */ Y(m, { className: "size-3.5" }), o("addIssues")]
886
+ children: [/* @__PURE__ */ J(ee, { className: "size-3.5" }), o("addIssues")]
887
887
  })
888
888
  })
889
889
  }),
890
- p.isError && /* @__PURE__ */ Y(U, {
890
+ m.isError && /* @__PURE__ */ J(V, {
891
891
  size: "md",
892
892
  className: "px-4 pt-2 md:px-5",
893
- children: s(p.error)
893
+ children: s(m.error)
894
894
  }),
895
- f.length === 0 ? /* @__PURE__ */ Y(_e, {
895
+ f.length === 0 ? /* @__PURE__ */ J(ye, {
896
896
  title: o("noIssuesInProject"),
897
897
  className: "mt-6"
898
- }) : /* @__PURE__ */ Y(R, {
898
+ }) : /* @__PURE__ */ J(I, {
899
899
  workspace: n,
900
900
  issues: f
901
901
  })
@@ -903,7 +903,7 @@ function Le({ workspace: n, project: r, canWrite: i }) {
903
903
  });
904
904
  }
905
905
  function Re({ workspace: n, project: r, canWrite: i }) {
906
- let a = q("planning"), o = $(), { data: s = [] } = Q(u(n, r.id)), c = Z({
906
+ let a = K("planning"), o = Q(), { data: s = [] } = Z(u(n, r.id)), c = X({
907
907
  mutationFn: async ({ health: i, body: a }) => t(await e.POST("/api/v1/workspaces/{workspace}/projects/{projectId}/updates", {
908
908
  params: { path: {
909
909
  workspace: n,
@@ -919,7 +919,7 @@ function Re({ workspace: n, project: r, canWrite: i }) {
919
919
  n,
920
920
  "projects"
921
921
  ] })
922
- }), l = Z({
922
+ }), l = X({
923
923
  mutationFn: async (i) => t(await e.DELETE("/api/v1/workspaces/{workspace}/projects/{projectId}/updates/{updateId}", { params: { path: {
924
924
  workspace: n,
925
925
  projectId: r.id,
@@ -931,9 +931,9 @@ function Re({ workspace: n, project: r, canWrite: i }) {
931
931
  "projects"
932
932
  ] })
933
933
  });
934
- return /* @__PURE__ */ Y(me, {
934
+ return /* @__PURE__ */ J(ge, {
935
935
  workspace: n,
936
- state: N(r),
936
+ state: A(r),
937
937
  health: r.health,
938
938
  updates: s,
939
939
  canWrite: i,
@@ -943,16 +943,16 @@ function Re({ workspace: n, project: r, canWrite: i }) {
943
943
  });
944
944
  }
945
945
  function ze({ workspace: e, projectId: t }) {
946
- let n = q("planning.activity"), r = q("planning"), i = q("planning.health"), a = k(), o = C(), { data: c = [] } = Q(s(e, t)), { actorName: l, person: u } = P(e);
946
+ let n = K("planning.activity"), r = K("planning"), i = K("planning.health"), a = E(), o = w(), { data: c = [] } = Z(s(e, t)), { actorName: l, person: u } = T(e);
947
947
  if (c.length === 0) return null;
948
948
  let d = (e) => {
949
949
  let t = {
950
950
  actor: l(e.actor),
951
- b: (e) => /* @__PURE__ */ Y("span", {
951
+ b: (e) => /* @__PURE__ */ J("span", {
952
952
  className: "font-medium text-foreground",
953
953
  children: e
954
954
  })
955
- }, s = e.data, c = I(e.type, e.data);
955
+ }, s = e.data, c = P(e.type, e.data);
956
956
  switch (e.type) {
957
957
  case "project.created": return [{
958
958
  icon: c,
@@ -998,40 +998,40 @@ function ze({ workspace: e, projectId: t }) {
998
998
  }];
999
999
  let f = [], p = (e) => e ? a.day(String(e)) : "";
1000
1000
  return d.name && f.push({
1001
- icon: /* @__PURE__ */ Y(x, {}),
1001
+ icon: /* @__PURE__ */ J(S, {}),
1002
1002
  text: n.rich("renamed", {
1003
1003
  ...t,
1004
1004
  from: String(d.name.from)
1005
1005
  })
1006
1006
  }), d.status && f.push({
1007
- icon: /* @__PURE__ */ Y(M, { status: d.status.to }),
1007
+ icon: /* @__PURE__ */ J(k, { status: d.status.to }),
1008
1008
  text: n.rich("status", {
1009
1009
  ...t,
1010
1010
  status: r(`status.${d.status.to}`)
1011
1011
  })
1012
1012
  }), d.priority && f.push({
1013
- icon: /* @__PURE__ */ Y(v, { priority: Number(d.priority.to) }),
1013
+ icon: /* @__PURE__ */ J(y, { priority: Number(d.priority.to) }),
1014
1014
  text: n.rich("priority", {
1015
1015
  ...t,
1016
1016
  priority: o[Number(d.priority.to)] ?? ""
1017
1017
  })
1018
1018
  }), d.lead && f.push(d.lead.to ? {
1019
- icon: /* @__PURE__ */ Y(h, {}),
1019
+ icon: /* @__PURE__ */ J(g, {}),
1020
1020
  text: n.rich("lead", {
1021
1021
  ...t,
1022
1022
  lead: u(String(d.lead.to)).name
1023
1023
  })
1024
1024
  } : {
1025
- icon: /* @__PURE__ */ Y(b, {}),
1025
+ icon: /* @__PURE__ */ J(x, {}),
1026
1026
  text: n.rich("leadRemoved", t)
1027
1027
  }), d.startDate && f.push({
1028
- icon: /* @__PURE__ */ Y(g, {}),
1028
+ icon: /* @__PURE__ */ J(_, {}),
1029
1029
  text: d.startDate.to ? n.rich("startDate", {
1030
1030
  ...t,
1031
1031
  date: p(d.startDate.to)
1032
1032
  }) : n.rich("startDateRemoved", t)
1033
1033
  }), d.targetDate && f.push({
1034
- icon: /* @__PURE__ */ Y(g, {}),
1034
+ icon: /* @__PURE__ */ J(_, {}),
1035
1035
  text: d.targetDate.to ? n.rich("targetDate", {
1036
1036
  ...t,
1037
1037
  date: p(d.targetDate.to)
@@ -1041,15 +1041,15 @@ function ze({ workspace: e, projectId: t }) {
1041
1041
  text: n.rich("updated", t)
1042
1042
  }];
1043
1043
  };
1044
- return /* @__PURE__ */ X("section", {
1044
+ return /* @__PURE__ */ Y("section", {
1045
1045
  className: "mt-8",
1046
1046
  "aria-label": n("title"),
1047
- children: [/* @__PURE__ */ Y("h2", {
1047
+ children: [/* @__PURE__ */ J("h2", {
1048
1048
  className: "text-base font-semibold",
1049
1049
  children: n("title")
1050
- }), /* @__PURE__ */ Y(F, {
1050
+ }), /* @__PURE__ */ J(N, {
1051
1051
  className: "mt-3",
1052
- children: [...c].reverse().flatMap((t) => d(t).map(({ icon: n, text: r }, i) => /* @__PURE__ */ Y(le, {
1052
+ children: [...c].reverse().flatMap((t) => d(t).map(({ icon: n, text: r }, i) => /* @__PURE__ */ J(de, {
1053
1053
  workspace: e,
1054
1054
  icon: n,
1055
1055
  actor: t.actor,