@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
@@ -2,8 +2,8 @@ import { issuePath as e } from "../lib/branch.js";
2
2
  import { usePageTitle as t } from "../lib/pageTitle.js";
3
3
  import { Link as n } from "../lib/router.js";
4
4
  import { allDecisionsQuery as r, inboxQuery as i, myAllDecisionsQuery as a, myDecisionsQuery as o, teamsQuery as s } from "../api/queries.js";
5
- import { ChevronRightIcon as c, PriorityIcon as l, usePriorityNames as u } from "../components/icons.js";
6
- import { copyItem as d, useLinkItems as f } from "../lib/menus.js";
5
+ import { copyItem as c, useLinkItems as l } from "../lib/menus.js";
6
+ import { ChevronRightIcon as u, PriorityIcon as d, usePriorityNames as f } from "../components/icons.js";
7
7
  import { AnsweredDecision as p, DecisionCard as m } from "../components/AgentWork.js";
8
8
  import { FavoriteStar as h } from "../components/FavoriteStar.js";
9
9
  import { recentlyAnswered as g, saveScope as _, savedScope as v } from "../lib/decisionScope.js";
@@ -24,7 +24,7 @@ function A(e) {
24
24
  return [...t.values()];
25
25
  }
26
26
  function j({ first: t, count: r, open: i, onToggle: a, showWorkspace: o, children: s }) {
27
- let p = T("decisions"), m = f(), h = x(), g = u();
27
+ let p = T("decisions"), m = l(), h = x(), g = f();
28
28
  return /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ D("div", {
29
29
  className: "mb-1.5 flex min-w-0 items-center gap-1 text-xs text-muted-foreground",
30
30
  children: [
@@ -34,7 +34,7 @@ function j({ first: t, count: r, open: i, onToggle: a, showWorkspace: o, childre
34
34
  "aria-expanded": i,
35
35
  "aria-label": p(i ? "hideDecisions" : "showDecisions", { issue: t.identifier }),
36
36
  className: "-ml-1 shrink-0 rounded p-0.5 hover:bg-muted hover:text-foreground",
37
- children: /* @__PURE__ */ E(c, { className: i ? "size-3.5 rotate-90" : "size-3.5" })
37
+ children: /* @__PURE__ */ E(u, { className: i ? "size-3.5 rotate-90" : "size-3.5" })
38
38
  }),
39
39
  /* @__PURE__ */ D(n, {
40
40
  to: "/$workspace/issues/$identifier",
@@ -42,7 +42,7 @@ function j({ first: t, count: r, open: i, onToggle: a, showWorkspace: o, childre
42
42
  workspace: t.workspace,
43
43
  identifier: t.identifier
44
44
  },
45
- onContextMenu: (n) => h(n, [...m(e(t.workspace, t.identifier)), d(p("copyId"), t.identifier)]),
45
+ onContextMenu: (n) => h(n, [...m(e(t.workspace, t.identifier)), c(p("copyId"), t.identifier)]),
46
46
  className: "flex min-w-0 items-center gap-2 hover:text-foreground",
47
47
  children: [
48
48
  o && /* @__PURE__ */ E("span", {
@@ -53,7 +53,7 @@ function j({ first: t, count: r, open: i, onToggle: a, showWorkspace: o, childre
53
53
  content: g[t.issuePriority],
54
54
  children: /* @__PURE__ */ D("span", {
55
55
  className: "flex",
56
- children: [/* @__PURE__ */ E(l, { priority: t.issuePriority }), /* @__PURE__ */ E("span", {
56
+ children: [/* @__PURE__ */ E(d, { priority: t.issuePriority }), /* @__PURE__ */ E("span", {
57
57
  className: "sr-only",
58
58
  children: g[t.issuePriority]
59
59
  })]
@@ -80,15 +80,15 @@ function j({ first: t, count: r, open: i, onToggle: a, showWorkspace: o, childre
80
80
  })] });
81
81
  }
82
82
  function M() {
83
- let { workspace: e, key: n } = S({ strict: !1 }), l = T("decisions"), u = x(), { team: d = n } = C({ strict: !1 }), { data: f } = O(s(e)), b = f.find((e) => e.key === d);
84
- t(l("title"), b?.name);
83
+ let { workspace: e, key: n } = S({ strict: !1 }), c = T("decisions"), l = x(), { team: d = n } = C({ strict: !1 }), { data: f } = O(s(e)), b = f.find((e) => e.key === d);
84
+ t(c("title"), b?.name);
85
85
  let [M, N] = w(v), P = b ? "workspace" : M, F = P === "all", I = (e) => b ? e.filter((e) => e.identifier.startsWith(`${b.key}-`)) : e, L = (e) => {
86
86
  N(e), _(e);
87
87
  }, { data: R } = O(F ? o : i(e)), { data: z } = O(F ? a : r(e)), B = I(R), V = g(I(z)), [H, U] = w(/* @__PURE__ */ new Set()), [W, G] = w(!1), K = (e) => U((t) => {
88
88
  let n = new Set(t);
89
89
  return n.delete(e) || n.add(e), n;
90
90
  }), q = () => k.map((e) => ({
91
- label: l(`scopes.${e}`),
91
+ label: c(`scopes.${e}`),
92
92
  checked: e === P,
93
93
  onClick: () => L(e)
94
94
  }));
@@ -99,7 +99,7 @@ function M() {
99
99
  children: [
100
100
  /* @__PURE__ */ E("h1", {
101
101
  className: "text-sm font-semibold",
102
- children: b ? l("teamTitle", { team: b.name }) : l("title")
102
+ children: b ? c("teamTitle", { team: b.name }) : c("title")
103
103
  }),
104
104
  !b && /* @__PURE__ */ E(h, {
105
105
  workspace: e,
@@ -108,20 +108,20 @@ function M() {
108
108
  }),
109
109
  /* @__PURE__ */ E("span", {
110
110
  className: "text-xs text-muted-foreground",
111
- children: l("openCount", { count: B.length })
111
+ children: c("openCount", { count: B.length })
112
112
  }),
113
113
  !b && /* @__PURE__ */ E("div", {
114
114
  className: "ml-auto",
115
115
  children: /* @__PURE__ */ E(y, {
116
116
  size: "sm",
117
- label: l("scope"),
117
+ label: c("scope"),
118
118
  options: k.map((e) => ({
119
119
  value: e,
120
- label: l(`scopes.${e}`)
120
+ label: c(`scopes.${e}`)
121
121
  })),
122
122
  value: P,
123
123
  onValueChange: L,
124
- onContextMenu: (e) => u(e, q())
124
+ onContextMenu: (e) => l(e, q())
125
125
  })
126
126
  })
127
127
  ]
@@ -134,7 +134,7 @@ function M() {
134
134
  let [t] = e, n = `open:${t.workspace}/${t.identifier}`;
135
135
  return /* @__PURE__ */ E(j, {
136
136
  first: t,
137
- count: l("openCount", { count: e.length }),
137
+ count: c("openCount", { count: e.length }),
138
138
  open: !H.has(n),
139
139
  onToggle: () => K(n),
140
140
  showWorkspace: F,
@@ -148,23 +148,23 @@ function M() {
148
148
  className: "py-24 text-center",
149
149
  children: [/* @__PURE__ */ E("p", {
150
150
  className: "text-sm font-medium",
151
- children: l("emptyTitle")
151
+ children: c("emptyTitle")
152
152
  }), /* @__PURE__ */ E("p", {
153
153
  className: "mt-1 text-sm text-muted-foreground",
154
- children: l(F ? "emptyDescriptionAll" : "emptyDescription")
154
+ children: c(F ? "emptyDescriptionAll" : "emptyDescription")
155
155
  })]
156
156
  }),
157
157
  V.length > 0 && /* @__PURE__ */ D("section", {
158
158
  className: "space-y-3 pt-6",
159
- "aria-label": l("recentlyAnswered"),
159
+ "aria-label": c("recentlyAnswered"),
160
160
  children: [/* @__PURE__ */ E("h2", { children: /* @__PURE__ */ D("button", {
161
161
  type: "button",
162
162
  onClick: () => G((e) => !e),
163
163
  "aria-expanded": W,
164
164
  className: "-ml-1 flex items-center gap-1 rounded px-1 text-base font-semibold hover:bg-muted",
165
165
  children: [
166
- /* @__PURE__ */ E(c, { className: W ? "size-4 rotate-90" : "size-4" }),
167
- l("recentlyAnswered"),
166
+ /* @__PURE__ */ E(u, { className: W ? "size-4 rotate-90" : "size-4" }),
167
+ c("recentlyAnswered"),
168
168
  /* @__PURE__ */ E("span", {
169
169
  className: "ml-1 text-xs font-normal text-muted-foreground",
170
170
  children: V.length
@@ -174,7 +174,7 @@ function M() {
174
174
  let [t] = e, n = `answered:${t.workspace}/${t.identifier}`;
175
175
  return /* @__PURE__ */ E(j, {
176
176
  first: t,
177
- count: l("answeredCount", { count: e.length }),
177
+ count: c("answeredCount", { count: e.length }),
178
178
  open: H.has(n),
179
179
  onToggle: () => K(n),
180
180
  showWorkspace: F,
package/pages/issues.js CHANGED
@@ -3,26 +3,26 @@ import { ErrorMessage as t } from "../components/status.js";
3
3
  import { usePageTitle as n } from "../lib/pageTitle.js";
4
4
  import { useNavigate as r } from "../lib/router.js";
5
5
  import { cyclesQuery as i, issuesQuery as ee, labelsQuery as te, meQuery as ne, projectsQuery as re, statusesQuery as ie, teamsQuery as ae } from "../api/queries.js";
6
- import { customFieldsQuery as oe, fieldRef as se, fieldsForTeams as ce, groupableKinds as le, sortableKinds as ue } from "../lib/customFields.js";
7
- import { issueTypesQuery as de } from "../lib/issueTypes.js";
8
- import { BoardIcon as fe, ChartIcon as pe, CloseIcon as me, DownloadIcon as he, ListViewIcon as ge, SidePanelIcon as _e, UploadIcon as ve, usePriorityNames as ye } from "../components/icons.js";
9
- import { isViewAt as be, viewRef as xe } from "../lib/refs.js";
10
- import { groupIssues as Se, groupings as Ce, isGrouping as we, isOrder as Te, issueFilterOf as Ee, orders as De, sortIssues as Oe, views as ke } from "../lib/issueList.js";
11
- import { issuesHref as Ae } from "../lib/teamPaths.js";
12
- import { usePeople as je } from "../lib/people.js";
13
- import { useIssueMenu as Me } from "../lib/issueMenu.js";
14
- import { useNewIssue as Ne } from "../lib/newIssue.js";
15
- import { usePaletteSelection as Pe } from "../lib/palette.js";
16
- import { useCan as Fe } from "../lib/roles.js";
17
- import { ViewDialog as Ie } from "../components/ViewDialog.js";
18
- import { filtersOf as Le, sameFilters as Re, useSavedViews as ze, viewSearch as Be } from "../lib/views.js";
19
- import { projectRef as Ve } from "../lib/projects.js";
20
- import { useBoardMove as He } from "../lib/boardMove.js";
21
- import { IssueBoard as Ue } from "../components/IssueBoard.js";
22
- import { useIssueFilters as We, withIssueFilters as Ge } from "../components/IssueFilters.js";
23
- import { IssueRow as Ke } from "../components/IssueRow.js";
24
- import { useLive as qe } from "../lib/live.js";
25
- import { useShortcuts as Je } from "../lib/shortcuts.js";
6
+ import { BoardIcon as oe, ChartIcon as se, CloseIcon as ce, DownloadIcon as le, ListViewIcon as ue, SidePanelIcon as de, UploadIcon as fe, usePriorityNames as pe } from "../components/icons.js";
7
+ import { useNewIssue as me } from "../lib/newIssue.js";
8
+ import { usePeople as he } from "../lib/people.js";
9
+ import { useIssueMenu as ge } from "../lib/issueMenu.js";
10
+ import { projectRef as _e } from "../lib/projects.js";
11
+ import { useCan as ve } from "../lib/roles.js";
12
+ import { customFieldsQuery as ye, fieldRef as be, fieldsForTeams as xe, groupableKinds as Se, sortableKinds as Ce } from "../lib/customFields.js";
13
+ import { useBoardMove as we } from "../lib/boardMove.js";
14
+ import { issueTypesQuery as Te } from "../lib/issueTypes.js";
15
+ import { isViewAt as Ee, viewRef as De } from "../lib/refs.js";
16
+ import { groupIssues as Oe, groupings as ke, isGrouping as Ae, isOrder as je, issueFilterOf as Me, orders as Ne, sortIssues as Pe, views as Fe } from "../lib/issueList.js";
17
+ import { issuesHref as Ie } from "../lib/teamPaths.js";
18
+ import { ViewDialog as Le } from "../components/ViewDialog.js";
19
+ import { filtersOf as Re, sameFilters as ze, useSavedViews as Be, viewSearch as Ve } from "../lib/views.js";
20
+ import { IssueBoard as He } from "../components/IssueBoard.js";
21
+ import { useIssueFilters as Ue, withIssueFilters as We } from "../components/IssueFilters.js";
22
+ import { IssueRow as Ge } from "../components/IssueRow.js";
23
+ import { useShortcuts as Ke } from "../lib/shortcuts.js";
24
+ import { usePaletteSelection as qe } from "../lib/palette.js";
25
+ import { useLive as Je } from "../lib/live.js";
26
26
  import { FavoriteStar as Ye } from "../components/FavoriteStar.js";
27
27
  import { DisplayMenu as Xe } from "../components/DisplayMenu.js";
28
28
  import { IssueBreakdown as Ze, breakdownKeys as Qe } from "../components/IssueBreakdown.js";
@@ -55,7 +55,7 @@ function _({ person: e } = {}) {
55
55
  } : {
56
56
  ...b,
57
57
  assignee: e
58
- } : b, Dt = r(), Ot = (t) => e ? Ae(v, { ...Ct(t) }).replace(`/${v}/issues`, `/${v}/people/${encodeURIComponent(e)}`) : Ae(v, { ...t }), S = (t, n) => {
58
+ } : b, Dt = r(), Ot = (t) => e ? Ie(v, { ...Ct(t) }).replace(`/${v}/issues`, `/${v}/people/${encodeURIComponent(e)}`) : Ie(v, { ...t }), S = (t, n) => {
59
59
  let { team: r, ...i } = t;
60
60
  return Dt(e ? {
61
61
  to: "/$workspace/people/$username",
@@ -83,7 +83,7 @@ function _({ person: e } = {}) {
83
83
  kt.current = (e) => S(e, !0);
84
84
  let At = d((e) => S(o(x, "q", e), !0));
85
85
  At.current = (e) => S(o(x, "q", e), !0);
86
- let { data: C } = yt(ne), { data: w } = yt(ae(v)), jt = Ne(), T = x.view ?? "active", [E, Mt] = f(x.q ?? ""), D = d(null);
86
+ let { data: C } = yt(ne), { data: w } = yt(ae(v)), jt = me(), T = x.view ?? "active", [E, Mt] = f(x.q ?? ""), D = d(null);
87
87
  l(() => {
88
88
  let e = setTimeout(() => {
89
89
  (x.q ?? "") !== E && At.current(E);
@@ -93,15 +93,15 @@ function _({ person: e } = {}) {
93
93
  let { data: Nt } = g({
94
94
  ...ie(v, x.team ?? ""),
95
95
  enabled: !!x.status && !!x.team
96
- }), Pt = Ee(x, Nt), { data: O, error: Ft, isFetching: It } = g({
96
+ }), Pt = Me(x, Nt), { data: O, error: Ft, isFetching: It } = g({
97
97
  ...ee(v, Pt),
98
98
  placeholderData: vt,
99
99
  enabled: !x.status || !x.team || !!Nt
100
- }), k = O?.issues ?? [], Lt = ye(), { nameOf: Rt, avatarOf: zt } = je(v), A = x.saved ? {} : ct(), { data: Bt } = g(oe(v)), j = w.find((e) => e.key === x.team), M = u(() => ce(Bt, j ? [j.id] : w.map((e) => e.id)), [
100
+ }), k = O?.issues ?? [], Lt = pe(), { nameOf: Rt, avatarOf: zt } = he(v), A = x.saved ? {} : ct(), { data: Bt } = g(ye(v)), j = w.find((e) => e.key === x.team), M = u(() => xe(Bt, j ? [j.id] : w.map((e) => e.id)), [
101
101
  Bt,
102
102
  j,
103
103
  w
104
- ]), N = p("customFields"), Vt = p("issueTypes"), { data: Ht } = g(de(v)), Ut = u(() => (Ht ?? []).filter((e) => !e.archivedAt && (!j || e.teamIds.length === 0 || e.teamIds.includes(j.id))), [Ht, j]), P = Te(x.order, M) ? x.order : Te(A.order, M) ? A.order : "updated", F = we(x.group, M) ? x.group : we(A.group, M) ? A.group : "status", Wt = M.find((e) => e.id === se(F)), [Gt, Kt] = f(() => ot(v)), qt = M.filter((e) => Gt.includes(e.id)), I = x.layout === "board" || !x.layout && A.layout === "board", [Jt, Yt] = f(() => {
104
+ ]), N = p("customFields"), Vt = p("issueTypes"), { data: Ht } = g(Te(v)), Ut = u(() => (Ht ?? []).filter((e) => !e.archivedAt && (!j || e.teamIds.length === 0 || e.teamIds.includes(j.id))), [Ht, j]), P = je(x.order, M) ? x.order : je(A.order, M) ? A.order : "updated", F = Ae(x.group, M) ? x.group : Ae(A.group, M) ? A.group : "status", Wt = M.find((e) => e.id === be(F)), [Gt, Kt] = f(() => ot(v)), qt = M.filter((e) => Gt.includes(e.id)), I = x.layout === "board" || !x.layout && A.layout === "board", [Jt, Yt] = f(() => {
105
105
  try {
106
106
  return localStorage.getItem(at) !== "hidden";
107
107
  } catch {
@@ -123,7 +123,7 @@ function _({ person: e } = {}) {
123
123
  localStorage.setItem(rt, e ? "hidden" : "shown");
124
124
  } catch {}
125
125
  return !e;
126
- }), [en, tn] = f("assignees"), [L, nn] = f(null), R = L ? k.filter((e) => Qe(e, L.tab).includes(L.key)) : k, z = u(() => Se(Oe(R, P, M), F, {
126
+ }), [en, tn] = f("assignees"), [L, nn] = f(null), R = L ? k.filter((e) => Qe(e, L.tab).includes(L.key)) : k, z = u(() => Oe(Pe(R, P, M), F, {
127
127
  status: (e) => _(`groups.${e}`),
128
128
  priority: (e) => Lt[e] ?? "",
129
129
  person: Rt,
@@ -150,7 +150,7 @@ function _({ person: e } = {}) {
150
150
  I,
151
151
  M,
152
152
  Ut
153
- ]), B = u(() => z.flatMap((e) => e.issues), [z]), [rn, an] = f(0), V = B[Math.min(rn, B.length - 1)], [H, U] = f(/* @__PURE__ */ new Set()), W = d(null), on = Me(v), sn = He(v, w), { people: cn } = qe(), ln = u(() => {
153
+ ]), B = u(() => z.flatMap((e) => e.issues), [z]), [rn, an] = f(0), V = B[Math.min(rn, B.length - 1)], [H, U] = f(/* @__PURE__ */ new Set()), W = d(null), on = ge(v), sn = we(v, w), { people: cn } = Je(), ln = u(() => {
154
154
  let e = /* @__PURE__ */ new Map();
155
155
  for (let t of cn) {
156
156
  if (!t.identifier || t.username === C?.user.username) continue;
@@ -159,7 +159,7 @@ function _({ person: e } = {}) {
159
159
  }
160
160
  return e;
161
161
  }, [cn, C?.user.username]), un = mt(), dn = u(() => B.filter((e) => H.has(e.id)), [B, H]);
162
- Pe(dn);
162
+ qe(dn);
163
163
  let fn = (e) => U((t) => {
164
164
  let n = new Set(t);
165
165
  return n.has(e) ? n.delete(e) : n.add(e), n;
@@ -182,7 +182,7 @@ function _({ person: e } = {}) {
182
182
  let n = H.has(t.id) ? B.filter((e) => H.has(e.id)) : [t];
183
183
  H.has(t.id) || U(/* @__PURE__ */ new Set()), un(e, on(n));
184
184
  };
185
- Je({
185
+ Ke({
186
186
  ...!I && {
187
187
  j: () => G(1, !1),
188
188
  k: () => G(-1, !1),
@@ -209,7 +209,7 @@ function _({ person: e } = {}) {
209
209
  }, []), l(() => {
210
210
  document.getElementById(`row-${V?.id}`)?.scrollIntoView({ block: "nearest" });
211
211
  }, [V]);
212
- let K = w.find((e) => e.key === x.team), q = We(v, x, (e) => S(Ge(x, e), !0), !!y && !x.assignee && !x.creator && !x.saved), _n = Ae(v, { ...o(x, "q", void 0) }), { views: vn, create: yn, update: bn } = ze(v), J = vn.find((e) => be(e, x.saved)), { data: xn } = g(te(v)), { data: Sn } = g(re(v)), { data: Cn } = g({
212
+ let K = w.find((e) => e.key === x.team), q = Ue(v, x, (e) => S(We(x, e), !0), !!y && !x.assignee && !x.creator && !x.saved), _n = Ie(v, { ...o(x, "q", void 0) }), { views: vn, create: yn, update: bn } = Be(v), J = vn.find((e) => Ee(e, x.saved)), { data: xn } = g(te(v)), { data: Sn } = g(re(v)), { data: Cn } = g({
213
213
  ...i(v, K?.key ?? ""),
214
214
  enabled: !!K
215
215
  });
@@ -217,9 +217,9 @@ function _({ person: e } = {}) {
217
217
  let e = /^[0-9a-f]{8}-[0-9a-f]{4}-/i, t = { ...x }, n = xn?.find((e) => e.id === x.label);
218
218
  x.label && e.test(x.label) && n && (t.label = n.name);
219
219
  let r = Sn?.find((e) => e.id === x.project);
220
- x.project && e.test(x.project) && r && (t.project = Ve(r));
220
+ x.project && e.test(x.project) && r && (t.project = _e(r));
221
221
  let i = Cn?.find((e) => e.id === x.cycle);
222
- x.cycle && e.test(x.cycle) && i && (t.cycle = String(i.number)), x.saved && e.test(x.saved) && J && (t.saved = xe(J)), JSON.stringify(t) !== JSON.stringify(x) && kt.current(t);
222
+ x.cycle && e.test(x.cycle) && i && (t.cycle = String(i.number)), x.saved && e.test(x.saved) && J && (t.saved = De(J)), JSON.stringify(t) !== JSON.stringify(x) && kt.current(t);
223
223
  }, [
224
224
  x,
225
225
  xn,
@@ -227,12 +227,12 @@ function _({ person: e } = {}) {
227
227
  Cn,
228
228
  J
229
229
  ]);
230
- let Y = Le({
230
+ let Y = Re({
231
231
  ...x,
232
232
  ...P !== "updated" && { order: P },
233
233
  ...F !== "status" && { group: F },
234
234
  ...I && { layout: "board" }
235
- }), wn = J ? !Re(J.filters, Y) : Object.keys(Y).length > 0, Tn = Fe(v, "create_issues", x.team ? { team: x.team } : void 0), En = Fe(v, "save_views"), [Dn, On] = f(!1), [kn, An] = f(null), X = p("savedViews"), Z = C?.user.username, jn = !J && !K && (!x.assigneeKind && x.assignee === Z && !x.creator || x.creator === Z && !x.assignee), Q = e ?? (jn ? Z : void 0), $ = J?.name ?? K?.name ?? (e && e !== Z ? _("personIssues", { name: Rt("user", e) }) : !x.assigneeKind && x.assignee === Z || x.creator === Z ? _("mine") : _("all")), Mn = p("workspace");
235
+ }), wn = J ? !ze(J.filters, Y) : Object.keys(Y).length > 0, Tn = ve(v, "create_issues", x.team ? { team: x.team } : void 0), En = ve(v, "save_views"), [Dn, On] = f(!1), [kn, An] = f(null), X = p("savedViews"), Z = C?.user.username, jn = !J && !K && (!x.assigneeKind && x.assignee === Z && !x.creator || x.creator === Z && !x.assignee), Q = e ?? (jn ? Z : void 0), $ = J?.name ?? K?.name ?? (e && e !== Z ? _("personIssues", { name: Rt("user", e) }) : !x.assigneeKind && x.assignee === Z || x.creator === Z ? _("mine") : _("all")), Mn = p("workspace");
236
236
  n(...K && !J ? [Mn("issues"), K.name] : [$]);
237
237
  let Nn = wn && /* @__PURE__ */ h(_t, { children: [J?.canEdit && /* @__PURE__ */ m(s, {
238
238
  type: "button",
@@ -286,7 +286,7 @@ function _({ person: e } = {}) {
286
286
  variant: "segmented",
287
287
  size: "sm",
288
288
  label: _("view"),
289
- items: Object.keys(ke).map((e) => ({
289
+ items: Object.keys(Fe).map((e) => ({
290
290
  value: e,
291
291
  label: _(`views.${e}`),
292
292
  href: Ot(o(x, "view", e === "active" ? void 0 : e))
@@ -313,11 +313,11 @@ function _({ person: e } = {}) {
313
313
  layouts: [{
314
314
  value: "list",
315
315
  label: _("layouts.list"),
316
- icon: /* @__PURE__ */ m(ge, {})
316
+ icon: /* @__PURE__ */ m(ue, {})
317
317
  }, {
318
318
  value: "board",
319
319
  label: _("layouts.board"),
320
- icon: /* @__PURE__ */ m(fe, {})
320
+ icon: /* @__PURE__ */ m(oe, {})
321
321
  }],
322
322
  layout: I ? "board" : "list",
323
323
  onLayoutChange: (e) => {
@@ -329,10 +329,10 @@ function _({ person: e } = {}) {
329
329
  label: _("orderBy"),
330
330
  children: /* @__PURE__ */ m(ft, {
331
331
  value: P,
332
- items: [...De.map((e) => ({
332
+ items: [...Ne.map((e) => ({
333
333
  value: e,
334
334
  label: _(`order.${e}`)
335
- })), ...M.filter((e) => ue.includes(e.kind)).map((e) => ({
335
+ })), ...M.filter((e) => Ce.includes(e.kind)).map((e) => ({
336
336
  value: `field:${e.id}`,
337
337
  label: e.name
338
338
  }))],
@@ -347,10 +347,10 @@ function _({ person: e } = {}) {
347
347
  label: _("groupBy"),
348
348
  children: /* @__PURE__ */ m(ft, {
349
349
  value: F,
350
- items: [...Ce.map((e) => ({
350
+ items: [...ke.map((e) => ({
351
351
  value: e,
352
352
  label: _(`grouping.${e}`)
353
- })), ...M.filter((e) => le.includes(e.kind)).map((e) => ({
353
+ })), ...M.filter((e) => Se.includes(e.kind)).map((e) => ({
354
354
  value: `field:${e.id}`,
355
355
  label: e.name
356
356
  }))],
@@ -383,7 +383,7 @@ function _({ person: e } = {}) {
383
383
  /* @__PURE__ */ m(c, {
384
384
  variant: "secondary",
385
385
  size: "sm",
386
- icon: /* @__PURE__ */ m(_e, { className: "size-3.5" }),
386
+ icon: /* @__PURE__ */ m(de, { className: "size-3.5" }),
387
387
  label: _(Jt ? "hidePanel" : "showPanel"),
388
388
  "aria-pressed": Jt,
389
389
  onClick: Xt,
@@ -392,7 +392,7 @@ function _({ person: e } = {}) {
392
392
  /* @__PURE__ */ m(c, {
393
393
  variant: "secondary",
394
394
  size: "sm",
395
- icon: /* @__PURE__ */ m(pe, { className: "size-3.5" }),
395
+ icon: /* @__PURE__ */ m(se, { className: "size-3.5" }),
396
396
  label: _(Zt ? "hideInsights" : "showInsights"),
397
397
  "aria-pressed": Zt,
398
398
  onClick: $t
@@ -400,14 +400,14 @@ function _({ person: e } = {}) {
400
400
  /* @__PURE__ */ m(c, {
401
401
  variant: "secondary",
402
402
  size: "sm",
403
- icon: /* @__PURE__ */ m(he, { className: "size-3.5" }),
403
+ icon: /* @__PURE__ */ m(le, { className: "size-3.5" }),
404
404
  label: _("exportCsv"),
405
405
  onClick: () => Tt(v, Pt)
406
406
  }),
407
407
  x.team && Tn && /* @__PURE__ */ m(c, {
408
408
  variant: "secondary",
409
409
  size: "sm",
410
- icon: /* @__PURE__ */ m(ve, { className: "size-3.5" }),
410
+ icon: /* @__PURE__ */ m(fe, { className: "size-3.5" }),
411
411
  label: _("importCsv"),
412
412
  onClick: () => et((e, t) => An({
413
413
  name: e,
@@ -433,7 +433,7 @@ function _({ person: e } = {}) {
433
433
  file: kn,
434
434
  onClose: () => An(null)
435
435
  }),
436
- Dn && /* @__PURE__ */ m(Ie, {
436
+ Dn && /* @__PURE__ */ m(Le, {
437
437
  title: X("saveTitle"),
438
438
  submitLabel: X("save"),
439
439
  share: { allowed: En },
@@ -444,7 +444,7 @@ function _({ person: e } = {}) {
444
444
  shared: t,
445
445
  filters: Y
446
446
  });
447
- S(Be(n), !0);
447
+ S(Ve(n), !0);
448
448
  }
449
449
  }),
450
450
  /* @__PURE__ */ h("div", {
@@ -480,7 +480,7 @@ function _({ person: e } = {}) {
480
480
  /* @__PURE__ */ m(c, {
481
481
  size: "sm",
482
482
  variant: "ghost",
483
- icon: /* @__PURE__ */ m(me, {}),
483
+ icon: /* @__PURE__ */ m(ce, {}),
484
484
  label: _("clear"),
485
485
  onClick: () => U(/* @__PURE__ */ new Set())
486
486
  })
@@ -499,9 +499,9 @@ function _({ person: e } = {}) {
499
499
  children: Et("issueBreakdown.showAll")
500
500
  })]
501
501
  }),
502
- I && O && /* @__PURE__ */ m(Ue, {
502
+ I && O && /* @__PURE__ */ m(He, {
503
503
  workspace: v,
504
- columns: F === "status" && ke[T].categories.length > 0 ? z.filter((e) => e.issues.length > 0 || e.key === "completed" || ke[T].categories.includes(e.key)) : z,
504
+ columns: F === "status" && Fe[T].categories.length > 0 ? z.filter((e) => e.issues.length > 0 || e.key === "completed" || Fe[T].categories.includes(e.key)) : z,
505
505
  onMove: F === "none" ? void 0 : (e, t, n) => sn(e, F, t, n, z.find((e) => e.key === n)?.issues[0], Wt),
506
506
  onContextMenu: gn
507
507
  }),
@@ -509,7 +509,7 @@ function _({ person: e } = {}) {
509
509
  label: e.label,
510
510
  icon: e.icon,
511
511
  count: e.issues.length,
512
- children: e.issues.map((e) => /* @__PURE__ */ m(Ke, {
512
+ children: e.issues.map((e) => /* @__PURE__ */ m(Ge, {
513
513
  issue: e,
514
514
  team: w.find((t) => t.id === e.teamId),
515
515
  workspace: v,
@@ -550,7 +550,7 @@ function _({ person: e } = {}) {
550
550
  });
551
551
  }
552
552
  function wt({ workspace: e, filtered: t, onCreate: n }) {
553
- let r = p("issues.empty"), { data: i = [] } = g(ae(e)), ee = Fe(e, "manage_teams");
553
+ let r = p("issues.empty"), { data: i = [] } = g(ae(e)), ee = ve(e, "manage_teams");
554
554
  return i.some((e) => !e.archivedAt) ? /* @__PURE__ */ h("div", {
555
555
  className: "mx-auto max-w-sm px-4 py-24 text-center",
556
556
  children: [