@parallelworks/tandem-web 0.172.0 → 0.174.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.
@@ -831,6 +831,7 @@ var e = {
831
831
  groups: {
832
832
  triage: "Triage",
833
833
  started: "In progress",
834
+ review: "In review",
834
835
  unstarted: "To do",
835
836
  backlog: "Backlog",
836
837
  completed: "Done",
@@ -944,6 +945,7 @@ var e = {
944
945
  titleChanged: "<actor>{name}</actor> changed the title to “{title}”",
945
946
  bodyChanged: "<actor>{name}</actor> edited the description",
946
947
  statusChanged: "<actor>{name}</actor> moved to <icon></icon> {status}",
948
+ statusChangedByPullRequest: "Moved to <icon></icon> {status} by PR {ref}",
947
949
  autoClosed: "Closed after {days} days with no activity",
948
950
  archived: "Archived after it closed",
949
951
  priorityRemoved: "<actor>{name}</actor> removed the priority",
@@ -1748,7 +1750,10 @@ var e = {
1748
1750
  moveDown: "Move {name} down",
1749
1751
  delete: "Delete status",
1750
1752
  deleteTitle: "Delete “{name}”?",
1751
- deleteDescription: "Issues with this status will move to {target}."
1753
+ deleteDescription: "Issues with this status will move to {target}.",
1754
+ reviewBadge: "Review",
1755
+ markReview: "Mark as review",
1756
+ unmarkReview: "Unmark review"
1752
1757
  },
1753
1758
  relations: {
1754
1759
  label: "Sub-issues and relations",
@@ -3490,6 +3495,7 @@ var e = {
3490
3495
  backlog: "Backlog",
3491
3496
  unstarted: "Todo",
3492
3497
  started: "In progress",
3498
+ review: "In review",
3493
3499
  completed: "Done",
3494
3500
  canceled: "Canceled"
3495
3501
  },
@@ -831,6 +831,7 @@ var e = {
831
831
  groups: {
832
832
  triage: "Triaje",
833
833
  started: "En curso",
834
+ review: "En revisión",
834
835
  unstarted: "Por hacer",
835
836
  backlog: "Backlog",
836
837
  completed: "Hechas",
@@ -944,6 +945,7 @@ var e = {
944
945
  titleChanged: "<actor>{name}</actor> cambió el título a “{title}”",
945
946
  bodyChanged: "<actor>{name}</actor> editó la descripción",
946
947
  statusChanged: "<actor>{name}</actor> la movió a <icon></icon> {status}",
948
+ statusChangedByPullRequest: "Movida a <icon></icon> {status} por el PR {ref}",
947
949
  autoClosed: "Cerrada tras {days} días sin actividad",
948
950
  archived: "Archivada después de cerrarse",
949
951
  priorityRemoved: "<actor>{name}</actor> quitó la prioridad",
@@ -1748,7 +1750,10 @@ var e = {
1748
1750
  moveDown: "Bajar {name}",
1749
1751
  delete: "Eliminar estado",
1750
1752
  deleteTitle: "¿Eliminar “{name}”?",
1751
- deleteDescription: "Las incidencias con este estado pasarán a {target}."
1753
+ deleteDescription: "Las incidencias con este estado pasarán a {target}.",
1754
+ reviewBadge: "Revisión",
1755
+ markReview: "Marcar como revisión",
1756
+ unmarkReview: "Quitar revisión"
1752
1757
  },
1753
1758
  relations: {
1754
1759
  label: "Subincidencias y relaciones",
@@ -3490,6 +3495,7 @@ var e = {
3490
3495
  backlog: "Pendientes",
3491
3496
  unstarted: "Por hacer",
3492
3497
  started: "En curso",
3498
+ review: "En revisión",
3493
3499
  completed: "Hecho",
3494
3500
  canceled: "Cancelado"
3495
3501
  },
@@ -831,6 +831,7 @@ var e = {
831
831
  groups: {
832
832
  triage: "トリアージ",
833
833
  started: "進行中",
834
+ review: "レビュー中",
834
835
  unstarted: "未着手",
835
836
  backlog: "バックログ",
836
837
  completed: "完了",
@@ -944,6 +945,7 @@ var e = {
944
945
  titleChanged: "<actor>{name}</actor> がタイトルを「{title}」に変更しました",
945
946
  bodyChanged: "<actor>{name}</actor> が説明を編集しました",
946
947
  statusChanged: "<actor>{name}</actor> が <icon></icon> {status} に移動しました",
948
+ statusChangedByPullRequest: "PR {ref} により <icon></icon> {status} に移動しました",
947
949
  autoClosed: "{days} 日間アクティビティがなかったためクローズされました",
948
950
  archived: "クローズ後にアーカイブされました",
949
951
  priorityRemoved: "<actor>{name}</actor> が優先度を削除しました",
@@ -1748,7 +1750,10 @@ var e = {
1748
1750
  moveDown: "{name} を下に移動",
1749
1751
  delete: "ステータスを削除",
1750
1752
  deleteTitle: "「{name}」を削除しますか?",
1751
- deleteDescription: "このステータスの課題は {target} に移動します。"
1753
+ deleteDescription: "このステータスの課題は {target} に移動します。",
1754
+ reviewBadge: "レビュー",
1755
+ markReview: "レビューにする",
1756
+ unmarkReview: "レビューを解除"
1752
1757
  },
1753
1758
  relations: {
1754
1759
  label: "サブ課題と関連",
@@ -3490,6 +3495,7 @@ var e = {
3490
3495
  backlog: "バックログ",
3491
3496
  unstarted: "未着手",
3492
3497
  started: "進行中",
3498
+ review: "レビュー中",
3493
3499
  completed: "完了",
3494
3500
  canceled: "キャンセル"
3495
3501
  },
@@ -831,6 +831,7 @@ var e = {
831
831
  groups: {
832
832
  triage: "트리아지",
833
833
  started: "진행 중",
834
+ review: "리뷰 중",
834
835
  unstarted: "할 일",
835
836
  backlog: "백로그",
836
837
  completed: "완료",
@@ -944,6 +945,7 @@ var e = {
944
945
  titleChanged: "<actor>{name}</actor>이(가) 제목을 “{title}”(으)로 변경함",
945
946
  bodyChanged: "<actor>{name}</actor>이(가) 설명을 편집함",
946
947
  statusChanged: "<actor>{name}</actor>이(가) <icon></icon> {status}(으)로 옮김",
948
+ statusChangedByPullRequest: "PR {ref}에 의해 <icon></icon> {status}(으)로 옮겨짐",
947
949
  autoClosed: "{days}일 동안 활동이 없어 종료됨",
948
950
  archived: "종료 후 보관됨",
949
951
  priorityRemoved: "<actor>{name}</actor>이(가) 우선순위를 제거함",
@@ -1748,7 +1750,10 @@ var e = {
1748
1750
  moveDown: "{name} 아래로 이동",
1749
1751
  delete: "상태 삭제",
1750
1752
  deleteTitle: "“{name}”을(를) 삭제하시겠습니까?",
1751
- deleteDescription: "이 상태의 이슈는 {target}(으)로 이동합니다."
1753
+ deleteDescription: "이 상태의 이슈는 {target}(으)로 이동합니다.",
1754
+ reviewBadge: "리뷰",
1755
+ markReview: "리뷰로 표시",
1756
+ unmarkReview: "리뷰 표시 해제"
1752
1757
  },
1753
1758
  relations: {
1754
1759
  label: "하위 이슈 및 관계",
@@ -3490,6 +3495,7 @@ var e = {
3490
3495
  backlog: "백로그",
3491
3496
  unstarted: "할 일",
3492
3497
  started: "진행 중",
3498
+ review: "리뷰 중",
3493
3499
  completed: "완료",
3494
3500
  canceled: "취소됨"
3495
3501
  },
@@ -831,6 +831,7 @@ var e = {
831
831
  groups: {
832
832
  triage: "分诊",
833
833
  started: "进行中",
834
+ review: "评审中",
834
835
  unstarted: "待办",
835
836
  backlog: "待规划",
836
837
  completed: "已完成",
@@ -944,6 +945,7 @@ var e = {
944
945
  titleChanged: "<actor>{name}</actor> 将标题改为“{title}”",
945
946
  bodyChanged: "<actor>{name}</actor> 编辑了描述",
946
947
  statusChanged: "<actor>{name}</actor> 移到了 <icon></icon> {status}",
948
+ statusChangedByPullRequest: "由 PR {ref} 移到了 <icon></icon> {status}",
947
949
  autoClosed: "{days} 天无活动后自动关闭",
948
950
  archived: "关闭后已归档",
949
951
  priorityRemoved: "<actor>{name}</actor> 移除了优先级",
@@ -1748,7 +1750,10 @@ var e = {
1748
1750
  moveDown: "下移 {name}",
1749
1751
  delete: "删除状态",
1750
1752
  deleteTitle: "删除“{name}”?",
1751
- deleteDescription: "处于此状态的议题将移至 {target}。"
1753
+ deleteDescription: "处于此状态的议题将移至 {target}。",
1754
+ reviewBadge: "评审",
1755
+ markReview: "标记为评审",
1756
+ unmarkReview: "取消评审标记"
1752
1757
  },
1753
1758
  relations: {
1754
1759
  label: "子议题和关联",
@@ -3490,6 +3495,7 @@ var e = {
3490
3495
  backlog: "待办池",
3491
3496
  unstarted: "待处理",
3492
3497
  started: "进行中",
3498
+ review: "评审中",
3493
3499
  completed: "已完成",
3494
3500
  canceled: "已取消"
3495
3501
  },
@@ -12,6 +12,7 @@ function H(e, t) {
12
12
  let e = n.to;
13
13
  return e?.category ? /* @__PURE__ */ B(k, {
14
14
  category: e.category,
15
+ review: e.review,
15
16
  step: Number(e.step) || 0
16
17
  }) : /* @__PURE__ */ B(_, {});
17
18
  }
@@ -122,6 +122,7 @@ function E({ workspace: _, open: E, onClose: D, selection: O }) {
122
122
  label: `${e.identifier} ${e.title}`,
123
123
  icon: /* @__PURE__ */ x(xe, {
124
124
  category: e.status.category,
125
+ review: e.status.review,
125
126
  step: e.status.step
126
127
  }),
127
128
  run: X(`/${_}/issues/${e.identifier}`)
@@ -143,6 +143,7 @@ function O({ editor: O }) {
143
143
  key: `issue:${e.issue.id}`,
144
144
  icon: /* @__PURE__ */ C(p, {
145
145
  category: e.issue.status.category,
146
+ review: e.issue.status.review,
146
147
  step: e.issue.status.step
147
148
  }),
148
149
  label: e.issue.title,
@@ -20,6 +20,7 @@ function C(t, n, m, h) {
20
20
  label: t.issue ? `${t.issue.identifier} ${t.issue.title}` : h("issue"),
21
21
  icon: t.issue ? /* @__PURE__ */ v(f, {
22
22
  category: t.issue.status.category,
23
+ review: t.issue.status.review,
23
24
  step: t.issue.status.step
24
25
  }) : null
25
26
  };
@@ -29,6 +29,7 @@ function p({ workspace: p, event: m }) {
29
29
  let e = w.to;
30
30
  return /* @__PURE__ */ u(o, {
31
31
  category: e.category,
32
+ review: e.review,
32
33
  step: Number(e.step) || 0,
33
34
  className: "inline align-[-2px]"
34
35
  });
@@ -66,7 +67,16 @@ function p({ workspace: p, event: m }) {
66
67
  case "issue.created": return E("created");
67
68
  case "issue.title_changed": return E("titleChanged", { title: String(w.to) });
68
69
  case "issue.body_changed": return E("bodyChanged");
69
- case "issue.status_changed": return w.reason === "inactive" ? E("autoClosed", { days: String(w.days) }) : E("statusChanged", { status: w.to.name });
70
+ case "issue.status_changed":
71
+ if (w.reason === "inactive") return E("autoClosed", { days: String(w.days) });
72
+ if (w.pullRequest) {
73
+ let e = w.pullRequest;
74
+ return E("statusChangedByPullRequest", {
75
+ status: w.to.name,
76
+ ref: `${e.provider === "gitlab" ? "!" : "#"}${e.number}`
77
+ });
78
+ }
79
+ return E("statusChanged", { status: w.to.name });
70
80
  case "issue.archived": return m.actor.kind === "system" ? E("archived") : E("archivedBy");
71
81
  case "issue.restored": return E("restored");
72
82
  case "issue.priority_changed": return Number(w.to) === 0 ? E("priorityRemoved") : E("priorityChanged", { priority: b[Number(w.to)] ?? "" });
@@ -256,6 +256,7 @@ function A(s, E, k, A = !1) {
256
256
  label: e.name,
257
257
  icon: /* @__PURE__ */ S(h, {
258
258
  category: e.category,
259
+ review: e.review,
259
260
  step: e.step
260
261
  })
261
262
  }))
@@ -1,45 +1,38 @@
1
1
  import { teamsQuery as e } from "../api/queries.js";
2
2
  import { useIssueMenu as t } from "../lib/issueMenu.js";
3
- import { IssueRow as n } from "./IssueRow.js";
4
- import { IssueSection as r } from "./IssueSection.js";
5
- import { StatusIcon as i } from "./icons.js";
6
- import { useOpenMenu as a } from "@parallelworks/ui";
7
- import { useTranslations as o } from "use-intl";
8
- import { jsx as s } from "react/jsx-runtime";
9
- import { useQuery as c } from "@tanstack/react-query";
3
+ import { statusGroup as n, statusGroupOrder as r } from "../lib/statusGroup.js";
4
+ import { IssueRow as i } from "./IssueRow.js";
5
+ import { IssueSection as a } from "./IssueSection.js";
6
+ import { StatusIcon as o } from "./icons.js";
7
+ import { useOpenMenu as s } from "@parallelworks/ui";
8
+ import { useTranslations as c } from "use-intl";
9
+ import { jsx as l } from "react/jsx-runtime";
10
+ import { useQuery as u } from "@tanstack/react-query";
10
11
  // src/components/IssueGroup.tsx
11
- function l({ workspace: i, title: o, icon: l, issues: u }) {
12
- let { data: d = [] } = c(e(i)), f = a(), p = t(i);
13
- return /* @__PURE__ */ s(r, {
14
- label: o,
15
- icon: l,
16
- count: u.length,
17
- children: u.map((e) => /* @__PURE__ */ s(n, {
12
+ function d({ workspace: n, title: r, icon: o, issues: c }) {
13
+ let { data: d = [] } = u(e(n)), f = s(), p = t(n);
14
+ return /* @__PURE__ */ l(a, {
15
+ label: r,
16
+ icon: o,
17
+ count: c.length,
18
+ children: c.map((e) => /* @__PURE__ */ l(i, {
18
19
  issue: e,
19
20
  team: d.find((t) => t.id === e.teamId),
20
- workspace: i,
21
+ workspace: n,
21
22
  onContextMenu: (t) => f(t, p([e]))
22
23
  }, e.id))
23
24
  });
24
25
  }
25
- var u = [
26
- "started",
27
- "unstarted",
28
- "backlog",
29
- "triage",
30
- "completed",
31
- "canceled"
32
- ];
33
- function d({ workspace: e, issues: t }) {
34
- let n = o("issues.groups");
35
- return u.map((r) => {
36
- let a = t.filter((e) => e.status.category === r);
37
- return a.length > 0 ? /* @__PURE__ */ s(l, {
26
+ function f({ workspace: e, issues: t }) {
27
+ let i = c("issues.groups");
28
+ return r.map((r) => {
29
+ let a = t.filter((e) => n(e.status) === r);
30
+ return a.length > 0 ? /* @__PURE__ */ l(d, {
38
31
  workspace: e,
39
- title: n(r),
40
- icon: /* @__PURE__ */ s(i, { category: r }),
32
+ title: i(r),
33
+ icon: /* @__PURE__ */ l(o, { category: r }),
41
34
  issues: a
42
35
  }, r) : null;
43
36
  });
44
37
  }
45
- export { l as IssueGroup, d as StatusGroups };
38
+ export { d as IssueGroup, f as StatusGroups };