@parallelworks/tandem-web 0.138.0 → 0.139.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 (71) hide show
  1. package/components/AgentWork.js +35 -35
  2. package/components/AppRoot.js +4 -4
  3. package/components/AreaWork.js +1 -1
  4. package/components/BlockHandle.js +3 -3
  5. package/components/CommandPalette.js +27 -27
  6. package/components/DateChip.js +27 -27
  7. package/components/DocLinkPicker.js +17 -17
  8. package/components/Graph.js +6 -6
  9. package/components/HoverCards.js +30 -29
  10. package/components/IssueListBlock.js +83 -83
  11. package/components/LinkCard.js +20 -20
  12. package/components/MentionPicker.js +12 -12
  13. package/components/NewIssueDialog.js +116 -116
  14. package/components/NewProjectDialog.js +5 -4
  15. package/components/Planning.js +31 -43
  16. package/components/RouterLink.js +4 -4
  17. package/components/ShareDialog.js +12 -12
  18. package/components/SharedUI.js +19 -19
  19. package/components/SlashMenu.js +11 -11
  20. package/components/SubPages.js +10 -10
  21. package/components/UnlinkedMentions.js +10 -10
  22. package/components/WorkCounts.js +8 -8
  23. package/components/settings.js +26 -26
  24. package/hostedApp.js +36 -36
  25. package/hosting.d.ts +24 -11
  26. package/index.js +58 -27
  27. package/lib/base.js +1 -14
  28. package/lib/docs.js +6 -6
  29. package/lib/issueMenu.js +33 -33
  30. package/lib/knowledge.js +90 -101
  31. package/lib/knowledgeKinds.js +14 -0
  32. package/lib/projectList.js +1 -1
  33. package/lib/projectStates.js +15 -0
  34. package/lib/router.js +20 -34
  35. package/package.json +6 -6
  36. package/pages/areas.js +147 -147
  37. package/pages/decisions.js +40 -40
  38. package/pages/issues.js +4 -4
  39. package/pages/projects.js +232 -231
  40. package/pages/triage.js +86 -86
  41. package/pages.js +21 -0
  42. package/routes/__root.js +6 -6
  43. package/routes/_workspace/docs/_doc2.js +12 -12
  44. package/routes/_workspace/docs2.js +8 -8
  45. package/routes/_workspace/graph2.js +9 -9
  46. package/routes/_workspace/issues/_identifier2.js +327 -327
  47. package/routes/_workspace/issues/index.js +6 -6
  48. package/routes/_workspace/knowledge/_term2.js +125 -124
  49. package/routes/_workspace/knowledge/index.js +8 -8
  50. package/routes/_workspace/knowledge/index2.js +22 -21
  51. package/routes/_workspace/measures2.js +4 -4
  52. package/routes/_workspace/people/_username.js +4 -4
  53. package/routes/_workspace/projects/_projectId3.js +264 -263
  54. package/routes/_workspace/projects/index.js +7 -7
  55. package/routes/_workspace/settings/account2.js +3 -3
  56. package/routes/_workspace/settings/audit-log2.js +4 -4
  57. package/routes/_workspace/settings/audit-log3.js +51 -51
  58. package/routes/_workspace/settings/labels2.js +14 -14
  59. package/routes/_workspace/settings/members2.js +9 -9
  60. package/routes/_workspace/settings/runners2.js +11 -11
  61. package/routes/_workspace/settings/teams2.js +15 -15
  62. package/routes/_workspace/settings/tokens2.js +5 -5
  63. package/routes/_workspace/settings/webhooks2.js +7 -7
  64. package/routes/_workspace/settings2.js +3 -3
  65. package/routes/_workspace/teams/_key/cycles/_number2.js +8 -8
  66. package/routes/_workspace/teams/_key/cycles/index2.js +20 -20
  67. package/routes/_workspace/teams/_key/issues.js +4 -4
  68. package/routes/_workspace/teams/_key/projects.js +4 -4
  69. package/routes/_workspace/teams/_key/settings2.js +8 -8
  70. package/routes/_workspace2.js +319 -319
  71. package/routes/docs/route2.js +15 -15
@@ -1,62 +1,62 @@
1
1
  import { api as e } from "../api/client.js";
2
- import { Route as t } from "./_workspace.js";
3
- import { Link as n, useLocation as r, useNavigate as i } from "../lib/router.js";
4
- import { inboxQuery as a, issuesQuery as o, meQuery as s, notificationsQuery as c, teamsQuery as ee, workspaceQuery as te } from "../api/queries.js";
5
- import { AddIcon as l, AgentIcon as ne, AreaIcon as re, ChevronDownIcon as ie, CycleIcon as ae, InboxIcon as oe, LibraryIcon as se, ListViewIcon as ce, NotificationIcon as le, ProjectIcon as ue, SearchIcon as u, TriageIcon as de, UserIcon as fe, UsersIcon as d } from "../components/icons.js";
6
- import { isViewAt as f } from "../lib/refs.js";
7
- import { teamPageOf as pe, teamPath as p } from "../lib/teamPaths.js";
8
- import { copyItem as me, useLinkItems as he } from "../lib/menus.js";
9
- import { useHost as ge } from "../lib/host.js";
10
- import { AppLauncher as _e } from "../components/AppLauncher.js";
11
- import { useFavorites as ve } from "../lib/favorites.js";
12
- import { docKey as m } from "../lib/docs.js";
13
- import { usePeople as h } from "../lib/people.js";
14
- import { NewIssueContext as ye } from "../lib/newIssue.js";
15
- import { PaletteSelectionContext as be } from "../lib/palette.js";
16
- import { isBuiltIn as xe, useCan as Se } from "../lib/roles.js";
17
- import { SettingsNav as Ce } from "../components/SettingsNav.js";
18
- import { useSavedViews as g, useViewMenu as _, viewSearch as we } from "../lib/views.js";
19
- import { EntityIcon as Te } from "../components/EntityIcon.js";
20
- import { CommandPalette as Ee } from "../components/CommandPalette.js";
21
- import { DocsTree as De } from "../components/DocsTree.js";
22
- import { FavoritesNav as Oe } from "../components/FavoritesNav.js";
23
- import { HostPanelProvider as ke, useHostPanel as Ae } from "../lib/hostPanel.js";
24
- import { HostActions as v } from "../components/HostActions.js";
25
- import { HostPanel as y } from "../components/HostPanel.js";
26
- import { PersonHoverCard as b } from "../components/PersonHoverCard.js";
27
- import { HoverCards as je } from "../components/HoverCards.js";
28
- import { Logo as Me } from "../components/Logo.js";
29
- import { CreateTeamDialog as Ne } from "../components/TeamForm.js";
30
- import { NewIssueDialog as Pe } from "../components/NewIssueDialog.js";
31
- import { ShareDialogHost as Fe } from "../components/ShareDialog.js";
32
- import { hostSignOut as Ie } from "../lib/hostSignOut.js";
33
- import { useInstall as Le } from "../lib/install.js";
34
- import { LiveProvider as Re, useLive as ze } from "../lib/live.js";
35
- import { usePushSync as Be } from "../lib/notifications.js";
36
- import { useShortcuts as Ve } from "../lib/shortcuts.js";
37
- import { ActionMenu as He, Avatar as Ue, AvatarGroup as We, Combobox as Ge, CountBadge as x, IconButton as S, Kbd as Ke, Tooltip as C, menuDivider as w, useOpenMenu as qe } from "@parallelworks/ui";
38
- import { Fragment as Je, Suspense as Ye, useCallback as Xe, useEffect as T, useMemo as Ze, useState as E } from "react";
39
- import { useLocale as Qe, useTranslations as D } from "use-intl";
40
- import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
41
- import { Outlet as $e, useParams as et } from "@tanstack/react-router";
42
- import { useQuery as j, useQueryClient as tt, useSuspenseQuery as M } from "@tanstack/react-query";
43
- import { MoreButton as nt } from "@parallelworks/ui/list";
44
- import { AppFrame as rt, AppFrameToggle as N, useAppFrame as P } from "@parallelworks/ui/app-frame";
2
+ import { useHost as t } from "../lib/host.js";
3
+ import { Route as n } from "./_workspace.js";
4
+ import { Link as r, useLocation as i, useNavigate as a } from "../lib/router.js";
5
+ import { inboxQuery as o, issuesQuery as s, meQuery as c, notificationsQuery as l, teamsQuery as ee, workspaceQuery as te } from "../api/queries.js";
6
+ import { AddIcon as u, AgentIcon as ne, AreaIcon as re, ChevronDownIcon as ie, CycleIcon as ae, InboxIcon as oe, LibraryIcon as se, ListViewIcon as ce, NotificationIcon as le, ProjectIcon as ue, SearchIcon as d, TriageIcon as de, UserIcon as fe, UsersIcon as f } from "../components/icons.js";
7
+ import { isViewAt as p } from "../lib/refs.js";
8
+ import { teamPageOf as pe, teamPath as m } from "../lib/teamPaths.js";
9
+ import { AppLauncher as me } from "../components/AppLauncher.js";
10
+ import { useFavorites as he } from "../lib/favorites.js";
11
+ import { copyItem as ge, useLinkItems as _e } from "../lib/menus.js";
12
+ import { docKey as h } from "../lib/docs.js";
13
+ import { usePeople as g } from "../lib/people.js";
14
+ import { NewIssueContext as ve } from "../lib/newIssue.js";
15
+ import { PaletteSelectionContext as ye } from "../lib/palette.js";
16
+ import { isBuiltIn as be, useCan as xe } from "../lib/roles.js";
17
+ import { SettingsNav as Se } from "../components/SettingsNav.js";
18
+ import { useSavedViews as _, useViewMenu as v, viewSearch as Ce } from "../lib/views.js";
19
+ import { EntityIcon as we } from "../components/EntityIcon.js";
20
+ import { CommandPalette as Te } from "../components/CommandPalette.js";
21
+ import { DocsTree as Ee } from "../components/DocsTree.js";
22
+ import { FavoritesNav as De } from "../components/FavoritesNav.js";
23
+ import { HostPanelProvider as Oe, useHostPanel as ke } from "../lib/hostPanel.js";
24
+ import { HostActions as y } from "../components/HostActions.js";
25
+ import { HostPanel as b } from "../components/HostPanel.js";
26
+ import { PersonHoverCard as x } from "../components/PersonHoverCard.js";
27
+ import { HoverCards as Ae } from "../components/HoverCards.js";
28
+ import { Logo as je } from "../components/Logo.js";
29
+ import { CreateTeamDialog as Me } from "../components/TeamForm.js";
30
+ import { NewIssueDialog as Ne } from "../components/NewIssueDialog.js";
31
+ import { ShareDialogHost as Pe } from "../components/ShareDialog.js";
32
+ import { hostSignOut as Fe } from "../lib/hostSignOut.js";
33
+ import { useInstall as Ie } from "../lib/install.js";
34
+ import { LiveProvider as Le, useLive as Re } from "../lib/live.js";
35
+ import { usePushSync as ze } from "../lib/notifications.js";
36
+ import { useShortcuts as Be } from "../lib/shortcuts.js";
37
+ import { ActionMenu as Ve, Avatar as He, AvatarGroup as Ue, Combobox as We, CountBadge as S, IconButton as C, Kbd as Ge, Tooltip as w, menuDivider as T, useOpenMenu as Ke } from "@parallelworks/ui";
38
+ import { Outlet as qe, useParams as Je } from "@tanstack/react-router";
39
+ import { Fragment as Ye, Suspense as Xe, useCallback as Ze, useEffect as E, useMemo as Qe, useState as D } from "react";
40
+ import { useLocale as $e, useTranslations as O } from "use-intl";
41
+ import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
42
+ import { useQuery as M, useQueryClient as et, useSuspenseQuery as N } from "@tanstack/react-query";
43
+ import { MoreButton as tt } from "@parallelworks/ui/list";
44
+ import { AppFrame as nt, AppFrameToggle as rt, useAppFrame as P } from "@parallelworks/ui/app-frame";
45
45
  import { createPortal as it } from "react-dom";
46
46
  // src/routes/$workspace.tsx?tsr-split=component
47
47
  function at(e, t) {
48
48
  let n = e.slice(`/${t}/docs/`.length).split("/")[0];
49
- return e.startsWith(`/${t}/docs/`) && n ? m(n) : void 0;
49
+ return e.startsWith(`/${t}/docs/`) && n ? h(n) : void 0;
50
50
  }
51
51
  var F = "flex h-8 items-center gap-2.5 rounded-md px-2 text-sm text-muted-foreground hover:bg-muted hover:text-foreground", I = "bg-muted !text-foreground font-medium", L = { className: I }, R = "inline-flex h-8 min-w-8 items-center justify-center rounded-md border border-[color-mix(in_oklab,currentColor_20%,transparent)] bg-[color-mix(in_oklab,currentColor_6%,transparent)] text-sm font-medium hover:bg-[color-mix(in_oklab,currentColor_12%,transparent)]", ot = "absolute top-1.5 right-3 size-2 rounded-full bg-primary", z = (...e) => e.filter(Boolean).join(" ");
52
52
  function B() {
53
- let { workspace: d } = t.useParams(), { data: f } = M(s), { data: m } = M(te(d)), { data: h } = M(ee(d)), g = ge(), [_, we] = E(null), [Ae, y] = E(!1), b = Se(d, "manage_teams"), { canInstall: ze, install: We } = Le(), P = i(), it = tt(), B = qe(), H = ve(d), U = D("workspace"), yt = D("common"), bt = Qe(), W = D("favorites"), xt = D("roles"), G = he(), St = (e) => [
53
+ let { workspace: f } = n.useParams(), { data: p } = N(c), { data: h } = N(te(f)), { data: g } = N(ee(f)), _ = t(), [v, Ce] = D(null), [ke, b] = D(!1), x = xe(f, "manage_teams"), { canInstall: Re, install: Ue } = Ie(), P = a(), it = et(), B = Ke(), H = he(f), U = O("workspace"), yt = O("common"), bt = $e(), W = O("favorites"), xt = O("roles"), G = _e(), St = (e) => [
54
54
  {
55
55
  label: yt("open"),
56
56
  onClick: () => P({
57
57
  to: "/$workspace/teams/$key/issues",
58
58
  params: {
59
- workspace: d,
59
+ workspace: f,
60
60
  key: e.key
61
61
  }
62
62
  })
@@ -71,7 +71,7 @@ function B() {
71
71
  onClick: () => P({
72
72
  to: "/$workspace/teams/$key/cycles",
73
73
  params: {
74
- workspace: d,
74
+ workspace: f,
75
75
  key: e.key
76
76
  }
77
77
  })
@@ -81,7 +81,7 @@ function B() {
81
81
  onClick: () => P({
82
82
  to: "/$workspace/teams/$key/settings",
83
83
  params: {
84
- workspace: d,
84
+ workspace: f,
85
85
  key: e.key
86
86
  }
87
87
  })
@@ -90,292 +90,292 @@ function B() {
90
90
  label: H.find("team", e.id) ? W("remove") : W("add"),
91
91
  onClick: () => H.toggle("team", e.id)
92
92
  },
93
- w,
94
- ...G(p(d, e.key, "issues")),
95
- me(yt("copyKey"), e.key)
93
+ T,
94
+ ...G(m(f, e.key, "issues")),
95
+ ge(yt("copyKey"), e.key)
96
96
  ], K = (e) => ({
97
97
  label: H.find("page", e) ? W("remove") : W("add"),
98
98
  onClick: () => H.toggle("page", e)
99
- }), q = r(), [Ct, wt] = E(() => mt().expanded), [Tt, Et] = E(() => mt().width), Dt = Ze(() => {
100
- let e = pe(q.pathname, d), t = e?.page === "issues" ? e.team : void 0, n = q.pathname === `/${d}/issues` || t !== void 0, r = q.search, i = n && !r.saved;
99
+ }), q = i(), [Ct, wt] = D(() => mt().expanded), [Tt, Et] = D(() => mt().width), Dt = Qe(() => {
100
+ let e = pe(q.pathname, f), t = e?.page === "issues" ? e.team : void 0, n = q.pathname === `/${f}/issues` || t !== void 0, r = q.search, i = n && !r.saved;
101
101
  return {
102
- mine: i && !t && (r.assignee === f?.user.username || r.creator === f?.user.username),
102
+ mine: i && !t && (r.assignee === p?.user.username || r.creator === p?.user.username),
103
103
  team: i && !r.assignee ? t : void 0,
104
104
  saved: n ? r.saved : void 0
105
105
  };
106
106
  }, [
107
107
  q.pathname,
108
108
  q.search,
109
- d,
110
- f?.user.username
109
+ f,
110
+ p?.user.username
111
111
  ]), J = (e, t) => {
112
- let n = pe(q.pathname, d);
112
+ let n = pe(q.pathname, f);
113
113
  return n?.page === e && n.team === t;
114
- }, [Ot, kt] = E(() => pt(d)), At = (e) => kt((t) => {
114
+ }, [Ot, kt] = D(() => pt(f)), At = (e) => kt((t) => {
115
115
  let n = new Set(t);
116
- return n.delete(e) || n.add(e), gt(d, n), n;
117
- }), Y = q.pathname.startsWith(`/${d}/settings`), { data: jt = [] } = j(a(d)), Mt = h.some((e) => e.triageEnabled && !e.archivedAt), { data: Nt } = j({
118
- ...o(d, { triage: "only" }),
116
+ return n.delete(e) || n.add(e), gt(f, n), n;
117
+ }), Y = q.pathname.startsWith(`/${f}/settings`), { data: jt = [] } = M(o(f)), Mt = g.some((e) => e.triageEnabled && !e.archivedAt), { data: Nt } = M({
118
+ ...s(f, { triage: "only" }),
119
119
  enabled: Mt
120
- }), Pt = (e) => Nt?.issues.filter((t) => t.teamId === e).length ?? 0, { data: Ft } = j(c(d)), It = Ft?.unread ?? 0;
121
- Be();
122
- let { key: X } = et({ strict: !1 }), Z = Xe((e) => we({
120
+ }), Pt = (e) => Nt?.issues.filter((t) => t.teamId === e).length ?? 0, { data: Ft } = M(l(f)), It = Ft?.unread ?? 0;
121
+ ze();
122
+ let { key: X } = Je({ strict: !1 }), Z = Ze((e) => Ce({
123
123
  ...X && { team: X },
124
124
  ...e
125
125
  }), [X]);
126
- Ve({ c: () => Z() }, _ === null);
127
- let [Lt, Q] = E(!1), [Rt, zt] = E([]);
128
- if (T(() => {
126
+ Be({ c: () => Z() }, v === null);
127
+ let [Lt, Q] = D(!1), [Rt, zt] = D([]);
128
+ if (E(() => {
129
129
  let e = (e) => {
130
130
  !e.metaKey && !e.ctrlKey || e.altKey || e.shiftKey || e.key.toLowerCase() !== "k" || e.defaultPrevented || (e.preventDefault(), Q((e) => !e)), !e.metaKey && !e.ctrlKey || e.altKey || e.shiftKey || e.key.toLowerCase() !== "f" || e.defaultPrevented || _t() || (e.preventDefault(), Q(!0));
131
131
  };
132
132
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
133
- }, []), !f) return null;
134
- let Bt = f.mode === "platform", Vt = ze && !Bt, $ = f.signOutUrl, Ht = !g && (!Bt || $ !== void 0), Ut = async () => {
135
- $ === void 0 ? (await e.POST("/api/v1/auth/logout"), it.clear(), P({ to: "/login" })) : await Ie($);
133
+ }, []), !p) return null;
134
+ let Bt = p.mode === "platform", Vt = Re && !Bt, $ = p.signOutUrl, Ht = !_ && (!Bt || $ !== void 0), Ut = async () => {
135
+ $ === void 0 ? (await e.POST("/api/v1/auth/logout"), it.clear(), P({ to: "/login" })) : await Fe($);
136
136
  }, Wt = Y ? void 0 : ({ expanded: e }) => {
137
- let t = /* @__PURE__ */ k(Ge, {
138
- items: [...f.workspaces.map((e) => ({
137
+ let t = /* @__PURE__ */ A(We, {
138
+ items: [...p.workspaces.map((e) => ({
139
139
  value: e.slug,
140
140
  label: e.name,
141
- hint: xe(e.role) ? xt(`${e.role}.name`) : xt("custom")
142
- })), ...f.canCreateWorkspace ? [{
141
+ hint: be(e.role) ? xt(`${e.role}.name`) : xt("custom")
142
+ })), ...p.canCreateWorkspace ? [{
143
143
  value: "__new",
144
144
  label: U("createWorkspace")
145
145
  }] : []],
146
- value: d,
146
+ value: f,
147
147
  onValueChange: (e) => P(e === "__new" ? { to: "/new" } : {
148
148
  to: "/$workspace/issues",
149
- params: { workspace: e ?? d }
149
+ params: { workspace: e ?? f }
150
150
  }),
151
151
  placeholder: U("switchWorkspacePlaceholder"),
152
152
  "aria-label": U("switchWorkspace"),
153
- trigger: /* @__PURE__ */ A("button", {
153
+ trigger: /* @__PURE__ */ j("button", {
154
154
  type: "button",
155
- "aria-label": e ? void 0 : m.name,
155
+ "aria-label": e ? void 0 : h.name,
156
156
  onContextMenu: (e) => B(e, [
157
157
  {
158
158
  label: U("workspaceSettings"),
159
159
  onClick: () => P({
160
160
  to: "/$workspace/settings",
161
- params: { workspace: d }
161
+ params: { workspace: f }
162
162
  })
163
163
  },
164
164
  {
165
165
  label: U("switchWorkspace"),
166
- items: [...f.workspaces.map((e) => ({
166
+ items: [...p.workspaces.map((e) => ({
167
167
  label: e.name,
168
- checked: e.slug === d,
168
+ checked: e.slug === f,
169
169
  onClick: () => P({
170
170
  to: "/$workspace/issues",
171
171
  params: { workspace: e.slug }
172
172
  })
173
- })), ...f.canCreateWorkspace ? [w, {
173
+ })), ...p.canCreateWorkspace ? [T, {
174
174
  label: U("createWorkspace"),
175
175
  onClick: () => P({ to: "/new" })
176
176
  }] : []]
177
177
  },
178
- w,
179
- me(U("copyWorkspaceSlug"), d),
180
- ...Ht ? [w, {
178
+ T,
179
+ ge(U("copyWorkspaceSlug"), f),
180
+ ...Ht ? [T, {
181
181
  label: U("signOut"),
182
182
  onClick: Ut
183
183
  }] : []
184
184
  ]),
185
185
  className: z("flex h-9 items-center gap-2 rounded-md text-left hover:bg-muted", e ? "w-full px-2" : "w-9 justify-center"),
186
- children: [m.icon ? /* @__PURE__ */ k(Te, {
187
- icon: m.icon,
188
- color: m.color,
189
- name: m.name,
186
+ children: [h.icon ? /* @__PURE__ */ A(we, {
187
+ icon: h.icon,
188
+ color: h.color,
189
+ name: h.name,
190
190
  className: "size-6 text-base"
191
- }) : /* @__PURE__ */ k(Me, { withName: !1 }), e && /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("span", {
191
+ }) : /* @__PURE__ */ A(je, { withName: !1 }), e && /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A("span", {
192
192
  className: "min-w-0 flex-1 truncate text-sm font-semibold",
193
- children: m.name
194
- }), /* @__PURE__ */ k(ie, { className: "size-3.5 text-muted-foreground" })] })]
193
+ children: h.name
194
+ }), /* @__PURE__ */ A(ie, { className: "size-3.5 text-muted-foreground" })] })]
195
195
  })
196
196
  });
197
- return e ? /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ A("div", {
197
+ return e ? /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ j("div", {
198
198
  className: "flex items-center gap-1",
199
199
  children: [
200
- /* @__PURE__ */ k("div", {
200
+ /* @__PURE__ */ A("div", {
201
201
  className: "min-w-0 flex-1",
202
202
  children: t
203
203
  }),
204
- !g && /* @__PURE__ */ k(v, { className: "hidden md:flex" }),
205
- !g && /* @__PURE__ */ k(_e, {
206
- apps: f.apps ?? [],
204
+ !_ && /* @__PURE__ */ A(y, { className: "hidden md:flex" }),
205
+ !_ && /* @__PURE__ */ A(me, {
206
+ apps: p.apps ?? [],
207
207
  className: "hidden md:block"
208
208
  })
209
209
  ]
210
- }), /* @__PURE__ */ A("div", {
210
+ }), /* @__PURE__ */ j("div", {
211
211
  className: "mt-3 flex gap-1.5",
212
- children: [/* @__PURE__ */ A("button", {
212
+ children: [/* @__PURE__ */ j("button", {
213
213
  type: "button",
214
214
  onClick: () => Z(),
215
215
  className: z(R, "min-w-0 flex-1 gap-2 px-2"),
216
216
  children: [
217
- /* @__PURE__ */ k(l, { className: "size-3.5" }),
218
- /* @__PURE__ */ k("span", {
217
+ /* @__PURE__ */ A(u, { className: "size-3.5" }),
218
+ /* @__PURE__ */ A("span", {
219
219
  className: "flex-1 text-left",
220
220
  children: U("newIssue")
221
221
  }),
222
- /* @__PURE__ */ k(Ke, {
222
+ /* @__PURE__ */ A(Ge, {
223
223
  keys: "C",
224
224
  size: "xs",
225
225
  variant: "plain"
226
226
  })
227
227
  ]
228
- }), /* @__PURE__ */ k(C, {
228
+ }), /* @__PURE__ */ A(w, {
229
229
  content: U("openPalette"),
230
230
  shortcut: "Mod+K",
231
- children: /* @__PURE__ */ k("button", {
231
+ children: /* @__PURE__ */ A("button", {
232
232
  type: "button",
233
233
  onClick: () => Q(!0),
234
234
  "aria-label": U("openPalette"),
235
235
  "aria-keyshortcuts": "Meta+K Control+K",
236
236
  className: R,
237
- children: /* @__PURE__ */ k(u, { className: "size-3.5" })
237
+ children: /* @__PURE__ */ A(d, { className: "size-3.5" })
238
238
  })
239
239
  })]
240
- })] }) : /* @__PURE__ */ A("div", {
240
+ })] }) : /* @__PURE__ */ j("div", {
241
241
  className: "flex flex-col items-center gap-1.5",
242
242
  children: [
243
243
  t,
244
- !g && /* @__PURE__ */ k(_e, { apps: f.apps ?? [] }),
245
- !g && /* @__PURE__ */ k(v, { className: "flex-col" }),
246
- /* @__PURE__ */ k(C, {
244
+ !_ && /* @__PURE__ */ A(me, { apps: p.apps ?? [] }),
245
+ !_ && /* @__PURE__ */ A(y, { className: "flex-col" }),
246
+ /* @__PURE__ */ A(w, {
247
247
  content: U("newIssue"),
248
248
  shortcut: "C",
249
249
  side: "right",
250
- children: /* @__PURE__ */ k("button", {
250
+ children: /* @__PURE__ */ A("button", {
251
251
  type: "button",
252
252
  onClick: () => Z(),
253
253
  "aria-label": U("newIssue"),
254
254
  className: R,
255
- children: /* @__PURE__ */ k(l, { className: "size-3.5" })
255
+ children: /* @__PURE__ */ A(u, { className: "size-3.5" })
256
256
  })
257
257
  }),
258
- /* @__PURE__ */ k(C, {
258
+ /* @__PURE__ */ A(w, {
259
259
  content: U("openPalette"),
260
260
  shortcut: "Mod+K",
261
261
  side: "right",
262
- children: /* @__PURE__ */ k("button", {
262
+ children: /* @__PURE__ */ A("button", {
263
263
  type: "button",
264
264
  onClick: () => Q(!0),
265
265
  "aria-label": U("openPalette"),
266
266
  "aria-keyshortcuts": "Meta+K Control+K",
267
267
  className: R,
268
- children: /* @__PURE__ */ k(u, { className: "size-3.5" })
268
+ children: /* @__PURE__ */ A(d, { className: "size-3.5" })
269
269
  })
270
270
  })
271
271
  ]
272
272
  });
273
273
  }, Gt = ({ expanded: e, mobileOpen: t }) => {
274
- if (Y) return /* @__PURE__ */ k(Ce, { workspace: d });
275
- let r = !e, i = z(F, r && "relative justify-center px-0"), a = (e) => r ? /* @__PURE__ */ k("span", {
274
+ if (Y) return /* @__PURE__ */ A(Se, { workspace: f });
275
+ let n = !e, i = z(F, n && "relative justify-center px-0"), a = (e) => n ? /* @__PURE__ */ A("span", {
276
276
  className: "sr-only",
277
277
  children: e
278
278
  }) : e;
279
- return /* @__PURE__ */ A(O, { children: [
280
- t && /* @__PURE__ */ k(st, {}),
281
- /* @__PURE__ */ A("nav", {
279
+ return /* @__PURE__ */ j(k, { children: [
280
+ t && /* @__PURE__ */ A(st, {}),
281
+ /* @__PURE__ */ j("nav", {
282
282
  className: "space-y-0.5",
283
283
  "aria-label": U("workspaceNav"),
284
284
  children: [
285
- /* @__PURE__ */ k(V, {
286
- rail: r,
285
+ /* @__PURE__ */ A(V, {
286
+ rail: n,
287
287
  label: U("notifications"),
288
- children: /* @__PURE__ */ A(n, {
288
+ children: /* @__PURE__ */ j(r, {
289
289
  to: "/$workspace/notifications",
290
- params: { workspace: d },
291
- onContextMenu: (e) => B(e, G(`/${d}/notifications`)),
290
+ params: { workspace: f },
291
+ onContextMenu: (e) => B(e, G(`/${f}/notifications`)),
292
292
  className: i,
293
293
  activeProps: L,
294
- children: [/* @__PURE__ */ k(le, { className: "size-4" }), r ? /* @__PURE__ */ A(O, { children: [a(U("notifications")), It > 0 && /* @__PURE__ */ k("span", { className: ot })] }) : /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("span", {
294
+ children: [/* @__PURE__ */ A(le, { className: "size-4" }), n ? /* @__PURE__ */ j(k, { children: [a(U("notifications")), It > 0 && /* @__PURE__ */ A("span", { className: ot })] }) : /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A("span", {
295
295
  className: "flex-1",
296
296
  children: U("notifications")
297
- }), /* @__PURE__ */ k(x, {
297
+ }), /* @__PURE__ */ A(S, {
298
298
  count: It,
299
299
  locale: bt,
300
300
  label: U("unreadCount")
301
301
  })] })]
302
302
  })
303
303
  }),
304
- /* @__PURE__ */ k(V, {
305
- rail: r,
304
+ /* @__PURE__ */ A(V, {
305
+ rail: n,
306
306
  label: U("myIssues"),
307
- children: /* @__PURE__ */ A(n, {
307
+ children: /* @__PURE__ */ j(r, {
308
308
  to: "/$workspace/issues",
309
- params: { workspace: d },
310
- search: { assignee: f.user.username },
309
+ params: { workspace: f },
310
+ search: { assignee: p.user.username },
311
311
  onContextMenu: (e) => B(e, [
312
312
  K("my-issues"),
313
- w,
314
- ...G(`/${d}/issues?assignee=${f.user.username}`)
313
+ T,
314
+ ...G(`/${f}/issues?assignee=${p.user.username}`)
315
315
  ]),
316
316
  className: z(i, Dt.mine && I),
317
317
  children: [
318
- /* @__PURE__ */ k(fe, { className: "size-4" }),
318
+ /* @__PURE__ */ A(fe, { className: "size-4" }),
319
319
  " ",
320
320
  a(U("myIssues"))
321
321
  ]
322
322
  })
323
323
  }),
324
- /* @__PURE__ */ k(V, {
325
- rail: r,
324
+ /* @__PURE__ */ A(V, {
325
+ rail: n,
326
326
  label: U("projects"),
327
- children: /* @__PURE__ */ A(n, {
327
+ children: /* @__PURE__ */ j(r, {
328
328
  to: "/$workspace/projects",
329
- params: { workspace: d },
329
+ params: { workspace: f },
330
330
  onContextMenu: (e) => B(e, [
331
331
  K("projects"),
332
- w,
333
- ...G(`/${d}/projects`)
332
+ T,
333
+ ...G(`/${f}/projects`)
334
334
  ]),
335
335
  className: i,
336
336
  activeProps: L,
337
337
  children: [
338
- /* @__PURE__ */ k(ue, { className: "size-4" }),
338
+ /* @__PURE__ */ A(ue, { className: "size-4" }),
339
339
  " ",
340
340
  a(U("projects"))
341
341
  ]
342
342
  })
343
343
  }),
344
- /* @__PURE__ */ k(V, {
345
- rail: r,
344
+ /* @__PURE__ */ A(V, {
345
+ rail: n,
346
346
  label: U("knowledge"),
347
- children: /* @__PURE__ */ A(n, {
347
+ children: /* @__PURE__ */ j(r, {
348
348
  to: "/$workspace/knowledge",
349
- params: { workspace: d },
349
+ params: { workspace: f },
350
350
  onContextMenu: (e) => B(e, [
351
351
  K("knowledge"),
352
- w,
353
- ...G(`/${d}/knowledge`)
352
+ T,
353
+ ...G(`/${f}/knowledge`)
354
354
  ]),
355
355
  className: i,
356
356
  activeProps: L,
357
357
  children: [
358
- /* @__PURE__ */ k(se, { className: "size-4" }),
358
+ /* @__PURE__ */ A(se, { className: "size-4" }),
359
359
  " ",
360
360
  a(U("knowledge"))
361
361
  ]
362
362
  })
363
363
  }),
364
- /* @__PURE__ */ k(V, {
365
- rail: r,
364
+ /* @__PURE__ */ A(V, {
365
+ rail: n,
366
366
  label: U("agents"),
367
- children: /* @__PURE__ */ A(n, {
367
+ children: /* @__PURE__ */ j(r, {
368
368
  to: "/$workspace/agents",
369
- params: { workspace: d },
369
+ params: { workspace: f },
370
370
  onContextMenu: (e) => B(e, [
371
371
  K("agents"),
372
- w,
373
- ...G(`/${d}/agents`)
372
+ T,
373
+ ...G(`/${f}/agents`)
374
374
  ]),
375
375
  className: i,
376
376
  activeProps: L,
377
377
  children: [
378
- /* @__PURE__ */ k(ne, { className: "size-4" }),
378
+ /* @__PURE__ */ A(ne, { className: "size-4" }),
379
379
  " ",
380
380
  a(U("agents"))
381
381
  ]
@@ -383,161 +383,161 @@ function B() {
383
383
  })
384
384
  ]
385
385
  }),
386
- r ? /* @__PURE__ */ k("nav", {
386
+ n ? /* @__PURE__ */ A("nav", {
387
387
  className: "mt-4 space-y-0.5 border-t border-border pt-4",
388
388
  "aria-label": U("teams"),
389
- children: h.filter((e) => !e.archivedAt).map((e) => /* @__PURE__ */ k(V, {
389
+ children: g.filter((e) => !e.archivedAt).map((e) => /* @__PURE__ */ A(V, {
390
390
  rail: !0,
391
391
  label: e.name,
392
- children: /* @__PURE__ */ A(n, {
392
+ children: /* @__PURE__ */ j(r, {
393
393
  to: "/$workspace/teams/$key/issues",
394
394
  params: {
395
- workspace: d,
395
+ workspace: f,
396
396
  key: e.key
397
397
  },
398
398
  onContextMenu: (t) => B(t, St(e)),
399
- className: z(i, pe(q.pathname, d)?.team === e.key && I),
399
+ className: z(i, pe(q.pathname, f)?.team === e.key && I),
400
400
  children: [
401
- /* @__PURE__ */ k(Te, {
401
+ /* @__PURE__ */ A(we, {
402
402
  icon: e.icon,
403
403
  color: e.color,
404
404
  name: e.name
405
405
  }),
406
406
  a(e.name),
407
- Pt(e.id) > 0 && /* @__PURE__ */ k("span", { className: ot })
407
+ Pt(e.id) > 0 && /* @__PURE__ */ A("span", { className: ot })
408
408
  ]
409
409
  })
410
410
  }, e.id))
411
- }) : /* @__PURE__ */ A(O, { children: [
412
- /* @__PURE__ */ k(ft, {
413
- workspace: d,
411
+ }) : /* @__PURE__ */ j(k, { children: [
412
+ /* @__PURE__ */ A(ft, {
413
+ workspace: f,
414
414
  current: Dt.saved
415
415
  }),
416
- /* @__PURE__ */ k(Oe, {
417
- workspace: d,
418
- myUsername: f.user.username,
416
+ /* @__PURE__ */ A(De, {
417
+ workspace: f,
418
+ myUsername: p.user.username,
419
419
  currentHref: q.pathname + q.searchStr
420
420
  }),
421
- /* @__PURE__ */ A("div", {
421
+ /* @__PURE__ */ j("div", {
422
422
  className: "group mt-6 flex h-6 items-center pr-1 pl-2",
423
- children: [/* @__PURE__ */ k("p", {
423
+ children: [/* @__PURE__ */ A("p", {
424
424
  className: "flex-1 text-xs font-medium text-muted-foreground",
425
425
  children: U("teams")
426
- }), b && /* @__PURE__ */ k(S, {
426
+ }), x && /* @__PURE__ */ A(C, {
427
427
  variant: "ghost",
428
428
  size: "xs",
429
- icon: /* @__PURE__ */ k(l, {}),
429
+ icon: /* @__PURE__ */ A(u, {}),
430
430
  label: U("createTeam"),
431
- onClick: () => y(!0),
431
+ onClick: () => b(!0),
432
432
  className: "opacity-0 group-hover:opacity-100 focus-visible:opacity-100"
433
433
  })]
434
434
  }),
435
- /* @__PURE__ */ A("nav", {
435
+ /* @__PURE__ */ j("nav", {
436
436
  className: "mt-1 space-y-0.5",
437
437
  "aria-label": U("teams"),
438
- children: [h.filter((e) => !e.archivedAt).map((e) => /* @__PURE__ */ A(Je, { children: [/* @__PURE__ */ A("div", {
438
+ children: [g.filter((e) => !e.archivedAt).map((e) => /* @__PURE__ */ j(Ye, { children: [/* @__PURE__ */ j("div", {
439
439
  className: z(F, "group gap-0 pr-1 pl-0"),
440
- children: [/* @__PURE__ */ A("button", {
440
+ children: [/* @__PURE__ */ j("button", {
441
441
  type: "button",
442
442
  onClick: () => At(e.key),
443
443
  onContextMenu: (t) => B(t, St(e)),
444
444
  "aria-expanded": !Ot.has(e.key),
445
445
  className: "flex h-full min-w-0 flex-1 items-center gap-2.5 pl-2 text-left",
446
446
  children: [
447
- /* @__PURE__ */ k(Te, {
447
+ /* @__PURE__ */ A(we, {
448
448
  icon: e.icon,
449
449
  color: e.color,
450
450
  name: e.name
451
451
  }),
452
- /* @__PURE__ */ k("span", {
452
+ /* @__PURE__ */ A("span", {
453
453
  className: "truncate",
454
454
  children: e.name
455
455
  }),
456
- /* @__PURE__ */ k(ie, { className: z("size-3 shrink-0 text-muted-foreground transition-transform", Ot.has(e.key) && "-rotate-90") })
456
+ /* @__PURE__ */ A(ie, { className: z("size-3 shrink-0 text-muted-foreground transition-transform", Ot.has(e.key) && "-rotate-90") })
457
457
  ]
458
- }), /* @__PURE__ */ k(nt, {
458
+ }), /* @__PURE__ */ A(tt, {
459
459
  items: () => St(e),
460
460
  label: yt("moreActionsFor", { name: e.name })
461
461
  })]
462
- }), !Ot.has(e.key) && /* @__PURE__ */ A(O, { children: [
463
- e.triageEnabled && /* @__PURE__ */ A(n, {
462
+ }), !Ot.has(e.key) && /* @__PURE__ */ j(k, { children: [
463
+ e.triageEnabled && /* @__PURE__ */ j(r, {
464
464
  to: "/$workspace/teams/$key/triage",
465
465
  params: {
466
- workspace: d,
466
+ workspace: f,
467
467
  key: e.key
468
468
  },
469
- onContextMenu: (t) => B(t, G(p(d, e.key, "triage"))),
469
+ onContextMenu: (t) => B(t, G(m(f, e.key, "triage"))),
470
470
  className: z(F, "pl-8", J("triage", e.key) && I),
471
471
  children: [
472
- /* @__PURE__ */ k(de, { className: "size-4" }),
473
- /* @__PURE__ */ k("span", {
472
+ /* @__PURE__ */ A(de, { className: "size-4" }),
473
+ /* @__PURE__ */ A("span", {
474
474
  className: "flex-1",
475
475
  children: U("triage")
476
476
  }),
477
- /* @__PURE__ */ k(x, {
477
+ /* @__PURE__ */ A(S, {
478
478
  count: Pt(e.id),
479
479
  locale: bt,
480
480
  label: U("triageCount")
481
481
  })
482
482
  ]
483
483
  }),
484
- /* @__PURE__ */ A(n, {
484
+ /* @__PURE__ */ j(r, {
485
485
  to: "/$workspace/teams/$key/issues",
486
486
  params: {
487
- workspace: d,
487
+ workspace: f,
488
488
  key: e.key
489
489
  },
490
- onContextMenu: (t) => B(t, G(p(d, e.key, "issues"))),
490
+ onContextMenu: (t) => B(t, G(m(f, e.key, "issues"))),
491
491
  className: z(F, "pl-8", Dt.team === e.key && I),
492
492
  children: [
493
- /* @__PURE__ */ k(ce, { className: "size-4" }),
493
+ /* @__PURE__ */ A(ce, { className: "size-4" }),
494
494
  " ",
495
495
  U("issues")
496
496
  ]
497
497
  }),
498
- /* @__PURE__ */ A(n, {
498
+ /* @__PURE__ */ j(r, {
499
499
  to: "/$workspace/teams/$key/projects",
500
500
  params: {
501
- workspace: d,
501
+ workspace: f,
502
502
  key: e.key
503
503
  },
504
- onContextMenu: (t) => B(t, G(p(d, e.key, "projects"))),
504
+ onContextMenu: (t) => B(t, G(m(f, e.key, "projects"))),
505
505
  className: z(F, "pl-8", J("projects", e.key) && I),
506
506
  children: [
507
- /* @__PURE__ */ k(ue, { className: "size-4" }),
507
+ /* @__PURE__ */ A(ue, { className: "size-4" }),
508
508
  " ",
509
509
  U("projects")
510
510
  ]
511
511
  }),
512
- /* @__PURE__ */ A(n, {
512
+ /* @__PURE__ */ j(r, {
513
513
  to: "/$workspace/teams/$key/areas",
514
514
  params: {
515
- workspace: d,
515
+ workspace: f,
516
516
  key: e.key
517
517
  },
518
- onContextMenu: (t) => B(t, G(p(d, e.key, "areas"))),
518
+ onContextMenu: (t) => B(t, G(m(f, e.key, "areas"))),
519
519
  className: z(F, "pl-8", J("areas", e.key) && I),
520
520
  children: [
521
- /* @__PURE__ */ k(re, { className: "size-4" }),
521
+ /* @__PURE__ */ A(re, { className: "size-4" }),
522
522
  " ",
523
523
  U("areas")
524
524
  ]
525
525
  }),
526
- /* @__PURE__ */ A(n, {
526
+ /* @__PURE__ */ j(r, {
527
527
  to: "/$workspace/teams/$key/decisions",
528
528
  params: {
529
- workspace: d,
529
+ workspace: f,
530
530
  key: e.key
531
531
  },
532
- onContextMenu: (t) => B(t, G(p(d, e.key, "decisions"))),
532
+ onContextMenu: (t) => B(t, G(m(f, e.key, "decisions"))),
533
533
  className: z(F, "pl-8", J("decisions", e.key) && I),
534
534
  children: [
535
- /* @__PURE__ */ k(oe, { className: "size-4" }),
536
- /* @__PURE__ */ k("span", {
535
+ /* @__PURE__ */ A(oe, { className: "size-4" }),
536
+ /* @__PURE__ */ A("span", {
537
537
  className: "flex-1",
538
538
  children: U("decisions")
539
539
  }),
540
- /* @__PURE__ */ k(x, {
540
+ /* @__PURE__ */ A(S, {
541
541
  count: jt.filter((t) => t.identifier.startsWith(`${e.key}-`)).length,
542
542
  locale: bt,
543
543
  label: U("waitingCount"),
@@ -545,36 +545,36 @@ function B() {
545
545
  })
546
546
  ]
547
547
  }),
548
- /* @__PURE__ */ k(De, {
549
- workspace: d,
548
+ /* @__PURE__ */ A(Ee, {
549
+ workspace: f,
550
550
  team: e,
551
- current: at(q.pathname, d)
551
+ current: at(q.pathname, f)
552
552
  }),
553
- e.cyclesEnabled && /* @__PURE__ */ A(n, {
553
+ e.cyclesEnabled && /* @__PURE__ */ j(r, {
554
554
  to: "/$workspace/teams/$key/cycles",
555
555
  params: {
556
- workspace: d,
556
+ workspace: f,
557
557
  key: e.key
558
558
  },
559
559
  className: z(F, "pl-8"),
560
560
  activeProps: L,
561
561
  activeOptions: { includeSearch: !1 },
562
562
  children: [
563
- /* @__PURE__ */ k(ae, { className: "size-4" }),
563
+ /* @__PURE__ */ A(ae, { className: "size-4" }),
564
564
  " ",
565
565
  U("cycles")
566
566
  ]
567
567
  })
568
- ] })] }, e.id)), h.length === 0 && (b ? /* @__PURE__ */ A("button", {
568
+ ] })] }, e.id)), g.length === 0 && (x ? /* @__PURE__ */ j("button", {
569
569
  type: "button",
570
- onClick: () => y(!0),
570
+ onClick: () => b(!0),
571
571
  className: z(F, "w-full"),
572
572
  children: [
573
- /* @__PURE__ */ k(l, { className: "size-4" }),
573
+ /* @__PURE__ */ A(u, { className: "size-4" }),
574
574
  " ",
575
575
  U("createFirstTeam")
576
576
  ]
577
- }) : /* @__PURE__ */ k("p", {
577
+ }) : /* @__PURE__ */ A("p", {
578
578
  className: "px-2 text-sm text-muted-foreground",
579
579
  children: U("noTeams")
580
580
  }))]
@@ -587,54 +587,54 @@ function B() {
587
587
  label: U("myAccount"),
588
588
  onClick: () => P({
589
589
  to: "/$workspace/settings/account",
590
- params: { workspace: d }
590
+ params: { workspace: f }
591
591
  })
592
592
  },
593
593
  {
594
594
  label: U("settings"),
595
595
  onClick: () => P({
596
596
  to: "/$workspace/settings",
597
- params: { workspace: d }
597
+ params: { workspace: f }
598
598
  })
599
599
  },
600
600
  ...Vt ? [{
601
601
  label: U("installApp"),
602
- onClick: We
602
+ onClick: Ue
603
603
  }] : [],
604
- ...Ht ? [w, {
604
+ ...Ht ? [T, {
605
605
  label: U("signOut"),
606
606
  onClick: Ut
607
607
  }] : []
608
- ], r = /* @__PURE__ */ k(Ue, {
609
- name: f.user.name,
610
- src: f.user.avatarUrl,
608
+ ], r = /* @__PURE__ */ A(He, {
609
+ name: p.user.name,
610
+ src: p.user.avatarUrl,
611
611
  size: "sm",
612
612
  decorative: !0
613
613
  });
614
- return e ? /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k(dt, {
615
- myUsername: f.user.username,
616
- workspace: d
617
- }), /* @__PURE__ */ A("div", {
614
+ return e ? /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(dt, {
615
+ myUsername: p.user.username,
616
+ workspace: f
617
+ }), /* @__PURE__ */ j("div", {
618
618
  className: "flex items-center gap-1",
619
- children: [/* @__PURE__ */ k(He, {
620
- label: U("accountMenu", { name: f.user.name }),
619
+ children: [/* @__PURE__ */ A(Ve, {
620
+ label: U("accountMenu", { name: p.user.name }),
621
621
  side: "top",
622
622
  align: "start",
623
623
  matchTriggerWidth: !0,
624
624
  items: n,
625
- trigger: /* @__PURE__ */ A("button", {
625
+ trigger: /* @__PURE__ */ j("button", {
626
626
  type: "button",
627
627
  className: "flex h-9 min-w-0 flex-1 items-center gap-2 rounded-md px-1.5 text-left hover:bg-muted",
628
- children: [r, /* @__PURE__ */ k("span", {
628
+ children: [r, /* @__PURE__ */ A("span", {
629
629
  className: "min-w-0 flex-1 truncate text-sm",
630
- children: f.user.name
630
+ children: p.user.name
631
631
  })]
632
632
  })
633
- }), !t && /* @__PURE__ */ k(N, {})]
634
- })] }) : /* @__PURE__ */ A("div", {
633
+ }), !t && /* @__PURE__ */ A(rt, {})]
634
+ })] }) : /* @__PURE__ */ j("div", {
635
635
  className: "flex flex-col items-center gap-2",
636
- children: [/* @__PURE__ */ k(N, {}), /* @__PURE__ */ k(He, {
637
- label: U("accountMenu", { name: f.user.name }),
636
+ children: [/* @__PURE__ */ A(rt, {}), /* @__PURE__ */ A(Ve, {
637
+ label: U("accountMenu", { name: p.user.name }),
638
638
  side: "right",
639
639
  align: "end",
640
640
  items: n,
@@ -643,34 +643,34 @@ function B() {
643
643
  children: r
644
644
  })]
645
645
  });
646
- }, qt = /* @__PURE__ */ k(ct, {
647
- workspace: d,
648
- name: m.name,
649
- apps: f.apps ?? [],
646
+ }, qt = /* @__PURE__ */ A(ct, {
647
+ workspace: f,
648
+ name: h.name,
649
+ apps: p.apps ?? [],
650
650
  unread: It,
651
651
  onSearch: () => Q(!0),
652
652
  onNewIssue: () => Z()
653
653
  });
654
- return /* @__PURE__ */ k(Re, {
655
- workspace: d,
656
- children: /* @__PURE__ */ k(ke, {
657
- actions: f.actions ?? [],
658
- children: /* @__PURE__ */ k(ye.Provider, {
654
+ return /* @__PURE__ */ A(Le, {
655
+ workspace: f,
656
+ children: /* @__PURE__ */ A(Oe, {
657
+ actions: p.actions ?? [],
658
+ children: /* @__PURE__ */ A(ve.Provider, {
659
659
  value: Z,
660
- children: /* @__PURE__ */ A(be.Provider, {
660
+ children: /* @__PURE__ */ j(ye.Provider, {
661
661
  value: zt,
662
662
  children: [
663
- g ? /* @__PURE__ */ k(lt, {
664
- sidebar: g.sidebar,
663
+ _ ? /* @__PURE__ */ A(lt, {
664
+ sidebar: _.sidebar,
665
665
  brand: Wt,
666
666
  navigation: Gt,
667
667
  header: qt,
668
- presence: /* @__PURE__ */ k(dt, {
669
- myUsername: f.user.username,
670
- workspace: d
668
+ presence: /* @__PURE__ */ A(dt, {
669
+ myUsername: p.user.username,
670
+ workspace: f
671
671
  }),
672
- children: /* @__PURE__ */ k(ut, { children: /* @__PURE__ */ k($e, {}) })
673
- }) : /* @__PURE__ */ k(rt, {
672
+ children: /* @__PURE__ */ A(ut, { children: /* @__PURE__ */ A(qe, {}) })
673
+ }) : /* @__PURE__ */ A(nt, {
674
674
  expanded: Ct || Y,
675
675
  onExpandedChange: (e) => {
676
676
  wt(e), ht({
@@ -701,31 +701,31 @@ function B() {
701
701
  brand: Wt,
702
702
  navigation: Gt,
703
703
  footer: Kt,
704
- children: /* @__PURE__ */ k(ut, { children: /* @__PURE__ */ k($e, {}) })
704
+ children: /* @__PURE__ */ A(ut, { children: /* @__PURE__ */ A(qe, {}) })
705
705
  }),
706
- /* @__PURE__ */ k(je, { workspace: d }),
707
- !Bt && /* @__PURE__ */ k(vt, {}),
708
- /* @__PURE__ */ k(Ee, {
709
- workspace: d,
706
+ /* @__PURE__ */ A(Ae, { workspace: f }),
707
+ !Bt && /* @__PURE__ */ A(vt, {}),
708
+ /* @__PURE__ */ A(Te, {
709
+ workspace: f,
710
710
  open: Lt,
711
711
  onClose: () => Q(!1),
712
712
  selection: Rt
713
713
  }),
714
- /* @__PURE__ */ k(Fe, { workspace: d }),
715
- Ae && /* @__PURE__ */ k(Ne, {
716
- workspace: d,
717
- onClose: () => y(!1)
714
+ /* @__PURE__ */ A(Pe, { workspace: f }),
715
+ ke && /* @__PURE__ */ A(Me, {
716
+ workspace: f,
717
+ onClose: () => b(!1)
718
718
  }),
719
- _ && /* @__PURE__ */ k(Ye, { children: /* @__PURE__ */ k(Pe, {
720
- workspace: d,
721
- ..._.team && { defaultTeam: _.team },
722
- ..._.title && { defaultTitle: _.title },
723
- ..._.body && { defaultBody: _.body },
724
- ..._.area && { defaultArea: _.area },
725
- ..._.origin && { origin: _.origin },
726
- ..._.fields && { defaults: _.fields },
727
- ..._.onCreated && { onCreated: _.onCreated },
728
- onClose: () => we(null)
719
+ v && /* @__PURE__ */ A(Xe, { children: /* @__PURE__ */ A(Ne, {
720
+ workspace: f,
721
+ ...v.team && { defaultTeam: v.team },
722
+ ...v.title && { defaultTitle: v.title },
723
+ ...v.body && { defaultBody: v.body },
724
+ ...v.area && { defaultArea: v.area },
725
+ ...v.origin && { origin: v.origin },
726
+ ...v.fields && { defaults: v.fields },
727
+ ...v.onCreated && { onCreated: v.onCreated },
728
+ onClose: () => Ce(null)
729
729
  }) })
730
730
  ]
731
731
  })
@@ -734,7 +734,7 @@ function B() {
734
734
  });
735
735
  }
736
736
  function V({ rail: e, label: t, children: n }) {
737
- return /* @__PURE__ */ k(C, {
737
+ return /* @__PURE__ */ A(w, {
738
738
  content: t,
739
739
  side: "right",
740
740
  disabled: !e,
@@ -742,89 +742,89 @@ function V({ rail: e, label: t, children: n }) {
742
742
  });
743
743
  }
744
744
  function st() {
745
- return T(() => {
745
+ return E(() => {
746
746
  document.querySelector(".pw-frame-drawer [aria-current=\"page\"]")?.scrollIntoView({ block: "nearest" });
747
747
  }, []), null;
748
748
  }
749
- function ct({ workspace: e, name: t, apps: n, unread: r, onSearch: i, onNewIssue: a }) {
750
- let { isMobile: o } = P(), s = ge(), c = D("workspace");
751
- return o ? /* @__PURE__ */ A("div", {
749
+ function ct({ workspace: e, name: n, apps: r, unread: i, onSearch: a, onNewIssue: o }) {
750
+ let { isMobile: s } = P(), c = t(), l = O("workspace");
751
+ return s ? /* @__PURE__ */ j("div", {
752
752
  className: "flex h-12 items-center gap-1 border-b border-border px-1",
753
753
  children: [
754
- /* @__PURE__ */ k(N, {}),
755
- /* @__PURE__ */ k("span", {
754
+ /* @__PURE__ */ A(rt, {}),
755
+ /* @__PURE__ */ A("span", {
756
756
  className: "min-w-0 flex-1 truncate text-sm font-semibold",
757
- children: t
757
+ children: n
758
758
  }),
759
- !s && /* @__PURE__ */ k(v, {}),
760
- !s && /* @__PURE__ */ k(_e, { apps: n }),
761
- /* @__PURE__ */ k(S, {
759
+ !c && /* @__PURE__ */ A(y, {}),
760
+ !c && /* @__PURE__ */ A(me, { apps: r }),
761
+ /* @__PURE__ */ A(C, {
762
762
  variant: "ghost",
763
763
  size: "lg",
764
- icon: /* @__PURE__ */ k(u, {}),
765
- label: c("openPalette"),
766
- onClick: i
764
+ icon: /* @__PURE__ */ A(d, {}),
765
+ label: l("openPalette"),
766
+ onClick: a
767
767
  }),
768
- /* @__PURE__ */ k(S, {
768
+ /* @__PURE__ */ A(C, {
769
769
  variant: "ghost",
770
770
  size: "lg",
771
- icon: /* @__PURE__ */ k(le, {}),
772
- label: c("notifications"),
771
+ icon: /* @__PURE__ */ A(le, {}),
772
+ label: l("notifications"),
773
773
  href: `/${e}/notifications`,
774
- dot: r > 0
774
+ dot: i > 0
775
775
  }),
776
- /* @__PURE__ */ k(S, {
776
+ /* @__PURE__ */ A(C, {
777
777
  variant: "ghost",
778
778
  size: "lg",
779
- icon: /* @__PURE__ */ k(l, {}),
780
- label: c("newIssue"),
781
- onClick: a
779
+ icon: /* @__PURE__ */ A(u, {}),
780
+ label: l("newIssue"),
781
+ onClick: o
782
782
  })
783
783
  ]
784
784
  }) : null;
785
785
  }
786
786
  function lt({ sidebar: e, brand: t, navigation: n, header: r, presence: i, children: a }) {
787
787
  let o = P();
788
- return /* @__PURE__ */ A(O, { children: [e && it(/* @__PURE__ */ A("div", {
788
+ return /* @__PURE__ */ j(k, { children: [e && it(/* @__PURE__ */ j("div", {
789
789
  className: "tandem-hosted-sidebar flex flex-col gap-3",
790
790
  children: [
791
791
  t?.(o),
792
792
  n(o),
793
793
  o.expanded && i
794
794
  ]
795
- }), e), /* @__PURE__ */ A("div", {
795
+ }), e), /* @__PURE__ */ j("div", {
796
796
  className: "flex h-full min-h-0 flex-col",
797
797
  children: [r, a]
798
798
  })] });
799
799
  }
800
800
  function ut({ children: e }) {
801
- let { state: t } = Ae(), n = t?.open && t.maximized;
802
- return /* @__PURE__ */ A(O, { children: [/* @__PURE__ */ k("div", {
801
+ let { state: t } = ke(), n = t?.open && t.maximized;
802
+ return /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A("div", {
803
803
  className: z("min-h-0 min-w-0 flex-1 overflow-y-auto bg-card", n && "hidden"),
804
804
  children: e
805
- }), /* @__PURE__ */ k(y, {})] });
805
+ }), /* @__PURE__ */ A(b, {})] });
806
806
  }
807
807
  function dt({ myUsername: e, workspace: t }) {
808
- let { people: n, page: r } = ze(), { person: i } = h(t), a = D("workspace"), o = new Set(n.map((e) => e.username).filter((t) => t !== e));
808
+ let { people: n, page: r } = Re(), { person: i } = g(t), a = O("workspace"), o = new Set(n.map((e) => e.username).filter((t) => t !== e));
809
809
  if (o.size === 0) return null;
810
810
  let s = [...new Set(n.filter((t) => t.username !== e && t.page === r).map((e) => e.username))];
811
- return /* @__PURE__ */ A("div", {
811
+ return /* @__PURE__ */ j("div", {
812
812
  className: "flex items-center gap-2 px-2 pb-2 text-xs text-muted-foreground",
813
- children: [s.length > 0 && /* @__PURE__ */ k(We, {
813
+ children: [s.length > 0 && /* @__PURE__ */ A(Ue, {
814
814
  size: "xs",
815
815
  max: 5,
816
816
  showOverflow: !1,
817
817
  ringColor: "var(--theme-sidebar-bg, var(--theme-muted-panel-bg))",
818
818
  label: a("onThisPage", { count: s.length }),
819
- children: s.map((e) => /* @__PURE__ */ k(b, {
819
+ children: s.map((e) => /* @__PURE__ */ A(x, {
820
820
  workspace: t,
821
821
  handle: e,
822
- children: /* @__PURE__ */ k(Ue, {
822
+ children: /* @__PURE__ */ A(He, {
823
823
  name: i(e).name,
824
824
  src: i(e).avatarUrl
825
825
  })
826
826
  }, e))
827
- }), /* @__PURE__ */ k("span", { children: s.length === 1 ? a("oneOnThisPage", {
827
+ }), /* @__PURE__ */ A("span", { children: s.length === 1 ? a("oneOnThisPage", {
828
828
  name: i(s[0] ?? "").name,
829
829
  count: o.size
830
830
  }) : s.length > 1 ? a("othersOnThisPage", {
@@ -834,33 +834,33 @@ function dt({ myUsername: e, workspace: t }) {
834
834
  });
835
835
  }
836
836
  function ft({ workspace: e, current: t }) {
837
- let r = D("savedViews"), i = D("common"), a = qe(), { views: o } = g(e), { menu: s, dialogs: c } = _(e);
838
- return o.length === 0 ? c : /* @__PURE__ */ A(O, { children: [
839
- /* @__PURE__ */ k("p", {
837
+ let n = O("savedViews"), i = O("common"), a = Ke(), { views: o } = _(e), { menu: s, dialogs: c } = v(e);
838
+ return o.length === 0 ? c : /* @__PURE__ */ j(k, { children: [
839
+ /* @__PURE__ */ A("p", {
840
840
  className: "mt-6 flex h-6 items-center px-2 text-xs font-medium text-muted-foreground",
841
- children: r("title")
841
+ children: n("title")
842
842
  }),
843
- /* @__PURE__ */ k("nav", {
843
+ /* @__PURE__ */ A("nav", {
844
844
  className: "mt-1 space-y-0.5",
845
- "aria-label": r("title"),
846
- children: o.map((o) => /* @__PURE__ */ A("div", {
847
- className: z(F, "group gap-0 pr-1 pl-0", f(o, t) && I),
848
- children: [/* @__PURE__ */ k(C, {
849
- content: o.shared ? r("sharedBy", { owner: o.owner }) : r("onlyYou"),
845
+ "aria-label": n("title"),
846
+ children: o.map((o) => /* @__PURE__ */ j("div", {
847
+ className: z(F, "group gap-0 pr-1 pl-0", p(o, t) && I),
848
+ children: [/* @__PURE__ */ A(w, {
849
+ content: o.shared ? n("sharedBy", { owner: o.owner }) : n("onlyYou"),
850
850
  side: "right",
851
851
  describesAnchor: !0,
852
- children: /* @__PURE__ */ A(n, {
852
+ children: /* @__PURE__ */ j(r, {
853
853
  to: "/$workspace/issues",
854
854
  params: { workspace: e },
855
- search: we(o),
855
+ search: Ce(o),
856
856
  onContextMenu: (e) => a(e, s(o)),
857
857
  className: "flex h-full min-w-0 flex-1 items-center gap-2.5 pl-2",
858
- children: [o.shared ? /* @__PURE__ */ k(d, { className: "size-4" }) : /* @__PURE__ */ k(ce, { className: "size-4" }), /* @__PURE__ */ k("span", {
858
+ children: [o.shared ? /* @__PURE__ */ A(f, { className: "size-4" }) : /* @__PURE__ */ A(ce, { className: "size-4" }), /* @__PURE__ */ A("span", {
859
859
  className: "truncate",
860
860
  children: o.name
861
861
  })]
862
862
  })
863
- }), /* @__PURE__ */ k(nt, {
863
+ }), /* @__PURE__ */ A(tt, {
864
864
  items: () => s(o),
865
865
  label: i("moreActionsFor", { name: o.name })
866
866
  })]
@@ -907,7 +907,7 @@ function _t() {
907
907
  return Array.from(document.querySelectorAll("[aria-keyshortcuts]")).some((e) => /\b(Meta|Control)\+F\b/.test(e.getAttribute("aria-keyshortcuts") ?? "") && e.getClientRects().length > 0);
908
908
  }
909
909
  function vt() {
910
- return T(() => {
910
+ return E(() => {
911
911
  let t = Intl.DateTimeFormat().resolvedOptions().timeZone;
912
912
  try {
913
913
  if (!t || sessionStorage.getItem("tandem:time-zone") === t) return;