@parallelworks/tandem-web 0.179.2 → 0.181.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/_virtual/_virtual_i18n/en/common.js +66 -19
- package/_virtual/_virtual_i18n/es/common.js +66 -19
- package/_virtual/_virtual_i18n/ja/common.js +66 -19
- package/_virtual/_virtual_i18n/ko/common.js +66 -19
- package/_virtual/_virtual_i18n/zh/common.js +66 -19
- package/components/AgentWork.js +419 -382
- package/components/DocOutline.js +38 -35
- package/components/DocSeries.js +92 -88
- package/components/DocStart.js +288 -0
- package/components/DocTable.js +100 -93
- package/components/HoverCards.js +139 -124
- package/components/SharedViewer.js +1 -0
- package/components/SubpageViews.js +475 -0
- package/lib/docs.js +76 -65
- package/lib/glossary.js +11 -7
- package/lib/subpageViews.js +85 -0
- package/package.json +1 -1
- package/pages/decisions.js +90 -168
- package/routes/_workspace/docs/_doc2.js +236 -179
- package/routes/_workspace/docs/space2._space.js +113 -172
- package/routes/_workspace/teams/_key/settings2.js +94 -22
- package/routes/_workspace2.js +9 -9
- package/components/DocCalendar.js +0 -245
|
@@ -1,52 +1,47 @@
|
|
|
1
1
|
import { teamsQuery as e, workspaceQuery as t } from "../../../api/queries.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { useEffect as ne, useState as T } from "react";
|
|
14
|
-
import { useErrorMessage as re } from "@parallelworks/problem/react";
|
|
2
|
+
import { DocTable as n, groupable as r } from "../../../components/DocTable.js";
|
|
3
|
+
import { AddIcon as i, BoardIcon as a, ListViewIcon as o } from "../../../components/icons.js";
|
|
4
|
+
import { docPropertiesQuery as s, docViewsQuery as c, readConfig as l, useDocPropertyActions as u } from "../../../lib/docProperties.js";
|
|
5
|
+
import { useDocActions as d } from "../../../lib/docs.js";
|
|
6
|
+
import { usePageTitle as f } from "../../../lib/pageTitle.js";
|
|
7
|
+
import { usePeople as p } from "../../../lib/people.js";
|
|
8
|
+
import { Route as m } from "./space._space.js";
|
|
9
|
+
import { Breadcrumbs as ee, Button as h, ErrorText as g, Input as _, Popover as v, SegmentedControl as y, Select as b, useClosePopover as x } from "@parallelworks/ui";
|
|
10
|
+
import { useNavigate as S } from "@tanstack/react-router";
|
|
11
|
+
import { useEffect as C, useState as w } from "react";
|
|
12
|
+
import { useErrorMessage as T } from "@parallelworks/problem/react";
|
|
15
13
|
import { useTranslations as E } from "use-intl";
|
|
16
|
-
import {
|
|
14
|
+
import { jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
17
15
|
import { useQuery as k, useSuspenseQuery as A } from "@tanstack/react-query";
|
|
18
16
|
// src/routes/$workspace/docs/space.$space.tsx?tsr-split=component
|
|
19
17
|
function j() {
|
|
20
|
-
let
|
|
18
|
+
let p = E("docViews"), v = T(), { workspace: x, space: j } = m.useParams(), { view: P } = m.useSearch(), F = S(), I = (e) => F({
|
|
21
19
|
to: "/$workspace/docs/space/$space",
|
|
22
20
|
params: {
|
|
23
|
-
workspace:
|
|
21
|
+
workspace: x,
|
|
24
22
|
space: j
|
|
25
23
|
},
|
|
26
24
|
search: e ? { view: e } : {}
|
|
27
|
-
}), { data:
|
|
28
|
-
|
|
29
|
-
let { data:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}, [
|
|
33
|
-
let
|
|
34
|
-
...W,
|
|
35
|
-
dateProperty: X[0].id
|
|
36
|
-
} : W, Q = n(w, j, Z.dateProperty), ce = [
|
|
25
|
+
}), { data: L } = A(e(x)), { data: R } = A(t(x)), z = j === "workspace" ? R.name : L.find((e) => e.key === j)?.name ?? j;
|
|
26
|
+
f(p("title"), z);
|
|
27
|
+
let { data: B = [] } = k(s(x, j)), { data: V = [] } = k(c(x, j)), H = u(x), U = V.find((e) => e.id === P), [W, G] = w("table"), [K, q] = w({}), [J, Y] = w(""), X = E("docs"), Z = d(x);
|
|
28
|
+
C(() => {
|
|
29
|
+
U && (G(U.layout === "board" ? "board" : "table"), q(l(U.config)));
|
|
30
|
+
}, [U]);
|
|
31
|
+
let Q = (e) => q(e), te = [
|
|
37
32
|
{
|
|
38
33
|
value: "title",
|
|
39
|
-
label:
|
|
34
|
+
label: p("docTitle")
|
|
40
35
|
},
|
|
41
36
|
{
|
|
42
37
|
value: "updated",
|
|
43
|
-
label:
|
|
38
|
+
label: p("updated")
|
|
44
39
|
},
|
|
45
|
-
...
|
|
40
|
+
...B.map((e) => ({
|
|
46
41
|
value: e.id,
|
|
47
42
|
label: e.name
|
|
48
43
|
}))
|
|
49
|
-
], $ =
|
|
44
|
+
], $ = H.saveView.error ?? H.updateView.error;
|
|
50
45
|
return /* @__PURE__ */ O("div", {
|
|
51
46
|
className: "flex h-full flex-col",
|
|
52
47
|
children: [
|
|
@@ -55,222 +50,168 @@ function j() {
|
|
|
55
50
|
children: [
|
|
56
51
|
/* @__PURE__ */ D(ee, {
|
|
57
52
|
crumbs: [{
|
|
58
|
-
label:
|
|
59
|
-
href: `/${
|
|
60
|
-
}, { label:
|
|
53
|
+
label: p("docs"),
|
|
54
|
+
href: `/${x}/docs`
|
|
55
|
+
}, { label: z }],
|
|
61
56
|
className: "min-w-0 flex-1"
|
|
62
57
|
}),
|
|
63
|
-
/* @__PURE__ */ D(
|
|
58
|
+
/* @__PURE__ */ D(b, {
|
|
64
59
|
value: P ?? "",
|
|
65
60
|
items: [{
|
|
66
61
|
value: "",
|
|
67
|
-
label:
|
|
68
|
-
}, ...
|
|
62
|
+
label: p("unsaved")
|
|
63
|
+
}, ...V.map((e) => ({
|
|
69
64
|
value: e.id,
|
|
70
65
|
label: e.name
|
|
71
66
|
}))],
|
|
72
|
-
onValueChange: (e) =>
|
|
73
|
-
"aria-label":
|
|
67
|
+
onValueChange: (e) => I(e || void 0),
|
|
68
|
+
"aria-label": p("savedViews"),
|
|
74
69
|
size: "sm",
|
|
75
70
|
width: "content"
|
|
76
71
|
}),
|
|
77
|
-
|
|
72
|
+
U ? /* @__PURE__ */ D(h, {
|
|
78
73
|
size: "sm",
|
|
79
|
-
loading:
|
|
80
|
-
onClick: () =>
|
|
81
|
-
id:
|
|
82
|
-
layout:
|
|
83
|
-
config: { ...
|
|
74
|
+
loading: H.updateView.isPending,
|
|
75
|
+
onClick: () => H.updateView.mutate({
|
|
76
|
+
id: U.id,
|
|
77
|
+
layout: W,
|
|
78
|
+
config: { ...K }
|
|
84
79
|
}),
|
|
85
|
-
children:
|
|
80
|
+
children: p("update")
|
|
86
81
|
}) : /* @__PURE__ */ D(N, {
|
|
87
82
|
onSave: async (e) => {
|
|
88
|
-
let t = await
|
|
83
|
+
let t = await H.saveView.mutateAsync({
|
|
89
84
|
space: j,
|
|
90
85
|
name: e,
|
|
91
|
-
layout:
|
|
92
|
-
config: { ...
|
|
86
|
+
layout: W,
|
|
87
|
+
config: { ...K }
|
|
93
88
|
});
|
|
94
|
-
|
|
89
|
+
I(t.id);
|
|
95
90
|
},
|
|
96
|
-
pending:
|
|
91
|
+
pending: H.saveView.isPending
|
|
97
92
|
}),
|
|
98
|
-
/* @__PURE__ */ D(
|
|
93
|
+
/* @__PURE__ */ D(h, {
|
|
99
94
|
variant: "primary",
|
|
100
95
|
size: "sm",
|
|
101
|
-
icon: /* @__PURE__ */ D(
|
|
102
|
-
loading:
|
|
103
|
-
onClick: () =>
|
|
104
|
-
children:
|
|
96
|
+
icon: /* @__PURE__ */ D(i, {}),
|
|
97
|
+
loading: Z.create.isPending,
|
|
98
|
+
onClick: () => Z.create.mutate(j === "workspace" ? {} : { team: j }),
|
|
99
|
+
children: X("new")
|
|
105
100
|
}),
|
|
106
|
-
/* @__PURE__ */ D(
|
|
107
|
-
label:
|
|
101
|
+
/* @__PURE__ */ D(y, {
|
|
102
|
+
label: p("layout"),
|
|
108
103
|
size: "sm",
|
|
109
|
-
value:
|
|
110
|
-
onValueChange:
|
|
111
|
-
options: [
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
icon: /* @__PURE__ */ D(s, {})
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
value: "calendar",
|
|
124
|
-
label: g("calendar"),
|
|
125
|
-
icon: /* @__PURE__ */ D(c, {})
|
|
126
|
-
}
|
|
127
|
-
]
|
|
104
|
+
value: W,
|
|
105
|
+
onValueChange: G,
|
|
106
|
+
options: [{
|
|
107
|
+
value: "table",
|
|
108
|
+
label: p("table"),
|
|
109
|
+
icon: /* @__PURE__ */ D(o, {})
|
|
110
|
+
}, {
|
|
111
|
+
value: "board",
|
|
112
|
+
label: p("board"),
|
|
113
|
+
icon: /* @__PURE__ */ D(a, {})
|
|
114
|
+
}]
|
|
128
115
|
})
|
|
129
116
|
]
|
|
130
117
|
}),
|
|
131
118
|
/* @__PURE__ */ O("div", {
|
|
132
119
|
className: "flex flex-wrap items-center gap-2 border-b border-border px-4 py-2 text-xs md:px-5",
|
|
133
120
|
children: [
|
|
134
|
-
/* @__PURE__ */ D(
|
|
121
|
+
/* @__PURE__ */ D(_, {
|
|
135
122
|
type: "search",
|
|
136
123
|
size: "sm",
|
|
137
|
-
value:
|
|
138
|
-
onChange: (e) =>
|
|
139
|
-
placeholder:
|
|
140
|
-
"aria-label":
|
|
124
|
+
value: J,
|
|
125
|
+
onChange: (e) => Y(e.target.value),
|
|
126
|
+
placeholder: X("search"),
|
|
127
|
+
"aria-label": X("search"),
|
|
141
128
|
className: "w-48"
|
|
142
129
|
}),
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
value: Z.dateProperty ?? "",
|
|
146
|
-
items: X.map((e) => ({
|
|
147
|
-
value: e.id,
|
|
148
|
-
label: e.name
|
|
149
|
-
})),
|
|
150
|
-
onValueChange: (e) => Y({
|
|
151
|
-
...W,
|
|
152
|
-
dateProperty: e
|
|
153
|
-
}),
|
|
154
|
-
"aria-label": g("dateProperty"),
|
|
155
|
-
size: "sm",
|
|
156
|
-
width: "content"
|
|
157
|
-
}) : /* @__PURE__ */ D(v, {
|
|
158
|
-
size: "xs",
|
|
159
|
-
loading: B.create.isPending,
|
|
160
|
-
onClick: async () => {
|
|
161
|
-
let e = await B.create.mutateAsync({
|
|
162
|
-
space: j,
|
|
163
|
-
name: g("dateName"),
|
|
164
|
-
kind: "date"
|
|
165
|
-
});
|
|
166
|
-
Y({
|
|
167
|
-
...W,
|
|
168
|
-
dateProperty: e.id
|
|
169
|
-
});
|
|
170
|
-
},
|
|
171
|
-
children: g("addDate")
|
|
172
|
-
}),
|
|
173
|
-
/* @__PURE__ */ D(v, {
|
|
174
|
-
size: "xs",
|
|
175
|
-
variant: "primary",
|
|
176
|
-
loading: Q.isPending,
|
|
177
|
-
onClick: () => Q.mutate(/* @__PURE__ */ new Date()),
|
|
178
|
-
children: g("newMeeting")
|
|
179
|
-
}),
|
|
180
|
-
/* @__PURE__ */ D(r, {
|
|
181
|
-
workspace: w,
|
|
182
|
-
space: j,
|
|
183
|
-
dateProperty: Z.dateProperty
|
|
184
|
-
})
|
|
185
|
-
] }) : H === "board" ? /* @__PURE__ */ D(C, {
|
|
186
|
-
value: W.groupBy ?? "",
|
|
130
|
+
W === "board" ? /* @__PURE__ */ D(b, {
|
|
131
|
+
value: K.groupBy ?? "",
|
|
187
132
|
items: [{
|
|
188
133
|
value: "",
|
|
189
|
-
label:
|
|
190
|
-
}, ...
|
|
134
|
+
label: p("groupBy")
|
|
135
|
+
}, ...B.filter(r).map((e) => ({
|
|
191
136
|
value: e.id,
|
|
192
137
|
label: e.name
|
|
193
138
|
}))],
|
|
194
|
-
onValueChange: (e) =>
|
|
195
|
-
...
|
|
139
|
+
onValueChange: (e) => Q({
|
|
140
|
+
...K,
|
|
196
141
|
...e ? { groupBy: e } : { groupBy: void 0 }
|
|
197
142
|
}),
|
|
198
|
-
"aria-label":
|
|
143
|
+
"aria-label": p("groupBy"),
|
|
199
144
|
size: "sm",
|
|
200
145
|
width: "content"
|
|
201
|
-
}) :
|
|
146
|
+
}) : B.length > 0 && /* @__PURE__ */ D(b, {
|
|
202
147
|
multiple: !0,
|
|
203
|
-
value:
|
|
204
|
-
items:
|
|
148
|
+
value: K.columns ?? B.map((e) => e.id),
|
|
149
|
+
items: B.map((e) => ({
|
|
205
150
|
value: e.id,
|
|
206
151
|
label: e.name
|
|
207
152
|
})),
|
|
208
|
-
onValueChange: (e) =>
|
|
209
|
-
...
|
|
153
|
+
onValueChange: (e) => Q({
|
|
154
|
+
...K,
|
|
210
155
|
columns: e
|
|
211
156
|
}),
|
|
212
|
-
"aria-label":
|
|
213
|
-
placeholder:
|
|
157
|
+
"aria-label": p("columns"),
|
|
158
|
+
placeholder: p("columns"),
|
|
214
159
|
size: "sm",
|
|
215
160
|
width: "content"
|
|
216
161
|
}),
|
|
217
|
-
/* @__PURE__ */ D(
|
|
218
|
-
value:
|
|
219
|
-
items:
|
|
220
|
-
onValueChange: (e) =>
|
|
221
|
-
...
|
|
162
|
+
/* @__PURE__ */ D(b, {
|
|
163
|
+
value: K.sort ?? "title",
|
|
164
|
+
items: te,
|
|
165
|
+
onValueChange: (e) => Q({
|
|
166
|
+
...K,
|
|
222
167
|
sort: e
|
|
223
168
|
}),
|
|
224
|
-
"aria-label":
|
|
169
|
+
"aria-label": p("sortBy"),
|
|
225
170
|
size: "sm",
|
|
226
171
|
width: "content"
|
|
227
172
|
}),
|
|
228
|
-
/* @__PURE__ */ D(
|
|
173
|
+
/* @__PURE__ */ D(h, {
|
|
229
174
|
size: "xs",
|
|
230
175
|
variant: "ghost",
|
|
231
|
-
onClick: () =>
|
|
232
|
-
...
|
|
233
|
-
desc: !
|
|
176
|
+
onClick: () => Q({
|
|
177
|
+
...K,
|
|
178
|
+
desc: !K.desc
|
|
234
179
|
}),
|
|
235
|
-
children:
|
|
180
|
+
children: K.desc ? p("descending") : p("ascending")
|
|
236
181
|
}),
|
|
237
|
-
|
|
238
|
-
workspace:
|
|
182
|
+
B.map((e) => /* @__PURE__ */ D(M, {
|
|
183
|
+
workspace: x,
|
|
239
184
|
property: e,
|
|
240
|
-
value:
|
|
185
|
+
value: K.filters?.[e.id] ?? "",
|
|
241
186
|
onChange: (t) => {
|
|
242
|
-
let n = { ...
|
|
243
|
-
t ? n[e.id] = t : delete n[e.id],
|
|
244
|
-
...
|
|
187
|
+
let n = { ...K.filters };
|
|
188
|
+
t ? n[e.id] = t : delete n[e.id], Q({
|
|
189
|
+
...K,
|
|
245
190
|
filters: n
|
|
246
191
|
});
|
|
247
192
|
}
|
|
248
193
|
}, e.id)),
|
|
249
|
-
|
|
250
|
-
inline: !0,
|
|
251
|
-
children: x(Q.error)
|
|
252
|
-
}),
|
|
253
|
-
$ && /* @__PURE__ */ D(y, {
|
|
194
|
+
$ && /* @__PURE__ */ D(g, {
|
|
254
195
|
inline: !0,
|
|
255
|
-
children:
|
|
196
|
+
children: v($)
|
|
256
197
|
})
|
|
257
198
|
]
|
|
258
199
|
}),
|
|
259
200
|
/* @__PURE__ */ D("div", {
|
|
260
201
|
className: "min-h-0 flex-1 overflow-y-auto",
|
|
261
|
-
children: /* @__PURE__ */ D(
|
|
262
|
-
workspace:
|
|
202
|
+
children: /* @__PURE__ */ D(n, {
|
|
203
|
+
workspace: x,
|
|
263
204
|
space: j,
|
|
264
|
-
layout:
|
|
265
|
-
config:
|
|
266
|
-
query:
|
|
205
|
+
layout: W,
|
|
206
|
+
config: K,
|
|
207
|
+
query: J
|
|
267
208
|
})
|
|
268
209
|
})
|
|
269
210
|
]
|
|
270
211
|
});
|
|
271
212
|
}
|
|
272
213
|
function M({ workspace: e, property: t, value: n, onChange: r }) {
|
|
273
|
-
let i = E("docViews"), { members: a } =
|
|
214
|
+
let i = E("docViews"), { members: a } = p(e), o = t.kind === "select" || t.kind === "multi_select" ? t.options.map((e) => ({
|
|
274
215
|
value: e.id ?? "",
|
|
275
216
|
label: e.name
|
|
276
217
|
})) : t.kind === "person" ? a.map((e) => ({
|
|
@@ -280,7 +221,7 @@ function M({ workspace: e, property: t, value: n, onChange: r }) {
|
|
|
280
221
|
value: "true",
|
|
281
222
|
label: i("checked")
|
|
282
223
|
}] : null;
|
|
283
|
-
return o ? /* @__PURE__ */ D(
|
|
224
|
+
return o ? /* @__PURE__ */ D(b, {
|
|
284
225
|
value: n,
|
|
285
226
|
items: [{
|
|
286
227
|
value: "",
|
|
@@ -294,8 +235,8 @@ function M({ workspace: e, property: t, value: n, onChange: r }) {
|
|
|
294
235
|
}
|
|
295
236
|
function N({ onSave: e, pending: t }) {
|
|
296
237
|
let n = E("docViews");
|
|
297
|
-
return /* @__PURE__ */ D(
|
|
298
|
-
trigger: /* @__PURE__ */ D(
|
|
238
|
+
return /* @__PURE__ */ D(v, {
|
|
239
|
+
trigger: /* @__PURE__ */ D(h, {
|
|
299
240
|
size: "sm",
|
|
300
241
|
children: n("save")
|
|
301
242
|
}),
|
|
@@ -310,18 +251,18 @@ function N({ onSave: e, pending: t }) {
|
|
|
310
251
|
});
|
|
311
252
|
}
|
|
312
253
|
function P({ onSave: e, pending: t }) {
|
|
313
|
-
let n = E("docViews"), r =
|
|
254
|
+
let n = E("docViews"), r = x(), [i, a] = w("");
|
|
314
255
|
return /* @__PURE__ */ O("form", {
|
|
315
256
|
className: "space-y-2",
|
|
316
257
|
onSubmit: (t) => {
|
|
317
258
|
t.preventDefault(), i.trim() && (e(i.trim()), r());
|
|
318
259
|
},
|
|
319
|
-
children: [/* @__PURE__ */ D(
|
|
260
|
+
children: [/* @__PURE__ */ D(_, {
|
|
320
261
|
value: i,
|
|
321
262
|
onChange: (e) => a(e.target.value),
|
|
322
263
|
placeholder: n("viewName"),
|
|
323
264
|
"aria-label": n("viewName")
|
|
324
|
-
}), /* @__PURE__ */ D(
|
|
265
|
+
}), /* @__PURE__ */ D(h, {
|
|
325
266
|
type: "submit",
|
|
326
267
|
size: "sm",
|
|
327
268
|
variant: "primary",
|
|
@@ -91,13 +91,18 @@ function re() {
|
|
|
91
91
|
})
|
|
92
92
|
]
|
|
93
93
|
}),
|
|
94
|
-
/* @__PURE__ */ q(
|
|
94
|
+
/* @__PURE__ */ q(oe, {
|
|
95
95
|
workspace: n,
|
|
96
96
|
team: g,
|
|
97
97
|
teams: i,
|
|
98
98
|
isAdmin: o
|
|
99
99
|
}),
|
|
100
|
-
/* @__PURE__ */ q(
|
|
100
|
+
/* @__PURE__ */ q(ae, {
|
|
101
|
+
workspace: n,
|
|
102
|
+
team: g,
|
|
103
|
+
isAdmin: o
|
|
104
|
+
}),
|
|
105
|
+
/* @__PURE__ */ q(pe, {
|
|
101
106
|
workspace: n,
|
|
102
107
|
teamKey: r,
|
|
103
108
|
isAdmin: a.has("manage_members")
|
|
@@ -120,17 +125,17 @@ function re() {
|
|
|
120
125
|
team: g,
|
|
121
126
|
isAdmin: o
|
|
122
127
|
}),
|
|
123
|
-
/* @__PURE__ */ q(
|
|
128
|
+
/* @__PURE__ */ q(se, {
|
|
124
129
|
workspace: n,
|
|
125
130
|
team: g,
|
|
126
131
|
isAdmin: o
|
|
127
132
|
}),
|
|
128
|
-
/* @__PURE__ */ q(
|
|
133
|
+
/* @__PURE__ */ q(le, {
|
|
129
134
|
workspace: n,
|
|
130
135
|
team: g,
|
|
131
136
|
isAdmin: o
|
|
132
137
|
}),
|
|
133
|
-
/* @__PURE__ */ q(
|
|
138
|
+
/* @__PURE__ */ q(ce, {
|
|
134
139
|
workspace: n,
|
|
135
140
|
team: g,
|
|
136
141
|
isAdmin: o
|
|
@@ -145,12 +150,12 @@ function re() {
|
|
|
145
150
|
teamKey: r,
|
|
146
151
|
isAdmin: a.has("manage_templates")
|
|
147
152
|
}),
|
|
148
|
-
/* @__PURE__ */ q(
|
|
153
|
+
/* @__PURE__ */ q(ue, {
|
|
149
154
|
workspace: n,
|
|
150
155
|
team: g,
|
|
151
156
|
isAdmin: o
|
|
152
157
|
}),
|
|
153
|
-
/* @__PURE__ */ q(
|
|
158
|
+
/* @__PURE__ */ q(fe, {
|
|
154
159
|
workspace: n,
|
|
155
160
|
team: g,
|
|
156
161
|
isAdmin: o
|
|
@@ -160,11 +165,11 @@ function re() {
|
|
|
160
165
|
team: g,
|
|
161
166
|
isAdmin: o
|
|
162
167
|
}),
|
|
163
|
-
/* @__PURE__ */ q(
|
|
168
|
+
/* @__PURE__ */ q(me, {
|
|
164
169
|
workspace: n,
|
|
165
170
|
teamKey: r
|
|
166
171
|
}),
|
|
167
|
-
o && /* @__PURE__ */ q(
|
|
172
|
+
o && /* @__PURE__ */ q(he, {
|
|
168
173
|
workspace: n,
|
|
169
174
|
team: g
|
|
170
175
|
})
|
|
@@ -173,7 +178,74 @@ function re() {
|
|
|
173
178
|
})]
|
|
174
179
|
}) : null;
|
|
175
180
|
}
|
|
176
|
-
|
|
181
|
+
var ie = [
|
|
182
|
+
"issues",
|
|
183
|
+
"projects",
|
|
184
|
+
"areas",
|
|
185
|
+
"decisions",
|
|
186
|
+
"docs"
|
|
187
|
+
];
|
|
188
|
+
function ae({ workspace: n, team: r, isAdmin: i }) {
|
|
189
|
+
let a = G("teamSidebar"), o = G("workspace"), c = W(), l = Z(), u = Y({
|
|
190
|
+
mutationFn: async (i) => t(await e.PATCH("/api/v1/workspaces/{workspace}/teams/{key}", {
|
|
191
|
+
params: { path: {
|
|
192
|
+
workspace: n,
|
|
193
|
+
key: r.key
|
|
194
|
+
} },
|
|
195
|
+
body: { sidebarHidden: i }
|
|
196
|
+
})),
|
|
197
|
+
onSettled: () => l.invalidateQueries({ queryKey: s(n).queryKey })
|
|
198
|
+
}), d = u.isPending && u.variables ? u.variables : r.sidebarHidden, f = ie.filter((e) => !d.includes(e)), p = [
|
|
199
|
+
{
|
|
200
|
+
page: "triage",
|
|
201
|
+
help: a("triageHelp"),
|
|
202
|
+
available: r.triageEnabled
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
page: "issues",
|
|
206
|
+
available: !0
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
page: "projects",
|
|
210
|
+
available: !0
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
page: "areas",
|
|
214
|
+
available: !0
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
page: "decisions",
|
|
218
|
+
help: a("decisionsHelp"),
|
|
219
|
+
available: !0
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
page: "docs",
|
|
223
|
+
available: !0
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
page: "cycles",
|
|
227
|
+
available: r.cyclesEnabled
|
|
228
|
+
}
|
|
229
|
+
];
|
|
230
|
+
return /* @__PURE__ */ J(z, {
|
|
231
|
+
title: a("title"),
|
|
232
|
+
description: a("description"),
|
|
233
|
+
children: [p.filter((e) => e.available).map(({ page: e, help: t }) => {
|
|
234
|
+
let n = !d.includes(e), r = n && f.length === 1 && f[0] === e;
|
|
235
|
+
return /* @__PURE__ */ q(R, {
|
|
236
|
+
label: o(e),
|
|
237
|
+
helpText: r ? a("keepOne") : t,
|
|
238
|
+
children: /* @__PURE__ */ q(B, {
|
|
239
|
+
"aria-label": o(e),
|
|
240
|
+
checked: n,
|
|
241
|
+
disabled: !i || r || u.isPending,
|
|
242
|
+
onCheckedChange: (t) => u.mutate(t ? d.filter((t) => t !== e) : [...d, e])
|
|
243
|
+
})
|
|
244
|
+
}, e);
|
|
245
|
+
}), u.isError && /* @__PURE__ */ q(P, { children: c(u.error) })]
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
function oe({ workspace: n, team: r, teams: i, isAdmin: a }) {
|
|
177
249
|
let o = G("teamParent"), c = W(), l = Z(), u = Y({
|
|
178
250
|
mutationFn: async (i) => t(await e.PATCH("/api/v1/workspaces/{workspace}/teams/{key}", {
|
|
179
251
|
params: { path: {
|
|
@@ -219,7 +291,7 @@ function ie({ workspace: n, team: r, teams: i, isAdmin: a }) {
|
|
|
219
291
|
]
|
|
220
292
|
});
|
|
221
293
|
}
|
|
222
|
-
function
|
|
294
|
+
function se({ workspace: n, team: r, isAdmin: a }) {
|
|
223
295
|
let o = G("teamIntake"), c = W(), l = Z(), { data: u } = X(i), d = () => l.invalidateQueries({ queryKey: s(n).queryKey }), f = { params: { path: {
|
|
224
296
|
workspace: n,
|
|
225
297
|
key: r.key
|
|
@@ -307,7 +379,7 @@ function ae({ workspace: n, team: r, isAdmin: a }) {
|
|
|
307
379
|
]
|
|
308
380
|
});
|
|
309
381
|
}
|
|
310
|
-
function
|
|
382
|
+
function ce({ workspace: n, team: r, isAdmin: i }) {
|
|
311
383
|
let a = G("planning.sla"), o = G("priority"), c = W(), l = Z(), u = Y({
|
|
312
384
|
mutationFn: async (i) => t(await e.PATCH("/api/v1/workspaces/{workspace}/teams/{key}", {
|
|
313
385
|
params: { path: {
|
|
@@ -357,7 +429,7 @@ function oe({ workspace: n, team: r, isAdmin: i }) {
|
|
|
357
429
|
}, e)), u.isError && /* @__PURE__ */ q(P, { children: c(u.error) })]
|
|
358
430
|
});
|
|
359
431
|
}
|
|
360
|
-
function
|
|
432
|
+
function le({ workspace: n, team: r, isAdmin: i }) {
|
|
361
433
|
let a = G("planning.settings"), o = W(), c = Z(), l = Y({
|
|
362
434
|
mutationFn: async (i) => t(await e.PATCH("/api/v1/workspaces/{workspace}/teams/{key}", {
|
|
363
435
|
params: { path: {
|
|
@@ -562,7 +634,7 @@ var $ = [
|
|
|
562
634
|
"merge",
|
|
563
635
|
"release"
|
|
564
636
|
];
|
|
565
|
-
function
|
|
637
|
+
function ue({ workspace: n, team: i, isAdmin: a }) {
|
|
566
638
|
let o = G("flow"), c = W(), l = Z(), { data: u = [] } = X(r(n)), d = Y({
|
|
567
639
|
mutationFn: async (r) => t(await e.PATCH("/api/v1/workspaces/{workspace}/teams/{key}", {
|
|
568
640
|
params: { path: {
|
|
@@ -651,7 +723,7 @@ function ce({ workspace: n, team: i, isAdmin: a }) {
|
|
|
651
723
|
h("release") && /* @__PURE__ */ q(R, {
|
|
652
724
|
label: o("releaseTargets"),
|
|
653
725
|
helpText: o("releaseTargetsHelp"),
|
|
654
|
-
children: /* @__PURE__ */ q(
|
|
726
|
+
children: /* @__PURE__ */ q(de, {
|
|
655
727
|
workspace: n,
|
|
656
728
|
team: i,
|
|
657
729
|
disabled: !a
|
|
@@ -693,7 +765,7 @@ function ce({ workspace: n, team: i, isAdmin: a }) {
|
|
|
693
765
|
]
|
|
694
766
|
});
|
|
695
767
|
}
|
|
696
|
-
function
|
|
768
|
+
function de({ workspace: n, team: r, disabled: i }) {
|
|
697
769
|
let a = G("flow"), o = W(), c = Z(), [l, u] = U(r.releaseTargets.join(", ")), d = Y({
|
|
698
770
|
mutationFn: async (i) => t(await e.PATCH("/api/v1/workspaces/{workspace}/teams/{key}", {
|
|
699
771
|
params: { path: {
|
|
@@ -721,7 +793,7 @@ function le({ workspace: n, team: r, disabled: i }) {
|
|
|
721
793
|
})
|
|
722
794
|
});
|
|
723
795
|
}
|
|
724
|
-
function
|
|
796
|
+
function fe({ workspace: n, team: r, isAdmin: i }) {
|
|
725
797
|
let a = G("team"), o = W(), c = Z(), l = Y({
|
|
726
798
|
mutationFn: async (i) => t(await e.PATCH("/api/v1/workspaces/{workspace}/teams/{key}", {
|
|
727
799
|
params: { path: {
|
|
@@ -748,7 +820,7 @@ function ue({ workspace: n, team: r, isAdmin: i }) {
|
|
|
748
820
|
})
|
|
749
821
|
});
|
|
750
822
|
}
|
|
751
|
-
function
|
|
823
|
+
function pe({ workspace: n, teamKey: r, isAdmin: a }) {
|
|
752
824
|
let { data: s } = Q(o(n, r)), { data: c } = Q(i), { members: l, person: u } = ee(n), d = Z(), f = H(), p = E(), [h, g] = U(null), v = G("team"), y = W(), b = G("common"), x = Y({
|
|
753
825
|
mutationFn: async (i) => {
|
|
754
826
|
for (let { username: a, add: o } of i) {
|
|
@@ -882,7 +954,7 @@ function de({ workspace: n, teamKey: r, isAdmin: a }) {
|
|
|
882
954
|
})]
|
|
883
955
|
});
|
|
884
956
|
}
|
|
885
|
-
function
|
|
957
|
+
function me({ workspace: r, teamKey: i }) {
|
|
886
958
|
let { data: o } = Q(a(r, i)), { data: l } = Q(s(r)), u = Z(), d = G("team"), f = Y({
|
|
887
959
|
mutationFn: async (n) => t(await e.PUT("/api/v1/workspaces/{workspace}/teams/{key}/access", {
|
|
888
960
|
params: { path: {
|
|
@@ -932,7 +1004,7 @@ function fe({ workspace: r, teamKey: i }) {
|
|
|
932
1004
|
})
|
|
933
1005
|
});
|
|
934
1006
|
}
|
|
935
|
-
function
|
|
1007
|
+
function he({ workspace: n, team: r }) {
|
|
936
1008
|
let i = G("team"), a = Z(), o = W(), { confirm: c, dialog: l } = S(), u = !!r.archivedAt, d = Y({
|
|
937
1009
|
mutationFn: async (i) => t(await e.PATCH("/api/v1/workspaces/{workspace}/teams/{key}", {
|
|
938
1010
|
params: { path: {
|
|
@@ -972,14 +1044,14 @@ function pe({ workspace: n, team: r }) {
|
|
|
972
1044
|
children: o(d.error)
|
|
973
1045
|
}),
|
|
974
1046
|
l,
|
|
975
|
-
/* @__PURE__ */ q(
|
|
1047
|
+
/* @__PURE__ */ q(ge, {
|
|
976
1048
|
workspace: n,
|
|
977
1049
|
team: r
|
|
978
1050
|
})
|
|
979
1051
|
]
|
|
980
1052
|
});
|
|
981
1053
|
}
|
|
982
|
-
function
|
|
1054
|
+
function ge({ workspace: n, team: r }) {
|
|
983
1055
|
let i = G("team"), a = Z(), o = E(), c = W(), [l, u] = U(!1), [d, f] = U(""), [p, m] = U(null), h = Y({
|
|
984
1056
|
mutationFn: async () => t(await e.DELETE("/api/v1/workspaces/{workspace}/teams/{key}", { params: { path: {
|
|
985
1057
|
workspace: n,
|