@parallelworks/tandem-web 0.139.2 → 0.140.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 +23 -0
- package/_virtual/_virtual_i18n/es/common.js +23 -0
- package/_virtual/_virtual_i18n/ja/common.js +23 -0
- package/_virtual/_virtual_i18n/ko/common.js +23 -0
- package/_virtual/_virtual_i18n/zh/common.js +23 -0
- package/api/queries.js +80 -70
- package/components/SettingsNav.js +55 -47
- package/index.js +32 -26
- package/package.json +1 -1
- package/routeTree.gen.js +164 -158
- package/routes/_workspace/settings/slack.js +12 -0
- package/routes/_workspace/settings/slack2.js +109 -0
- package/routes/_workspace/settings/slack3.js +4 -0
package/routeTree.gen.js
CHANGED
|
@@ -44,27 +44,28 @@ import { Route as F } from "./routes/_workspace/settings/notifications.js";
|
|
|
44
44
|
import { Route as I } from "./routes/_workspace/settings/roles.js";
|
|
45
45
|
import { Route as L } from "./routes/_workspace/settings/runners.js";
|
|
46
46
|
import { Route as R } from "./routes/_workspace/settings/sessions.js";
|
|
47
|
-
import { Route as z } from "./routes/_workspace/settings/
|
|
48
|
-
import { Route as B } from "./routes/_workspace/settings/
|
|
49
|
-
import { Route as V } from "./routes/_workspace/settings/
|
|
50
|
-
import { Route as H } from "./routes/_workspace/settings/
|
|
51
|
-
import { Route as U } from "./routes/_workspace/
|
|
52
|
-
import { Route as W } from "./routes/
|
|
53
|
-
import { Route as G } from "./routes/docs/_tag/
|
|
54
|
-
import { Route as K } from "./routes/
|
|
55
|
-
import { Route as q } from "./routes/_workspace
|
|
56
|
-
import { Route as se } from "./routes/_workspace/cycles/_key/
|
|
57
|
-
import { Route as ce } from "./routes/_workspace/
|
|
58
|
-
import { Route as le } from "./routes/_workspace/teams/_key/
|
|
59
|
-
import { Route as ue } from "./routes/_workspace/teams/_key/
|
|
60
|
-
import { Route as de } from "./routes/_workspace/teams/_key/
|
|
61
|
-
import { Route as fe } from "./routes/_workspace/teams/_key/
|
|
62
|
-
import { Route as pe } from "./routes/_workspace/teams/_key/
|
|
63
|
-
import { Route as me } from "./routes/_workspace/teams/_key/
|
|
64
|
-
import { Route as he } from "./routes/_workspace/teams/_key/
|
|
65
|
-
import { Route as ge } from "./routes/_workspace/teams/_key/cycles/
|
|
47
|
+
import { Route as z } from "./routes/_workspace/settings/slack.js";
|
|
48
|
+
import { Route as B } from "./routes/_workspace/settings/sso.js";
|
|
49
|
+
import { Route as V } from "./routes/_workspace/settings/teams.js";
|
|
50
|
+
import { Route as H } from "./routes/_workspace/settings/tokens.js";
|
|
51
|
+
import { Route as U } from "./routes/_workspace/settings/webhooks.js";
|
|
52
|
+
import { Route as W } from "./routes/_workspace/teams/_key.js";
|
|
53
|
+
import { Route as G } from "./routes/docs/_tag/index.js";
|
|
54
|
+
import { Route as K } from "./routes/docs/_tag/_endpoint.js";
|
|
55
|
+
import { Route as q } from "./routes/sites._workspace._site.js";
|
|
56
|
+
import { Route as se } from "./routes/_workspace/cycles/_key/index.js";
|
|
57
|
+
import { Route as ce } from "./routes/_workspace/cycles/_key/_number.js";
|
|
58
|
+
import { Route as le } from "./routes/_workspace/teams/_key/index.js";
|
|
59
|
+
import { Route as ue } from "./routes/_workspace/teams/_key/areas.js";
|
|
60
|
+
import { Route as de } from "./routes/_workspace/teams/_key/decisions.js";
|
|
61
|
+
import { Route as fe } from "./routes/_workspace/teams/_key/issues.js";
|
|
62
|
+
import { Route as pe } from "./routes/_workspace/teams/_key/projects.js";
|
|
63
|
+
import { Route as me } from "./routes/_workspace/teams/_key/settings.js";
|
|
64
|
+
import { Route as he } from "./routes/_workspace/teams/_key/triage.js";
|
|
65
|
+
import { Route as ge } from "./routes/_workspace/teams/_key/cycles/index.js";
|
|
66
|
+
import { Route as _e } from "./routes/_workspace/teams/_key/cycles/_number.js";
|
|
66
67
|
// src/routeTree.gen.ts
|
|
67
|
-
var
|
|
68
|
+
var ve = ee.update({
|
|
68
69
|
id: "/",
|
|
69
70
|
path: "/",
|
|
70
71
|
getParentRoute: () => e
|
|
@@ -72,7 +73,7 @@ var _e = ee.update({
|
|
|
72
73
|
id: "/$workspace",
|
|
73
74
|
path: "/$workspace",
|
|
74
75
|
getParentRoute: () => e
|
|
75
|
-
}),
|
|
76
|
+
}), ye = ne.update({
|
|
76
77
|
id: "/device",
|
|
77
78
|
path: "/device",
|
|
78
79
|
getParentRoute: () => e
|
|
@@ -80,23 +81,23 @@ var _e = ee.update({
|
|
|
80
81
|
id: "/docs",
|
|
81
82
|
path: "/docs",
|
|
82
83
|
getParentRoute: () => e
|
|
83
|
-
}),
|
|
84
|
+
}), be = ie.update({
|
|
84
85
|
id: "/login",
|
|
85
86
|
path: "/login",
|
|
86
87
|
getParentRoute: () => e
|
|
87
|
-
}),
|
|
88
|
+
}), xe = ae.update({
|
|
88
89
|
id: "/new",
|
|
89
90
|
path: "/new",
|
|
90
91
|
getParentRoute: () => e
|
|
91
|
-
}),
|
|
92
|
+
}), Se = oe.update({
|
|
92
93
|
id: "/no-access",
|
|
93
94
|
path: "/no-access",
|
|
94
95
|
getParentRoute: () => e
|
|
95
|
-
}),
|
|
96
|
+
}), Ce = t.update({
|
|
96
97
|
id: "/",
|
|
97
98
|
path: "/",
|
|
98
99
|
getParentRoute: () => J
|
|
99
|
-
}),
|
|
100
|
+
}), we = n.update({
|
|
100
101
|
id: "/decisions",
|
|
101
102
|
path: "/decisions",
|
|
102
103
|
getParentRoute: () => J
|
|
@@ -104,7 +105,7 @@ var _e = ee.update({
|
|
|
104
105
|
id: "/docs",
|
|
105
106
|
path: "/docs",
|
|
106
107
|
getParentRoute: () => J
|
|
107
|
-
}),
|
|
108
|
+
}), Z = i.update({
|
|
108
109
|
id: "/graph",
|
|
109
110
|
path: "/graph",
|
|
110
111
|
getParentRoute: () => J
|
|
@@ -116,7 +117,7 @@ var _e = ee.update({
|
|
|
116
117
|
id: "/notifications",
|
|
117
118
|
path: "/notifications",
|
|
118
119
|
getParentRoute: () => J
|
|
119
|
-
}),
|
|
120
|
+
}), Q = s.update({
|
|
120
121
|
id: "/settings",
|
|
121
122
|
path: "/settings",
|
|
122
123
|
getParentRoute: () => J
|
|
@@ -132,263 +133,268 @@ var _e = ee.update({
|
|
|
132
133
|
id: "/request/$token",
|
|
133
134
|
path: "/request/$token",
|
|
134
135
|
getParentRoute: () => e
|
|
135
|
-
}),
|
|
136
|
+
}), Ae = d.update({
|
|
136
137
|
id: "/share/$secret",
|
|
137
138
|
path: "/share/$secret",
|
|
138
139
|
getParentRoute: () => e
|
|
139
|
-
}),
|
|
140
|
+
}), je = f.update({
|
|
140
141
|
id: "/agents/",
|
|
141
142
|
path: "/agents/",
|
|
142
143
|
getParentRoute: () => J
|
|
143
|
-
}),
|
|
144
|
+
}), Me = p.update({
|
|
144
145
|
id: "/agents/$slug",
|
|
145
146
|
path: "/agents/$slug",
|
|
146
147
|
getParentRoute: () => J
|
|
147
|
-
}),
|
|
148
|
+
}), Ne = m.update({
|
|
148
149
|
id: "/areas/",
|
|
149
150
|
path: "/areas/",
|
|
150
151
|
getParentRoute: () => J
|
|
151
|
-
}),
|
|
152
|
+
}), Pe = h.update({
|
|
152
153
|
id: "/areas/$area",
|
|
153
154
|
path: "/areas/$area",
|
|
154
155
|
getParentRoute: () => J
|
|
155
|
-
}),
|
|
156
|
+
}), Fe = g.update({
|
|
156
157
|
id: "/",
|
|
157
158
|
path: "/",
|
|
158
159
|
getParentRoute: () => X
|
|
159
|
-
}),
|
|
160
|
+
}), Ie = _.update({
|
|
160
161
|
id: "/$doc",
|
|
161
162
|
path: "/$doc",
|
|
162
163
|
getParentRoute: () => X
|
|
163
|
-
}),
|
|
164
|
+
}), Le = v.update({
|
|
164
165
|
id: "/initiatives/",
|
|
165
166
|
path: "/initiatives/",
|
|
166
167
|
getParentRoute: () => J
|
|
167
|
-
}),
|
|
168
|
+
}), Re = y.update({
|
|
168
169
|
id: "/initiatives/$initiativeId",
|
|
169
170
|
path: "/initiatives/$initiativeId",
|
|
170
171
|
getParentRoute: () => J
|
|
171
|
-
}),
|
|
172
|
+
}), ze = b.update({
|
|
172
173
|
id: "/issues/",
|
|
173
174
|
path: "/issues/",
|
|
174
175
|
getParentRoute: () => J
|
|
175
|
-
}),
|
|
176
|
+
}), Be = x.update({
|
|
176
177
|
id: "/issues/$identifier",
|
|
177
178
|
path: "/issues/$identifier",
|
|
178
179
|
getParentRoute: () => J
|
|
179
|
-
}),
|
|
180
|
+
}), Ve = S.update({
|
|
180
181
|
id: "/knowledge/",
|
|
181
182
|
path: "/knowledge/",
|
|
182
183
|
getParentRoute: () => J
|
|
183
|
-
}),
|
|
184
|
+
}), He = C.update({
|
|
184
185
|
id: "/knowledge/$term",
|
|
185
186
|
path: "/knowledge/$term",
|
|
186
187
|
getParentRoute: () => J
|
|
187
|
-
}),
|
|
188
|
+
}), Ue = w.update({
|
|
188
189
|
id: "/people/$username",
|
|
189
190
|
path: "/people/$username",
|
|
190
191
|
getParentRoute: () => J
|
|
191
|
-
}),
|
|
192
|
+
}), We = T.update({
|
|
192
193
|
id: "/projects/",
|
|
193
194
|
path: "/projects/",
|
|
194
195
|
getParentRoute: () => J
|
|
195
|
-
}),
|
|
196
|
+
}), Ge = E.update({
|
|
196
197
|
id: "/projects/$projectId",
|
|
197
198
|
path: "/projects/$projectId",
|
|
198
199
|
getParentRoute: () => J
|
|
199
|
-
}),
|
|
200
|
+
}), Ke = D.update({
|
|
200
201
|
id: "/",
|
|
201
202
|
path: "/",
|
|
202
|
-
getParentRoute: () =>
|
|
203
|
-
}),
|
|
203
|
+
getParentRoute: () => Q
|
|
204
|
+
}), qe = O.update({
|
|
204
205
|
id: "/account",
|
|
205
206
|
path: "/account",
|
|
206
|
-
getParentRoute: () =>
|
|
207
|
-
}),
|
|
207
|
+
getParentRoute: () => Q
|
|
208
|
+
}), Je = k.update({
|
|
208
209
|
id: "/audit-log",
|
|
209
210
|
path: "/audit-log",
|
|
210
|
-
getParentRoute: () =>
|
|
211
|
-
}),
|
|
211
|
+
getParentRoute: () => Q
|
|
212
|
+
}), Ye = A.update({
|
|
212
213
|
id: "/connections",
|
|
213
214
|
path: "/connections",
|
|
214
|
-
getParentRoute: () =>
|
|
215
|
-
}),
|
|
215
|
+
getParentRoute: () => Q
|
|
216
|
+
}), Xe = j.update({
|
|
216
217
|
id: "/github",
|
|
217
218
|
path: "/github",
|
|
218
|
-
getParentRoute: () =>
|
|
219
|
-
}),
|
|
219
|
+
getParentRoute: () => Q
|
|
220
|
+
}), Ze = M.update({
|
|
220
221
|
id: "/groups",
|
|
221
222
|
path: "/groups",
|
|
222
|
-
getParentRoute: () =>
|
|
223
|
-
}),
|
|
223
|
+
getParentRoute: () => Q
|
|
224
|
+
}), Qe = N.update({
|
|
224
225
|
id: "/labels",
|
|
225
226
|
path: "/labels",
|
|
226
|
-
getParentRoute: () =>
|
|
227
|
-
}),
|
|
227
|
+
getParentRoute: () => Q
|
|
228
|
+
}), $e = P.update({
|
|
228
229
|
id: "/members",
|
|
229
230
|
path: "/members",
|
|
230
|
-
getParentRoute: () =>
|
|
231
|
-
}),
|
|
231
|
+
getParentRoute: () => Q
|
|
232
|
+
}), et = F.update({
|
|
232
233
|
id: "/notifications",
|
|
233
234
|
path: "/notifications",
|
|
234
|
-
getParentRoute: () =>
|
|
235
|
-
}),
|
|
235
|
+
getParentRoute: () => Q
|
|
236
|
+
}), tt = I.update({
|
|
236
237
|
id: "/roles",
|
|
237
238
|
path: "/roles",
|
|
238
|
-
getParentRoute: () =>
|
|
239
|
-
}),
|
|
239
|
+
getParentRoute: () => Q
|
|
240
|
+
}), nt = L.update({
|
|
240
241
|
id: "/runners",
|
|
241
242
|
path: "/runners",
|
|
242
|
-
getParentRoute: () =>
|
|
243
|
-
}),
|
|
243
|
+
getParentRoute: () => Q
|
|
244
|
+
}), rt = R.update({
|
|
244
245
|
id: "/sessions",
|
|
245
246
|
path: "/sessions",
|
|
246
|
-
getParentRoute: () =>
|
|
247
|
-
}),
|
|
247
|
+
getParentRoute: () => Q
|
|
248
|
+
}), it = z.update({
|
|
249
|
+
id: "/slack",
|
|
250
|
+
path: "/slack",
|
|
251
|
+
getParentRoute: () => Q
|
|
252
|
+
}), at = B.update({
|
|
248
253
|
id: "/sso",
|
|
249
254
|
path: "/sso",
|
|
250
|
-
getParentRoute: () =>
|
|
251
|
-
}),
|
|
255
|
+
getParentRoute: () => Q
|
|
256
|
+
}), ot = V.update({
|
|
252
257
|
id: "/teams",
|
|
253
258
|
path: "/teams",
|
|
254
|
-
getParentRoute: () =>
|
|
255
|
-
}),
|
|
259
|
+
getParentRoute: () => Q
|
|
260
|
+
}), st = H.update({
|
|
256
261
|
id: "/tokens",
|
|
257
262
|
path: "/tokens",
|
|
258
|
-
getParentRoute: () =>
|
|
259
|
-
}),
|
|
263
|
+
getParentRoute: () => Q
|
|
264
|
+
}), ct = U.update({
|
|
260
265
|
id: "/webhooks",
|
|
261
266
|
path: "/webhooks",
|
|
262
|
-
getParentRoute: () =>
|
|
263
|
-
}), $ =
|
|
267
|
+
getParentRoute: () => Q
|
|
268
|
+
}), $ = W.update({
|
|
264
269
|
id: "/teams/$key",
|
|
265
270
|
path: "/teams/$key",
|
|
266
271
|
getParentRoute: () => J
|
|
267
|
-
}),
|
|
272
|
+
}), lt = G.update({
|
|
268
273
|
id: "/$tag/",
|
|
269
274
|
path: "/$tag/",
|
|
270
275
|
getParentRoute: () => Y
|
|
271
|
-
}),
|
|
276
|
+
}), ut = K.update({
|
|
272
277
|
id: "/$tag/$endpoint",
|
|
273
278
|
path: "/$tag/$endpoint",
|
|
274
279
|
getParentRoute: () => Y
|
|
275
|
-
}),
|
|
280
|
+
}), dt = q.update({
|
|
276
281
|
id: "/sites/$workspace/$site",
|
|
277
282
|
path: "/sites/$workspace/$site",
|
|
278
283
|
getParentRoute: () => e
|
|
279
|
-
}),
|
|
284
|
+
}), ft = se.update({
|
|
280
285
|
id: "/cycles/$key/",
|
|
281
286
|
path: "/cycles/$key/",
|
|
282
287
|
getParentRoute: () => J
|
|
283
|
-
}),
|
|
288
|
+
}), pt = ce.update({
|
|
284
289
|
id: "/cycles/$key/$number",
|
|
285
290
|
path: "/cycles/$key/$number",
|
|
286
291
|
getParentRoute: () => J
|
|
287
|
-
}),
|
|
292
|
+
}), mt = le.update({
|
|
288
293
|
id: "/",
|
|
289
294
|
path: "/",
|
|
290
295
|
getParentRoute: () => $
|
|
291
|
-
}),
|
|
296
|
+
}), ht = ue.update({
|
|
292
297
|
id: "/areas",
|
|
293
298
|
path: "/areas",
|
|
294
299
|
getParentRoute: () => $
|
|
295
|
-
}),
|
|
300
|
+
}), gt = de.update({
|
|
296
301
|
id: "/decisions",
|
|
297
302
|
path: "/decisions",
|
|
298
303
|
getParentRoute: () => $
|
|
299
|
-
}),
|
|
304
|
+
}), _t = fe.update({
|
|
300
305
|
id: "/issues",
|
|
301
306
|
path: "/issues",
|
|
302
307
|
getParentRoute: () => $
|
|
303
|
-
}),
|
|
308
|
+
}), vt = pe.update({
|
|
304
309
|
id: "/projects",
|
|
305
310
|
path: "/projects",
|
|
306
311
|
getParentRoute: () => $
|
|
307
|
-
}),
|
|
312
|
+
}), yt = me.update({
|
|
308
313
|
id: "/settings",
|
|
309
314
|
path: "/settings",
|
|
310
315
|
getParentRoute: () => $
|
|
311
|
-
}),
|
|
316
|
+
}), bt = he.update({
|
|
312
317
|
id: "/triage",
|
|
313
318
|
path: "/triage",
|
|
314
319
|
getParentRoute: () => $
|
|
315
|
-
}),
|
|
320
|
+
}), xt = ge.update({
|
|
316
321
|
id: "/cycles/",
|
|
317
322
|
path: "/cycles/",
|
|
318
323
|
getParentRoute: () => $
|
|
319
|
-
}),
|
|
324
|
+
}), St = _e.update({
|
|
320
325
|
id: "/cycles/$number",
|
|
321
326
|
path: "/cycles/$number",
|
|
322
327
|
getParentRoute: () => $
|
|
323
|
-
}),
|
|
328
|
+
}), Ct = {
|
|
324
329
|
DocsIndexRoute: Oe,
|
|
325
|
-
DocsTagEndpointRoute:
|
|
326
|
-
DocsTagIndexRoute:
|
|
327
|
-
},
|
|
328
|
-
WorkspaceDocsDocRoute:
|
|
329
|
-
WorkspaceDocsIndexRoute:
|
|
330
|
-
},
|
|
331
|
-
WorkspaceSettingsAccountRoute:
|
|
332
|
-
WorkspaceSettingsAuditLogRoute:
|
|
333
|
-
WorkspaceSettingsConnectionsRoute:
|
|
334
|
-
WorkspaceSettingsGithubRoute:
|
|
335
|
-
WorkspaceSettingsGroupsRoute:
|
|
336
|
-
WorkspaceSettingsLabelsRoute:
|
|
337
|
-
WorkspaceSettingsMembersRoute:
|
|
338
|
-
WorkspaceSettingsNotificationsRoute:
|
|
339
|
-
WorkspaceSettingsRolesRoute:
|
|
340
|
-
WorkspaceSettingsRunnersRoute:
|
|
341
|
-
WorkspaceSettingsSessionsRoute:
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
330
|
+
DocsTagEndpointRoute: ut,
|
|
331
|
+
DocsTagIndexRoute: lt
|
|
332
|
+
}, wt = Y._addFileChildren(Ct), Tt = {
|
|
333
|
+
WorkspaceDocsDocRoute: Ie,
|
|
334
|
+
WorkspaceDocsIndexRoute: Fe
|
|
335
|
+
}, Et = X._addFileChildren(Tt), Dt = {
|
|
336
|
+
WorkspaceSettingsAccountRoute: qe,
|
|
337
|
+
WorkspaceSettingsAuditLogRoute: Je,
|
|
338
|
+
WorkspaceSettingsConnectionsRoute: Ye,
|
|
339
|
+
WorkspaceSettingsGithubRoute: Xe,
|
|
340
|
+
WorkspaceSettingsGroupsRoute: Ze,
|
|
341
|
+
WorkspaceSettingsLabelsRoute: Qe,
|
|
342
|
+
WorkspaceSettingsMembersRoute: $e,
|
|
343
|
+
WorkspaceSettingsNotificationsRoute: et,
|
|
344
|
+
WorkspaceSettingsRolesRoute: tt,
|
|
345
|
+
WorkspaceSettingsRunnersRoute: nt,
|
|
346
|
+
WorkspaceSettingsSessionsRoute: rt,
|
|
347
|
+
WorkspaceSettingsSlackRoute: it,
|
|
348
|
+
WorkspaceSettingsSsoRoute: at,
|
|
349
|
+
WorkspaceSettingsTeamsRoute: ot,
|
|
350
|
+
WorkspaceSettingsTokensRoute: st,
|
|
351
|
+
WorkspaceSettingsWebhooksRoute: ct,
|
|
352
|
+
WorkspaceSettingsIndexRoute: Ke
|
|
353
|
+
}, Ot = Q._addFileChildren(Dt), kt = {
|
|
354
|
+
WorkspaceTeamsKeyAreasRoute: ht,
|
|
355
|
+
WorkspaceTeamsKeyDecisionsRoute: gt,
|
|
356
|
+
WorkspaceTeamsKeyIssuesRoute: _t,
|
|
357
|
+
WorkspaceTeamsKeyProjectsRoute: vt,
|
|
358
|
+
WorkspaceTeamsKeySettingsRoute: yt,
|
|
359
|
+
WorkspaceTeamsKeyTriageRoute: bt,
|
|
360
|
+
WorkspaceTeamsKeyIndexRoute: mt,
|
|
361
|
+
WorkspaceTeamsKeyCyclesNumberRoute: St,
|
|
362
|
+
WorkspaceTeamsKeyCyclesIndexRoute: xt
|
|
363
|
+
}, At = {
|
|
364
|
+
WorkspaceDecisionsRoute: we,
|
|
365
|
+
WorkspaceDocsRoute: Et,
|
|
366
|
+
WorkspaceGraphRoute: Z,
|
|
361
367
|
WorkspaceMeasuresRoute: Te,
|
|
362
368
|
WorkspaceNotificationsRoute: Ee,
|
|
363
|
-
WorkspaceSettingsRoute:
|
|
369
|
+
WorkspaceSettingsRoute: Ot,
|
|
364
370
|
WorkspaceTriageRoute: De,
|
|
365
|
-
WorkspaceIndexRoute:
|
|
366
|
-
WorkspaceAgentsSlugRoute:
|
|
367
|
-
WorkspaceAreasAreaRoute:
|
|
368
|
-
WorkspaceInitiativesInitiativeIdRoute:
|
|
369
|
-
WorkspaceIssuesIdentifierRoute:
|
|
370
|
-
WorkspaceKnowledgeTermRoute:
|
|
371
|
-
WorkspacePeopleUsernameRoute:
|
|
372
|
-
WorkspaceProjectsProjectIdRoute:
|
|
373
|
-
WorkspaceTeamsKeyRoute: $._addFileChildren(
|
|
374
|
-
WorkspaceAgentsIndexRoute:
|
|
375
|
-
WorkspaceAreasIndexRoute:
|
|
376
|
-
WorkspaceInitiativesIndexRoute:
|
|
377
|
-
WorkspaceIssuesIndexRoute:
|
|
378
|
-
WorkspaceKnowledgeIndexRoute:
|
|
379
|
-
WorkspaceProjectsIndexRoute:
|
|
380
|
-
WorkspaceCyclesKeyNumberRoute:
|
|
381
|
-
WorkspaceCyclesKeyIndexRoute:
|
|
382
|
-
},
|
|
383
|
-
IndexRoute:
|
|
384
|
-
DocsRouteRoute:
|
|
385
|
-
WorkspaceRoute: J._addFileChildren(
|
|
386
|
-
DeviceRoute:
|
|
387
|
-
LoginRoute:
|
|
388
|
-
NewRoute:
|
|
389
|
-
NoAccessRoute:
|
|
371
|
+
WorkspaceIndexRoute: Ce,
|
|
372
|
+
WorkspaceAgentsSlugRoute: Me,
|
|
373
|
+
WorkspaceAreasAreaRoute: Pe,
|
|
374
|
+
WorkspaceInitiativesInitiativeIdRoute: Re,
|
|
375
|
+
WorkspaceIssuesIdentifierRoute: Be,
|
|
376
|
+
WorkspaceKnowledgeTermRoute: He,
|
|
377
|
+
WorkspacePeopleUsernameRoute: Ue,
|
|
378
|
+
WorkspaceProjectsProjectIdRoute: Ge,
|
|
379
|
+
WorkspaceTeamsKeyRoute: $._addFileChildren(kt),
|
|
380
|
+
WorkspaceAgentsIndexRoute: je,
|
|
381
|
+
WorkspaceAreasIndexRoute: Ne,
|
|
382
|
+
WorkspaceInitiativesIndexRoute: Le,
|
|
383
|
+
WorkspaceIssuesIndexRoute: ze,
|
|
384
|
+
WorkspaceKnowledgeIndexRoute: Ve,
|
|
385
|
+
WorkspaceProjectsIndexRoute: We,
|
|
386
|
+
WorkspaceCyclesKeyNumberRoute: pt,
|
|
387
|
+
WorkspaceCyclesKeyIndexRoute: ft
|
|
388
|
+
}, jt = {
|
|
389
|
+
IndexRoute: ve,
|
|
390
|
+
DocsRouteRoute: wt,
|
|
391
|
+
WorkspaceRoute: J._addFileChildren(At),
|
|
392
|
+
DeviceRoute: ye,
|
|
393
|
+
LoginRoute: be,
|
|
394
|
+
NewRoute: xe,
|
|
395
|
+
NoAccessRoute: Se,
|
|
390
396
|
RequestTokenRoute: ke,
|
|
391
|
-
ShareSecretRoute:
|
|
392
|
-
SitesWorkspaceSiteRoute:
|
|
393
|
-
},
|
|
394
|
-
export {
|
|
397
|
+
ShareSecretRoute: Ae,
|
|
398
|
+
SitesWorkspaceSiteRoute: dt
|
|
399
|
+
}, Mt = e._addFileChildren(jt)._addFileTypes();
|
|
400
|
+
export { Mt as routeTree };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createFileRoute as e, lazyFn as t, lazyRouteComponent as n } from "@tanstack/react-router";
|
|
2
|
+
// src/routes/$workspace/settings/slack.tsx
|
|
3
|
+
var r = () => import("./slack2.js"), i = () => import("./slack3.js"), a = [
|
|
4
|
+
"connected",
|
|
5
|
+
"denied",
|
|
6
|
+
"failed"
|
|
7
|
+
], o = e("/$workspace/settings/slack")({
|
|
8
|
+
validateSearch: (e) => a.includes(e.slack) ? { slack: e.slack } : {},
|
|
9
|
+
loader: t(i, "loader"),
|
|
10
|
+
component: n(r, "component")
|
|
11
|
+
});
|
|
12
|
+
export { o as Route };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { api as e, unwrap as t } from "../../../api/client.js";
|
|
2
|
+
import { slackQuery as n } from "../../../api/queries.js";
|
|
3
|
+
import { Route as r } from "./slack.js";
|
|
4
|
+
import { usePeople as i } from "../../../lib/people.js";
|
|
5
|
+
import { useCan as a } from "../../../lib/roles.js";
|
|
6
|
+
import { AdminOnly as o, SettingsPage as s, useFormError as c } from "../../../components/settings.js";
|
|
7
|
+
import { useConfirm as l } from "../../../lib/confirm.js";
|
|
8
|
+
import { externalUrl as u } from "../../../lib/externalUrl.js";
|
|
9
|
+
import { ConnectionCard as d } from "../../../components/ConnectionCard.js";
|
|
10
|
+
import { Button as f, SettingsCard as p, StatusLabel as m, buttonClasses as h } from "@parallelworks/ui";
|
|
11
|
+
import { useFormatter as g, useTranslations as _ } from "use-intl";
|
|
12
|
+
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
13
|
+
import { useMutation as x, useQueryClient as S, useSuspenseQuery as C } from "@tanstack/react-query";
|
|
14
|
+
import { SlackIcon as w } from "@parallelworks/ui/brand-icons";
|
|
15
|
+
// src/routes/$workspace/settings/slack.tsx?tsr-split=component
|
|
16
|
+
function T() {
|
|
17
|
+
let { workspace: T } = r.useParams(), { slack: E } = r.useSearch(), { data: D } = C(n(T)), O = a(T, "manage_workspace"), k = _("settingsNav"), A = _("slack"), j = g(), { person: M } = i(T), N = S(), P = c(), { confirm: F, dialog: I } = l(), L = x({
|
|
18
|
+
mutationFn: async () => t(await e.POST("/api/v1/workspaces/{workspace}/slack/connect", { params: { path: { workspace: T } } })),
|
|
19
|
+
onMutate: P.clear,
|
|
20
|
+
onSuccess: ({ url: e }) => {
|
|
21
|
+
let t = u(e);
|
|
22
|
+
t && window.location.assign(t);
|
|
23
|
+
},
|
|
24
|
+
onError: P.set
|
|
25
|
+
}), R = x({
|
|
26
|
+
mutationFn: async () => t(await e.DELETE("/api/v1/workspaces/{workspace}/slack", { params: { path: { workspace: T } } })),
|
|
27
|
+
onMutate: P.clear,
|
|
28
|
+
onSuccess: () => N.invalidateQueries({ queryKey: n(T).queryKey }),
|
|
29
|
+
onError: P.set
|
|
30
|
+
});
|
|
31
|
+
return /* @__PURE__ */ b(s, {
|
|
32
|
+
title: k("slack"),
|
|
33
|
+
description: A("pageDescription"),
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ y(o, { workspace: T }),
|
|
36
|
+
I,
|
|
37
|
+
D.enabled ? /* @__PURE__ */ b("div", {
|
|
38
|
+
className: "space-y-6",
|
|
39
|
+
children: [
|
|
40
|
+
E && /* @__PURE__ */ y("p", {
|
|
41
|
+
role: "status",
|
|
42
|
+
className: `rounded-md bg-muted px-3 py-2 text-sm ${E === "connected" ? "" : "text-danger"}`,
|
|
43
|
+
children: A(`result.${E}`)
|
|
44
|
+
}),
|
|
45
|
+
D.managedByHost && /* @__PURE__ */ y("p", {
|
|
46
|
+
className: "text-sm text-muted-foreground",
|
|
47
|
+
children: A("managedByHost")
|
|
48
|
+
}),
|
|
49
|
+
/* @__PURE__ */ y(d, {
|
|
50
|
+
icon: /* @__PURE__ */ y(w, { className: "size-7" }),
|
|
51
|
+
name: k("slack"),
|
|
52
|
+
status: D.connected ? A("connectedTo", {
|
|
53
|
+
team: D.teamName ?? "",
|
|
54
|
+
person: M(D.connectedBy ?? "").name,
|
|
55
|
+
date: j.dateTime(new Date(D.connectedAt ?? ""), { dateStyle: "medium" })
|
|
56
|
+
}) : A("description"),
|
|
57
|
+
error: P.error,
|
|
58
|
+
action: /* @__PURE__ */ b(v, { children: [!D.connected && /* @__PURE__ */ y(m, {
|
|
59
|
+
off: !0,
|
|
60
|
+
children: A("notConnected")
|
|
61
|
+
}), D.managedByHost ? O && D.settingsUrl && /* @__PURE__ */ y("a", {
|
|
62
|
+
href: D.settingsUrl,
|
|
63
|
+
className: h({
|
|
64
|
+
variant: "outline",
|
|
65
|
+
size: "sm"
|
|
66
|
+
}),
|
|
67
|
+
children: A("openSettings")
|
|
68
|
+
}) : O && (D.connected ? /* @__PURE__ */ y(f, {
|
|
69
|
+
type: "button",
|
|
70
|
+
variant: "outline",
|
|
71
|
+
loading: R.isPending,
|
|
72
|
+
onClick: () => F({
|
|
73
|
+
title: A("disconnectTitle", { team: D.teamName ?? "" }),
|
|
74
|
+
description: A("disconnectDescription"),
|
|
75
|
+
confirmLabel: A("disconnect"),
|
|
76
|
+
onConfirm: () => R.mutateAsync()
|
|
77
|
+
}),
|
|
78
|
+
children: A("disconnect")
|
|
79
|
+
}) : /* @__PURE__ */ y(f, {
|
|
80
|
+
type: "button",
|
|
81
|
+
variant: "primary",
|
|
82
|
+
onClick: () => L.mutate(),
|
|
83
|
+
loading: L.isPending,
|
|
84
|
+
children: A("connect")
|
|
85
|
+
}))] })
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ b("section", {
|
|
88
|
+
className: "space-y-2 text-sm",
|
|
89
|
+
children: [/* @__PURE__ */ y("h2", {
|
|
90
|
+
className: "font-medium",
|
|
91
|
+
children: A("howTitle")
|
|
92
|
+
}), /* @__PURE__ */ b("ol", {
|
|
93
|
+
className: "list-decimal space-y-1.5 pl-5 text-muted-foreground",
|
|
94
|
+
children: [
|
|
95
|
+
/* @__PURE__ */ y("li", { children: A("howFile") }),
|
|
96
|
+
/* @__PURE__ */ y("li", { children: A("howThread") }),
|
|
97
|
+
/* @__PURE__ */ y("li", { children: A("howPeople") })
|
|
98
|
+
]
|
|
99
|
+
})]
|
|
100
|
+
})
|
|
101
|
+
]
|
|
102
|
+
}) : /* @__PURE__ */ y(p, { children: /* @__PURE__ */ y("p", {
|
|
103
|
+
className: "px-3 py-2 text-sm text-muted-foreground",
|
|
104
|
+
children: A("notConfigured")
|
|
105
|
+
}) })
|
|
106
|
+
]
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
export { T as component };
|