@parallelworks/tandem-web 0.150.3 → 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 +1 -1
  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
package/lib/issueList.js CHANGED
@@ -1,5 +1,5 @@
1
- import { fieldRef as e, groupableKinds as t, parseFieldFilters as n, sortableKinds as r } from "./customFields.js";
2
- import { PriorityIcon as i, StatusIcon as a } from "../components/icons.js";
1
+ import { PriorityIcon as e, StatusIcon as t } from "../components/icons.js";
2
+ import { fieldRef as n, groupableKinds as r, parseFieldFilters as i, sortableKinds as a } from "./customFields.js";
3
3
  import { TypeIcon as o } from "../components/IssueTypes.js";
4
4
  import { statusRef as s } from "./refs.js";
5
5
  import { Avatar as c } from "@parallelworks/ui";
@@ -24,11 +24,11 @@ var u = {
24
24
  "label",
25
25
  "type",
26
26
  "none"
27
- ], p = (t, n) => d.includes(t) || n.some((n) => e(t) === n.id && r.includes(n.kind)), m = (n, r) => f.includes(n) || r.some((r) => e(n) === r.id && t.includes(r.kind)), h = (e) => typeof e == "number" ? String(e) : typeof e == "string" && e !== "" ? e : void 0;
28
- function g(t) {
29
- let n = {}, r = h(t.view);
30
- r && r in u && (n.view = r);
31
- for (let e of [
27
+ ], p = (e, t) => d.includes(e) || t.some((t) => n(e) === t.id && a.includes(t.kind)), m = (e, t) => f.includes(e) || t.some((t) => n(e) === t.id && r.includes(t.kind)), h = (e) => typeof e == "number" ? String(e) : typeof e == "string" && e !== "" ? e : void 0;
28
+ function g(e) {
29
+ let t = {}, r = h(e.view);
30
+ r && r in u && (t.view = r);
31
+ for (let n of [
32
32
  "team",
33
33
  "assignee",
34
34
  "creator",
@@ -43,14 +43,14 @@ function g(t) {
43
43
  "q",
44
44
  "saved"
45
45
  ]) {
46
- let r = h(t[e]);
47
- r && (n[e] = r);
46
+ let r = h(e[n]);
47
+ r && (t[n] = r);
48
48
  }
49
- n.assignee && t.assigneeKind === "agent" && (n.assigneeKind = "agent"), (t.overdue === "true" || t.overdue === !0) && (n.overdue = "true");
50
- let i = h(t.order);
51
- i && i !== "updated" && (d.includes(i) || e(i)) && (n.order = i), t.layout === "board" && (n.layout = "board");
52
- let a = h(t.group);
53
- return a && a !== "status" && (f.includes(a) || e(a)) && (n.group = a), n;
49
+ t.assignee && e.assigneeKind === "agent" && (t.assigneeKind = "agent"), (e.overdue === "true" || e.overdue === !0) && (t.overdue = "true");
50
+ let i = h(e.order);
51
+ i && i !== "updated" && (d.includes(i) || n(i)) && (t.order = i), e.layout === "board" && (t.layout = "board");
52
+ let a = h(e.group);
53
+ return a && a !== "status" && (f.includes(a) || n(a)) && (t.group = a), t;
54
54
  }
55
55
  var _ = [
56
56
  "started",
@@ -60,17 +60,17 @@ var _ = [
60
60
  "completed",
61
61
  "canceled"
62
62
  ], v = (e) => e === 0 ? 5 : e;
63
- function y(t, n, r = []) {
64
- let i = r.find((t) => t.id === e(n));
65
- if (i) return [...t].sort(b(i));
63
+ function y(e, t, r = []) {
64
+ let i = r.find((e) => e.id === n(t));
65
+ if (i) return [...e].sort(b(i));
66
66
  let a = {
67
67
  updated: () => 0,
68
68
  priority: (e, t) => v(e.priority) - v(t.priority),
69
69
  created: (e, t) => t.createdAt.localeCompare(e.createdAt),
70
70
  due: (e, t) => (e.dueDate ?? "9999").localeCompare(t.dueDate ?? "9999"),
71
71
  requests: (e, t) => (t.requests ?? 0) - (e.requests ?? 0)
72
- }[n];
73
- return [...t].sort(a ?? (() => 0));
72
+ }[t];
73
+ return [...e].sort(a ?? (() => 0));
74
74
  }
75
75
  function b(e) {
76
76
  let t = (t) => {
@@ -82,15 +82,15 @@ function b(e) {
82
82
  return r === void 0 || i === void 0 ? Number(r === void 0) - Number(i === void 0) : typeof r == "number" && typeof i == "number" ? r - i : String(r).localeCompare(String(i));
83
83
  };
84
84
  }
85
- function x(t, n, r, s = !1, u = [], d = []) {
86
- let f = u.find((t) => t.id === e(n));
87
- if (f) return S(t, f, r, s);
88
- if (n === "type") {
85
+ function x(r, i, a, s = !1, u = [], d = []) {
86
+ let f = u.find((e) => e.id === n(i));
87
+ if (f) return S(r, f, a, s);
88
+ if (i === "type") {
89
89
  let e = {
90
90
  key: "none",
91
- label: r.noType ?? r.none.all,
91
+ label: a.noType ?? a.none.all,
92
92
  issues: []
93
- }, n = d.map((e) => ({
93
+ }, t = d.map((e) => ({
94
94
  key: e.id,
95
95
  label: e.name,
96
96
  icon: /* @__PURE__ */ l(o, {
@@ -99,46 +99,46 @@ function x(t, n, r, s = !1, u = [], d = []) {
99
99
  }),
100
100
  issues: []
101
101
  }));
102
- for (let r of t) {
103
- if (!r.type) {
104
- e.issues.push(r);
102
+ for (let n of r) {
103
+ if (!n.type) {
104
+ e.issues.push(n);
105
105
  continue;
106
106
  }
107
- let t = n.find((e) => e.key === r.type?.id);
108
- t || (t = {
109
- key: r.type.id,
110
- label: r.type.name,
107
+ let r = t.find((e) => e.key === n.type?.id);
108
+ r || (r = {
109
+ key: n.type.id,
110
+ label: n.type.name,
111
111
  icon: /* @__PURE__ */ l(o, {
112
- type: r.type,
112
+ type: n.type,
113
113
  className: "size-3.5"
114
114
  }),
115
115
  issues: []
116
- }, n.push(t)), t.issues.push(r);
116
+ }, t.push(r)), r.issues.push(n);
117
117
  }
118
- return n.push(e), n.filter((e) => s || e.issues.length > 0);
118
+ return t.push(e), t.filter((e) => s || e.issues.length > 0);
119
119
  }
120
- if (n === "none") return t.length > 0 ? [{
120
+ if (i === "none") return r.length > 0 ? [{
121
121
  key: "all",
122
- label: r.none.all,
123
- issues: t
122
+ label: a.none.all,
123
+ issues: r
124
124
  }] : [];
125
- if (n === "status") return _.map((e) => ({
125
+ if (i === "status") return _.map((e) => ({
126
126
  key: e,
127
- label: r.status(e),
128
- icon: /* @__PURE__ */ l(a, { category: e }),
129
- issues: t.filter((t) => t.status.category === e)
127
+ label: a.status(e),
128
+ icon: /* @__PURE__ */ l(t, { category: e }),
129
+ issues: r.filter((t) => t.status.category === e)
130
130
  })).filter((e) => s || e.issues.length > 0);
131
- if (n === "priority") return [
131
+ if (i === "priority") return [
132
132
  1,
133
133
  2,
134
134
  3,
135
135
  4,
136
136
  0
137
- ].map((e) => ({
138
- key: String(e),
139
- label: r.priority(e),
140
- icon: /* @__PURE__ */ l(i, { priority: e }),
141
- issues: t.filter((t) => t.priority === e)
137
+ ].map((t) => ({
138
+ key: String(t),
139
+ label: a.priority(t),
140
+ icon: /* @__PURE__ */ l(e, { priority: t }),
141
+ issues: r.filter((e) => e.priority === t)
142
142
  })).filter((e) => s || e.issues.length > 0);
143
143
  let p = /* @__PURE__ */ new Map(), m = {
144
144
  key: "",
@@ -153,18 +153,18 @@ function x(t, n, r, s = !1, u = [], d = []) {
153
153
  };
154
154
  i.issues.push(e), p.set(t, i);
155
155
  };
156
- for (let e of t) if (n === "assignee") {
156
+ for (let e of r) if (i === "assignee") {
157
157
  for (let t of s ? e.assignees : e.assignees.slice(0, 1)) {
158
- let n = r.person(t.kind, t.handle);
158
+ let n = a.person(t.kind, t.handle);
159
159
  h(e, `${t.kind}:${t.handle}`, n, /* @__PURE__ */ l(c, {
160
160
  name: n,
161
- src: r.avatar(t.kind, t.handle),
161
+ src: a.avatar(t.kind, t.handle),
162
162
  size: "xs",
163
163
  decorative: !0
164
164
  }));
165
165
  }
166
166
  e.assignees.length === 0 && m.issues.push(e);
167
- } else if (n === "project") e.project ? h(e, e.project.id, e.project.name) : m.issues.push(e);
167
+ } else if (i === "project") e.project ? h(e, e.project.id, e.project.name) : m.issues.push(e);
168
168
  else {
169
169
  for (let t of s ? e.labels : e.labels.slice(0, 1)) h(e, t.id, t.name, /* @__PURE__ */ l("span", {
170
170
  className: "size-2 rounded-full",
@@ -176,7 +176,7 @@ function x(t, n, r, s = !1, u = [], d = []) {
176
176
  return (s || m.issues.length > 0) && g.push({
177
177
  ...m,
178
178
  key: "none",
179
- label: r.none[n]
179
+ label: a.none[i]
180
180
  }), g;
181
181
  }
182
182
  function S(e, t, n, r) {
@@ -231,7 +231,7 @@ function S(e, t, n, r) {
231
231
  return t.kind === "person" && u.sort((e, t) => e.label.localeCompare(t.label)), u.push(i), u.filter((e) => r || e.issues.length > 0);
232
232
  }
233
233
  function C(e, t) {
234
- let r = e.view ?? "active", i = (e.status ?? "").split(",").flatMap((e) => {
234
+ let n = e.view ?? "active", r = (e.status ?? "").split(",").flatMap((e) => {
235
235
  let n = t?.filter((t) => s(t) === e).map((e) => e.id) ?? [];
236
236
  return n.length > 0 ? n : [e];
237
237
  });
@@ -240,18 +240,18 @@ function C(e, t) {
240
240
  ...e.assignee && { assignee: e.assignee },
241
241
  ...e.assignee && e.assigneeKind && { assigneeKind: e.assigneeKind },
242
242
  ...e.creator && { creator: e.creator },
243
- ...e.status && { status: i },
243
+ ...e.status && { status: r },
244
244
  ...e.priority && { priority: e.priority.split(",").map(Number) },
245
245
  ...e.label && { label: e.label },
246
246
  ...e.project && { project: e.project },
247
247
  ...e.customer && { customer: e.customer },
248
248
  ...e.cycle && { cycle: e.cycle },
249
249
  ...e.type && { type: e.type.split(",") },
250
- ...e.fields && { field: n(e.fields).map((e) => `${e.field}:${e.value}`) },
250
+ ...e.fields && { field: i(e.fields).map((e) => `${e.field}:${e.value}`) },
251
251
  ...e.overdue && { overdue: !0 },
252
252
  ...e.q && { q: e.q },
253
- ...u[r].categories.length > 0 && { category: u[r].categories },
254
- ...r === "all" && { triage: "include" }
253
+ ...u[n].categories.length > 0 && { category: u[n].categories },
254
+ ...n === "all" && { triage: "include" }
255
255
  };
256
256
  }
257
257
  export { x as groupIssues, f as groupings, m as isGrouping, p as isOrder, C as issueFilterOf, g as issueSearch, d as orders, y as sortIssues, u as views };
package/lib/issueMenu.js CHANGED
@@ -3,10 +3,10 @@ import { api as t, unwrap as n } from "../api/client.js";
3
3
  import { branchName as r, issuePath as i } from "./branch.js";
4
4
  import { useNavigate as a } from "./router.js";
5
5
  import { cyclesQuery as o, issueQuery as s, labelsQuery as c, projectsQuery as l, statusesQuery as u, teamsQuery as d } from "../api/queries.js";
6
- import { CalendarIcon as f, CycleIcon as p, EstimateIcon as ee, FolderIcon as te, PriorityIcon as m, ProjectIcon as h, StatusIcon as g, TagIcon as _, UserIcon as v, usePriorityNames as y } from "../components/icons.js";
7
- import { useFavorites as b } from "./favorites.js";
8
- import { copyItem as x } from "./menus.js";
9
- import { invalidateIssueViews as S } from "../api/mutations.js";
6
+ import { invalidateIssueViews as f } from "../api/mutations.js";
7
+ import { useFavorites as p } from "./favorites.js";
8
+ import { copyItem as m } from "./menus.js";
9
+ import { CalendarIcon as ee, CycleIcon as h, EstimateIcon as g, FolderIcon as _, PriorityIcon as v, ProjectIcon as y, StatusIcon as b, TagIcon as x, UserIcon as te, usePriorityNames as S } from "../components/icons.js";
10
10
  import { addDays as C, today as w } from "./time.js";
11
11
  import { ProjectStatusIcon as T, scalePoints as E, useEstimateLabel as D } from "../components/Planning.js";
12
12
  import { assigneeKey as O, parseAssigneeKey as k, useAssigneeOptions as A } from "./assignees.js";
@@ -20,7 +20,7 @@ function R(t, n) {
20
20
  return e(i(t, n));
21
21
  }
22
22
  function z(e) {
23
- let i = L(), z = a(), { data: B = [] } = I(d(e)), { data: V = [] } = I(c(e)), H = A(e), U = b(e), W = y(), G = N("issueMenu"), K = N("common"), q = N("favorites"), J = F({ queries: B.map((t) => u(e, t.key)) }), Y = N("planning"), X = D(), { data: Z = [] } = I(l(e)), Q = F({ queries: B.map((t) => ({
23
+ let i = L(), z = a(), { data: B = [] } = I(d(e)), { data: V = [] } = I(c(e)), H = A(e), U = p(e), W = S(), G = N("issueMenu"), K = N("common"), q = N("favorites"), J = F({ queries: B.map((t) => u(e, t.key)) }), Y = N("planning"), X = D(), { data: Z = [] } = I(l(e)), Q = F({ queries: B.map((t) => ({
24
24
  ...o(e, t.key),
25
25
  enabled: t.cyclesEnabled
26
26
  })) });
@@ -41,7 +41,7 @@ function z(e) {
41
41
  } },
42
42
  body: o
43
43
  }));
44
- i.setQueryData(s(e, a.identifier).queryKey, c), S(i, e, a.identifier);
44
+ i.setQueryData(s(e, a.identifier).queryKey, c), f(i, e, a.identifier);
45
45
  }));
46
46
  }, d = async (r) => {
47
47
  await Promise.all(a.filter((e) => e.identifier.split("-")[0] !== r).map(async (a) => {
@@ -52,7 +52,7 @@ function z(e) {
52
52
  } },
53
53
  body: { team: r }
54
54
  }));
55
- i.setQueryData(s(e, o.identifier).queryKey, o), S(i, e, a.identifier), window.location.pathname.toLowerCase().includes(a.identifier.toLowerCase()) && z({
55
+ i.setQueryData(s(e, o.identifier).queryKey, o), f(i, e, a.identifier), window.location.pathname.toLowerCase().includes(a.identifier.toLowerCase()) && z({
56
56
  to: "/$workspace/issues/$identifier",
57
57
  params: {
58
58
  workspace: e,
@@ -61,15 +61,15 @@ function z(e) {
61
61
  replace: !0
62
62
  });
63
63
  }));
64
- }, y = async (r) => {
64
+ }, p = async (r) => {
65
65
  await Promise.all(a.filter((e) => !!e.archivedAt !== r).map(async (a) => {
66
66
  let o = { params: { path: {
67
67
  workspace: e,
68
68
  identifier: a.identifier
69
69
  } } }, c = n(r ? await t.POST("/api/v1/workspaces/{workspace}/issues/{identifier}/archive", o) : await t.POST("/api/v1/workspaces/{workspace}/issues/{identifier}/restore", o));
70
- i.setQueryData(s(e, a.identifier).queryKey, c), S(i, e, a.identifier);
70
+ i.setQueryData(s(e, a.identifier).queryKey, c), f(i, e, a.identifier);
71
71
  }));
72
- }, b = (e, t) => {
72
+ }, S = (e, t) => {
73
73
  let n = c(t.teamId);
74
74
  return (n.find((t) => t.name === e.name) ?? n.find((t) => t.category === e.category))?.id;
75
75
  }, D = a.length === 1, A = l((e) => e.teamId === o.teamId) ? B.findIndex((e) => e.id === o.teamId) : -1, M = B[A], N = (M?.cyclesEnabled ? Q[A]?.data ?? [] : []).filter((e) => e.state !== "past"), F = M?.estimateScale ?? "none", I = l((e) => e.project?.id === o.project?.id) ? o.project?.id : void 0, L = Z.find((e) => e.id === I)?.milestones ?? [], ne = (e) => e.name ? Y("cycleNamed", {
@@ -95,7 +95,7 @@ function z(e) {
95
95
  ], ie = [
96
96
  {
97
97
  label: Y("project"),
98
- icon: /* @__PURE__ */ P(h, { className: "size-4" }),
98
+ icon: /* @__PURE__ */ P(y, { className: "size-4" }),
99
99
  disabled: Z.length === 0,
100
100
  items: [{
101
101
  label: Y("noProject"),
@@ -122,7 +122,7 @@ function z(e) {
122
122
  }] : [],
123
123
  ...M?.cyclesEnabled ? [{
124
124
  label: Y("cycleLabel"),
125
- icon: /* @__PURE__ */ P(p, { className: "size-4" }),
125
+ icon: /* @__PURE__ */ P(h, { className: "size-4" }),
126
126
  items: [{
127
127
  label: Y("noCycle"),
128
128
  checked: l((e) => !e.cycle),
@@ -138,7 +138,7 @@ function z(e) {
138
138
  }] : [],
139
139
  ...F === "none" ? [] : [{
140
140
  label: Y("estimate"),
141
- icon: /* @__PURE__ */ P(ee, { className: "size-4" }),
141
+ icon: /* @__PURE__ */ P(g, { className: "size-4" }),
142
142
  items: [0, ...E(F)].map((e) => ({
143
143
  label: e ? X(e, F) : Y("noEstimate"),
144
144
  checked: l((t) => (t.estimate ?? 0) === e),
@@ -147,7 +147,7 @@ function z(e) {
147
147
  }],
148
148
  {
149
149
  label: Y("dueDate"),
150
- icon: /* @__PURE__ */ P(f, { className: "size-4" }),
150
+ icon: /* @__PURE__ */ P(ee, { className: "size-4" }),
151
151
  items: [
152
152
  ...re.map((e) => ({
153
153
  label: e.label,
@@ -166,21 +166,21 @@ function z(e) {
166
166
  return [
167
167
  {
168
168
  label: K("status"),
169
- icon: /* @__PURE__ */ P(g, { category: o.status.category }),
169
+ icon: /* @__PURE__ */ P(b, { category: o.status.category }),
170
170
  shortcut: "S",
171
171
  items: c(o.teamId).map((e) => ({
172
172
  label: e.name,
173
- icon: /* @__PURE__ */ P(g, { category: e.category }),
173
+ icon: /* @__PURE__ */ P(b, { category: e.category }),
174
174
  checked: l((t) => t.status.name === e.name),
175
175
  onClick: () => u((t) => {
176
- let n = b(e, t);
176
+ let n = S(e, t);
177
177
  return n && n !== t.status.id ? { statusId: n } : null;
178
178
  })
179
179
  }))
180
180
  },
181
181
  {
182
182
  label: K("priority"),
183
- icon: /* @__PURE__ */ P(m, { priority: o.priority }),
183
+ icon: /* @__PURE__ */ P(v, { priority: o.priority }),
184
184
  shortcut: "P",
185
185
  items: [
186
186
  1,
@@ -190,14 +190,14 @@ function z(e) {
190
190
  0
191
191
  ].map((e) => ({
192
192
  label: W[e] ?? "",
193
- icon: /* @__PURE__ */ P(m, { priority: e }),
193
+ icon: /* @__PURE__ */ P(v, { priority: e }),
194
194
  checked: l((t) => t.priority === e),
195
195
  onClick: () => u((t) => t.priority === e ? null : { priority: e })
196
196
  }))
197
197
  },
198
198
  {
199
199
  label: K("assignee"),
200
- icon: /* @__PURE__ */ P(v, {}),
200
+ icon: /* @__PURE__ */ P(te, {}),
201
201
  shortcut: "A",
202
202
  items: H.map((e) => {
203
203
  let t = k(e.value), n = (t) => t.assignees.some((t) => O(t) === e.value), r = l(n);
@@ -211,7 +211,7 @@ function z(e) {
211
211
  },
212
212
  {
213
213
  label: K("labels"),
214
- icon: /* @__PURE__ */ P(_, {}),
214
+ icon: /* @__PURE__ */ P(x, {}),
215
215
  shortcut: "L",
216
216
  disabled: V.length === 0,
217
217
  items: V.map((e) => {
@@ -230,7 +230,7 @@ function z(e) {
230
230
  ...ie,
231
231
  {
232
232
  label: G("moveToTeam"),
233
- icon: /* @__PURE__ */ P(te, {}),
233
+ icon: /* @__PURE__ */ P(_, {}),
234
234
  disabled: B.length < 2,
235
235
  items: B.filter((e) => !e.archivedAt).map((e) => ({
236
236
  label: e.name,
@@ -257,9 +257,9 @@ function z(e) {
257
257
  },
258
258
  j
259
259
  ] : [],
260
- x(G("copyLinks", { count: a.length }), a.map((t) => R(e, t.identifier)).join("\n")),
261
- x(G("copyIds", { count: a.length }), a.map((e) => e.identifier).join(", ")),
262
- ...D ? [x(G("copyTitle"), o.title), x(G("copyBranch"), r(o.identifier, o.title))] : [],
260
+ m(G("copyLinks", { count: a.length }), a.map((t) => R(e, t.identifier)).join("\n")),
261
+ m(G("copyIds", { count: a.length }), a.map((e) => e.identifier).join(", ")),
262
+ ...D ? [m(G("copyTitle"), o.title), m(G("copyBranch"), r(o.identifier, o.title))] : [],
263
263
  ...D ? [j, {
264
264
  label: U.find("issue", o.id) ? q("remove") : q("add"),
265
265
  onClick: () => U.toggle("issue", o.id)
@@ -267,10 +267,10 @@ function z(e) {
267
267
  j,
268
268
  l((e) => !!e.archivedAt) ? {
269
269
  label: G("restore"),
270
- onClick: () => y(!1)
270
+ onClick: () => p(!1)
271
271
  } : {
272
272
  label: G("archive"),
273
- onClick: () => y(!0)
273
+ onClick: () => p(!0)
274
274
  }
275
275
  ];
276
276
  }, [