@parallelworks/tandem-web 0.138.2 → 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.
- package/components/AgentWork.js +35 -35
- package/components/AppRoot.js +4 -4
- package/components/AreaWork.js +1 -1
- package/components/BlockHandle.js +3 -3
- package/components/CommandPalette.js +27 -27
- package/components/DateChip.js +27 -27
- package/components/DocLinkPicker.js +17 -17
- package/components/Graph.js +6 -6
- package/components/HoverCards.js +30 -29
- package/components/IssueListBlock.js +83 -83
- package/components/LinkCard.js +20 -20
- package/components/MentionPicker.js +12 -12
- package/components/NewIssueDialog.js +116 -116
- package/components/NewProjectDialog.js +5 -4
- package/components/Planning.js +31 -43
- package/components/RouterLink.js +4 -4
- package/components/ShareDialog.js +12 -12
- package/components/SharedUI.js +19 -19
- package/components/SlashMenu.js +11 -11
- package/components/SubPages.js +10 -10
- package/components/UnlinkedMentions.js +10 -10
- package/components/WorkCounts.js +8 -8
- package/components/settings.js +26 -26
- package/hostedApp.js +36 -36
- package/hosting.d.ts +24 -11
- package/index.js +58 -27
- package/lib/base.js +1 -14
- package/lib/docs.js +6 -6
- package/lib/issueMenu.js +33 -33
- package/lib/knowledge.js +90 -101
- package/lib/knowledgeKinds.js +14 -0
- package/lib/projectList.js +1 -1
- package/lib/projectStates.js +15 -0
- package/lib/router.js +20 -34
- package/package.json +2 -2
- package/pages/areas.js +147 -147
- package/pages/decisions.js +40 -40
- package/pages/issues.js +4 -4
- package/pages/projects.js +232 -231
- package/pages/triage.js +86 -86
- package/pages.js +21 -0
- package/routes/__root.js +6 -6
- package/routes/_workspace/docs/_doc2.js +12 -12
- package/routes/_workspace/docs2.js +8 -8
- package/routes/_workspace/graph2.js +9 -9
- package/routes/_workspace/issues/_identifier2.js +327 -327
- package/routes/_workspace/issues/index.js +6 -6
- package/routes/_workspace/knowledge/_term2.js +125 -124
- package/routes/_workspace/knowledge/index.js +8 -8
- package/routes/_workspace/knowledge/index2.js +22 -21
- package/routes/_workspace/measures2.js +4 -4
- package/routes/_workspace/people/_username.js +4 -4
- package/routes/_workspace/projects/_projectId3.js +264 -263
- package/routes/_workspace/projects/index.js +7 -7
- package/routes/_workspace/settings/account2.js +3 -3
- package/routes/_workspace/settings/audit-log2.js +4 -4
- package/routes/_workspace/settings/audit-log3.js +51 -51
- package/routes/_workspace/settings/labels2.js +14 -14
- package/routes/_workspace/settings/members2.js +9 -9
- package/routes/_workspace/settings/runners2.js +11 -11
- package/routes/_workspace/settings/teams2.js +15 -15
- package/routes/_workspace/settings/tokens2.js +5 -5
- package/routes/_workspace/settings/webhooks2.js +7 -7
- package/routes/_workspace/settings2.js +3 -3
- package/routes/_workspace/teams/_key/cycles/_number2.js +8 -8
- package/routes/_workspace/teams/_key/cycles/index2.js +20 -20
- package/routes/_workspace/teams/_key/issues.js +4 -4
- package/routes/_workspace/teams/_key/projects.js +4 -4
- package/routes/_workspace/teams/_key/settings2.js +8 -8
- package/routes/_workspace2.js +319 -319
- package/routes/docs/route2.js +15 -15
package/routes/_workspace2.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import { api as e } from "../api/client.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { docKey as
|
|
13
|
-
import { usePeople as
|
|
14
|
-
import { NewIssueContext as
|
|
15
|
-
import { PaletteSelectionContext as
|
|
16
|
-
import { isBuiltIn as
|
|
17
|
-
import { SettingsNav as
|
|
18
|
-
import { useSavedViews as
|
|
19
|
-
import { EntityIcon as
|
|
20
|
-
import { CommandPalette as
|
|
21
|
-
import { DocsTree as
|
|
22
|
-
import { FavoritesNav as
|
|
23
|
-
import { HostPanelProvider as
|
|
24
|
-
import { HostActions as
|
|
25
|
-
import { HostPanel as
|
|
26
|
-
import { PersonHoverCard as
|
|
27
|
-
import { HoverCards as
|
|
28
|
-
import { Logo as
|
|
29
|
-
import { CreateTeamDialog as
|
|
30
|
-
import { NewIssueDialog as
|
|
31
|
-
import { ShareDialogHost as
|
|
32
|
-
import { hostSignOut as
|
|
33
|
-
import { useInstall as
|
|
34
|
-
import { LiveProvider as
|
|
35
|
-
import { usePushSync as
|
|
36
|
-
import { useShortcuts as
|
|
37
|
-
import { ActionMenu as
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import { useQuery as
|
|
43
|
-
import { MoreButton as
|
|
44
|
-
import { AppFrame as
|
|
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 ?
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
-
|
|
94
|
-
...G(
|
|
95
|
-
|
|
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 =
|
|
100
|
-
let e = pe(q.pathname,
|
|
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 ===
|
|
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
|
-
|
|
110
|
-
|
|
109
|
+
f,
|
|
110
|
+
p?.user.username
|
|
111
111
|
]), J = (e, t) => {
|
|
112
|
-
let n = pe(q.pathname,
|
|
112
|
+
let n = pe(q.pathname, f);
|
|
113
113
|
return n?.page === e && n.team === t;
|
|
114
|
-
}, [Ot, kt] =
|
|
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(
|
|
117
|
-
}), Y = q.pathname.startsWith(`/${
|
|
118
|
-
...
|
|
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 } =
|
|
121
|
-
|
|
122
|
-
let { key: X } =
|
|
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
|
-
|
|
127
|
-
let [Lt, Q] =
|
|
128
|
-
if (
|
|
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
|
-
}, []), !
|
|
134
|
-
let Bt =
|
|
135
|
-
$ === void 0 ? (await e.POST("/api/v1/auth/logout"), it.clear(), P({ to: "/login" })) : await
|
|
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__ */
|
|
138
|
-
items: [...
|
|
137
|
+
let t = /* @__PURE__ */ A(We, {
|
|
138
|
+
items: [...p.workspaces.map((e) => ({
|
|
139
139
|
value: e.slug,
|
|
140
140
|
label: e.name,
|
|
141
|
-
hint:
|
|
142
|
-
})), ...
|
|
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:
|
|
146
|
+
value: f,
|
|
147
147
|
onValueChange: (e) => P(e === "__new" ? { to: "/new" } : {
|
|
148
148
|
to: "/$workspace/issues",
|
|
149
|
-
params: { workspace: e ??
|
|
149
|
+
params: { workspace: e ?? f }
|
|
150
150
|
}),
|
|
151
151
|
placeholder: U("switchWorkspacePlaceholder"),
|
|
152
152
|
"aria-label": U("switchWorkspace"),
|
|
153
|
-
trigger: /* @__PURE__ */
|
|
153
|
+
trigger: /* @__PURE__ */ j("button", {
|
|
154
154
|
type: "button",
|
|
155
|
-
"aria-label": e ? void 0 :
|
|
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:
|
|
161
|
+
params: { workspace: f }
|
|
162
162
|
})
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
165
|
label: U("switchWorkspace"),
|
|
166
|
-
items: [...
|
|
166
|
+
items: [...p.workspaces.map((e) => ({
|
|
167
167
|
label: e.name,
|
|
168
|
-
checked: e.slug ===
|
|
168
|
+
checked: e.slug === f,
|
|
169
169
|
onClick: () => P({
|
|
170
170
|
to: "/$workspace/issues",
|
|
171
171
|
params: { workspace: e.slug }
|
|
172
172
|
})
|
|
173
|
-
})), ...
|
|
173
|
+
})), ...p.canCreateWorkspace ? [T, {
|
|
174
174
|
label: U("createWorkspace"),
|
|
175
175
|
onClick: () => P({ to: "/new" })
|
|
176
176
|
}] : []]
|
|
177
177
|
},
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
...Ht ? [
|
|
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: [
|
|
187
|
-
icon:
|
|
188
|
-
color:
|
|
189
|
-
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__ */
|
|
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:
|
|
194
|
-
}), /* @__PURE__ */
|
|
193
|
+
children: h.name
|
|
194
|
+
}), /* @__PURE__ */ A(ie, { className: "size-3.5 text-muted-foreground" })] })]
|
|
195
195
|
})
|
|
196
196
|
});
|
|
197
|
-
return e ? /* @__PURE__ */
|
|
197
|
+
return e ? /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ j("div", {
|
|
198
198
|
className: "flex items-center gap-1",
|
|
199
199
|
children: [
|
|
200
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ A("div", {
|
|
201
201
|
className: "min-w-0 flex-1",
|
|
202
202
|
children: t
|
|
203
203
|
}),
|
|
204
|
-
!
|
|
205
|
-
!
|
|
206
|
-
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__ */
|
|
210
|
+
}), /* @__PURE__ */ j("div", {
|
|
211
211
|
className: "mt-3 flex gap-1.5",
|
|
212
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
218
|
-
/* @__PURE__ */
|
|
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__ */
|
|
222
|
+
/* @__PURE__ */ A(Ge, {
|
|
223
223
|
keys: "C",
|
|
224
224
|
size: "xs",
|
|
225
225
|
variant: "plain"
|
|
226
226
|
})
|
|
227
227
|
]
|
|
228
|
-
}), /* @__PURE__ */
|
|
228
|
+
}), /* @__PURE__ */ A(w, {
|
|
229
229
|
content: U("openPalette"),
|
|
230
230
|
shortcut: "Mod+K",
|
|
231
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
237
|
+
children: /* @__PURE__ */ A(d, { className: "size-3.5" })
|
|
238
238
|
})
|
|
239
239
|
})]
|
|
240
|
-
})] }) : /* @__PURE__ */
|
|
240
|
+
})] }) : /* @__PURE__ */ j("div", {
|
|
241
241
|
className: "flex flex-col items-center gap-1.5",
|
|
242
242
|
children: [
|
|
243
243
|
t,
|
|
244
|
-
!
|
|
245
|
-
!
|
|
246
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
255
|
+
children: /* @__PURE__ */ A(u, { className: "size-3.5" })
|
|
256
256
|
})
|
|
257
257
|
}),
|
|
258
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ A(w, {
|
|
259
259
|
content: U("openPalette"),
|
|
260
260
|
shortcut: "Mod+K",
|
|
261
261
|
side: "right",
|
|
262
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
275
|
-
let
|
|
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__ */
|
|
280
|
-
t && /* @__PURE__ */
|
|
281
|
-
/* @__PURE__ */
|
|
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__ */
|
|
286
|
-
rail:
|
|
285
|
+
/* @__PURE__ */ A(V, {
|
|
286
|
+
rail: n,
|
|
287
287
|
label: U("notifications"),
|
|
288
|
-
children: /* @__PURE__ */
|
|
288
|
+
children: /* @__PURE__ */ j(r, {
|
|
289
289
|
to: "/$workspace/notifications",
|
|
290
|
-
params: { workspace:
|
|
291
|
-
onContextMenu: (e) => B(e, G(`/${
|
|
290
|
+
params: { workspace: f },
|
|
291
|
+
onContextMenu: (e) => B(e, G(`/${f}/notifications`)),
|
|
292
292
|
className: i,
|
|
293
293
|
activeProps: L,
|
|
294
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
305
|
-
rail:
|
|
304
|
+
/* @__PURE__ */ A(V, {
|
|
305
|
+
rail: n,
|
|
306
306
|
label: U("myIssues"),
|
|
307
|
-
children: /* @__PURE__ */
|
|
307
|
+
children: /* @__PURE__ */ j(r, {
|
|
308
308
|
to: "/$workspace/issues",
|
|
309
|
-
params: { workspace:
|
|
310
|
-
search: { assignee:
|
|
309
|
+
params: { workspace: f },
|
|
310
|
+
search: { assignee: p.user.username },
|
|
311
311
|
onContextMenu: (e) => B(e, [
|
|
312
312
|
K("my-issues"),
|
|
313
|
-
|
|
314
|
-
...G(`/${
|
|
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__ */
|
|
318
|
+
/* @__PURE__ */ A(fe, { className: "size-4" }),
|
|
319
319
|
" ",
|
|
320
320
|
a(U("myIssues"))
|
|
321
321
|
]
|
|
322
322
|
})
|
|
323
323
|
}),
|
|
324
|
-
/* @__PURE__ */
|
|
325
|
-
rail:
|
|
324
|
+
/* @__PURE__ */ A(V, {
|
|
325
|
+
rail: n,
|
|
326
326
|
label: U("projects"),
|
|
327
|
-
children: /* @__PURE__ */
|
|
327
|
+
children: /* @__PURE__ */ j(r, {
|
|
328
328
|
to: "/$workspace/projects",
|
|
329
|
-
params: { workspace:
|
|
329
|
+
params: { workspace: f },
|
|
330
330
|
onContextMenu: (e) => B(e, [
|
|
331
331
|
K("projects"),
|
|
332
|
-
|
|
333
|
-
...G(`/${
|
|
332
|
+
T,
|
|
333
|
+
...G(`/${f}/projects`)
|
|
334
334
|
]),
|
|
335
335
|
className: i,
|
|
336
336
|
activeProps: L,
|
|
337
337
|
children: [
|
|
338
|
-
/* @__PURE__ */
|
|
338
|
+
/* @__PURE__ */ A(ue, { className: "size-4" }),
|
|
339
339
|
" ",
|
|
340
340
|
a(U("projects"))
|
|
341
341
|
]
|
|
342
342
|
})
|
|
343
343
|
}),
|
|
344
|
-
/* @__PURE__ */
|
|
345
|
-
rail:
|
|
344
|
+
/* @__PURE__ */ A(V, {
|
|
345
|
+
rail: n,
|
|
346
346
|
label: U("knowledge"),
|
|
347
|
-
children: /* @__PURE__ */
|
|
347
|
+
children: /* @__PURE__ */ j(r, {
|
|
348
348
|
to: "/$workspace/knowledge",
|
|
349
|
-
params: { workspace:
|
|
349
|
+
params: { workspace: f },
|
|
350
350
|
onContextMenu: (e) => B(e, [
|
|
351
351
|
K("knowledge"),
|
|
352
|
-
|
|
353
|
-
...G(`/${
|
|
352
|
+
T,
|
|
353
|
+
...G(`/${f}/knowledge`)
|
|
354
354
|
]),
|
|
355
355
|
className: i,
|
|
356
356
|
activeProps: L,
|
|
357
357
|
children: [
|
|
358
|
-
/* @__PURE__ */
|
|
358
|
+
/* @__PURE__ */ A(se, { className: "size-4" }),
|
|
359
359
|
" ",
|
|
360
360
|
a(U("knowledge"))
|
|
361
361
|
]
|
|
362
362
|
})
|
|
363
363
|
}),
|
|
364
|
-
/* @__PURE__ */
|
|
365
|
-
rail:
|
|
364
|
+
/* @__PURE__ */ A(V, {
|
|
365
|
+
rail: n,
|
|
366
366
|
label: U("agents"),
|
|
367
|
-
children: /* @__PURE__ */
|
|
367
|
+
children: /* @__PURE__ */ j(r, {
|
|
368
368
|
to: "/$workspace/agents",
|
|
369
|
-
params: { workspace:
|
|
369
|
+
params: { workspace: f },
|
|
370
370
|
onContextMenu: (e) => B(e, [
|
|
371
371
|
K("agents"),
|
|
372
|
-
|
|
373
|
-
...G(`/${
|
|
372
|
+
T,
|
|
373
|
+
...G(`/${f}/agents`)
|
|
374
374
|
]),
|
|
375
375
|
className: i,
|
|
376
376
|
activeProps: L,
|
|
377
377
|
children: [
|
|
378
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
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:
|
|
389
|
+
children: g.filter((e) => !e.archivedAt).map((e) => /* @__PURE__ */ A(V, {
|
|
390
390
|
rail: !0,
|
|
391
391
|
label: e.name,
|
|
392
|
-
children: /* @__PURE__ */
|
|
392
|
+
children: /* @__PURE__ */ j(r, {
|
|
393
393
|
to: "/$workspace/teams/$key/issues",
|
|
394
394
|
params: {
|
|
395
|
-
workspace:
|
|
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,
|
|
399
|
+
className: z(i, pe(q.pathname, f)?.team === e.key && I),
|
|
400
400
|
children: [
|
|
401
|
-
/* @__PURE__ */
|
|
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__ */
|
|
407
|
+
Pt(e.id) > 0 && /* @__PURE__ */ A("span", { className: ot })
|
|
408
408
|
]
|
|
409
409
|
})
|
|
410
410
|
}, e.id))
|
|
411
|
-
}) : /* @__PURE__ */
|
|
412
|
-
/* @__PURE__ */
|
|
413
|
-
workspace:
|
|
411
|
+
}) : /* @__PURE__ */ j(k, { children: [
|
|
412
|
+
/* @__PURE__ */ A(ft, {
|
|
413
|
+
workspace: f,
|
|
414
414
|
current: Dt.saved
|
|
415
415
|
}),
|
|
416
|
-
/* @__PURE__ */
|
|
417
|
-
workspace:
|
|
418
|
-
myUsername:
|
|
416
|
+
/* @__PURE__ */ A(De, {
|
|
417
|
+
workspace: f,
|
|
418
|
+
myUsername: p.user.username,
|
|
419
419
|
currentHref: q.pathname + q.searchStr
|
|
420
420
|
}),
|
|
421
|
-
/* @__PURE__ */
|
|
421
|
+
/* @__PURE__ */ j("div", {
|
|
422
422
|
className: "group mt-6 flex h-6 items-center pr-1 pl-2",
|
|
423
|
-
children: [/* @__PURE__ */
|
|
423
|
+
children: [/* @__PURE__ */ A("p", {
|
|
424
424
|
className: "flex-1 text-xs font-medium text-muted-foreground",
|
|
425
425
|
children: U("teams")
|
|
426
|
-
}),
|
|
426
|
+
}), x && /* @__PURE__ */ A(C, {
|
|
427
427
|
variant: "ghost",
|
|
428
428
|
size: "xs",
|
|
429
|
-
icon: /* @__PURE__ */
|
|
429
|
+
icon: /* @__PURE__ */ A(u, {}),
|
|
430
430
|
label: U("createTeam"),
|
|
431
|
-
onClick: () =>
|
|
431
|
+
onClick: () => b(!0),
|
|
432
432
|
className: "opacity-0 group-hover:opacity-100 focus-visible:opacity-100"
|
|
433
433
|
})]
|
|
434
434
|
}),
|
|
435
|
-
/* @__PURE__ */
|
|
435
|
+
/* @__PURE__ */ j("nav", {
|
|
436
436
|
className: "mt-1 space-y-0.5",
|
|
437
437
|
"aria-label": U("teams"),
|
|
438
|
-
children: [
|
|
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__ */
|
|
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__ */
|
|
447
|
+
/* @__PURE__ */ A(we, {
|
|
448
448
|
icon: e.icon,
|
|
449
449
|
color: e.color,
|
|
450
450
|
name: e.name
|
|
451
451
|
}),
|
|
452
|
-
/* @__PURE__ */
|
|
452
|
+
/* @__PURE__ */ A("span", {
|
|
453
453
|
className: "truncate",
|
|
454
454
|
children: e.name
|
|
455
455
|
}),
|
|
456
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
463
|
-
e.triageEnabled && /* @__PURE__ */
|
|
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:
|
|
466
|
+
workspace: f,
|
|
467
467
|
key: e.key
|
|
468
468
|
},
|
|
469
|
-
onContextMenu: (t) => B(t, G(
|
|
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__ */
|
|
473
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
484
|
+
/* @__PURE__ */ j(r, {
|
|
485
485
|
to: "/$workspace/teams/$key/issues",
|
|
486
486
|
params: {
|
|
487
|
-
workspace:
|
|
487
|
+
workspace: f,
|
|
488
488
|
key: e.key
|
|
489
489
|
},
|
|
490
|
-
onContextMenu: (t) => B(t, G(
|
|
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__ */
|
|
493
|
+
/* @__PURE__ */ A(ce, { className: "size-4" }),
|
|
494
494
|
" ",
|
|
495
495
|
U("issues")
|
|
496
496
|
]
|
|
497
497
|
}),
|
|
498
|
-
/* @__PURE__ */
|
|
498
|
+
/* @__PURE__ */ j(r, {
|
|
499
499
|
to: "/$workspace/teams/$key/projects",
|
|
500
500
|
params: {
|
|
501
|
-
workspace:
|
|
501
|
+
workspace: f,
|
|
502
502
|
key: e.key
|
|
503
503
|
},
|
|
504
|
-
onContextMenu: (t) => B(t, G(
|
|
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__ */
|
|
507
|
+
/* @__PURE__ */ A(ue, { className: "size-4" }),
|
|
508
508
|
" ",
|
|
509
509
|
U("projects")
|
|
510
510
|
]
|
|
511
511
|
}),
|
|
512
|
-
/* @__PURE__ */
|
|
512
|
+
/* @__PURE__ */ j(r, {
|
|
513
513
|
to: "/$workspace/teams/$key/areas",
|
|
514
514
|
params: {
|
|
515
|
-
workspace:
|
|
515
|
+
workspace: f,
|
|
516
516
|
key: e.key
|
|
517
517
|
},
|
|
518
|
-
onContextMenu: (t) => B(t, G(
|
|
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__ */
|
|
521
|
+
/* @__PURE__ */ A(re, { className: "size-4" }),
|
|
522
522
|
" ",
|
|
523
523
|
U("areas")
|
|
524
524
|
]
|
|
525
525
|
}),
|
|
526
|
-
/* @__PURE__ */
|
|
526
|
+
/* @__PURE__ */ j(r, {
|
|
527
527
|
to: "/$workspace/teams/$key/decisions",
|
|
528
528
|
params: {
|
|
529
|
-
workspace:
|
|
529
|
+
workspace: f,
|
|
530
530
|
key: e.key
|
|
531
531
|
},
|
|
532
|
-
onContextMenu: (t) => B(t, G(
|
|
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__ */
|
|
536
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
549
|
-
workspace:
|
|
548
|
+
/* @__PURE__ */ A(Ee, {
|
|
549
|
+
workspace: f,
|
|
550
550
|
team: e,
|
|
551
|
-
current: at(q.pathname,
|
|
551
|
+
current: at(q.pathname, f)
|
|
552
552
|
}),
|
|
553
|
-
e.cyclesEnabled && /* @__PURE__ */
|
|
553
|
+
e.cyclesEnabled && /* @__PURE__ */ j(r, {
|
|
554
554
|
to: "/$workspace/teams/$key/cycles",
|
|
555
555
|
params: {
|
|
556
|
-
workspace:
|
|
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__ */
|
|
563
|
+
/* @__PURE__ */ A(ae, { className: "size-4" }),
|
|
564
564
|
" ",
|
|
565
565
|
U("cycles")
|
|
566
566
|
]
|
|
567
567
|
})
|
|
568
|
-
] })] }, e.id)),
|
|
568
|
+
] })] }, e.id)), g.length === 0 && (x ? /* @__PURE__ */ j("button", {
|
|
569
569
|
type: "button",
|
|
570
|
-
onClick: () =>
|
|
570
|
+
onClick: () => b(!0),
|
|
571
571
|
className: z(F, "w-full"),
|
|
572
572
|
children: [
|
|
573
|
-
/* @__PURE__ */
|
|
573
|
+
/* @__PURE__ */ A(u, { className: "size-4" }),
|
|
574
574
|
" ",
|
|
575
575
|
U("createFirstTeam")
|
|
576
576
|
]
|
|
577
|
-
}) : /* @__PURE__ */
|
|
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:
|
|
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:
|
|
597
|
+
params: { workspace: f }
|
|
598
598
|
})
|
|
599
599
|
},
|
|
600
600
|
...Vt ? [{
|
|
601
601
|
label: U("installApp"),
|
|
602
|
-
onClick:
|
|
602
|
+
onClick: Ue
|
|
603
603
|
}] : [],
|
|
604
|
-
...Ht ? [
|
|
604
|
+
...Ht ? [T, {
|
|
605
605
|
label: U("signOut"),
|
|
606
606
|
onClick: Ut
|
|
607
607
|
}] : []
|
|
608
|
-
], r = /* @__PURE__ */
|
|
609
|
-
name:
|
|
610
|
-
src:
|
|
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__ */
|
|
615
|
-
myUsername:
|
|
616
|
-
workspace:
|
|
617
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
620
|
-
label: U("accountMenu", { 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__ */
|
|
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__ */
|
|
628
|
+
children: [r, /* @__PURE__ */ A("span", {
|
|
629
629
|
className: "min-w-0 flex-1 truncate text-sm",
|
|
630
|
-
children:
|
|
630
|
+
children: p.user.name
|
|
631
631
|
})]
|
|
632
632
|
})
|
|
633
|
-
}), !t && /* @__PURE__ */
|
|
634
|
-
})] }) : /* @__PURE__ */
|
|
633
|
+
}), !t && /* @__PURE__ */ A(rt, {})]
|
|
634
|
+
})] }) : /* @__PURE__ */ j("div", {
|
|
635
635
|
className: "flex flex-col items-center gap-2",
|
|
636
|
-
children: [/* @__PURE__ */
|
|
637
|
-
label: U("accountMenu", { 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__ */
|
|
647
|
-
workspace:
|
|
648
|
-
name:
|
|
649
|
-
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__ */
|
|
655
|
-
workspace:
|
|
656
|
-
children: /* @__PURE__ */
|
|
657
|
-
actions:
|
|
658
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
660
|
+
children: /* @__PURE__ */ j(ye.Provider, {
|
|
661
661
|
value: zt,
|
|
662
662
|
children: [
|
|
663
|
-
|
|
664
|
-
sidebar:
|
|
663
|
+
_ ? /* @__PURE__ */ A(lt, {
|
|
664
|
+
sidebar: _.sidebar,
|
|
665
665
|
brand: Wt,
|
|
666
666
|
navigation: Gt,
|
|
667
667
|
header: qt,
|
|
668
|
-
presence: /* @__PURE__ */
|
|
669
|
-
myUsername:
|
|
670
|
-
workspace:
|
|
668
|
+
presence: /* @__PURE__ */ A(dt, {
|
|
669
|
+
myUsername: p.user.username,
|
|
670
|
+
workspace: f
|
|
671
671
|
}),
|
|
672
|
-
children: /* @__PURE__ */
|
|
673
|
-
}) : /* @__PURE__ */
|
|
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__ */
|
|
704
|
+
children: /* @__PURE__ */ A(ut, { children: /* @__PURE__ */ A(qe, {}) })
|
|
705
705
|
}),
|
|
706
|
-
/* @__PURE__ */
|
|
707
|
-
!Bt && /* @__PURE__ */
|
|
708
|
-
/* @__PURE__ */
|
|
709
|
-
workspace:
|
|
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__ */
|
|
715
|
-
|
|
716
|
-
workspace:
|
|
717
|
-
onClose: () =>
|
|
714
|
+
/* @__PURE__ */ A(Pe, { workspace: f }),
|
|
715
|
+
ke && /* @__PURE__ */ A(Me, {
|
|
716
|
+
workspace: f,
|
|
717
|
+
onClose: () => b(!1)
|
|
718
718
|
}),
|
|
719
|
-
|
|
720
|
-
workspace:
|
|
721
|
-
...
|
|
722
|
-
...
|
|
723
|
-
...
|
|
724
|
-
...
|
|
725
|
-
...
|
|
726
|
-
...
|
|
727
|
-
...
|
|
728
|
-
onClose: () =>
|
|
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__ */
|
|
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
|
|
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:
|
|
750
|
-
let { isMobile:
|
|
751
|
-
return
|
|
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__ */
|
|
755
|
-
/* @__PURE__ */
|
|
754
|
+
/* @__PURE__ */ A(rt, {}),
|
|
755
|
+
/* @__PURE__ */ A("span", {
|
|
756
756
|
className: "min-w-0 flex-1 truncate text-sm font-semibold",
|
|
757
|
-
children:
|
|
757
|
+
children: n
|
|
758
758
|
}),
|
|
759
|
-
!
|
|
760
|
-
!
|
|
761
|
-
/* @__PURE__ */
|
|
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__ */
|
|
765
|
-
label:
|
|
766
|
-
onClick:
|
|
764
|
+
icon: /* @__PURE__ */ A(d, {}),
|
|
765
|
+
label: l("openPalette"),
|
|
766
|
+
onClick: a
|
|
767
767
|
}),
|
|
768
|
-
/* @__PURE__ */
|
|
768
|
+
/* @__PURE__ */ A(C, {
|
|
769
769
|
variant: "ghost",
|
|
770
770
|
size: "lg",
|
|
771
|
-
icon: /* @__PURE__ */
|
|
772
|
-
label:
|
|
771
|
+
icon: /* @__PURE__ */ A(le, {}),
|
|
772
|
+
label: l("notifications"),
|
|
773
773
|
href: `/${e}/notifications`,
|
|
774
|
-
dot:
|
|
774
|
+
dot: i > 0
|
|
775
775
|
}),
|
|
776
|
-
/* @__PURE__ */
|
|
776
|
+
/* @__PURE__ */ A(C, {
|
|
777
777
|
variant: "ghost",
|
|
778
778
|
size: "lg",
|
|
779
|
-
icon: /* @__PURE__ */
|
|
780
|
-
label:
|
|
781
|
-
onClick:
|
|
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__ */
|
|
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__ */
|
|
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 } =
|
|
802
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
805
|
+
}), /* @__PURE__ */ A(b, {})] });
|
|
806
806
|
}
|
|
807
807
|
function dt({ myUsername: e, workspace: t }) {
|
|
808
|
-
let { people: n, page: r } =
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
819
|
+
children: s.map((e) => /* @__PURE__ */ A(x, {
|
|
820
820
|
workspace: t,
|
|
821
821
|
handle: e,
|
|
822
|
-
children: /* @__PURE__ */
|
|
822
|
+
children: /* @__PURE__ */ A(He, {
|
|
823
823
|
name: i(e).name,
|
|
824
824
|
src: i(e).avatarUrl
|
|
825
825
|
})
|
|
826
826
|
}, e))
|
|
827
|
-
}), /* @__PURE__ */
|
|
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
|
|
838
|
-
return o.length === 0 ? c : /* @__PURE__ */
|
|
839
|
-
/* @__PURE__ */
|
|
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:
|
|
841
|
+
children: n("title")
|
|
842
842
|
}),
|
|
843
|
-
/* @__PURE__ */
|
|
843
|
+
/* @__PURE__ */ A("nav", {
|
|
844
844
|
className: "mt-1 space-y-0.5",
|
|
845
|
-
"aria-label":
|
|
846
|
-
children: o.map((o) => /* @__PURE__ */
|
|
847
|
-
className: z(F, "group gap-0 pr-1 pl-0",
|
|
848
|
-
children: [/* @__PURE__ */
|
|
849
|
-
content: o.shared ?
|
|
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__ */
|
|
852
|
+
children: /* @__PURE__ */ j(r, {
|
|
853
853
|
to: "/$workspace/issues",
|
|
854
854
|
params: { workspace: e },
|
|
855
|
-
search:
|
|
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__ */
|
|
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__ */
|
|
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
|
|
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;
|