@parallelworks/tandem-web 0.168.0 → 0.168.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.
@@ -889,6 +889,7 @@ var e = {
889
889
  selectIssue: "Select issue",
890
890
  requestCount: "{count, plural, one {# customer asked for this} other {# customers asked for this}}",
891
891
  selectingAll: "Selecting all {count, number}…",
892
+ selectingAllUncounted: "Selecting all…",
892
893
  selectAllMatching: "Select all",
893
894
  archiveTitle: "Archive {count, plural, one {this issue} other {# issues}}?",
894
895
  archiveDescription: "Archived issues leave lists and boards. You can restore them from the archive.",
@@ -3375,7 +3376,7 @@ var e = {
3375
3376
  start: "{count, plural, one {Import # team} other {Import # teams}}",
3376
3377
  total: "{count, plural, one {# issue} other {# issues}} to bring in",
3377
3378
  updateOnly: "Only update issues already here",
3378
- updateOnlyHelp: "Matches each Linear issue to an issue here by its GitHub link, or by an earlier import, and brings in its labels, priority, estimate, project, cycle and comments. Statuses stay as they are, and no new issue is created; Linear issues with no match are listed as left out.",
3379
+ updateOnlyHelp: "For a team with “Only update issues already here” checked, each Linear issue is matched to an issue here by its GitHub link, or by an earlier import, and brings in its labels, priority, estimate, project, cycle and comments. Statuses stay as they are and no new issue is created; Linear issues with no match are listed as left out. Other teams bring every issue in.",
3379
3380
  lastImport: "Latest import from {organization}",
3380
3381
  startedAt: "Started {date}",
3381
3382
  issuesLabel: "Issues",
@@ -889,6 +889,7 @@ var e = {
889
889
  selectIssue: "Seleccionar incidencia",
890
890
  requestCount: "{count, plural, one {# cliente lo pidió} other {# clientes lo pidieron}}",
891
891
  selectingAll: "Seleccionando las {count, number}…",
892
+ selectingAllUncounted: "Seleccionando todas…",
892
893
  selectAllMatching: "Seleccionar todas",
893
894
  archiveTitle: "¿Archivar {count, plural, one {esta incidencia} other {# incidencias}}?",
894
895
  archiveDescription: "Las incidencias archivadas salen de las listas y los tableros. Puedes restaurarlas desde el archivo.",
@@ -3375,7 +3376,7 @@ var e = {
3375
3376
  start: "{count, plural, one {Importar # equipo} other {Importar # equipos}}",
3376
3377
  total: "{count, plural, one {# incidencia} other {# incidencias}} por traer",
3377
3378
  updateOnly: "Actualizar solo las incidencias que ya están aquí",
3378
- updateOnlyHelp: "Empareja cada incidencia de Linear con una de aquí por su enlace de GitHub, o por una importación anterior, y trae sus etiquetas, prioridad, estimación, proyecto, ciclo y comentarios. Los estados no cambian y no se crea ninguna incidencia; las de Linear sin pareja aparecen como omitidas.",
3379
+ updateOnlyHelp: "En un equipo con «Actualizar solo las incidencias que ya están aquí» marcado, cada incidencia de Linear se empareja con una de aquí por su enlace de GitHub, o por una importación anterior, y trae sus etiquetas, prioridad, estimación, proyecto, ciclo y comentarios. Los estados no cambian y no se crea ninguna incidencia; las de Linear sin coincidencia aparecen como omitidas. Los demás equipos traen todas las incidencias.",
3379
3380
  lastImport: "Última importación desde {organization}",
3380
3381
  startedAt: "Iniciada el {date}",
3381
3382
  issuesLabel: "Incidencias",
@@ -889,6 +889,7 @@ var e = {
889
889
  selectIssue: "課題を選択",
890
890
  requestCount: "{count} 社の顧客が要望",
891
891
  selectingAll: "{count, number} 件すべてを選択中…",
892
+ selectingAllUncounted: "すべてを選択中…",
892
893
  selectAllMatching: "すべて選択",
893
894
  archiveTitle: "{count, plural, one {この課題} other {# 件の課題}}をアーカイブしますか?",
894
895
  archiveDescription: "アーカイブした課題はリストとボードから外れます。アーカイブから元に戻せます。",
@@ -3375,7 +3376,7 @@ var e = {
3375
3376
  start: "{count, plural, other {# チームをインポート}}",
3376
3377
  total: "取り込む課題 {count, plural, other {# 件}}",
3377
3378
  updateOnly: "ここにある課題だけを更新する",
3378
- updateOnlyHelp: "各 Linear 課題を GitHub リンク、または以前のインポートでここの課題と照合し、ラベル、優先度、見積もり、プロジェクト、サイクル、コメントを取り込みます。ステータスは変わらず、新しい課題は作成されません。一致しない Linear 課題は除外として表示されます。",
3379
+ updateOnlyHelp: "「ここにある課題だけを更新する」をオンにしたチームでは、各 Linear 課題を GitHub リンクまたは以前のインポートでここの課題と照合し、ラベル、優先度、見積もり、プロジェクト、サイクル、コメントを取り込みます。ステータスは変わらず、新しい課題は作成されません。一致しない Linear 課題は除外として表示されます。他のチームはすべての課題を取り込みます。",
3379
3380
  lastImport: "{organization} からの最新のインポート",
3380
3381
  startedAt: "{date} に開始",
3381
3382
  issuesLabel: "課題",
@@ -889,6 +889,7 @@ var e = {
889
889
  selectIssue: "이슈 선택",
890
890
  requestCount: "고객 {count}곳이 요청함",
891
891
  selectingAll: "{count, number}개 모두 선택하는 중…",
892
+ selectingAllUncounted: "모두 선택하는 중…",
892
893
  selectAllMatching: "모두 선택",
893
894
  archiveTitle: "{count, plural, one {이 이슈를} other {이슈 #개를}} 보관할까요?",
894
895
  archiveDescription: "보관한 이슈는 목록과 보드에서 빠집니다. 보관함에서 복원할 수 있습니다.",
@@ -3375,7 +3376,7 @@ var e = {
3375
3376
  start: "{count, plural, other {팀 #개 가져오기}}",
3376
3377
  total: "가져올 이슈 {count, plural, other {#개}}",
3377
3378
  updateOnly: "여기에 있는 이슈만 업데이트",
3378
- updateOnlyHelp: "각 Linear 이슈를 GitHub 링크나 이전 가져오기로 여기의 이슈와 맞추고, 라벨, 우선순위, 추정치, 프로젝트, 사이클, 댓글을 가져옵니다. 상태는 그대로 두고 새 이슈는 만들지 않습니다. 일치하지 않는 Linear 이슈는 제외됨으로 표시됩니다.",
3379
+ updateOnlyHelp: "\"여기에 있는 이슈만 업데이트\"를 선택한 팀에서는 각 Linear 이슈를 GitHub 링크나 이전 가져오기로 여기의 이슈와 맞추고 라벨, 우선순위, 추정치, 프로젝트, 사이클, 댓글을 가져옵니다. 상태는 그대로이며 새 이슈는 만들지 않습니다. 일치하지 않는 Linear 이슈는 제외됨으로 표시됩니다. 다른 팀은 모든 이슈를 가져옵니다.",
3379
3380
  lastImport: "{organization}에서 가져온 최근 항목",
3380
3381
  startedAt: "{date}에 시작",
3381
3382
  issuesLabel: "이슈",
@@ -889,6 +889,7 @@ var e = {
889
889
  selectIssue: "选择议题",
890
890
  requestCount: "{count} 个客户提出过请求",
891
891
  selectingAll: "正在选择全部 {count, number} 个…",
892
+ selectingAllUncounted: "正在选择全部…",
892
893
  selectAllMatching: "全选",
893
894
  archiveTitle: "归档{count, plural, one {此问题} other {# 个问题}}?",
894
895
  archiveDescription: "归档的问题会从列表和看板中移除。你可以从归档中恢复它们。",
@@ -3375,7 +3376,7 @@ var e = {
3375
3376
  start: "{count, plural, other {导入 # 个团队}}",
3376
3377
  total: "将导入 {count, plural, other {# 个问题}}",
3377
3378
  updateOnly: "仅更新这里已有的问题",
3378
- updateOnlyHelp: "通过 GitHub 链接或之前的导入,将每个 Linear 问题与这里的问题匹配,并带入其标签、优先级、估算、项目、周期和评论。状态保持不变,也不会创建新问题;没有匹配的 Linear 问题会列为已跳过。",
3379
+ updateOnlyHelp: "对勾选了“仅更新这里已有的问题”的团队,每个 Linear 问题会通过其 GitHub 链接或之前的导入与这里的问题匹配,并带入标签、优先级、估算、项目、周期和评论。状态保持不变,也不会创建新问题;没有匹配的 Linear 问题会列为已跳过。其他团队会导入所有问题。",
3379
3380
  lastImport: "最近一次从 {organization} 导入",
3380
3381
  startedAt: "开始于 {date}",
3381
3382
  issuesLabel: "问题",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parallelworks/tandem-web",
3
- "version": "0.168.0",
3
+ "version": "0.168.1",
4
4
  "description": "Tandem's pages, for a host app to render in its own",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
package/pages/issues.js CHANGED
@@ -576,7 +576,7 @@ function Mt({ person: e } = {}) {
576
576
  children: [
577
577
  /* @__PURE__ */ g("span", {
578
578
  className: "whitespace-nowrap tabular-nums",
579
- children: Y ? s("selectingAll", { count: Un?.total ?? G.size }) : s("selected", { count: G.size })
579
+ children: Y ? Un ? s("selectingAll", { count: Un.total }) : s("selectingAllUncounted") : s("selected", { count: G.size })
580
580
  }),
581
581
  !Y && (G.size < U.length || !B) && /* @__PURE__ */ g(l, {
582
582
  size: "sm",
@@ -178,46 +178,50 @@ function F({ workspace: i, source: c, im: l }) {
178
178
  }
179
179
  var I = "__new__";
180
180
  function L({ workspace: n, again: a }) {
181
- let o = E("linearImport"), s = j(), { data: c } = M(i(n)), [l, d] = w(""), [m, v] = w(null), [y, S] = w({}), [C, T] = w(!0), N = u(), P = c.filter((e) => !e.archivedAt), F = A({
181
+ let o = E("linearImport"), s = j(), { data: c } = M(i(n)), [l, d] = w(""), [m, v] = w(null), [y, S] = w({}), C = u(), T = c.filter((e) => !e.archivedAt), N = A({
182
182
  mutationFn: async () => t(await e.POST("/api/v1/workspaces/{workspace}/linear/teams", {
183
183
  params: { path: { workspace: n } },
184
184
  body: { apiKey: l }
185
185
  })),
186
- onMutate: N.clear,
186
+ onMutate: C.clear,
187
187
  onSuccess: (e) => {
188
188
  v(e), S(Object.fromEntries(e.teams.map((e) => {
189
- let t = P.find((t) => t.key === e.key);
189
+ let t = T.find((t) => t.key === e.key);
190
190
  return [e.id, {
191
191
  on: !0,
192
192
  target: t?.key ?? I,
193
193
  newKey: e.key,
194
- newName: e.name
194
+ newName: e.name,
195
+ updateOnly: !0
195
196
  }];
196
197
  })));
197
198
  },
198
- onError: N.set
199
- }), L = A({
199
+ onError: C.set
200
+ }), P = A({
200
201
  mutationFn: async () => t(await e.POST("/api/v1/workspaces/{workspace}/linear/import", {
201
202
  params: { path: { workspace: n } },
202
203
  body: {
203
204
  apiKey: l,
204
- updateExistingOnly: C,
205
- teams: Object.entries(y).filter(([, e]) => e.on).map(([e, t]) => t.target === I ? {
206
- sourceId: e,
207
- newKey: t.newKey,
208
- newName: t.newName
209
- } : {
210
- sourceId: e,
211
- teamKey: t.target
212
- })
205
+ updateExistingOnly: !0,
206
+ teams: Object.entries(y).filter(([, e]) => e.on).map(([e, t]) => ({
207
+ ...t.target === I ? {
208
+ sourceId: e,
209
+ newKey: t.newKey,
210
+ newName: t.newName
211
+ } : {
212
+ sourceId: e,
213
+ teamKey: t.target
214
+ },
215
+ updateExistingOnly: t.updateOnly ?? !0
216
+ }))
213
217
  }
214
218
  })),
215
- onMutate: N.clear,
219
+ onMutate: C.clear,
216
220
  onSuccess: () => {
217
221
  d(""), v(null), s.invalidateQueries({ queryKey: r(n).queryKey }), s.invalidateQueries({ queryKey: i(n).queryKey });
218
222
  },
219
- onError: N.set
220
- }), R = Object.values(y).filter((e) => e.on).length, z = (e, t) => S((n) => ({
223
+ onError: C.set
224
+ }), F = Object.values(y).filter((e) => e.on).length, L = (e, t) => S((n) => ({
221
225
  ...n,
222
226
  [e]: {
223
227
  ...n[e],
@@ -227,7 +231,7 @@ function L({ workspace: n, again: a }) {
227
231
  return /* @__PURE__ */ O(x, { children: /* @__PURE__ */ k("form", {
228
232
  className: "space-y-4 px-3 py-3",
229
233
  onSubmit: (e) => {
230
- e.preventDefault(), m ? L.mutate() : F.mutate();
234
+ e.preventDefault(), m ? P.mutate() : N.mutate();
231
235
  },
232
236
  children: [
233
237
  /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("h2", {
@@ -273,7 +277,7 @@ function L({ workspace: n, again: a }) {
273
277
  children: [
274
278
  /* @__PURE__ */ O(p, {
275
279
  checked: t.on,
276
- onCheckedChange: (t) => z(e.id, { on: t })
280
+ onCheckedChange: (t) => L(e.id, { on: t })
277
281
  }),
278
282
  /* @__PURE__ */ k("span", {
279
283
  className: "truncate",
@@ -297,62 +301,65 @@ function L({ workspace: n, again: a }) {
297
301
  ]
298
302
  }), t.on && /* @__PURE__ */ k("div", {
299
303
  className: "flex basis-full flex-wrap items-center gap-2 pl-6 sm:basis-auto sm:pl-0",
300
- children: [/* @__PURE__ */ O(b, {
301
- "aria-label": o("into", { team: e.name }),
302
- value: t.target,
303
- onValueChange: (t) => t && z(e.id, { target: t }),
304
- items: [{
305
- value: I,
306
- label: o("newTeam")
307
- }, ...P.map((e) => ({
308
- value: e.key,
309
- label: `${e.name} (${e.key})`
310
- }))],
311
- size: "sm",
312
- width: "content"
313
- }), t.target === I && /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(_, {
314
- "aria-label": o("newKey"),
315
- value: t.newKey,
316
- onChange: (t) => z(e.id, { newKey: t.target.value.toUpperCase() }),
317
- className: "w-24",
318
- maxLength: 10,
319
- required: !0
320
- }), /* @__PURE__ */ O(_, {
321
- "aria-label": o("newName"),
322
- value: t.newName,
323
- onChange: (t) => z(e.id, { newName: t.target.value }),
324
- className: "w-44",
325
- required: !0
326
- })] })]
304
+ children: [
305
+ /* @__PURE__ */ O(b, {
306
+ "aria-label": o("into", { team: e.name }),
307
+ value: t.target,
308
+ onValueChange: (t) => t && L(e.id, { target: t }),
309
+ items: [{
310
+ value: I,
311
+ label: o("newTeam")
312
+ }, ...T.map((e) => ({
313
+ value: e.key,
314
+ label: `${e.name} (${e.key})`
315
+ }))],
316
+ size: "sm",
317
+ width: "content"
318
+ }),
319
+ /* @__PURE__ */ k("label", {
320
+ className: "flex items-center gap-2 text-xs",
321
+ children: [/* @__PURE__ */ O(p, {
322
+ checked: t.updateOnly ?? !0,
323
+ onCheckedChange: (t) => L(e.id, { updateOnly: t })
324
+ }), o("updateOnly")]
325
+ }),
326
+ t.target === I && /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(_, {
327
+ "aria-label": o("newKey"),
328
+ value: t.newKey,
329
+ onChange: (t) => L(e.id, { newKey: t.target.value.toUpperCase() }),
330
+ className: "w-24",
331
+ maxLength: 10,
332
+ required: !0
333
+ }), /* @__PURE__ */ O(_, {
334
+ "aria-label": o("newName"),
335
+ value: t.newName,
336
+ onChange: (t) => L(e.id, { newName: t.target.value }),
337
+ className: "w-44",
338
+ required: !0
339
+ })] })
340
+ ]
327
341
  })]
328
342
  }, e.id) : null;
329
343
  })
330
344
  })
331
345
  ]
332
346
  }),
333
- m && /* @__PURE__ */ k("label", {
334
- className: "flex items-start gap-2 text-sm",
335
- children: [/* @__PURE__ */ O(p, {
336
- className: "mt-0.5",
337
- checked: C,
338
- onCheckedChange: T
339
- }), /* @__PURE__ */ k("span", { children: [o("updateOnly"), /* @__PURE__ */ O("span", {
340
- className: "block text-xs text-muted-foreground",
341
- children: o("updateOnlyHelp")
342
- })] })]
347
+ m && /* @__PURE__ */ O("p", {
348
+ className: "text-xs text-muted-foreground",
349
+ children: o("updateOnlyHelp")
343
350
  }),
344
351
  /* @__PURE__ */ k("div", {
345
352
  className: "flex flex-wrap items-center gap-3",
346
353
  children: [m ? /* @__PURE__ */ O(f, {
347
354
  type: "submit",
348
355
  variant: "primary",
349
- loading: L.isPending,
350
- disabled: R === 0,
351
- children: o("start", { count: R })
356
+ loading: P.isPending,
357
+ disabled: F === 0,
358
+ children: o("start", { count: F })
352
359
  }) : /* @__PURE__ */ O(f, {
353
360
  type: "submit",
354
361
  variant: "primary",
355
- loading: F.isPending,
362
+ loading: N.isPending,
356
363
  children: o("findTeams")
357
364
  }), m && /* @__PURE__ */ O("span", {
358
365
  className: "text-xs text-muted-foreground",
@@ -361,7 +368,7 @@ function L({ workspace: n, again: a }) {
361
368
  }),
362
369
  /* @__PURE__ */ O(h, {
363
370
  size: "md",
364
- children: N.error
371
+ children: C.error
365
372
  })
366
373
  ]
367
374
  }) });