@parallelworks/tandem-web 0.182.0 → 0.182.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.
@@ -1302,13 +1302,6 @@ 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
- },
1312
1305
  teamParent: {
1313
1306
  title: "Parent team",
1314
1307
  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,13 +1302,6 @@ 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
- },
1312
1305
  teamParent: {
1313
1306
  title: "Equipo principal",
1314
1307
  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,13 +1302,6 @@ var e = {
1302
1302
  selectAll: "すべて選択",
1303
1303
  clear: "クリア"
1304
1304
  },
1305
- teamSidebar: {
1306
- title: "サイドバーに表示",
1307
- description: "このチームのグループがサイドバーに表示するページです(全員に適用)。非表示のページもリンクや検索から開けます。",
1308
- triageHelp: "非表示にすると新しいリクエストの件数も表示されません。",
1309
- decisionsHelp: "非表示にすると件数も表示されません。あなたへの質問は引き続き通知に届きます。",
1310
- keepOne: "課題、プロジェクト、エリア、判断、ドキュメントのうち少なくとも1つは残してください。"
1311
- },
1312
1305
  teamParent: {
1313
1306
  title: "親チーム",
1314
1307
  description: "他のチームの下にあるチームの課題は親の課題リストにも表示されます。新しいサブチームは親のワークフローで始まり、ラベルはワークスペース共通です。",
@@ -1302,13 +1302,6 @@ var e = {
1302
1302
  selectAll: "모두 선택",
1303
1303
  clear: "지우기"
1304
1304
  },
1305
- teamSidebar: {
1306
- title: "사이드바에 표시",
1307
- description: "이 팀 그룹이 사이드바에 보여 주는 페이지입니다(모두에게 적용). 숨긴 페이지도 링크와 검색으로 열 수 있습니다.",
1308
- triageHelp: "숨기면 새 요청 수도 표시되지 않습니다.",
1309
- decisionsHelp: "숨기면 개수도 표시되지 않습니다. 나에게 온 질문은 계속 알림으로 옵니다.",
1310
- keepOne: "이슈, 프로젝트, 영역, 결정, 문서 중 하나 이상은 남겨 두세요."
1311
- },
1312
1305
  teamParent: {
1313
1306
  title: "상위 팀",
1314
1307
  description: "다른 팀 아래 있는 팀의 이슈는 상위 팀 목록에도 보입니다. 새 하위 팀은 상위 팀의 워크플로로 시작하며 레이블은 워크스페이스 공통입니다.",
@@ -1302,13 +1302,6 @@ var e = {
1302
1302
  selectAll: "全选",
1303
1303
  clear: "清除"
1304
1304
  },
1305
- teamSidebar: {
1306
- title: "在侧边栏中显示",
1307
- description: "此团队分组在侧边栏中列出的页面,对所有人生效。隐藏的页面仍可通过链接和搜索打开。",
1308
- triageHelp: "隐藏后也会隐藏新请求的数量。",
1309
- decisionsHelp: "隐藏后也会隐藏其数量;给你的问题仍会出现在通知中。",
1310
- keepOne: "请至少保留议题、项目、领域、决策和文档中的一项。"
1311
- },
1312
1305
  teamParent: {
1313
1306
  title: "上级团队",
1314
1307
  description: "位于其他团队之下的团队,其问题会出现在上级团队的问题列表中。新的子团队沿用上级的工作流;标签在整个工作区共享。",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parallelworks/tandem-web",
3
- "version": "0.182.0",
3
+ "version": "0.182.1",
4
4
  "description": "Tandem's pages, for a host app to render in its own",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -91,18 +91,13 @@ function re() {
91
91
  })
92
92
  ]
93
93
  }),
94
- /* @__PURE__ */ q(oe, {
94
+ /* @__PURE__ */ q(ie, {
95
95
  workspace: n,
96
96
  team: g,
97
97
  teams: i,
98
98
  isAdmin: o
99
99
  }),
100
- /* @__PURE__ */ q(ae, {
101
- workspace: n,
102
- team: g,
103
- isAdmin: o
104
- }),
105
- /* @__PURE__ */ q(pe, {
100
+ /* @__PURE__ */ q(de, {
106
101
  workspace: n,
107
102
  teamKey: r,
108
103
  isAdmin: a.has("manage_members")
@@ -125,17 +120,17 @@ function re() {
125
120
  team: g,
126
121
  isAdmin: o
127
122
  }),
128
- /* @__PURE__ */ q(se, {
123
+ /* @__PURE__ */ q(ae, {
129
124
  workspace: n,
130
125
  team: g,
131
126
  isAdmin: o
132
127
  }),
133
- /* @__PURE__ */ q(le, {
128
+ /* @__PURE__ */ q(se, {
134
129
  workspace: n,
135
130
  team: g,
136
131
  isAdmin: o
137
132
  }),
138
- /* @__PURE__ */ q(ce, {
133
+ /* @__PURE__ */ q(oe, {
139
134
  workspace: n,
140
135
  team: g,
141
136
  isAdmin: o
@@ -150,12 +145,12 @@ function re() {
150
145
  teamKey: r,
151
146
  isAdmin: a.has("manage_templates")
152
147
  }),
153
- /* @__PURE__ */ q(ue, {
148
+ /* @__PURE__ */ q(ce, {
154
149
  workspace: n,
155
150
  team: g,
156
151
  isAdmin: o
157
152
  }),
158
- /* @__PURE__ */ q(fe, {
153
+ /* @__PURE__ */ q(ue, {
159
154
  workspace: n,
160
155
  team: g,
161
156
  isAdmin: o
@@ -165,11 +160,11 @@ function re() {
165
160
  team: g,
166
161
  isAdmin: o
167
162
  }),
168
- /* @__PURE__ */ q(me, {
163
+ /* @__PURE__ */ q(fe, {
169
164
  workspace: n,
170
165
  teamKey: r
171
166
  }),
172
- o && /* @__PURE__ */ q(he, {
167
+ o && /* @__PURE__ */ q(pe, {
173
168
  workspace: n,
174
169
  team: g
175
170
  })
@@ -178,74 +173,7 @@ function re() {
178
173
  })]
179
174
  }) : null;
180
175
  }
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 }) {
176
+ function ie({ workspace: n, team: r, teams: i, isAdmin: a }) {
249
177
  let o = G("teamParent"), c = W(), l = Z(), u = Y({
250
178
  mutationFn: async (i) => t(await e.PATCH("/api/v1/workspaces/{workspace}/teams/{key}", {
251
179
  params: { path: {
@@ -291,7 +219,7 @@ function oe({ workspace: n, team: r, teams: i, isAdmin: a }) {
291
219
  ]
292
220
  });
293
221
  }
294
- function se({ workspace: n, team: r, isAdmin: a }) {
222
+ function ae({ workspace: n, team: r, isAdmin: a }) {
295
223
  let o = G("teamIntake"), c = W(), l = Z(), { data: u } = X(i), d = () => l.invalidateQueries({ queryKey: s(n).queryKey }), f = { params: { path: {
296
224
  workspace: n,
297
225
  key: r.key
@@ -379,7 +307,7 @@ function se({ workspace: n, team: r, isAdmin: a }) {
379
307
  ]
380
308
  });
381
309
  }
382
- function ce({ workspace: n, team: r, isAdmin: i }) {
310
+ function oe({ workspace: n, team: r, isAdmin: i }) {
383
311
  let a = G("planning.sla"), o = G("priority"), c = W(), l = Z(), u = Y({
384
312
  mutationFn: async (i) => t(await e.PATCH("/api/v1/workspaces/{workspace}/teams/{key}", {
385
313
  params: { path: {
@@ -429,7 +357,7 @@ function ce({ workspace: n, team: r, isAdmin: i }) {
429
357
  }, e)), u.isError && /* @__PURE__ */ q(P, { children: c(u.error) })]
430
358
  });
431
359
  }
432
- function le({ workspace: n, team: r, isAdmin: i }) {
360
+ function se({ workspace: n, team: r, isAdmin: i }) {
433
361
  let a = G("planning.settings"), o = W(), c = Z(), l = Y({
434
362
  mutationFn: async (i) => t(await e.PATCH("/api/v1/workspaces/{workspace}/teams/{key}", {
435
363
  params: { path: {
@@ -634,7 +562,7 @@ var $ = [
634
562
  "merge",
635
563
  "release"
636
564
  ];
637
- function ue({ workspace: n, team: i, isAdmin: a }) {
565
+ function ce({ workspace: n, team: i, isAdmin: a }) {
638
566
  let o = G("flow"), c = W(), l = Z(), { data: u = [] } = X(r(n)), d = Y({
639
567
  mutationFn: async (r) => t(await e.PATCH("/api/v1/workspaces/{workspace}/teams/{key}", {
640
568
  params: { path: {
@@ -723,7 +651,7 @@ function ue({ workspace: n, team: i, isAdmin: a }) {
723
651
  h("release") && /* @__PURE__ */ q(R, {
724
652
  label: o("releaseTargets"),
725
653
  helpText: o("releaseTargetsHelp"),
726
- children: /* @__PURE__ */ q(de, {
654
+ children: /* @__PURE__ */ q(le, {
727
655
  workspace: n,
728
656
  team: i,
729
657
  disabled: !a
@@ -765,7 +693,7 @@ function ue({ workspace: n, team: i, isAdmin: a }) {
765
693
  ]
766
694
  });
767
695
  }
768
- function de({ workspace: n, team: r, disabled: i }) {
696
+ function le({ workspace: n, team: r, disabled: i }) {
769
697
  let a = G("flow"), o = W(), c = Z(), [l, u] = U(r.releaseTargets.join(", ")), d = Y({
770
698
  mutationFn: async (i) => t(await e.PATCH("/api/v1/workspaces/{workspace}/teams/{key}", {
771
699
  params: { path: {
@@ -793,7 +721,7 @@ function de({ workspace: n, team: r, disabled: i }) {
793
721
  })
794
722
  });
795
723
  }
796
- function fe({ workspace: n, team: r, isAdmin: i }) {
724
+ function ue({ workspace: n, team: r, isAdmin: i }) {
797
725
  let a = G("team"), o = W(), c = Z(), l = Y({
798
726
  mutationFn: async (i) => t(await e.PATCH("/api/v1/workspaces/{workspace}/teams/{key}", {
799
727
  params: { path: {
@@ -820,7 +748,7 @@ function fe({ workspace: n, team: r, isAdmin: i }) {
820
748
  })
821
749
  });
822
750
  }
823
- function pe({ workspace: n, teamKey: r, isAdmin: a }) {
751
+ function de({ workspace: n, teamKey: r, isAdmin: a }) {
824
752
  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({
825
753
  mutationFn: async (i) => {
826
754
  for (let { username: a, add: o } of i) {
@@ -954,7 +882,7 @@ function pe({ workspace: n, teamKey: r, isAdmin: a }) {
954
882
  })]
955
883
  });
956
884
  }
957
- function me({ workspace: r, teamKey: i }) {
885
+ function fe({ workspace: r, teamKey: i }) {
958
886
  let { data: o } = Q(a(r, i)), { data: l } = Q(s(r)), u = Z(), d = G("team"), f = Y({
959
887
  mutationFn: async (n) => t(await e.PUT("/api/v1/workspaces/{workspace}/teams/{key}/access", {
960
888
  params: { path: {
@@ -1004,7 +932,7 @@ function me({ workspace: r, teamKey: i }) {
1004
932
  })
1005
933
  });
1006
934
  }
1007
- function he({ workspace: n, team: r }) {
935
+ function pe({ workspace: n, team: r }) {
1008
936
  let i = G("team"), a = Z(), o = W(), { confirm: c, dialog: l } = S(), u = !!r.archivedAt, d = Y({
1009
937
  mutationFn: async (i) => t(await e.PATCH("/api/v1/workspaces/{workspace}/teams/{key}", {
1010
938
  params: { path: {
@@ -1044,14 +972,14 @@ function he({ workspace: n, team: r }) {
1044
972
  children: o(d.error)
1045
973
  }),
1046
974
  l,
1047
- /* @__PURE__ */ q(ge, {
975
+ /* @__PURE__ */ q(me, {
1048
976
  workspace: n,
1049
977
  team: r
1050
978
  })
1051
979
  ]
1052
980
  });
1053
981
  }
1054
- function ge({ workspace: n, team: r }) {
982
+ function me({ workspace: n, team: r }) {
1055
983
  let i = G("team"), a = Z(), o = E(), c = W(), [l, u] = U(!1), [d, f] = U(""), [p, m] = U(null), h = Y({
1056
984
  mutationFn: async () => t(await e.DELETE("/api/v1/workspaces/{workspace}/teams/{key}", { params: { path: {
1057
985
  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, i = (t) => !e.sidebarHidden.includes(t);
280
+ let t = (t) => Ie(d, e.key, t), n = kt.filter((t) => t.identifier.startsWith(`${e.key}-`)).length;
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
- }), i("triage") && Mt(e.id) > 0),
287
+ }), 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 && i("triage") && /* @__PURE__ */ A(F, {
297
+ e.triageEnabled && /* @__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
- i("issues") && /* @__PURE__ */ A(F, {
309
+ /* @__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
- i("projects") && /* @__PURE__ */ A(F, {
316
+ /* @__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
- i("areas") && /* @__PURE__ */ A(F, {
323
+ /* @__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
- i("decisions") && /* @__PURE__ */ A(F, {
330
+ /* @__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
- i("docs") && /* @__PURE__ */ A(F, {
343
+ /* @__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 && i("cycles") && /* @__PURE__ */ A(F, {
350
+ e.cyclesEnabled && /* @__PURE__ */ A(F, {
351
351
  label: U("cycles"),
352
352
  icon: /* @__PURE__ */ A(ie, { className: "size-4" }),
353
353
  href: t("cycles"),