@parallelworks/tandem-web 0.151.0 → 0.152.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 +4 -1
- package/_virtual/_virtual_i18n/es/common.js +4 -1
- package/_virtual/_virtual_i18n/ja/common.js +4 -1
- package/_virtual/_virtual_i18n/ko/common.js +4 -1
- package/_virtual/_virtual_i18n/zh/common.js +4 -1
- package/package.json +1 -1
- package/routes/_workspace/settings/import2.js +31 -19
|
@@ -3344,6 +3344,8 @@ var e = {
|
|
|
3344
3344
|
newName: "New team's name",
|
|
3345
3345
|
start: "{count, plural, one {Import # team} other {Import # teams}}",
|
|
3346
3346
|
total: "{count, plural, one {# issue} other {# issues}} to bring in",
|
|
3347
|
+
updateOnly: "Only update issues already here",
|
|
3348
|
+
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.",
|
|
3347
3349
|
lastImport: "Latest import from {organization}",
|
|
3348
3350
|
startedAt: "Started {date}",
|
|
3349
3351
|
issuesLabel: "Issues",
|
|
@@ -3362,7 +3364,8 @@ var e = {
|
|
|
3362
3364
|
invalid: "Tandem didn't accept its {field}.",
|
|
3363
3365
|
conflict: "It clashes with something already here, such as an item of the same name.",
|
|
3364
3366
|
forbidden: "You can't make it here.",
|
|
3365
|
-
not_found: "What it belongs to is gone."
|
|
3367
|
+
not_found: "What it belongs to is gone.",
|
|
3368
|
+
no_match: "No issue here matches it."
|
|
3366
3369
|
},
|
|
3367
3370
|
cancel: "Cancel import",
|
|
3368
3371
|
cancelTitle: "Cancel the import?",
|
|
@@ -3344,6 +3344,8 @@ var e = {
|
|
|
3344
3344
|
newName: "Nombre del equipo nuevo",
|
|
3345
3345
|
start: "{count, plural, one {Importar # equipo} other {Importar # equipos}}",
|
|
3346
3346
|
total: "{count, plural, one {# incidencia} other {# incidencias}} por traer",
|
|
3347
|
+
updateOnly: "Actualizar solo las incidencias que ya están aquí",
|
|
3348
|
+
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.",
|
|
3347
3349
|
lastImport: "Última importación desde {organization}",
|
|
3348
3350
|
startedAt: "Iniciada el {date}",
|
|
3349
3351
|
issuesLabel: "Incidencias",
|
|
@@ -3362,7 +3364,8 @@ var e = {
|
|
|
3362
3364
|
invalid: "Tandem no aceptó su {field}.",
|
|
3363
3365
|
conflict: "Choca con algo que ya existe aquí, como un elemento con el mismo nombre.",
|
|
3364
3366
|
forbidden: "No puedes crearlo aquí.",
|
|
3365
|
-
not_found: "Aquello a lo que pertenece ya no existe."
|
|
3367
|
+
not_found: "Aquello a lo que pertenece ya no existe.",
|
|
3368
|
+
no_match: "Ninguna incidencia de aquí coincide con ella."
|
|
3366
3369
|
},
|
|
3367
3370
|
cancel: "Cancelar importación",
|
|
3368
3371
|
cancelTitle: "¿Cancelar la importación?",
|
|
@@ -3344,6 +3344,8 @@ var e = {
|
|
|
3344
3344
|
newName: "新しいチームの名前",
|
|
3345
3345
|
start: "{count, plural, other {# チームをインポート}}",
|
|
3346
3346
|
total: "取り込む課題 {count, plural, other {# 件}}",
|
|
3347
|
+
updateOnly: "ここにある課題だけを更新する",
|
|
3348
|
+
updateOnlyHelp: "各 Linear 課題を GitHub リンク、または以前のインポートでここの課題と照合し、ラベル、優先度、見積もり、プロジェクト、サイクル、コメントを取り込みます。ステータスは変わらず、新しい課題は作成されません。一致しない Linear 課題は除外として表示されます。",
|
|
3347
3349
|
lastImport: "{organization} からの最新のインポート",
|
|
3348
3350
|
startedAt: "{date} に開始",
|
|
3349
3351
|
issuesLabel: "課題",
|
|
@@ -3362,7 +3364,8 @@ var e = {
|
|
|
3362
3364
|
invalid: "Tandem は {field} を受け付けませんでした。",
|
|
3363
3365
|
conflict: "同じ名前の項目など、既存のものと競合しています。",
|
|
3364
3366
|
forbidden: "ここでは作成できません。",
|
|
3365
|
-
not_found: "属する先がなくなっています。"
|
|
3367
|
+
not_found: "属する先がなくなっています。",
|
|
3368
|
+
no_match: "一致する課題がここにありません。"
|
|
3366
3369
|
},
|
|
3367
3370
|
cancel: "インポートをキャンセル",
|
|
3368
3371
|
cancelTitle: "インポートをキャンセルしますか?",
|
|
@@ -3344,6 +3344,8 @@ var e = {
|
|
|
3344
3344
|
newName: "새 팀 이름",
|
|
3345
3345
|
start: "{count, plural, other {팀 #개 가져오기}}",
|
|
3346
3346
|
total: "가져올 이슈 {count, plural, other {#개}}",
|
|
3347
|
+
updateOnly: "여기에 있는 이슈만 업데이트",
|
|
3348
|
+
updateOnlyHelp: "각 Linear 이슈를 GitHub 링크나 이전 가져오기로 여기의 이슈와 맞추고, 라벨, 우선순위, 추정치, 프로젝트, 사이클, 댓글을 가져옵니다. 상태는 그대로 두고 새 이슈는 만들지 않습니다. 일치하지 않는 Linear 이슈는 제외됨으로 표시됩니다.",
|
|
3347
3349
|
lastImport: "{organization}에서 가져온 최근 항목",
|
|
3348
3350
|
startedAt: "{date}에 시작",
|
|
3349
3351
|
issuesLabel: "이슈",
|
|
@@ -3362,7 +3364,8 @@ var e = {
|
|
|
3362
3364
|
invalid: "Tandem이 {field} 값을 받아들이지 않았습니다.",
|
|
3363
3365
|
conflict: "같은 이름의 항목 등 이미 있는 것과 충돌합니다.",
|
|
3364
3366
|
forbidden: "여기에서 만들 수 없습니다.",
|
|
3365
|
-
not_found: "속한 항목이 없어졌습니다."
|
|
3367
|
+
not_found: "속한 항목이 없어졌습니다.",
|
|
3368
|
+
no_match: "여기에 일치하는 이슈가 없습니다."
|
|
3366
3369
|
},
|
|
3367
3370
|
cancel: "가져오기 취소",
|
|
3368
3371
|
cancelTitle: "가져오기를 취소할까요?",
|
|
@@ -3344,6 +3344,8 @@ var e = {
|
|
|
3344
3344
|
newName: "新团队的名称",
|
|
3345
3345
|
start: "{count, plural, other {导入 # 个团队}}",
|
|
3346
3346
|
total: "将导入 {count, plural, other {# 个问题}}",
|
|
3347
|
+
updateOnly: "仅更新这里已有的问题",
|
|
3348
|
+
updateOnlyHelp: "通过 GitHub 链接或之前的导入,将每个 Linear 问题与这里的问题匹配,并带入其标签、优先级、估算、项目、周期和评论。状态保持不变,也不会创建新问题;没有匹配的 Linear 问题会列为已跳过。",
|
|
3347
3349
|
lastImport: "最近一次从 {organization} 导入",
|
|
3348
3350
|
startedAt: "开始于 {date}",
|
|
3349
3351
|
issuesLabel: "问题",
|
|
@@ -3362,7 +3364,8 @@ var e = {
|
|
|
3362
3364
|
invalid: "Tandem 未接受其 {field}。",
|
|
3363
3365
|
conflict: "它与此处已有的内容冲突,例如同名项目。",
|
|
3364
3366
|
forbidden: "你无法在此处创建它。",
|
|
3365
|
-
not_found: "它所属的内容已不存在。"
|
|
3367
|
+
not_found: "它所属的内容已不存在。",
|
|
3368
|
+
no_match: "这里没有与之匹配的问题。"
|
|
3366
3369
|
},
|
|
3367
3370
|
cancel: "取消导入",
|
|
3368
3371
|
cancelTitle: "取消导入?",
|
package/package.json
CHANGED
|
@@ -178,15 +178,15 @@ 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 = u(),
|
|
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({
|
|
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:
|
|
186
|
+
onMutate: N.clear,
|
|
187
187
|
onSuccess: (e) => {
|
|
188
188
|
v(e), S(Object.fromEntries(e.teams.map((e) => {
|
|
189
|
-
let t =
|
|
189
|
+
let t = P.find((t) => t.key === e.key);
|
|
190
190
|
return [e.id, {
|
|
191
191
|
on: !0,
|
|
192
192
|
target: t?.key ?? I,
|
|
@@ -195,12 +195,13 @@ function L({ workspace: n, again: a }) {
|
|
|
195
195
|
}];
|
|
196
196
|
})));
|
|
197
197
|
},
|
|
198
|
-
onError:
|
|
199
|
-
}),
|
|
198
|
+
onError: N.set
|
|
199
|
+
}), L = A({
|
|
200
200
|
mutationFn: async () => t(await e.POST("/api/v1/workspaces/{workspace}/linear/import", {
|
|
201
201
|
params: { path: { workspace: n } },
|
|
202
202
|
body: {
|
|
203
203
|
apiKey: l,
|
|
204
|
+
updateExistingOnly: C,
|
|
204
205
|
teams: Object.entries(y).filter(([, e]) => e.on).map(([e, t]) => t.target === I ? {
|
|
205
206
|
sourceId: e,
|
|
206
207
|
newKey: t.newKey,
|
|
@@ -211,12 +212,12 @@ function L({ workspace: n, again: a }) {
|
|
|
211
212
|
})
|
|
212
213
|
}
|
|
213
214
|
})),
|
|
214
|
-
onMutate:
|
|
215
|
+
onMutate: N.clear,
|
|
215
216
|
onSuccess: () => {
|
|
216
217
|
d(""), v(null), s.invalidateQueries({ queryKey: r(n).queryKey }), s.invalidateQueries({ queryKey: i(n).queryKey });
|
|
217
218
|
},
|
|
218
|
-
onError:
|
|
219
|
-
}),
|
|
219
|
+
onError: N.set
|
|
220
|
+
}), R = Object.values(y).filter((e) => e.on).length, z = (e, t) => S((n) => ({
|
|
220
221
|
...n,
|
|
221
222
|
[e]: {
|
|
222
223
|
...n[e],
|
|
@@ -226,7 +227,7 @@ function L({ workspace: n, again: a }) {
|
|
|
226
227
|
return /* @__PURE__ */ O(x, { children: /* @__PURE__ */ k("form", {
|
|
227
228
|
className: "space-y-4 px-3 py-3",
|
|
228
229
|
onSubmit: (e) => {
|
|
229
|
-
e.preventDefault(), m ?
|
|
230
|
+
e.preventDefault(), m ? L.mutate() : F.mutate();
|
|
230
231
|
},
|
|
231
232
|
children: [
|
|
232
233
|
/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("h2", {
|
|
@@ -272,7 +273,7 @@ function L({ workspace: n, again: a }) {
|
|
|
272
273
|
children: [
|
|
273
274
|
/* @__PURE__ */ O(p, {
|
|
274
275
|
checked: t.on,
|
|
275
|
-
onCheckedChange: (t) =>
|
|
276
|
+
onCheckedChange: (t) => z(e.id, { on: t })
|
|
276
277
|
}),
|
|
277
278
|
/* @__PURE__ */ k("span", {
|
|
278
279
|
className: "truncate",
|
|
@@ -299,11 +300,11 @@ function L({ workspace: n, again: a }) {
|
|
|
299
300
|
children: [/* @__PURE__ */ O(b, {
|
|
300
301
|
"aria-label": o("into", { team: e.name }),
|
|
301
302
|
value: t.target,
|
|
302
|
-
onValueChange: (t) => t &&
|
|
303
|
+
onValueChange: (t) => t && z(e.id, { target: t }),
|
|
303
304
|
items: [{
|
|
304
305
|
value: I,
|
|
305
306
|
label: o("newTeam")
|
|
306
|
-
}, ...
|
|
307
|
+
}, ...P.map((e) => ({
|
|
307
308
|
value: e.key,
|
|
308
309
|
label: `${e.name} (${e.key})`
|
|
309
310
|
}))],
|
|
@@ -312,14 +313,14 @@ function L({ workspace: n, again: a }) {
|
|
|
312
313
|
}), t.target === I && /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(_, {
|
|
313
314
|
"aria-label": o("newKey"),
|
|
314
315
|
value: t.newKey,
|
|
315
|
-
onChange: (t) =>
|
|
316
|
+
onChange: (t) => z(e.id, { newKey: t.target.value.toUpperCase() }),
|
|
316
317
|
className: "w-24",
|
|
317
318
|
maxLength: 10,
|
|
318
319
|
required: !0
|
|
319
320
|
}), /* @__PURE__ */ O(_, {
|
|
320
321
|
"aria-label": o("newName"),
|
|
321
322
|
value: t.newName,
|
|
322
|
-
onChange: (t) =>
|
|
323
|
+
onChange: (t) => z(e.id, { newName: t.target.value }),
|
|
323
324
|
className: "w-44",
|
|
324
325
|
required: !0
|
|
325
326
|
})] })]
|
|
@@ -329,18 +330,29 @@ function L({ workspace: n, again: a }) {
|
|
|
329
330
|
})
|
|
330
331
|
]
|
|
331
332
|
}),
|
|
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
|
+
})] })]
|
|
343
|
+
}),
|
|
332
344
|
/* @__PURE__ */ k("div", {
|
|
333
345
|
className: "flex flex-wrap items-center gap-3",
|
|
334
346
|
children: [m ? /* @__PURE__ */ O(f, {
|
|
335
347
|
type: "submit",
|
|
336
348
|
variant: "primary",
|
|
337
|
-
loading:
|
|
338
|
-
disabled:
|
|
339
|
-
children: o("start", { count:
|
|
349
|
+
loading: L.isPending,
|
|
350
|
+
disabled: R === 0,
|
|
351
|
+
children: o("start", { count: R })
|
|
340
352
|
}) : /* @__PURE__ */ O(f, {
|
|
341
353
|
type: "submit",
|
|
342
354
|
variant: "primary",
|
|
343
|
-
loading:
|
|
355
|
+
loading: F.isPending,
|
|
344
356
|
children: o("findTeams")
|
|
345
357
|
}), m && /* @__PURE__ */ O("span", {
|
|
346
358
|
className: "text-xs text-muted-foreground",
|
|
@@ -349,7 +361,7 @@ function L({ workspace: n, again: a }) {
|
|
|
349
361
|
}),
|
|
350
362
|
/* @__PURE__ */ O(h, {
|
|
351
363
|
size: "md",
|
|
352
|
-
children:
|
|
364
|
+
children: N.error
|
|
353
365
|
})
|
|
354
366
|
]
|
|
355
367
|
}) });
|