@parallelworks/tandem-web 0.194.2 → 0.194.3
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/_virtual/_virtual_i18n/en/common.js +12 -2
- package/_virtual/_virtual_i18n/es/common.js +12 -2
- package/_virtual/_virtual_i18n/ja/common.js +12 -2
- package/_virtual/_virtual_i18n/ko/common.js +12 -2
- package/_virtual/_virtual_i18n/zh/common.js +12 -2
- package/components/ShortcutSheet.js +0 -4
- package/package.json +1 -1
- package/pages/issues.js +235 -240
- package/routeTree.gen.js +1 -1
- package/routes/_workspace/teams/_key/settings.js +12 -6
- package/routes/_workspace/teams/_key/settings2.js +27 -1030
- package/routes/_workspace/teams/_key/settings3.js +1049 -18
- package/routes/_workspace/teams/_key/settings4.js +18 -0
- package/routes/_workspace2.js +293 -296
package/routes/_workspace2.js
CHANGED
|
@@ -32,19 +32,19 @@ import { teamPageOf as _, teamPath as Ie } from "../lib/teamPaths.js";
|
|
|
32
32
|
import { Route as Le } from "./_workspace.js";
|
|
33
33
|
import { ActionMenu as Re, Avatar as ze, Combobox as Be, CountBadge as v, IconButton as y, Kbd as Ve, PageHeaderBar as He, PageHeaderProvider as Ue, Tooltip as b, menuDivider as x, useOpenMenu as We } from "@parallelworks/ui";
|
|
34
34
|
import { Outlet as Ge, useParams as Ke } from "@tanstack/react-router";
|
|
35
|
-
import { Suspense as qe, useCallback as Je, useEffect as
|
|
36
|
-
import { useLocale as
|
|
37
|
-
import { Fragment as
|
|
38
|
-
import { useQuery as
|
|
39
|
-
import { AppFrame as
|
|
40
|
-
import { createPortal as
|
|
35
|
+
import { Suspense as qe, useCallback as Je, useEffect as Ye, useMemo as Xe, useState as S } from "react";
|
|
36
|
+
import { useLocale as Ze, useTranslations as C } from "use-intl";
|
|
37
|
+
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
38
|
+
import { useQuery as D, useQueryClient as Qe, useSuspenseQuery as O } from "@tanstack/react-query";
|
|
39
|
+
import { AppFrame as $e, AppFrameNavGroup as et, AppFrameNavItem as k, AppFrameToggle as A, useAppFrame as j } from "@parallelworks/ui/app-frame";
|
|
40
|
+
import { createPortal as M } from "react-dom";
|
|
41
41
|
// src/routes/$workspace.tsx?tsr-split=component
|
|
42
|
-
var
|
|
43
|
-
function
|
|
44
|
-
let { workspace: d } = Le.useParams(), { data: g } =
|
|
42
|
+
var N = "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)]", tt = "absolute top-1.5 right-3 size-2 rounded-full bg-primary", P = (...e) => e.filter(Boolean).join(" ");
|
|
43
|
+
function F() {
|
|
44
|
+
let { workspace: d } = Le.useParams(), { data: g } = O(r), { data: j } = O(o(d)), { data: M } = O(i(d)), F = xe(), [I, L] = S(null), [dt, R] = S(!1), ft = Me(d, "manage_teams"), { canInstall: pt, install: mt } = we(), z = Pe(), ht = Qe(), B = We(), V = be(d), H = C("workspace"), gt = C("common"), U = Ze(), W = C("favorites"), _t = C("roles"), G = De(), vt = (e) => [
|
|
45
45
|
{
|
|
46
46
|
label: gt("open"),
|
|
47
|
-
onClick: () =>
|
|
47
|
+
onClick: () => z({
|
|
48
48
|
to: "/$workspace/teams/$key/issues",
|
|
49
49
|
params: {
|
|
50
50
|
workspace: d,
|
|
@@ -53,13 +53,13 @@ function I() {
|
|
|
53
53
|
})
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
|
-
label:
|
|
56
|
+
label: H("newIssueInTeam"),
|
|
57
57
|
shortcut: "C",
|
|
58
58
|
onClick: () => Z({ team: e.key })
|
|
59
59
|
},
|
|
60
60
|
...e.cyclesEnabled ? [{
|
|
61
|
-
label:
|
|
62
|
-
onClick: () =>
|
|
61
|
+
label: H("cycles"),
|
|
62
|
+
onClick: () => z({
|
|
63
63
|
to: "/$workspace/teams/$key/cycles",
|
|
64
64
|
params: {
|
|
65
65
|
workspace: d,
|
|
@@ -68,8 +68,8 @@ function I() {
|
|
|
68
68
|
})
|
|
69
69
|
}] : [],
|
|
70
70
|
{
|
|
71
|
-
label:
|
|
72
|
-
onClick: () =>
|
|
71
|
+
label: H("teamSettings"),
|
|
72
|
+
onClick: () => z({
|
|
73
73
|
to: "/$workspace/teams/$key/settings",
|
|
74
74
|
params: {
|
|
75
75
|
workspace: d,
|
|
@@ -78,410 +78,410 @@ function I() {
|
|
|
78
78
|
})
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
|
-
label:
|
|
82
|
-
onClick: () =>
|
|
81
|
+
label: V.find("team", e.id) ? W("remove") : W("add"),
|
|
82
|
+
onClick: () => V.toggle("team", e.id)
|
|
83
83
|
},
|
|
84
84
|
x,
|
|
85
|
-
...
|
|
85
|
+
...G(Ie(d, e.key, "issues")),
|
|
86
86
|
Ee(gt("copyKey"), e.key)
|
|
87
87
|
], yt = (e) => ({
|
|
88
|
-
label:
|
|
89
|
-
onClick: () =>
|
|
90
|
-
}),
|
|
91
|
-
let e = _(
|
|
88
|
+
label: V.find("page", e) ? W("remove") : W("add"),
|
|
89
|
+
onClick: () => V.toggle("page", e)
|
|
90
|
+
}), K = Ne(), [bt, xt] = S(() => st().expanded), [St, Ct] = S(() => st().width), wt = Xe(() => {
|
|
91
|
+
let e = _(K.pathname, d), t = e?.page === "issues" ? e.team : void 0, n = K.pathname === `/${d}/issues` || t !== void 0, r = K.search;
|
|
92
92
|
return {
|
|
93
93
|
mine: n && !r.saved && !t && (r.assignee === g?.user.username || r.creator === g?.user.username),
|
|
94
94
|
team: n && !r.assignee ? t : void 0
|
|
95
95
|
};
|
|
96
96
|
}, [
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
K.pathname,
|
|
98
|
+
K.search,
|
|
99
99
|
d,
|
|
100
100
|
g?.user.username
|
|
101
|
-
]),
|
|
102
|
-
let n = _(
|
|
101
|
+
]), q = (e, t) => {
|
|
102
|
+
let n = _(K.pathname, d);
|
|
103
103
|
return n?.page === e && n.team === t;
|
|
104
|
-
}, [Tt, Et] =
|
|
104
|
+
}, [Tt, Et] = S(() => ot(d)), Dt = (e, t) => Et((n) => {
|
|
105
105
|
let r = new Set(n);
|
|
106
|
-
return t ? r.delete(e) : r.add(e),
|
|
107
|
-
}),
|
|
106
|
+
return t ? r.delete(e) : r.add(e), lt(d, r), r;
|
|
107
|
+
}), J = K.pathname.startsWith(`/${d}/settings`), { data: Ot = [] } = D(t(d)), kt = M.some((e) => e.triageEnabled && !e.archivedAt), { data: At } = D({
|
|
108
108
|
...n(d, { triage: "only" }),
|
|
109
109
|
enabled: kt
|
|
110
|
-
}), jt = (e) => At?.issues.filter((t) => t.teamId === e).length ?? 0, { data: Mt } =
|
|
110
|
+
}), jt = (e) => At?.issues.filter((t) => t.teamId === e).length ?? 0, { data: Mt } = D(a(d)), Y = Mt?.unread ?? 0;
|
|
111
111
|
ke();
|
|
112
|
-
let { key:
|
|
113
|
-
...
|
|
112
|
+
let { key: X } = Ke({ strict: !1 }), Z = Je((e) => L({
|
|
113
|
+
...X && { team: X },
|
|
114
114
|
...e
|
|
115
|
-
}), [
|
|
116
|
-
Fe({ c: () => Z() },
|
|
117
|
-
let [
|
|
118
|
-
Fe({ "?": () =>
|
|
119
|
-
let [
|
|
120
|
-
if (
|
|
115
|
+
}), [X]);
|
|
116
|
+
Fe({ c: () => Z() }, I === null);
|
|
117
|
+
let [Nt, Pt] = S(!1);
|
|
118
|
+
Fe({ "?": () => Pt(!0) });
|
|
119
|
+
let [Ft, Q] = S(!1), [It, Lt] = S([]);
|
|
120
|
+
if (Ye(() => {
|
|
121
121
|
let e = (e) => {
|
|
122
|
-
!e.metaKey && !e.ctrlKey || e.altKey || e.shiftKey || e.key.toLowerCase() !== "k" || e.defaultPrevented || (e.preventDefault(), Q((e) => !e))
|
|
122
|
+
!e.metaKey && !e.ctrlKey || e.altKey || e.shiftKey || e.key.toLowerCase() !== "k" || e.defaultPrevented || (e.preventDefault(), Q((e) => !e));
|
|
123
123
|
};
|
|
124
124
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
125
125
|
}, []), !g) return null;
|
|
126
|
-
let
|
|
127
|
-
$ === void 0 ? (await e.POST("/api/v1/auth/logout"), ht.clear(),
|
|
128
|
-
},
|
|
129
|
-
let t = /* @__PURE__ */
|
|
126
|
+
let Rt = g.mode === "platform", zt = pt && !Rt, $ = g.signOutUrl, Bt = !F && (!Rt || $ !== void 0), Vt = async () => {
|
|
127
|
+
$ === void 0 ? (await e.POST("/api/v1/auth/logout"), ht.clear(), z({ to: "/login" })) : await Ce($);
|
|
128
|
+
}, Ht = J ? void 0 : ({ expanded: e }) => {
|
|
129
|
+
let t = /* @__PURE__ */ T(Be, {
|
|
130
130
|
items: [...g.workspaces.map((e) => ({
|
|
131
131
|
value: e.slug,
|
|
132
132
|
label: e.name,
|
|
133
133
|
hint: je(e.role) ? _t(`${e.role}.name`) : _t("custom")
|
|
134
134
|
})), ...g.canCreateWorkspace ? [{
|
|
135
135
|
value: "__new",
|
|
136
|
-
label:
|
|
136
|
+
label: H("createWorkspace")
|
|
137
137
|
}] : []],
|
|
138
138
|
value: d,
|
|
139
|
-
onValueChange: (e) =>
|
|
139
|
+
onValueChange: (e) => z(e === "__new" ? { to: "/new" } : {
|
|
140
140
|
to: "/$workspace/issues",
|
|
141
141
|
params: { workspace: e ?? d }
|
|
142
142
|
}),
|
|
143
|
-
placeholder:
|
|
144
|
-
"aria-label":
|
|
145
|
-
trigger: /* @__PURE__ */
|
|
143
|
+
placeholder: H("switchWorkspacePlaceholder"),
|
|
144
|
+
"aria-label": H("switchWorkspace"),
|
|
145
|
+
trigger: /* @__PURE__ */ E("button", {
|
|
146
146
|
type: "button",
|
|
147
|
-
"aria-label": e ? void 0 :
|
|
148
|
-
onContextMenu: (e) =>
|
|
147
|
+
"aria-label": e ? void 0 : j.name,
|
|
148
|
+
onContextMenu: (e) => B(e, [
|
|
149
149
|
{
|
|
150
|
-
label:
|
|
151
|
-
onClick: () =>
|
|
150
|
+
label: H("workspaceSettings"),
|
|
151
|
+
onClick: () => z({
|
|
152
152
|
to: "/$workspace/settings",
|
|
153
153
|
params: { workspace: d }
|
|
154
154
|
})
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
|
-
label:
|
|
157
|
+
label: H("switchWorkspace"),
|
|
158
158
|
items: [...g.workspaces.map((e) => ({
|
|
159
159
|
label: e.name,
|
|
160
160
|
checked: e.slug === d,
|
|
161
|
-
onClick: () =>
|
|
161
|
+
onClick: () => z({
|
|
162
162
|
to: "/$workspace/issues",
|
|
163
163
|
params: { workspace: e.slug }
|
|
164
164
|
})
|
|
165
165
|
})), ...g.canCreateWorkspace ? [x, {
|
|
166
|
-
label:
|
|
167
|
-
onClick: () =>
|
|
166
|
+
label: H("createWorkspace"),
|
|
167
|
+
onClick: () => z({ to: "/new" })
|
|
168
168
|
}] : []]
|
|
169
169
|
},
|
|
170
170
|
x,
|
|
171
|
-
Ee(
|
|
172
|
-
...
|
|
173
|
-
label:
|
|
174
|
-
onClick:
|
|
171
|
+
Ee(H("copyWorkspaceSlug"), d),
|
|
172
|
+
...Bt ? [x, {
|
|
173
|
+
label: H("signOut"),
|
|
174
|
+
onClick: Vt
|
|
175
175
|
}] : []
|
|
176
176
|
]),
|
|
177
|
-
className:
|
|
178
|
-
children: [
|
|
179
|
-
icon:
|
|
180
|
-
color:
|
|
181
|
-
name:
|
|
177
|
+
className: P("flex h-9 items-center gap-2 rounded-md text-left hover:bg-muted", e ? "w-full px-2" : "w-9 justify-center"),
|
|
178
|
+
children: [j.icon ? /* @__PURE__ */ T(ee, {
|
|
179
|
+
icon: j.icon,
|
|
180
|
+
color: j.color,
|
|
181
|
+
name: j.name,
|
|
182
182
|
className: "size-6 text-base"
|
|
183
|
-
}) : /* @__PURE__ */
|
|
183
|
+
}) : /* @__PURE__ */ T(me, { withName: !1 }), e && /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("span", {
|
|
184
184
|
className: "min-w-0 flex-1 truncate text-sm font-semibold",
|
|
185
|
-
children:
|
|
186
|
-
}), /* @__PURE__ */
|
|
185
|
+
children: j.name
|
|
186
|
+
}), /* @__PURE__ */ T(m, { className: "size-3.5 text-muted-foreground" })] })]
|
|
187
187
|
})
|
|
188
188
|
});
|
|
189
|
-
return e ? /* @__PURE__ */
|
|
189
|
+
return e ? /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ E("div", {
|
|
190
190
|
className: "flex items-center gap-1",
|
|
191
191
|
children: [
|
|
192
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ T("div", {
|
|
193
193
|
className: "min-w-0 flex-1",
|
|
194
194
|
children: t
|
|
195
195
|
}),
|
|
196
|
-
!
|
|
197
|
-
!
|
|
196
|
+
!F && /* @__PURE__ */ T(u, { className: "hidden md:flex" }),
|
|
197
|
+
!F && /* @__PURE__ */ T(s, {
|
|
198
198
|
apps: g.apps ?? [],
|
|
199
199
|
className: "hidden md:block"
|
|
200
200
|
})
|
|
201
201
|
]
|
|
202
|
-
}), /* @__PURE__ */
|
|
202
|
+
}), /* @__PURE__ */ E("div", {
|
|
203
203
|
className: "mt-3 flex gap-1.5",
|
|
204
|
-
children: [/* @__PURE__ */
|
|
204
|
+
children: [/* @__PURE__ */ E("button", {
|
|
205
205
|
type: "button",
|
|
206
206
|
onClick: () => Z(),
|
|
207
|
-
className:
|
|
207
|
+
className: P(N, "min-w-0 flex-1 gap-2 px-2"),
|
|
208
208
|
children: [
|
|
209
|
-
/* @__PURE__ */
|
|
210
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ T(p, { className: "size-3.5" }),
|
|
210
|
+
/* @__PURE__ */ T("span", {
|
|
211
211
|
className: "flex-1 text-left",
|
|
212
|
-
children:
|
|
212
|
+
children: H("newIssue")
|
|
213
213
|
}),
|
|
214
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ T(Ve, {
|
|
215
215
|
keys: "C",
|
|
216
216
|
size: "xs",
|
|
217
217
|
variant: "plain"
|
|
218
218
|
})
|
|
219
219
|
]
|
|
220
|
-
}), /* @__PURE__ */
|
|
221
|
-
content:
|
|
220
|
+
}), /* @__PURE__ */ T(b, {
|
|
221
|
+
content: H("openPalette"),
|
|
222
222
|
shortcut: "Mod+K",
|
|
223
|
-
children: /* @__PURE__ */
|
|
223
|
+
children: /* @__PURE__ */ T("button", {
|
|
224
224
|
type: "button",
|
|
225
225
|
onClick: () => Q(!0),
|
|
226
|
-
"aria-label":
|
|
226
|
+
"aria-label": H("openPalette"),
|
|
227
227
|
"aria-keyshortcuts": "Meta+K Control+K",
|
|
228
|
-
className:
|
|
229
|
-
children: /* @__PURE__ */
|
|
228
|
+
className: N,
|
|
229
|
+
children: /* @__PURE__ */ T(h, { className: "size-3.5" })
|
|
230
230
|
})
|
|
231
231
|
})]
|
|
232
|
-
})] }) : /* @__PURE__ */
|
|
232
|
+
})] }) : /* @__PURE__ */ E("div", {
|
|
233
233
|
className: "flex flex-col items-center gap-1.5",
|
|
234
234
|
children: [
|
|
235
235
|
t,
|
|
236
|
-
!
|
|
237
|
-
!
|
|
238
|
-
/* @__PURE__ */
|
|
239
|
-
content:
|
|
236
|
+
!F && /* @__PURE__ */ T(s, { apps: g.apps ?? [] }),
|
|
237
|
+
!F && /* @__PURE__ */ T(u, { className: "flex-col" }),
|
|
238
|
+
/* @__PURE__ */ T(b, {
|
|
239
|
+
content: H("newIssue"),
|
|
240
240
|
shortcut: "C",
|
|
241
241
|
side: "right",
|
|
242
|
-
children: /* @__PURE__ */
|
|
242
|
+
children: /* @__PURE__ */ T("button", {
|
|
243
243
|
type: "button",
|
|
244
244
|
onClick: () => Z(),
|
|
245
|
-
"aria-label":
|
|
246
|
-
className:
|
|
247
|
-
children: /* @__PURE__ */
|
|
245
|
+
"aria-label": H("newIssue"),
|
|
246
|
+
className: N,
|
|
247
|
+
children: /* @__PURE__ */ T(p, { className: "size-3.5" })
|
|
248
248
|
})
|
|
249
249
|
}),
|
|
250
|
-
/* @__PURE__ */
|
|
251
|
-
content:
|
|
250
|
+
/* @__PURE__ */ T(b, {
|
|
251
|
+
content: H("openPalette"),
|
|
252
252
|
shortcut: "Mod+K",
|
|
253
253
|
side: "right",
|
|
254
|
-
children: /* @__PURE__ */
|
|
254
|
+
children: /* @__PURE__ */ T("button", {
|
|
255
255
|
type: "button",
|
|
256
256
|
onClick: () => Q(!0),
|
|
257
|
-
"aria-label":
|
|
257
|
+
"aria-label": H("openPalette"),
|
|
258
258
|
"aria-keyshortcuts": "Meta+K Control+K",
|
|
259
|
-
className:
|
|
260
|
-
children: /* @__PURE__ */
|
|
259
|
+
className: N,
|
|
260
|
+
children: /* @__PURE__ */ T(h, { className: "size-3.5" })
|
|
261
261
|
})
|
|
262
262
|
})
|
|
263
263
|
]
|
|
264
264
|
});
|
|
265
|
-
},
|
|
266
|
-
if (
|
|
267
|
-
let n = !e, r = (e) =>
|
|
265
|
+
}, Ut = ({ expanded: e, mobileOpen: t }) => {
|
|
266
|
+
if (J) return /* @__PURE__ */ T(ge, { workspace: d });
|
|
267
|
+
let n = !e, r = (e) => K.pathname === e || K.pathname.startsWith(`${e}/`), i = (e, t) => (n) => B(n, [
|
|
268
268
|
yt(e),
|
|
269
269
|
x,
|
|
270
|
-
...
|
|
271
|
-
]), a = (e) => (t) =>
|
|
270
|
+
...G(t)
|
|
271
|
+
]), a = (e) => (t) => B(t, G(e)), o = (e, t) => /* @__PURE__ */ E("span", {
|
|
272
272
|
className: "relative flex",
|
|
273
|
-
children: [e, n && t && /* @__PURE__ */
|
|
274
|
-
}), s = /* @__PURE__ */
|
|
273
|
+
children: [e, n && t && /* @__PURE__ */ T("span", { className: tt })]
|
|
274
|
+
}), s = /* @__PURE__ */ T("hr", { className: "tandem-nav-divider mx-2 my-2 border-border" }), c = M.filter((e) => !e.archivedAt), l = new Set(c.map((e) => e.id)), u = (e) => c.filter((t) => (t.parentId && l.has(t.parentId) ? t.parentId : "") === e), f = (e) => {
|
|
275
275
|
let t = (t) => Ie(d, e.key, t), n = Ot.filter((t) => t.identifier.startsWith(`${e.key}-`)).length, i = (t) => !(e.sidebarHidden ?? []).includes(t);
|
|
276
|
-
return /* @__PURE__ */
|
|
276
|
+
return /* @__PURE__ */ E(et, {
|
|
277
277
|
label: e.name,
|
|
278
278
|
className: "tandem-team",
|
|
279
|
-
icon: o(/* @__PURE__ */
|
|
279
|
+
icon: o(/* @__PURE__ */ T(ee, {
|
|
280
280
|
icon: e.icon,
|
|
281
281
|
color: e.color,
|
|
282
282
|
name: e.name
|
|
283
283
|
}), i("triage") && jt(e.id) > 0),
|
|
284
|
-
selected: _(
|
|
284
|
+
selected: _(K.pathname, d)?.team === e.key,
|
|
285
285
|
open: !Tt.has(e.key),
|
|
286
286
|
onOpenChange: (t) => Dt(e.key, t),
|
|
287
|
-
onContextMenu: (t) =>
|
|
287
|
+
onContextMenu: (t) => B(t, vt(e)),
|
|
288
288
|
children: [
|
|
289
|
-
e.triageEnabled && i("triage") && /* @__PURE__ */
|
|
290
|
-
label:
|
|
291
|
-
icon: /* @__PURE__ */
|
|
289
|
+
e.triageEnabled && i("triage") && /* @__PURE__ */ T(k, {
|
|
290
|
+
label: H("triage"),
|
|
291
|
+
icon: /* @__PURE__ */ T(fe, { className: "size-4" }),
|
|
292
292
|
href: t("triage"),
|
|
293
|
-
selected:
|
|
293
|
+
selected: q("triage", e.key),
|
|
294
294
|
onContextMenu: a(t("triage")),
|
|
295
|
-
badge: /* @__PURE__ */
|
|
295
|
+
badge: /* @__PURE__ */ T(v, {
|
|
296
296
|
count: jt(e.id),
|
|
297
|
-
locale:
|
|
298
|
-
label:
|
|
297
|
+
locale: U,
|
|
298
|
+
label: H("triageCount")
|
|
299
299
|
})
|
|
300
300
|
}),
|
|
301
|
-
i("issues") && /* @__PURE__ */
|
|
302
|
-
label:
|
|
303
|
-
icon: /* @__PURE__ */
|
|
301
|
+
i("issues") && /* @__PURE__ */ T(k, {
|
|
302
|
+
label: H("issues"),
|
|
303
|
+
icon: /* @__PURE__ */ T(le, { className: "size-4" }),
|
|
304
304
|
href: t("issues"),
|
|
305
305
|
selected: wt.team === e.key,
|
|
306
306
|
onContextMenu: a(t("issues"))
|
|
307
307
|
}),
|
|
308
|
-
i("projects") && /* @__PURE__ */
|
|
309
|
-
label:
|
|
310
|
-
icon: /* @__PURE__ */
|
|
308
|
+
i("projects") && /* @__PURE__ */ T(k, {
|
|
309
|
+
label: H("projects"),
|
|
310
|
+
icon: /* @__PURE__ */ T(de, { className: "size-4" }),
|
|
311
311
|
href: t("projects"),
|
|
312
|
-
selected:
|
|
312
|
+
selected: q("projects", e.key),
|
|
313
313
|
onContextMenu: a(t("projects"))
|
|
314
314
|
}),
|
|
315
|
-
i("areas") && /* @__PURE__ */
|
|
316
|
-
label:
|
|
317
|
-
icon: /* @__PURE__ */
|
|
315
|
+
i("areas") && /* @__PURE__ */ T(k, {
|
|
316
|
+
label: H("areas"),
|
|
317
|
+
icon: /* @__PURE__ */ T(re, { className: "size-4" }),
|
|
318
318
|
href: t("areas"),
|
|
319
|
-
selected:
|
|
319
|
+
selected: q("areas", e.key),
|
|
320
320
|
onContextMenu: a(t("areas"))
|
|
321
321
|
}),
|
|
322
|
-
i("decisions") && /* @__PURE__ */
|
|
323
|
-
label:
|
|
324
|
-
icon: /* @__PURE__ */
|
|
322
|
+
i("decisions") && /* @__PURE__ */ T(k, {
|
|
323
|
+
label: H("decisions"),
|
|
324
|
+
icon: /* @__PURE__ */ T(se, { className: "size-4" }),
|
|
325
325
|
href: t("decisions"),
|
|
326
|
-
selected:
|
|
326
|
+
selected: q("decisions", e.key),
|
|
327
327
|
onContextMenu: a(t("decisions")),
|
|
328
|
-
badge: /* @__PURE__ */
|
|
328
|
+
badge: /* @__PURE__ */ T(v, {
|
|
329
329
|
count: n,
|
|
330
|
-
locale:
|
|
331
|
-
label:
|
|
330
|
+
locale: U,
|
|
331
|
+
label: H("waitingCount"),
|
|
332
332
|
className: "bg-agent! text-agent-foreground!"
|
|
333
333
|
})
|
|
334
334
|
}),
|
|
335
|
-
i("docs") && /* @__PURE__ */
|
|
336
|
-
label:
|
|
337
|
-
icon: /* @__PURE__ */
|
|
335
|
+
i("docs") && /* @__PURE__ */ T(k, {
|
|
336
|
+
label: H("docs"),
|
|
337
|
+
icon: /* @__PURE__ */ T(oe, { className: "size-4" }),
|
|
338
338
|
href: `/${d}/docs/space/${e.key}`,
|
|
339
339
|
selected: r(`/${d}/docs/space/${e.key}`),
|
|
340
340
|
onContextMenu: a(`/${d}/docs/space/${e.key}`)
|
|
341
341
|
}),
|
|
342
|
-
e.cyclesEnabled && i("cycles") && /* @__PURE__ */
|
|
343
|
-
label:
|
|
344
|
-
icon: /* @__PURE__ */
|
|
342
|
+
e.cyclesEnabled && i("cycles") && /* @__PURE__ */ T(k, {
|
|
343
|
+
label: H("cycles"),
|
|
344
|
+
icon: /* @__PURE__ */ T(ae, { className: "size-4" }),
|
|
345
345
|
href: t("cycles"),
|
|
346
|
-
selected:
|
|
346
|
+
selected: q("cycles", e.key)
|
|
347
347
|
}),
|
|
348
348
|
u(e.id).map(f)
|
|
349
349
|
]
|
|
350
350
|
}, e.id);
|
|
351
351
|
}, m = u("").map(f), h = `/${d}/issues?assignee=${encodeURIComponent(g.user.username)}`;
|
|
352
|
-
return /* @__PURE__ */
|
|
353
|
-
t && /* @__PURE__ */
|
|
354
|
-
/* @__PURE__ */
|
|
355
|
-
label:
|
|
356
|
-
icon: o(/* @__PURE__ */
|
|
352
|
+
return /* @__PURE__ */ E(w, { children: [
|
|
353
|
+
t && /* @__PURE__ */ T(nt, {}),
|
|
354
|
+
/* @__PURE__ */ T(k, {
|
|
355
|
+
label: H("notifications"),
|
|
356
|
+
icon: o(/* @__PURE__ */ T(ue, { className: "size-4" }), Y > 0),
|
|
357
357
|
href: `/${d}/notifications`,
|
|
358
358
|
selected: r(`/${d}/notifications`),
|
|
359
359
|
onContextMenu: i("notifications", `/${d}/notifications`),
|
|
360
|
-
badge: /* @__PURE__ */
|
|
361
|
-
count:
|
|
362
|
-
locale:
|
|
363
|
-
label:
|
|
360
|
+
badge: /* @__PURE__ */ T(v, {
|
|
361
|
+
count: Y,
|
|
362
|
+
locale: U,
|
|
363
|
+
label: H("unreadCount")
|
|
364
364
|
})
|
|
365
365
|
}),
|
|
366
|
-
/* @__PURE__ */
|
|
367
|
-
label:
|
|
368
|
-
icon: /* @__PURE__ */
|
|
366
|
+
/* @__PURE__ */ T(k, {
|
|
367
|
+
label: H("myIssues"),
|
|
368
|
+
icon: /* @__PURE__ */ T(pe, { className: "size-4" }),
|
|
369
369
|
href: h,
|
|
370
370
|
selected: wt.mine,
|
|
371
371
|
onContextMenu: i("my-issues", h)
|
|
372
372
|
}),
|
|
373
|
-
/* @__PURE__ */
|
|
374
|
-
label:
|
|
375
|
-
icon: /* @__PURE__ */
|
|
373
|
+
/* @__PURE__ */ T(k, {
|
|
374
|
+
label: H("projects"),
|
|
375
|
+
icon: /* @__PURE__ */ T(de, { className: "size-4" }),
|
|
376
376
|
href: `/${d}/projects`,
|
|
377
377
|
selected: r(`/${d}/projects`),
|
|
378
378
|
onContextMenu: i("projects", `/${d}/projects`)
|
|
379
379
|
}),
|
|
380
|
-
/* @__PURE__ */
|
|
381
|
-
label:
|
|
382
|
-
icon: /* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ T(k, {
|
|
381
|
+
label: H("dashboards"),
|
|
382
|
+
icon: /* @__PURE__ */ T(ie, { className: "size-4" }),
|
|
383
383
|
href: `/${d}/dashboards`,
|
|
384
384
|
selected: r(`/${d}/dashboards`),
|
|
385
385
|
onContextMenu: i("dashboards", `/${d}/dashboards`)
|
|
386
386
|
}),
|
|
387
|
-
/* @__PURE__ */
|
|
388
|
-
label:
|
|
389
|
-
icon: /* @__PURE__ */
|
|
387
|
+
/* @__PURE__ */ T(k, {
|
|
388
|
+
label: H("knowledge"),
|
|
389
|
+
icon: /* @__PURE__ */ T(ce, { className: "size-4" }),
|
|
390
390
|
href: `/${d}/knowledge`,
|
|
391
391
|
selected: r(`/${d}/knowledge`),
|
|
392
392
|
onContextMenu: i("knowledge", `/${d}/knowledge`)
|
|
393
393
|
}),
|
|
394
|
-
/* @__PURE__ */
|
|
395
|
-
label:
|
|
396
|
-
icon: /* @__PURE__ */
|
|
394
|
+
/* @__PURE__ */ T(k, {
|
|
395
|
+
label: H("agents"),
|
|
396
|
+
icon: /* @__PURE__ */ T(ne, { className: "size-4" }),
|
|
397
397
|
href: `/${d}/agents`,
|
|
398
398
|
selected: r(`/${d}/agents`),
|
|
399
399
|
onContextMenu: i("agents", `/${d}/agents`)
|
|
400
400
|
}),
|
|
401
|
-
n ? /* @__PURE__ */
|
|
401
|
+
n ? /* @__PURE__ */ T("div", {
|
|
402
402
|
className: "mt-4 border-t border-border pt-4",
|
|
403
403
|
children: m
|
|
404
|
-
}) : /* @__PURE__ */
|
|
404
|
+
}) : /* @__PURE__ */ E(w, { children: [
|
|
405
405
|
s,
|
|
406
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ T(te, {
|
|
407
407
|
workspace: d,
|
|
408
408
|
myUsername: g.user.username,
|
|
409
|
-
currentHref:
|
|
409
|
+
currentHref: K.pathname + K.searchStr
|
|
410
410
|
}),
|
|
411
411
|
s,
|
|
412
|
-
/* @__PURE__ */
|
|
413
|
-
label:
|
|
412
|
+
/* @__PURE__ */ T(et, {
|
|
413
|
+
label: H("teams"),
|
|
414
414
|
collapsible: !1,
|
|
415
|
-
action: ft && /* @__PURE__ */
|
|
415
|
+
action: ft && /* @__PURE__ */ T(y, {
|
|
416
416
|
variant: "ghost",
|
|
417
417
|
size: "xs",
|
|
418
|
-
icon: /* @__PURE__ */
|
|
419
|
-
label:
|
|
420
|
-
onClick: () =>
|
|
418
|
+
icon: /* @__PURE__ */ T(p, {}),
|
|
419
|
+
label: H("createTeam"),
|
|
420
|
+
onClick: () => R(!0)
|
|
421
421
|
}),
|
|
422
|
-
children:
|
|
423
|
-
label:
|
|
424
|
-
icon: /* @__PURE__ */
|
|
425
|
-
onClick: () =>
|
|
426
|
-
}) : /* @__PURE__ */
|
|
422
|
+
children: M.length === 0 && (ft ? /* @__PURE__ */ T(k, {
|
|
423
|
+
label: H("createFirstTeam"),
|
|
424
|
+
icon: /* @__PURE__ */ T(p, { className: "size-4" }),
|
|
425
|
+
onClick: () => R(!0)
|
|
426
|
+
}) : /* @__PURE__ */ T("p", {
|
|
427
427
|
className: "px-2 text-sm text-muted-foreground",
|
|
428
|
-
children:
|
|
428
|
+
children: H("noTeams")
|
|
429
429
|
}))
|
|
430
430
|
}),
|
|
431
431
|
m
|
|
432
432
|
] })
|
|
433
433
|
] });
|
|
434
|
-
},
|
|
434
|
+
}, Wt = J ? void 0 : ({ expanded: e, isMobile: t }) => {
|
|
435
435
|
let n = [
|
|
436
436
|
{
|
|
437
|
-
label:
|
|
438
|
-
onClick: () =>
|
|
437
|
+
label: H("myAccount"),
|
|
438
|
+
onClick: () => z({
|
|
439
439
|
to: "/$workspace/settings/account",
|
|
440
440
|
params: { workspace: d }
|
|
441
441
|
})
|
|
442
442
|
},
|
|
443
443
|
{
|
|
444
|
-
label:
|
|
445
|
-
onClick: () =>
|
|
444
|
+
label: H("settings"),
|
|
445
|
+
onClick: () => z({
|
|
446
446
|
to: "/$workspace/settings",
|
|
447
447
|
params: { workspace: d }
|
|
448
448
|
})
|
|
449
449
|
},
|
|
450
|
-
...
|
|
451
|
-
label:
|
|
450
|
+
...zt ? [{
|
|
451
|
+
label: H("installApp"),
|
|
452
452
|
onClick: mt
|
|
453
453
|
}] : [],
|
|
454
|
-
...
|
|
455
|
-
label:
|
|
456
|
-
onClick:
|
|
454
|
+
...Bt ? [x, {
|
|
455
|
+
label: H("signOut"),
|
|
456
|
+
onClick: Vt
|
|
457
457
|
}] : []
|
|
458
|
-
], r = /* @__PURE__ */
|
|
458
|
+
], r = /* @__PURE__ */ T(ze, {
|
|
459
459
|
name: g.user.name,
|
|
460
460
|
src: g.user.avatarUrl,
|
|
461
461
|
size: "sm",
|
|
462
462
|
decorative: !0
|
|
463
463
|
});
|
|
464
|
-
return e ? /* @__PURE__ */
|
|
464
|
+
return e ? /* @__PURE__ */ E("div", {
|
|
465
465
|
className: "flex items-center gap-1",
|
|
466
|
-
children: [/* @__PURE__ */
|
|
467
|
-
label:
|
|
466
|
+
children: [/* @__PURE__ */ T(Re, {
|
|
467
|
+
label: H("accountMenu", { name: g.user.name }),
|
|
468
468
|
side: "top",
|
|
469
469
|
align: "start",
|
|
470
470
|
matchTriggerWidth: !0,
|
|
471
471
|
items: n,
|
|
472
|
-
trigger: /* @__PURE__ */
|
|
472
|
+
trigger: /* @__PURE__ */ E("button", {
|
|
473
473
|
type: "button",
|
|
474
474
|
className: "flex h-9 min-w-0 flex-1 items-center gap-2 rounded-md px-1.5 text-left hover:bg-muted",
|
|
475
|
-
children: [r, /* @__PURE__ */
|
|
475
|
+
children: [r, /* @__PURE__ */ T("span", {
|
|
476
476
|
className: "min-w-0 flex-1 truncate text-sm",
|
|
477
477
|
children: g.user.name
|
|
478
478
|
})]
|
|
479
479
|
})
|
|
480
|
-
}), !t && /* @__PURE__ */
|
|
481
|
-
}) : /* @__PURE__ */
|
|
480
|
+
}), !t && /* @__PURE__ */ T(A, {})]
|
|
481
|
+
}) : /* @__PURE__ */ E("div", {
|
|
482
482
|
className: "flex flex-col items-center gap-2",
|
|
483
|
-
children: [/* @__PURE__ */
|
|
484
|
-
label:
|
|
483
|
+
children: [/* @__PURE__ */ T(A, {}), /* @__PURE__ */ T(Re, {
|
|
484
|
+
label: H("accountMenu", { name: g.user.name }),
|
|
485
485
|
side: "right",
|
|
486
486
|
align: "end",
|
|
487
487
|
items: n,
|
|
@@ -490,96 +490,96 @@ function I() {
|
|
|
490
490
|
children: r
|
|
491
491
|
})]
|
|
492
492
|
});
|
|
493
|
-
},
|
|
493
|
+
}, Gt = /* @__PURE__ */ T(rt, {
|
|
494
494
|
workspace: d,
|
|
495
|
-
name:
|
|
495
|
+
name: j.name,
|
|
496
496
|
apps: g.apps ?? [],
|
|
497
|
-
unread:
|
|
497
|
+
unread: Y,
|
|
498
498
|
onSearch: () => Q(!0),
|
|
499
499
|
onNewIssue: () => Z()
|
|
500
500
|
});
|
|
501
|
-
return /* @__PURE__ */
|
|
501
|
+
return /* @__PURE__ */ T(Te, {
|
|
502
502
|
workspace: d,
|
|
503
|
-
children: /* @__PURE__ */
|
|
503
|
+
children: /* @__PURE__ */ T(Se, {
|
|
504
504
|
actions: g.actions ?? [],
|
|
505
|
-
children: /* @__PURE__ */
|
|
505
|
+
children: /* @__PURE__ */ T(Oe.Provider, {
|
|
506
506
|
value: Z,
|
|
507
|
-
children: /* @__PURE__ */
|
|
508
|
-
value:
|
|
507
|
+
children: /* @__PURE__ */ E(Ae.Provider, {
|
|
508
|
+
value: Lt,
|
|
509
509
|
children: [
|
|
510
|
-
|
|
511
|
-
sidebar:
|
|
512
|
-
brand:
|
|
513
|
-
navigation:
|
|
514
|
-
header:
|
|
515
|
-
children: /* @__PURE__ */
|
|
510
|
+
F ? /* @__PURE__ */ T(Ue, { children: /* @__PURE__ */ T(it, {
|
|
511
|
+
sidebar: F.sidebar,
|
|
512
|
+
brand: Ht,
|
|
513
|
+
navigation: Ut,
|
|
514
|
+
header: Gt,
|
|
515
|
+
children: /* @__PURE__ */ T(at, { children: /* @__PURE__ */ E("div", {
|
|
516
516
|
className: "flex h-full min-h-0 flex-col",
|
|
517
|
-
children: [/* @__PURE__ */
|
|
517
|
+
children: [/* @__PURE__ */ T(He, {}), /* @__PURE__ */ T("div", {
|
|
518
518
|
className: "min-h-0 flex-1",
|
|
519
|
-
children: /* @__PURE__ */
|
|
519
|
+
children: /* @__PURE__ */ T(Ge, {})
|
|
520
520
|
})]
|
|
521
521
|
}) })
|
|
522
|
-
}) }) : /* @__PURE__ */
|
|
523
|
-
expanded: bt ||
|
|
522
|
+
}) }) : /* @__PURE__ */ T($e, {
|
|
523
|
+
expanded: bt || J,
|
|
524
524
|
onExpandedChange: (e) => {
|
|
525
|
-
xt(e),
|
|
525
|
+
xt(e), ct({
|
|
526
526
|
expanded: e,
|
|
527
527
|
width: St
|
|
528
528
|
});
|
|
529
529
|
},
|
|
530
530
|
width: St,
|
|
531
531
|
onWidthChange: (e) => {
|
|
532
|
-
Ct(e),
|
|
532
|
+
Ct(e), ct({
|
|
533
533
|
expanded: bt,
|
|
534
534
|
width: e
|
|
535
535
|
});
|
|
536
536
|
},
|
|
537
|
-
navigationKey:
|
|
538
|
-
navigationResetKey:
|
|
537
|
+
navigationKey: K.pathname + K.searchStr,
|
|
538
|
+
navigationResetKey: J ? "settings" : "workspace",
|
|
539
539
|
mainClassName: "flex flex-col overflow-hidden",
|
|
540
540
|
labels: {
|
|
541
|
-
navigation:
|
|
542
|
-
skipToContent:
|
|
543
|
-
openNavigation:
|
|
544
|
-
closeNavigation:
|
|
545
|
-
expandSidebar:
|
|
546
|
-
collapseSidebar:
|
|
547
|
-
resizeSidebar:
|
|
541
|
+
navigation: H("navigation"),
|
|
542
|
+
skipToContent: H("skipToContent"),
|
|
543
|
+
openNavigation: H("openNav"),
|
|
544
|
+
closeNavigation: H("closeNav"),
|
|
545
|
+
expandSidebar: H("expandSidebar"),
|
|
546
|
+
collapseSidebar: H("collapseSidebar"),
|
|
547
|
+
resizeSidebar: H("resizeSidebar")
|
|
548
548
|
},
|
|
549
|
-
header:
|
|
550
|
-
brand:
|
|
551
|
-
navigation:
|
|
552
|
-
footer:
|
|
553
|
-
children: /* @__PURE__ */
|
|
549
|
+
header: Gt,
|
|
550
|
+
brand: Ht,
|
|
551
|
+
navigation: Ut,
|
|
552
|
+
footer: Wt,
|
|
553
|
+
children: /* @__PURE__ */ T(at, { children: /* @__PURE__ */ T(Ge, {}) })
|
|
554
554
|
}),
|
|
555
|
-
/* @__PURE__ */
|
|
556
|
-
!
|
|
557
|
-
/* @__PURE__ */
|
|
555
|
+
/* @__PURE__ */ T(f, { workspace: d }),
|
|
556
|
+
!Rt && /* @__PURE__ */ T(ut, {}),
|
|
557
|
+
/* @__PURE__ */ T(c, {
|
|
558
558
|
workspace: d,
|
|
559
|
-
open:
|
|
559
|
+
open: Ft,
|
|
560
560
|
onClose: () => Q(!1),
|
|
561
|
-
selection:
|
|
561
|
+
selection: It
|
|
562
562
|
}),
|
|
563
|
-
/* @__PURE__ */
|
|
564
|
-
/* @__PURE__ */
|
|
565
|
-
/* @__PURE__ */
|
|
566
|
-
open:
|
|
567
|
-
onClose: () =>
|
|
563
|
+
/* @__PURE__ */ T(_e, { workspace: d }),
|
|
564
|
+
/* @__PURE__ */ T(l, { workspace: d }),
|
|
565
|
+
/* @__PURE__ */ T(ve, {
|
|
566
|
+
open: Nt,
|
|
567
|
+
onClose: () => Pt(!1)
|
|
568
568
|
}),
|
|
569
|
-
dt && /* @__PURE__ */
|
|
569
|
+
dt && /* @__PURE__ */ T(ye, {
|
|
570
570
|
workspace: d,
|
|
571
|
-
onClose: () =>
|
|
571
|
+
onClose: () => R(!1)
|
|
572
572
|
}),
|
|
573
|
-
|
|
573
|
+
I && /* @__PURE__ */ T(qe, { children: /* @__PURE__ */ T(he, {
|
|
574
574
|
workspace: d,
|
|
575
|
-
...
|
|
576
|
-
...
|
|
577
|
-
...
|
|
578
|
-
...
|
|
579
|
-
...
|
|
580
|
-
...
|
|
581
|
-
...
|
|
582
|
-
onClose: () =>
|
|
575
|
+
...I.team && { defaultTeam: I.team },
|
|
576
|
+
...I.title && { defaultTitle: I.title },
|
|
577
|
+
...I.body && { defaultBody: I.body },
|
|
578
|
+
...I.area && { defaultArea: I.area },
|
|
579
|
+
...I.origin && { origin: I.origin },
|
|
580
|
+
...I.fields && { defaults: I.fields },
|
|
581
|
+
...I.onCreated && { onCreated: I.onCreated },
|
|
582
|
+
onClose: () => L(null)
|
|
583
583
|
}) })
|
|
584
584
|
]
|
|
585
585
|
})
|
|
@@ -587,78 +587,78 @@ function I() {
|
|
|
587
587
|
})
|
|
588
588
|
});
|
|
589
589
|
}
|
|
590
|
-
function
|
|
591
|
-
return
|
|
590
|
+
function nt() {
|
|
591
|
+
return Ye(() => {
|
|
592
592
|
document.querySelector(".pw-frame-drawer [aria-current=\"page\"]")?.scrollIntoView({ block: "nearest" });
|
|
593
593
|
}, []), null;
|
|
594
594
|
}
|
|
595
|
-
function
|
|
596
|
-
let { isMobile: o } =
|
|
597
|
-
return o ? /* @__PURE__ */
|
|
595
|
+
function rt({ workspace: e, name: t, apps: n, unread: r, onSearch: i, onNewIssue: a }) {
|
|
596
|
+
let { isMobile: o } = j(), c = xe(), l = C("workspace");
|
|
597
|
+
return o ? /* @__PURE__ */ E("div", {
|
|
598
598
|
className: "flex h-12 items-center gap-1 border-b border-border px-1",
|
|
599
599
|
children: [
|
|
600
|
-
/* @__PURE__ */
|
|
601
|
-
/* @__PURE__ */
|
|
600
|
+
/* @__PURE__ */ T(A, {}),
|
|
601
|
+
/* @__PURE__ */ T("span", {
|
|
602
602
|
className: "min-w-0 flex-1 truncate text-sm font-semibold",
|
|
603
603
|
children: t
|
|
604
604
|
}),
|
|
605
|
-
!c && /* @__PURE__ */
|
|
606
|
-
!c && /* @__PURE__ */
|
|
607
|
-
/* @__PURE__ */
|
|
605
|
+
!c && /* @__PURE__ */ T(u, {}),
|
|
606
|
+
!c && /* @__PURE__ */ T(s, { apps: n }),
|
|
607
|
+
/* @__PURE__ */ T(y, {
|
|
608
608
|
variant: "ghost",
|
|
609
609
|
size: "lg",
|
|
610
|
-
icon: /* @__PURE__ */
|
|
610
|
+
icon: /* @__PURE__ */ T(h, {}),
|
|
611
611
|
label: l("openPalette"),
|
|
612
612
|
onClick: i
|
|
613
613
|
}),
|
|
614
|
-
/* @__PURE__ */
|
|
614
|
+
/* @__PURE__ */ T(y, {
|
|
615
615
|
variant: "ghost",
|
|
616
616
|
size: "lg",
|
|
617
|
-
icon: /* @__PURE__ */
|
|
617
|
+
icon: /* @__PURE__ */ T(ue, {}),
|
|
618
618
|
label: l("notifications"),
|
|
619
619
|
href: `/${e}/notifications`,
|
|
620
620
|
dot: r > 0
|
|
621
621
|
}),
|
|
622
|
-
/* @__PURE__ */
|
|
622
|
+
/* @__PURE__ */ T(y, {
|
|
623
623
|
variant: "ghost",
|
|
624
624
|
size: "lg",
|
|
625
|
-
icon: /* @__PURE__ */
|
|
625
|
+
icon: /* @__PURE__ */ T(p, {}),
|
|
626
626
|
label: l("newIssue"),
|
|
627
627
|
onClick: a
|
|
628
628
|
})
|
|
629
629
|
]
|
|
630
630
|
}) : null;
|
|
631
631
|
}
|
|
632
|
-
function
|
|
633
|
-
let a =
|
|
634
|
-
return /* @__PURE__ */
|
|
632
|
+
function it({ sidebar: e, brand: t, navigation: n, header: r, children: i }) {
|
|
633
|
+
let a = j();
|
|
634
|
+
return /* @__PURE__ */ E(w, { children: [e && M(/* @__PURE__ */ E("div", {
|
|
635
635
|
className: "tandem-hosted-sidebar flex flex-col gap-3",
|
|
636
636
|
children: [t?.(a), n(a)]
|
|
637
|
-
}), e), /* @__PURE__ */
|
|
637
|
+
}), e), /* @__PURE__ */ E("div", {
|
|
638
638
|
className: "flex h-full min-h-0 flex-col",
|
|
639
639
|
children: [r, i]
|
|
640
640
|
})] });
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function at({ children: e }) {
|
|
643
643
|
let { state: t } = g(), n = t?.open && t.maximized;
|
|
644
|
-
return /* @__PURE__ */
|
|
645
|
-
className:
|
|
644
|
+
return /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("div", {
|
|
645
|
+
className: P("min-h-0 min-w-0 flex-1 overflow-y-auto bg-card", n && "hidden"),
|
|
646
646
|
children: e
|
|
647
|
-
}), /* @__PURE__ */
|
|
647
|
+
}), /* @__PURE__ */ T(d, {})] });
|
|
648
648
|
}
|
|
649
|
-
var
|
|
650
|
-
function
|
|
649
|
+
var I = (e) => `tandem:collapsed-teams:${e}`;
|
|
650
|
+
function ot(e) {
|
|
651
651
|
try {
|
|
652
|
-
let t = JSON.parse(localStorage.getItem(
|
|
652
|
+
let t = JSON.parse(localStorage.getItem(I(e)) ?? "[]");
|
|
653
653
|
return new Set(Array.isArray(t) ? t.filter((e) => typeof e == "string") : []);
|
|
654
654
|
} catch {
|
|
655
655
|
return /* @__PURE__ */ new Set();
|
|
656
656
|
}
|
|
657
657
|
}
|
|
658
|
-
var
|
|
659
|
-
function
|
|
658
|
+
var L = "tandem:sidebar";
|
|
659
|
+
function st() {
|
|
660
660
|
try {
|
|
661
|
-
let e = JSON.parse(localStorage.getItem(
|
|
661
|
+
let e = JSON.parse(localStorage.getItem(L) ?? "{}");
|
|
662
662
|
return {
|
|
663
663
|
expanded: e?.expanded !== !1,
|
|
664
664
|
width: typeof e?.width == "number" ? e.width : 240
|
|
@@ -670,21 +670,18 @@ function ot() {
|
|
|
670
670
|
};
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function ct(e) {
|
|
674
674
|
try {
|
|
675
|
-
localStorage.setItem(
|
|
675
|
+
localStorage.setItem(L, JSON.stringify(e));
|
|
676
676
|
} catch {}
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function lt(e, t) {
|
|
679
679
|
try {
|
|
680
|
-
localStorage.setItem(
|
|
680
|
+
localStorage.setItem(I(e), JSON.stringify([...t]));
|
|
681
681
|
} catch {}
|
|
682
682
|
}
|
|
683
|
-
function lt() {
|
|
684
|
-
return Array.from(document.querySelectorAll("[aria-keyshortcuts]")).some((e) => /\b(Meta|Control)\+F\b/.test(e.getAttribute("aria-keyshortcuts") ?? "") && e.getClientRects().length > 0);
|
|
685
|
-
}
|
|
686
683
|
function ut() {
|
|
687
|
-
return
|
|
684
|
+
return Ye(() => {
|
|
688
685
|
let t = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
689
686
|
try {
|
|
690
687
|
if (!t || sessionStorage.getItem("tandem:time-zone") === t) return;
|
|
@@ -693,4 +690,4 @@ function ut() {
|
|
|
693
690
|
e.PATCH("/api/v1/me", { body: { timeZone: t } }).catch(() => {});
|
|
694
691
|
}, []), null;
|
|
695
692
|
}
|
|
696
|
-
export {
|
|
693
|
+
export { F as component };
|