@parallelworks/tandem-web 0.182.1 → 0.183.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.
@@ -1302,6 +1302,13 @@ var e = {
1302
1302
  selectAll: "Select all",
1303
1303
  clear: "Clear"
1304
1304
  },
1305
+ teamSidebar: {
1306
+ title: "Show in sidebar",
1307
+ description: "The pages this team's group lists in the sidebar, for everyone. Hidden pages still open from links and search.",
1308
+ triageHelp: "Hiding it also hides its count of new requests.",
1309
+ decisionsHelp: "Hiding it also hides its count; questions for you still arrive in Notifications.",
1310
+ keepOne: "Keep at least one of Issues, Projects, Areas, Decisions and Docs."
1311
+ },
1305
1312
  teamParent: {
1306
1313
  title: "Parent team",
1307
1314
  description: "A team under another shows in its parent's issue lists. A new sub-team starts with its parent's workflow; labels are shared across the workspace.",
@@ -1302,6 +1302,13 @@ var e = {
1302
1302
  selectAll: "Seleccionar todas",
1303
1303
  clear: "Borrar"
1304
1304
  },
1305
+ teamSidebar: {
1306
+ title: "Mostrar en la barra lateral",
1307
+ description: "Las páginas que el grupo de este equipo muestra en la barra lateral, para todos. Las páginas ocultas siguen abriéndose desde enlaces y la búsqueda.",
1308
+ triageHelp: "Al ocultarla también se oculta su número de solicitudes nuevas.",
1309
+ decisionsHelp: "Al ocultarla también se oculta su número; las preguntas para ti siguen llegando a Notificaciones.",
1310
+ keepOne: "Deja al menos una de Incidencias, Proyectos, Áreas, Decisiones y Documentos."
1311
+ },
1305
1312
  teamParent: {
1306
1313
  title: "Equipo principal",
1307
1314
  description: "Un equipo dentro de otro aparece en las listas de incidencias del principal. Un subequipo nuevo empieza con el flujo de su principal; las etiquetas son de todo el espacio.",
@@ -1302,6 +1302,13 @@ var e = {
1302
1302
  selectAll: "すべて選択",
1303
1303
  clear: "クリア"
1304
1304
  },
1305
+ teamSidebar: {
1306
+ title: "サイドバーに表示",
1307
+ description: "このチームのグループがサイドバーに表示するページです(全員に適用)。非表示のページもリンクや検索から開けます。",
1308
+ triageHelp: "非表示にすると新しいリクエストの件数も表示されません。",
1309
+ decisionsHelp: "非表示にすると件数も表示されません。あなたへの質問は引き続き通知に届きます。",
1310
+ keepOne: "課題、プロジェクト、エリア、判断、ドキュメントのうち少なくとも1つは残してください。"
1311
+ },
1305
1312
  teamParent: {
1306
1313
  title: "親チーム",
1307
1314
  description: "他のチームの下にあるチームの課題は親の課題リストにも表示されます。新しいサブチームは親のワークフローで始まり、ラベルはワークスペース共通です。",
@@ -1302,6 +1302,13 @@ var e = {
1302
1302
  selectAll: "모두 선택",
1303
1303
  clear: "지우기"
1304
1304
  },
1305
+ teamSidebar: {
1306
+ title: "사이드바에 표시",
1307
+ description: "이 팀 그룹이 사이드바에 보여 주는 페이지입니다(모두에게 적용). 숨긴 페이지도 링크와 검색으로 열 수 있습니다.",
1308
+ triageHelp: "숨기면 새 요청 수도 표시되지 않습니다.",
1309
+ decisionsHelp: "숨기면 개수도 표시되지 않습니다. 나에게 온 질문은 계속 알림으로 옵니다.",
1310
+ keepOne: "이슈, 프로젝트, 영역, 결정, 문서 중 하나 이상은 남겨 두세요."
1311
+ },
1305
1312
  teamParent: {
1306
1313
  title: "상위 팀",
1307
1314
  description: "다른 팀 아래 있는 팀의 이슈는 상위 팀 목록에도 보입니다. 새 하위 팀은 상위 팀의 워크플로로 시작하며 레이블은 워크스페이스 공통입니다.",
@@ -1302,6 +1302,13 @@ var e = {
1302
1302
  selectAll: "全选",
1303
1303
  clear: "清除"
1304
1304
  },
1305
+ teamSidebar: {
1306
+ title: "在侧边栏中显示",
1307
+ description: "此团队分组在侧边栏中列出的页面,对所有人生效。隐藏的页面仍可通过链接和搜索打开。",
1308
+ triageHelp: "隐藏后也会隐藏新请求的数量。",
1309
+ decisionsHelp: "隐藏后也会隐藏其数量;给你的问题仍会出现在通知中。",
1310
+ keepOne: "请至少保留议题、项目、领域、决策和文档中的一项。"
1311
+ },
1305
1312
  teamParent: {
1306
1313
  title: "上级团队",
1307
1314
  description: "位于其他团队之下的团队,其问题会出现在上级团队的问题列表中。新的子团队沿用上级的工作流;标签在整个工作区共享。",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parallelworks/tandem-web",
3
- "version": "0.182.1",
3
+ "version": "0.183.0",
4
4
  "description": "Tandem's pages, for a host app to render in its own",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -91,13 +91,18 @@ function re() {
91
91
  })
92
92
  ]
93
93
  }),
94
- /* @__PURE__ */ q(ie, {
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(de, {
100
+ g.sidebarHidden && /* @__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(ae, {
128
+ /* @__PURE__ */ q(se, {
124
129
  workspace: n,
125
130
  team: g,
126
131
  isAdmin: o
127
132
  }),
128
- /* @__PURE__ */ q(se, {
133
+ /* @__PURE__ */ q(le, {
129
134
  workspace: n,
130
135
  team: g,
131
136
  isAdmin: o
132
137
  }),
133
- /* @__PURE__ */ q(oe, {
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(ce, {
153
+ /* @__PURE__ */ q(ue, {
149
154
  workspace: n,
150
155
  team: g,
151
156
  isAdmin: o
152
157
  }),
153
- /* @__PURE__ */ q(ue, {
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(fe, {
168
+ /* @__PURE__ */ q(me, {
164
169
  workspace: n,
165
170
  teamKey: r
166
171
  }),
167
- o && /* @__PURE__ */ q(pe, {
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
- function ie({ workspace: n, team: r, teams: i, isAdmin: a }) {
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 ae({ workspace: n, team: r, isAdmin: a }) {
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 oe({ workspace: n, team: r, isAdmin: i }) {
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 se({ workspace: n, team: r, isAdmin: i }) {
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 ce({ workspace: n, team: i, isAdmin: a }) {
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(le, {
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 le({ workspace: n, team: r, disabled: i }) {
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 ue({ workspace: n, team: r, isAdmin: i }) {
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 de({ workspace: n, teamKey: r, isAdmin: a }) {
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 fe({ workspace: r, teamKey: i }) {
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 pe({ workspace: n, team: r }) {
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(me, {
1047
+ /* @__PURE__ */ q(ge, {
976
1048
  workspace: n,
977
1049
  team: r
978
1050
  })
979
1051
  ]
980
1052
  });
981
1053
  }
982
- function me({ workspace: n, team: r }) {
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,
@@ -277,14 +277,14 @@ function at() {
277
277
  className: "relative flex",
278
278
  children: [e, n && t && /* @__PURE__ */ A("span", { className: it })]
279
279
  }), s = v.filter((e) => !e.archivedAt), c = new Set(s.map((e) => e.id)), u = (e) => s.filter((t) => (t.parentId && c.has(t.parentId) ? t.parentId : "") === e), f = (e) => {
280
- let t = (t) => Ie(d, e.key, t), n = kt.filter((t) => t.identifier.startsWith(`${e.key}-`)).length;
280
+ let t = (t) => Ie(d, e.key, t), n = kt.filter((t) => t.identifier.startsWith(`${e.key}-`)).length, i = (t) => !(e.sidebarHidden ?? []).includes(t);
281
281
  return /* @__PURE__ */ j(P, {
282
282
  label: e.name,
283
283
  icon: o(/* @__PURE__ */ A(l, {
284
284
  icon: e.icon,
285
285
  color: e.color,
286
286
  name: e.name
287
- }), Mt(e.id) > 0),
287
+ }), i("triage") && Mt(e.id) > 0),
288
288
  selected: x(J.pathname, d)?.team === e.key,
289
289
  open: !Et.has(e.key),
290
290
  onOpenChange: (t) => Ot(e.key, t),
@@ -294,7 +294,7 @@ function at() {
294
294
  label: W("moreActionsFor", { name: e.name })
295
295
  }),
296
296
  children: [
297
- e.triageEnabled && /* @__PURE__ */ A(F, {
297
+ e.triageEnabled && i("triage") && /* @__PURE__ */ A(F, {
298
298
  label: U("triage"),
299
299
  icon: /* @__PURE__ */ A(de, { className: "size-4" }),
300
300
  href: t("triage"),
@@ -306,28 +306,28 @@ function at() {
306
306
  label: U("triageCount")
307
307
  })
308
308
  }),
309
- /* @__PURE__ */ A(F, {
309
+ i("issues") && /* @__PURE__ */ A(F, {
310
310
  label: U("issues"),
311
311
  icon: /* @__PURE__ */ A(ce, { className: "size-4" }),
312
312
  href: t("issues"),
313
313
  selected: Tt.team === e.key,
314
314
  onContextMenu: a(t("issues"))
315
315
  }),
316
- /* @__PURE__ */ A(F, {
316
+ i("projects") && /* @__PURE__ */ A(F, {
317
317
  label: U("projects"),
318
318
  icon: /* @__PURE__ */ A(ue, { className: "size-4" }),
319
319
  href: t("projects"),
320
320
  selected: Y("projects", e.key),
321
321
  onContextMenu: a(t("projects"))
322
322
  }),
323
- /* @__PURE__ */ A(F, {
323
+ i("areas") && /* @__PURE__ */ A(F, {
324
324
  label: U("areas"),
325
325
  icon: /* @__PURE__ */ A(ne, { className: "size-4" }),
326
326
  href: t("areas"),
327
327
  selected: Y("areas", e.key),
328
328
  onContextMenu: a(t("areas"))
329
329
  }),
330
- /* @__PURE__ */ A(F, {
330
+ i("decisions") && /* @__PURE__ */ A(F, {
331
331
  label: U("decisions"),
332
332
  icon: /* @__PURE__ */ A(oe, { className: "size-4" }),
333
333
  href: t("decisions"),
@@ -340,14 +340,14 @@ function at() {
340
340
  className: "bg-agent! text-agent-foreground!"
341
341
  })
342
342
  }),
343
- /* @__PURE__ */ A(F, {
343
+ i("docs") && /* @__PURE__ */ A(F, {
344
344
  label: U("docs"),
345
345
  icon: /* @__PURE__ */ A(ae, { className: "size-4" }),
346
346
  href: `/${d}/docs/space/${e.key}`,
347
347
  selected: r(`/${d}/docs/space/${e.key}`),
348
348
  onContextMenu: a(`/${d}/docs/space/${e.key}`)
349
349
  }),
350
- e.cyclesEnabled && /* @__PURE__ */ A(F, {
350
+ e.cyclesEnabled && i("cycles") && /* @__PURE__ */ A(F, {
351
351
  label: U("cycles"),
352
352
  icon: /* @__PURE__ */ A(ie, { className: "size-4" }),
353
353
  href: t("cycles"),