@parallelworks/tandem-web 0.185.0 → 0.186.1
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 +19 -4
- package/_virtual/_virtual_i18n/es/common.js +19 -4
- package/_virtual/_virtual_i18n/ja/common.js +19 -4
- package/_virtual/_virtual_i18n/ko/common.js +19 -4
- package/_virtual/_virtual_i18n/zh/common.js +19 -4
- package/components/DocsTree.js +149 -139
- package/components/FavoriteStar.js +13 -1
- package/components/FavoritesNav.js +97 -60
- package/components/StatusRules.js +119 -85
- package/package.json +1 -1
- package/pages/areas.js +183 -173
- package/pages/decisions.js +61 -57
- package/pages/projects.js +71 -67
- package/pages/triage.js +197 -184
- package/routes/_workspace/agents/index2.js +95 -87
- package/routes/_workspace/dashboards/index2.js +61 -53
- package/routes/_workspace/docs/space2._space.js +105 -94
- package/routes/_workspace/graph3.js +69 -60
- package/routes/_workspace/measures3.js +82 -74
- package/routes/_workspace/notifications2.js +236 -230
- package/routes/_workspace/teams/_key/cycles/index2.js +98 -88
- package/routes/_workspace2.js +3 -2
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
import { teamsQuery as e, workspaceQuery as t } from "../../../api/queries.js";
|
|
2
2
|
import { DocTable as n, groupable as r, listsTop as i, useSpaceDocs as a } from "../../../components/DocTable.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { FavoriteStar as o } from "../../../components/FavoriteStar.js";
|
|
4
|
+
import { AddIcon as s, BoardIcon as c, ListViewIcon as l } from "../../../components/icons.js";
|
|
5
|
+
import { docPropertiesQuery as u, docViewsQuery as d, readConfig as f, useDocPropertyActions as ee } from "../../../lib/docProperties.js";
|
|
6
|
+
import { useDocActions as p } from "../../../lib/docs.js";
|
|
7
|
+
import { usePageTitle as te } from "../../../lib/pageTitle.js";
|
|
7
8
|
import { usePeople as m } from "../../../lib/people.js";
|
|
8
9
|
import { Route as h } from "./space._space.js";
|
|
9
10
|
import { Breadcrumbs as g, Button as _, ErrorText as v, Input as y, Popover as b, SegmentedControl as x, Select as S, useClosePopover as C } from "@parallelworks/ui";
|
|
10
|
-
import { useNavigate as
|
|
11
|
-
import { useEffect as
|
|
12
|
-
import { useErrorMessage as
|
|
13
|
-
import { useTranslations as
|
|
14
|
-
import { jsx as
|
|
15
|
-
import { useQuery as
|
|
11
|
+
import { useNavigate as ne } from "@tanstack/react-router";
|
|
12
|
+
import { useEffect as re, useState as w } from "react";
|
|
13
|
+
import { useErrorMessage as ie } from "@parallelworks/problem/react";
|
|
14
|
+
import { useTranslations as T } from "use-intl";
|
|
15
|
+
import { jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
16
|
+
import { useQuery as O, useSuspenseQuery as k } from "@tanstack/react-query";
|
|
16
17
|
// src/routes/$workspace/docs/space.$space.tsx?tsr-split=component
|
|
17
|
-
function
|
|
18
|
-
let m =
|
|
18
|
+
function A() {
|
|
19
|
+
let m = T("docViews"), b = ie(), { workspace: C, space: A } = h.useParams(), N = T("favorites"), { view: P } = h.useSearch(), ae = ne(), F = (e) => ae({
|
|
19
20
|
to: "/$workspace/docs/space/$space",
|
|
20
21
|
params: {
|
|
21
22
|
workspace: C,
|
|
22
|
-
space:
|
|
23
|
+
space: A
|
|
23
24
|
},
|
|
24
25
|
search: e ? { view: e } : {}
|
|
25
|
-
}), { data:
|
|
26
|
-
|
|
27
|
-
let { data:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}, [
|
|
31
|
-
let X = (e) =>
|
|
26
|
+
}), { data: I } = k(e(C)), { data: L } = k(t(C)), R = A === "workspace" ? L.name : I.find((e) => e.key === A)?.name ?? A;
|
|
27
|
+
te(m("title"), R);
|
|
28
|
+
let { data: z = [] } = O(u(C, A)), { data: B = [] } = O(d(C, A)), V = ee(C), H = B.find((e) => e.id === P), [U, W] = w("table"), [G, K] = w({}), [q, oe] = w(""), J = T("docs"), Y = p(C);
|
|
29
|
+
re(() => {
|
|
30
|
+
H && (W(H.layout === "board" ? "board" : "table"), K(f(H.config)));
|
|
31
|
+
}, [H]);
|
|
32
|
+
let X = (e) => K(e), { used: Z } = a(C, A, G, i(U, q, G)), Q = z.filter((e) => Z.includes(e) || e.id === G.sort || G.columns?.includes(e.id)), se = [
|
|
32
33
|
{
|
|
33
34
|
value: "title",
|
|
34
35
|
label: m("docTitle")
|
|
@@ -41,117 +42,127 @@ function M() {
|
|
|
41
42
|
value: e.id,
|
|
42
43
|
label: e.name
|
|
43
44
|
}))
|
|
44
|
-
], $ =
|
|
45
|
-
return /* @__PURE__ */
|
|
45
|
+
], $ = V.saveView.error ?? V.updateView.error;
|
|
46
|
+
return /* @__PURE__ */ D("div", {
|
|
46
47
|
className: "flex h-full flex-col",
|
|
47
48
|
children: [
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ D("header", {
|
|
49
50
|
className: "flex min-h-12 shrink-0 flex-wrap items-center gap-2 border-b border-border px-4 py-2 md:px-5",
|
|
50
51
|
children: [
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ E(g, {
|
|
52
53
|
crumbs: [{
|
|
53
54
|
label: m("docs"),
|
|
54
55
|
href: `/${C}/docs`
|
|
55
|
-
}, { label:
|
|
56
|
-
className: "min-w-0
|
|
56
|
+
}, { label: R }],
|
|
57
|
+
className: "min-w-0"
|
|
57
58
|
}),
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
|
|
59
|
+
/* @__PURE__ */ E(o, {
|
|
60
|
+
workspace: C,
|
|
61
|
+
kind: "view",
|
|
62
|
+
target: `/${C}/docs/space/${encodeURIComponent(A)}`,
|
|
63
|
+
label: N("teamPage", {
|
|
64
|
+
team: R,
|
|
65
|
+
page: m("docs")
|
|
66
|
+
})
|
|
67
|
+
}),
|
|
68
|
+
/* @__PURE__ */ E("span", { className: "flex-1" }),
|
|
69
|
+
/* @__PURE__ */ E(S, {
|
|
70
|
+
value: P ?? "",
|
|
60
71
|
items: [{
|
|
61
72
|
value: "",
|
|
62
73
|
label: m("unsaved")
|
|
63
|
-
}, ...
|
|
74
|
+
}, ...B.map((e) => ({
|
|
64
75
|
value: e.id,
|
|
65
76
|
label: e.name
|
|
66
77
|
}))],
|
|
67
|
-
onValueChange: (e) =>
|
|
78
|
+
onValueChange: (e) => F(e || void 0),
|
|
68
79
|
"aria-label": m("savedViews"),
|
|
69
80
|
size: "sm",
|
|
70
81
|
width: "content"
|
|
71
82
|
}),
|
|
72
|
-
|
|
83
|
+
H ? /* @__PURE__ */ E(_, {
|
|
73
84
|
size: "sm",
|
|
74
|
-
loading:
|
|
75
|
-
onClick: () =>
|
|
76
|
-
id:
|
|
77
|
-
layout:
|
|
78
|
-
config: { ...
|
|
85
|
+
loading: V.updateView.isPending,
|
|
86
|
+
onClick: () => V.updateView.mutate({
|
|
87
|
+
id: H.id,
|
|
88
|
+
layout: U,
|
|
89
|
+
config: { ...G }
|
|
79
90
|
}),
|
|
80
91
|
children: m("update")
|
|
81
|
-
}) : /* @__PURE__ */
|
|
92
|
+
}) : /* @__PURE__ */ E(M, {
|
|
82
93
|
onSave: async (e) => {
|
|
83
|
-
let t = await
|
|
84
|
-
space:
|
|
94
|
+
let t = await V.saveView.mutateAsync({
|
|
95
|
+
space: A,
|
|
85
96
|
name: e,
|
|
86
|
-
layout:
|
|
87
|
-
config: { ...
|
|
97
|
+
layout: U,
|
|
98
|
+
config: { ...G }
|
|
88
99
|
});
|
|
89
|
-
|
|
100
|
+
F(t.id);
|
|
90
101
|
},
|
|
91
|
-
pending:
|
|
102
|
+
pending: V.saveView.isPending
|
|
92
103
|
}),
|
|
93
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ E(_, {
|
|
94
105
|
variant: "primary",
|
|
95
106
|
size: "sm",
|
|
96
|
-
icon: /* @__PURE__ */
|
|
107
|
+
icon: /* @__PURE__ */ E(s, {}),
|
|
97
108
|
loading: Y.create.isPending,
|
|
98
|
-
onClick: () => Y.create.mutate(
|
|
109
|
+
onClick: () => Y.create.mutate(A === "workspace" ? {} : { team: A }),
|
|
99
110
|
children: J("new")
|
|
100
111
|
}),
|
|
101
|
-
/* @__PURE__ */
|
|
112
|
+
/* @__PURE__ */ E(x, {
|
|
102
113
|
label: m("layout"),
|
|
103
114
|
size: "sm",
|
|
104
|
-
value:
|
|
105
|
-
onValueChange:
|
|
115
|
+
value: U,
|
|
116
|
+
onValueChange: W,
|
|
106
117
|
options: [{
|
|
107
118
|
value: "table",
|
|
108
119
|
label: m("table"),
|
|
109
|
-
icon: /* @__PURE__ */
|
|
120
|
+
icon: /* @__PURE__ */ E(l, {})
|
|
110
121
|
}, {
|
|
111
122
|
value: "board",
|
|
112
123
|
label: m("board"),
|
|
113
|
-
icon: /* @__PURE__ */
|
|
124
|
+
icon: /* @__PURE__ */ E(c, {})
|
|
114
125
|
}]
|
|
115
126
|
})
|
|
116
127
|
]
|
|
117
128
|
}),
|
|
118
|
-
/* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ D("div", {
|
|
119
130
|
className: "flex flex-wrap items-center gap-2 border-b border-border px-4 py-2 text-xs md:px-5",
|
|
120
131
|
children: [
|
|
121
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ E(y, {
|
|
122
133
|
type: "search",
|
|
123
134
|
size: "sm",
|
|
124
|
-
value:
|
|
125
|
-
onChange: (e) =>
|
|
135
|
+
value: q,
|
|
136
|
+
onChange: (e) => oe(e.target.value),
|
|
126
137
|
placeholder: J("search"),
|
|
127
138
|
"aria-label": J("search"),
|
|
128
139
|
className: "w-48"
|
|
129
140
|
}),
|
|
130
|
-
|
|
131
|
-
value:
|
|
141
|
+
U === "board" ? /* @__PURE__ */ E(S, {
|
|
142
|
+
value: G.groupBy ?? "",
|
|
132
143
|
items: [{
|
|
133
144
|
value: "",
|
|
134
145
|
label: m("groupBy")
|
|
135
|
-
}, ...
|
|
146
|
+
}, ...z.filter(r).map((e) => ({
|
|
136
147
|
value: e.id,
|
|
137
148
|
label: e.name
|
|
138
149
|
}))],
|
|
139
150
|
onValueChange: (e) => X({
|
|
140
|
-
...
|
|
151
|
+
...G,
|
|
141
152
|
...e ? { groupBy: e } : { groupBy: void 0 }
|
|
142
153
|
}),
|
|
143
154
|
"aria-label": m("groupBy"),
|
|
144
155
|
size: "sm",
|
|
145
156
|
width: "content"
|
|
146
|
-
}) : Q.length > 0 && /* @__PURE__ */
|
|
157
|
+
}) : Q.length > 0 && /* @__PURE__ */ E(S, {
|
|
147
158
|
multiple: !0,
|
|
148
|
-
value:
|
|
159
|
+
value: G.columns ?? Z.map((e) => e.id),
|
|
149
160
|
items: Q.map((e) => ({
|
|
150
161
|
value: e.id,
|
|
151
162
|
label: e.name
|
|
152
163
|
})),
|
|
153
164
|
onValueChange: (e) => X({
|
|
154
|
-
...
|
|
165
|
+
...G,
|
|
155
166
|
columns: e
|
|
156
167
|
}),
|
|
157
168
|
"aria-label": m("columns"),
|
|
@@ -159,59 +170,59 @@ function M() {
|
|
|
159
170
|
size: "sm",
|
|
160
171
|
width: "content"
|
|
161
172
|
}),
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
value:
|
|
164
|
-
items:
|
|
173
|
+
/* @__PURE__ */ E(S, {
|
|
174
|
+
value: G.sort ?? "title",
|
|
175
|
+
items: se,
|
|
165
176
|
onValueChange: (e) => X({
|
|
166
|
-
...
|
|
177
|
+
...G,
|
|
167
178
|
sort: e
|
|
168
179
|
}),
|
|
169
180
|
"aria-label": m("sortBy"),
|
|
170
181
|
size: "sm",
|
|
171
182
|
width: "content"
|
|
172
183
|
}),
|
|
173
|
-
/* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ E(_, {
|
|
174
185
|
size: "xs",
|
|
175
186
|
variant: "ghost",
|
|
176
187
|
onClick: () => X({
|
|
177
|
-
...
|
|
178
|
-
desc: !
|
|
188
|
+
...G,
|
|
189
|
+
desc: !G.desc
|
|
179
190
|
}),
|
|
180
|
-
children:
|
|
191
|
+
children: G.desc ? m("descending") : m("ascending")
|
|
181
192
|
}),
|
|
182
|
-
|
|
193
|
+
z.map((e) => /* @__PURE__ */ E(j, {
|
|
183
194
|
workspace: C,
|
|
184
195
|
property: e,
|
|
185
|
-
value:
|
|
196
|
+
value: G.filters?.[e.id] ?? "",
|
|
186
197
|
onChange: (t) => {
|
|
187
|
-
let n = { ...
|
|
198
|
+
let n = { ...G.filters };
|
|
188
199
|
t ? n[e.id] = t : delete n[e.id], X({
|
|
189
|
-
...
|
|
200
|
+
...G,
|
|
190
201
|
filters: n
|
|
191
202
|
});
|
|
192
203
|
}
|
|
193
204
|
}, e.id)),
|
|
194
|
-
$ && /* @__PURE__ */
|
|
205
|
+
$ && /* @__PURE__ */ E(v, {
|
|
195
206
|
inline: !0,
|
|
196
207
|
children: b($)
|
|
197
208
|
})
|
|
198
209
|
]
|
|
199
210
|
}),
|
|
200
|
-
/* @__PURE__ */
|
|
211
|
+
/* @__PURE__ */ E("div", {
|
|
201
212
|
className: "min-h-0 flex-1 overflow-y-auto",
|
|
202
|
-
children: /* @__PURE__ */
|
|
213
|
+
children: /* @__PURE__ */ E(n, {
|
|
203
214
|
workspace: C,
|
|
204
|
-
space:
|
|
205
|
-
layout:
|
|
206
|
-
config:
|
|
207
|
-
query:
|
|
215
|
+
space: A,
|
|
216
|
+
layout: U,
|
|
217
|
+
config: G,
|
|
218
|
+
query: q
|
|
208
219
|
})
|
|
209
220
|
})
|
|
210
221
|
]
|
|
211
222
|
});
|
|
212
223
|
}
|
|
213
|
-
function
|
|
214
|
-
let i =
|
|
224
|
+
function j({ workspace: e, property: t, value: n, onChange: r }) {
|
|
225
|
+
let i = T("docViews"), { members: a } = m(e), o = t.kind === "select" || t.kind === "multi_select" ? t.options.map((e) => ({
|
|
215
226
|
value: e.id ?? "",
|
|
216
227
|
label: e.name
|
|
217
228
|
})) : t.kind === "person" ? a.map((e) => ({
|
|
@@ -221,7 +232,7 @@ function ne({ workspace: e, property: t, value: n, onChange: r }) {
|
|
|
221
232
|
value: "true",
|
|
222
233
|
label: i("checked")
|
|
223
234
|
}] : null;
|
|
224
|
-
return o ? /* @__PURE__ */
|
|
235
|
+
return o ? /* @__PURE__ */ E(S, {
|
|
225
236
|
value: n,
|
|
226
237
|
items: [{
|
|
227
238
|
value: "",
|
|
@@ -233,10 +244,10 @@ function ne({ workspace: e, property: t, value: n, onChange: r }) {
|
|
|
233
244
|
width: "content"
|
|
234
245
|
}) : null;
|
|
235
246
|
}
|
|
236
|
-
function
|
|
237
|
-
let n =
|
|
238
|
-
return /* @__PURE__ */
|
|
239
|
-
trigger: /* @__PURE__ */
|
|
247
|
+
function M({ onSave: e, pending: t }) {
|
|
248
|
+
let n = T("docViews");
|
|
249
|
+
return /* @__PURE__ */ E(b, {
|
|
250
|
+
trigger: /* @__PURE__ */ E(_, {
|
|
240
251
|
size: "sm",
|
|
241
252
|
children: n("save")
|
|
242
253
|
}),
|
|
@@ -244,25 +255,25 @@ function re({ onSave: e, pending: t }) {
|
|
|
244
255
|
className: "w-64",
|
|
245
256
|
initialFocus: "first-control",
|
|
246
257
|
"aria-label": n("save"),
|
|
247
|
-
children: /* @__PURE__ */
|
|
258
|
+
children: /* @__PURE__ */ E(N, {
|
|
248
259
|
onSave: e,
|
|
249
260
|
pending: t
|
|
250
261
|
})
|
|
251
262
|
});
|
|
252
263
|
}
|
|
253
264
|
function N({ onSave: e, pending: t }) {
|
|
254
|
-
let n =
|
|
255
|
-
return /* @__PURE__ */
|
|
265
|
+
let n = T("docViews"), r = C(), [i, a] = w("");
|
|
266
|
+
return /* @__PURE__ */ D("form", {
|
|
256
267
|
className: "space-y-2",
|
|
257
268
|
onSubmit: (t) => {
|
|
258
269
|
t.preventDefault(), i.trim() && (e(i.trim()), r());
|
|
259
270
|
},
|
|
260
|
-
children: [/* @__PURE__ */
|
|
271
|
+
children: [/* @__PURE__ */ E(y, {
|
|
261
272
|
value: i,
|
|
262
273
|
onChange: (e) => a(e.target.value),
|
|
263
274
|
placeholder: n("viewName"),
|
|
264
275
|
"aria-label": n("viewName")
|
|
265
|
-
}), /* @__PURE__ */
|
|
276
|
+
}), /* @__PURE__ */ E(_, {
|
|
266
277
|
type: "submit",
|
|
267
278
|
size: "sm",
|
|
268
279
|
variant: "primary",
|
|
@@ -272,4 +283,4 @@ function N({ onSave: e, pending: t }) {
|
|
|
272
283
|
})]
|
|
273
284
|
});
|
|
274
285
|
}
|
|
275
|
-
export {
|
|
286
|
+
export { A as component };
|
|
@@ -1,101 +1,110 @@
|
|
|
1
1
|
import { kinds as e } from "./graph.js";
|
|
2
2
|
import { teamsQuery as t, workspaceGraphQuery as n, workspaceQuery as r } from "../../api/queries.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
3
|
+
import { FavoriteStar as i } from "../../components/FavoriteStar.js";
|
|
4
|
+
import { GraphDrawing as a, GraphList as o } from "../../components/Graph.js";
|
|
5
|
+
import { usePageTitle as s } from "../../lib/pageTitle.js";
|
|
6
|
+
import { Route as c } from "./graph2.js";
|
|
7
|
+
import { Disclosure as l, EmptyState as u, ToggleGroup as d } from "@parallelworks/ui";
|
|
8
|
+
import { useEffect as f, useRef as p, useState as m } from "react";
|
|
9
|
+
import { useTranslations as h } from "use-intl";
|
|
10
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
11
|
+
import { useQuery as v, useSuspenseQuery as y } from "@tanstack/react-query";
|
|
11
12
|
// src/routes/$workspace/graph.tsx?tsr-split=component
|
|
12
|
-
function
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
let
|
|
13
|
+
function b() {
|
|
14
|
+
let b = h("graphPage");
|
|
15
|
+
s(b("title"));
|
|
16
|
+
let x = h("graph"), { workspace: S } = c.useParams(), C = c.useSearch(), w = c.useNavigate(), { data: T } = y(t(S)), { data: E } = y(r(S)), { data: D } = v(n(S, C)), O = (e) => w({
|
|
16
17
|
search: (t) => ({
|
|
17
18
|
...t,
|
|
18
19
|
...e
|
|
19
20
|
}),
|
|
20
21
|
replace: !0
|
|
21
|
-
}),
|
|
22
|
-
|
|
23
|
-
let e =
|
|
22
|
+
}), k = p(null), [A, j] = m(800);
|
|
23
|
+
f(() => {
|
|
24
|
+
let e = k.current;
|
|
24
25
|
if (!e) return;
|
|
25
|
-
let t = new ResizeObserver(([e]) => e &&
|
|
26
|
+
let t = new ResizeObserver(([e]) => e && j(Math.floor(e.contentRect.width)));
|
|
26
27
|
return t.observe(e), () => t.disconnect();
|
|
27
28
|
}, []);
|
|
28
|
-
let
|
|
29
|
-
doc:
|
|
30
|
-
issue:
|
|
31
|
-
entry:
|
|
29
|
+
let M = D?.nodes ?? [], N = {
|
|
30
|
+
doc: x("docs"),
|
|
31
|
+
issue: x("issues"),
|
|
32
|
+
entry: x("entries")
|
|
32
33
|
};
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
+
return /* @__PURE__ */ _("div", {
|
|
34
35
|
className: "flex h-full flex-col",
|
|
35
36
|
children: [
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ _("header", {
|
|
37
38
|
className: "flex h-12 shrink-0 items-center gap-3 border-b border-border px-4 md:px-5",
|
|
38
|
-
children: [
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ g("h1", {
|
|
41
|
+
className: "text-sm font-semibold",
|
|
42
|
+
children: b("title")
|
|
43
|
+
}),
|
|
44
|
+
/* @__PURE__ */ g(i, {
|
|
45
|
+
workspace: S,
|
|
46
|
+
kind: "page",
|
|
47
|
+
target: "graph"
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ g("span", {
|
|
50
|
+
className: "text-xs text-muted-foreground",
|
|
51
|
+
children: b("count", { count: M.length })
|
|
52
|
+
})
|
|
53
|
+
]
|
|
45
54
|
}),
|
|
46
|
-
/* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ _("div", {
|
|
47
56
|
className: "flex shrink-0 flex-wrap gap-x-4 gap-y-2 border-b border-border px-4 py-2 md:px-5",
|
|
48
|
-
children: [/* @__PURE__ */
|
|
49
|
-
label:
|
|
57
|
+
children: [/* @__PURE__ */ g(d, {
|
|
58
|
+
label: b("space"),
|
|
50
59
|
multiple: !1,
|
|
51
60
|
all: !0,
|
|
52
61
|
options: [{
|
|
53
62
|
value: "workspace",
|
|
54
|
-
label:
|
|
55
|
-
}, ...
|
|
63
|
+
label: E.name
|
|
64
|
+
}, ...T.filter((e) => !e.archivedAt).map((e) => ({
|
|
56
65
|
value: e.key,
|
|
57
66
|
label: e.name
|
|
58
67
|
}))],
|
|
59
|
-
value:
|
|
60
|
-
onValueChange: ([e]) =>
|
|
61
|
-
}), /* @__PURE__ */
|
|
62
|
-
label:
|
|
68
|
+
value: C.space ? [C.space] : [],
|
|
69
|
+
onValueChange: ([e]) => O({ space: e })
|
|
70
|
+
}), /* @__PURE__ */ g(d, {
|
|
71
|
+
label: b("kind"),
|
|
63
72
|
options: e.map((e) => ({
|
|
64
73
|
value: e,
|
|
65
|
-
label:
|
|
74
|
+
label: N[e]
|
|
66
75
|
})),
|
|
67
|
-
value:
|
|
68
|
-
onValueChange: (e) =>
|
|
76
|
+
value: C.kind ?? [],
|
|
77
|
+
onValueChange: (e) => O({ kind: e.length ? e : void 0 })
|
|
69
78
|
})]
|
|
70
79
|
}),
|
|
71
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ g("div", {
|
|
72
81
|
className: "min-h-0 flex-1 overflow-y-auto",
|
|
73
|
-
children: /* @__PURE__ */
|
|
74
|
-
ref:
|
|
82
|
+
children: /* @__PURE__ */ _("div", {
|
|
83
|
+
ref: k,
|
|
75
84
|
className: "px-4 md:px-5",
|
|
76
85
|
children: [
|
|
77
|
-
|
|
86
|
+
D && M.length === 0 ? /* @__PURE__ */ g(u, {
|
|
78
87
|
variant: "plain",
|
|
79
|
-
title:
|
|
80
|
-
}) :
|
|
81
|
-
workspace:
|
|
82
|
-
nodes:
|
|
83
|
-
edges:
|
|
84
|
-
width:
|
|
88
|
+
title: b("empty")
|
|
89
|
+
}) : D && /* @__PURE__ */ g(a, {
|
|
90
|
+
workspace: S,
|
|
91
|
+
nodes: M,
|
|
92
|
+
edges: D.edges,
|
|
93
|
+
width: A,
|
|
85
94
|
height: "calc(100dvh - 11rem)"
|
|
86
95
|
}),
|
|
87
|
-
|
|
96
|
+
D?.truncated && /* @__PURE__ */ g("p", {
|
|
88
97
|
className: "px-2 pt-2 text-xs text-muted-foreground",
|
|
89
|
-
children:
|
|
98
|
+
children: b("truncated")
|
|
90
99
|
}),
|
|
91
|
-
|
|
100
|
+
M.length > 0 && /* @__PURE__ */ g(l, {
|
|
92
101
|
className: "mt-4 mb-8",
|
|
93
102
|
summaryClassName: "px-2 text-sm text-muted-foreground hover:text-foreground",
|
|
94
|
-
summary:
|
|
95
|
-
children: /* @__PURE__ */
|
|
96
|
-
workspace:
|
|
97
|
-
nodes:
|
|
98
|
-
label:
|
|
103
|
+
summary: b("asList", { count: M.length }),
|
|
104
|
+
children: /* @__PURE__ */ g(o, {
|
|
105
|
+
workspace: S,
|
|
106
|
+
nodes: M,
|
|
107
|
+
label: b("title")
|
|
99
108
|
})
|
|
100
109
|
})
|
|
101
110
|
]
|
|
@@ -104,4 +113,4 @@ function y() {
|
|
|
104
113
|
]
|
|
105
114
|
});
|
|
106
115
|
}
|
|
107
|
-
export {
|
|
116
|
+
export { b as component };
|