@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.
package/lib/boardMove.js CHANGED
@@ -2,131 +2,132 @@ import { api as e, unwrap as t } from "../api/client.js";
2
2
  import { invalidateIssueViews as n } from "../api/mutations.js";
3
3
  import { issueQuery as r, statusesQuery as i } from "../api/queries.js";
4
4
  import { setIssueFields as a } from "./customFields.js";
5
- import { toast as o } from "@parallelworks/ui";
6
- import { useCallback as s } from "react";
7
- import { useErrorMessage as c } from "@parallelworks/problem/react";
8
- import { useQueries as l, useQueryClient as u } from "@tanstack/react-query";
5
+ import { statusGroup as o } from "./statusGroup.js";
6
+ import { toast as s } from "@parallelworks/ui";
7
+ import { useCallback as c } from "react";
8
+ import { useErrorMessage as l } from "@parallelworks/problem/react";
9
+ import { useQueries as u, useQueryClient as d } from "@tanstack/react-query";
9
10
  // src/lib/boardMove.ts
10
- function d(d, f) {
11
- let p = u(), m = c(), h = l({ queries: f.map((e) => i(d, e.key)) });
12
- return s(async (i, s, c, l, u, g) => {
13
- let _, v, y;
14
- if (g) {
15
- let e = l === "none" ? null : l;
16
- if (g.kind === "checkbox" && (e = l === "true"), g.kind === "multi_select") {
17
- let t = i.fields[g.id] ?? [];
18
- e = l === "none" ? [] : [...t.filter((e) => e !== c && e !== l), l];
11
+ function f(f, p) {
12
+ let m = d(), h = l(), g = u({ queries: p.map((e) => i(f, e.key)) });
13
+ return c(async (i, c, l, u, d, _) => {
14
+ let v, y, b;
15
+ if (_) {
16
+ let e = u === "none" ? null : u;
17
+ if (_.kind === "checkbox" && (e = u === "true"), _.kind === "multi_select") {
18
+ let t = i.fields[_.id] ?? [];
19
+ e = u === "none" ? [] : [...t.filter((e) => e !== l && e !== u), u];
19
20
  }
20
- v = { [g.id]: e }, y = {
21
+ y = { [_.id]: e }, b = {
21
22
  ...i,
22
23
  fields: {
23
24
  ...i.fields,
24
- [g.id]: e
25
+ [_.id]: e
25
26
  }
26
27
  };
27
- } else if (s === "type") {
28
- let e = l === "none" ? void 0 : u?.type;
29
- _ = { typeId: l === "none" ? "" : l };
28
+ } else if (c === "type") {
29
+ let e = u === "none" ? void 0 : d?.type;
30
+ v = { typeId: u === "none" ? "" : u };
30
31
  let { type: t, ...n } = i;
31
- y = e ? {
32
+ b = e ? {
32
33
  ...n,
33
34
  type: e
34
35
  } : n;
35
- } else if (s === "status") {
36
- let e = (h[f.findIndex((e) => e.id === i.teamId)]?.data ?? []).filter((e) => e.category === l).sort((e, t) => e.position - t.position)[0];
36
+ } else if (c === "status") {
37
+ let e = (g[p.findIndex((e) => e.id === i.teamId)]?.data ?? []).filter((e) => o(e) === u).sort((e, t) => e.position - t.position)[0];
37
38
  if (!e) return;
38
- _ = { statusId: e.id }, y = {
39
+ v = { statusId: e.id }, b = {
39
40
  ...i,
40
41
  status: e
41
42
  };
42
- } else if (s === "priority") _ = { priority: Number(l) }, y = {
43
+ } else if (c === "priority") v = { priority: Number(u) }, b = {
43
44
  ...i,
44
- priority: Number(l)
45
+ priority: Number(u)
45
46
  };
46
- else if (s === "project") {
47
- let e = l === "none" ? void 0 : u?.project;
48
- if (l !== "none" && !e) return;
49
- _ = { projectId: e?.id ?? "" };
47
+ else if (c === "project") {
48
+ let e = u === "none" ? void 0 : d?.project;
49
+ if (u !== "none" && !e) return;
50
+ v = { projectId: e?.id ?? "" };
50
51
  let { project: t, ...n } = i;
51
- y = e ? {
52
+ b = e ? {
52
53
  ...n,
53
54
  project: e
54
55
  } : n;
55
- } else if (s === "assignee") {
56
- let e = (e) => `${e.kind}:${e.handle}`, t = l === "none" ? void 0 : u?.assignees.find((t) => e(t) === l);
57
- if (l !== "none" && !t) return;
58
- let n = i.assignees.find((t) => e(t) === c);
56
+ } else if (c === "assignee") {
57
+ let e = (e) => `${e.kind}:${e.handle}`, t = u === "none" ? void 0 : d?.assignees.find((t) => e(t) === u);
58
+ if (u !== "none" && !t) return;
59
+ let n = i.assignees.find((t) => e(t) === l);
59
60
  if (t) {
60
61
  let e = i.assignees.filter((e) => e !== n);
61
- _ = {
62
+ v = {
62
63
  addAssignees: [t],
63
64
  ...n && { removeAssignees: [n] }
64
- }, y = {
65
+ }, b = {
65
66
  ...i,
66
67
  assignees: [...e, t]
67
68
  };
68
- } else _ = { removeAssignees: i.assignees }, y = {
69
+ } else v = { removeAssignees: i.assignees }, b = {
69
70
  ...i,
70
71
  assignees: []
71
72
  };
72
73
  } else {
73
- let e = l === "none" ? void 0 : u?.labels.find((e) => e.id === l);
74
- if (l !== "none" && !e) return;
75
- let t = i.labels.find((e) => e.id === c);
74
+ let e = u === "none" ? void 0 : d?.labels.find((e) => e.id === u);
75
+ if (u !== "none" && !e) return;
76
+ let t = i.labels.find((e) => e.id === l);
76
77
  if (e) {
77
78
  let n = i.labels.filter((e) => e !== t);
78
- _ = {
79
+ v = {
79
80
  addLabels: [e.id],
80
81
  ...t && { removeLabels: [t.id] }
81
- }, y = {
82
+ }, b = {
82
83
  ...i,
83
84
  labels: [...n, e]
84
85
  };
85
- } else _ = { removeLabels: i.labels.map((e) => e.id) }, y = {
86
+ } else v = { removeLabels: i.labels.map((e) => e.id) }, b = {
86
87
  ...i,
87
88
  labels: []
88
89
  };
89
90
  }
90
- let b = (e) => ({
91
+ let x = (e) => ({
91
92
  ...e,
92
- issues: e.issues.map((e) => e.id === i.id ? y : e)
93
- }), x = { queryKey: [
93
+ issues: e.issues.map((e) => e.id === i.id ? b : e)
94
+ }), S = { queryKey: [
94
95
  "workspace",
95
- d,
96
+ f,
96
97
  "issues",
97
98
  "list"
98
99
  ] };
99
- p.setQueriesData(x, (e) => e && b(e));
100
- let S = { queryKey: [
100
+ m.setQueriesData(S, (e) => e && x(e));
101
+ let C = { queryKey: [
101
102
  "workspace",
102
- d,
103
+ f,
103
104
  "issues",
104
105
  "pages"
105
106
  ] };
106
- p.setQueriesData(S, (e) => e && {
107
+ m.setQueriesData(C, (e) => e && {
107
108
  ...e,
108
- pages: e.pages.map(b)
109
+ pages: e.pages.map(x)
109
110
  });
110
111
  try {
111
- let n = v ? await a(d, i.identifier, v) : t(await e.PATCH("/api/v1/workspaces/{workspace}/issues/{identifier}", {
112
+ let n = y ? await a(f, i.identifier, y) : t(await e.PATCH("/api/v1/workspaces/{workspace}/issues/{identifier}", {
112
113
  params: { path: {
113
- workspace: d,
114
+ workspace: f,
114
115
  identifier: i.identifier
115
116
  } },
116
- body: _ ?? {}
117
+ body: v ?? {}
117
118
  }));
118
- p.setQueryData(r(d, i.identifier).queryKey, n);
119
+ m.setQueryData(r(f, i.identifier).queryKey, n);
119
120
  } catch (e) {
120
- o.error(m(e));
121
+ s.error(h(e));
121
122
  } finally {
122
- n(p, d, i.identifier);
123
+ n(m, f, i.identifier);
123
124
  }
124
125
  }, [
125
- p,
126
- d,
126
+ m,
127
127
  f,
128
- h,
129
- m
128
+ p,
129
+ g,
130
+ h
130
131
  ]);
131
132
  }
132
- export { d as useBoardMove };
133
+ export { f as useBoardMove };
package/lib/issueList.js CHANGED
@@ -2,21 +2,22 @@ import { TypeIcon as e } from "../components/IssueTypes.js";
2
2
  import { PriorityIcon as t, StatusIcon as n } from "../components/icons.js";
3
3
  import { fieldRef as r, groupableKinds as i, parseFieldFilters as a, sortableKinds as o } from "./customFields.js";
4
4
  import { statusRef as s } from "./refs.js";
5
- import { Avatar as c } from "@parallelworks/ui";
6
- import { jsx as l } from "react/jsx-runtime";
5
+ import { statusGroup as c, statusGroupOrder as l } from "./statusGroup.js";
6
+ import { Avatar as u } from "@parallelworks/ui";
7
+ import { jsx as d } from "react/jsx-runtime";
7
8
  // src/lib/issueList.tsx
8
- var u = {
9
+ var f = {
9
10
  active: { categories: ["started", "unstarted"] },
10
11
  backlog: { categories: ["backlog"] },
11
12
  done: { categories: ["completed", "canceled"] },
12
13
  all: { categories: [] }
13
- }, d = [
14
+ }, p = [
14
15
  "updated",
15
16
  "priority",
16
17
  "created",
17
18
  "due",
18
19
  "requests"
19
- ], f = [
20
+ ], m = [
20
21
  "status",
21
22
  "assignee",
22
23
  "priority",
@@ -24,10 +25,10 @@ var u = {
24
25
  "label",
25
26
  "type",
26
27
  "none"
27
- ], p = (e, t) => d.includes(e) || t.some((t) => r(e) === t.id && o.includes(t.kind)), m = (e, t) => f.includes(e) || t.some((t) => r(e) === t.id && i.includes(t.kind)), h = (e) => typeof e == "number" ? String(e) : typeof e == "string" && e !== "" ? e : void 0;
28
- function g(e) {
29
- let t = {}, n = h(e.view);
30
- n && n in u && (t.view = n);
28
+ ], h = (e, t) => p.includes(e) || t.some((t) => r(e) === t.id && o.includes(t.kind)), g = (e, t) => m.includes(e) || t.some((t) => r(e) === t.id && i.includes(t.kind)), _ = (e) => typeof e == "number" ? String(e) : typeof e == "string" && e !== "" ? e : void 0;
29
+ function v(e) {
30
+ let t = {}, n = _(e.view);
31
+ n && n in f && (t.view = n);
31
32
  for (let n of [
32
33
  "team",
33
34
  "assignee",
@@ -43,36 +44,29 @@ function g(e) {
43
44
  "q",
44
45
  "saved"
45
46
  ]) {
46
- let r = h(e[n]);
47
+ let r = _(e[n]);
47
48
  r && (t[n] = r);
48
49
  }
49
50
  t.assignee && e.assigneeKind === "agent" && (t.assigneeKind = "agent"), t.assignee || e.unassigned !== "true" && e.unassigned !== !0 || (t.unassigned = "true"), (e.overdue === "true" || e.overdue === !0) && (t.overdue = "true");
50
- let i = h(e.order);
51
- i && i !== "updated" && (d.includes(i) || r(i)) && (t.order = i), e.layout === "board" && (t.layout = "board"), e.scope === "workspace" && (t.scope = "workspace");
52
- let a = h(e.group);
53
- return a && a !== "status" && (f.includes(a) || r(a)) && (t.group = a), t;
51
+ let i = _(e.order);
52
+ i && i !== "updated" && (p.includes(i) || r(i)) && (t.order = i), e.layout === "board" && (t.layout = "board"), e.scope === "workspace" && (t.scope = "workspace");
53
+ let a = _(e.group);
54
+ return a && a !== "status" && (m.includes(a) || r(a)) && (t.group = a), t;
54
55
  }
55
- var _ = [
56
- "started",
57
- "unstarted",
58
- "backlog",
59
- "triage",
60
- "completed",
61
- "canceled"
62
- ], v = (e) => e === 0 ? 5 : e;
63
- function y(e, t, n = []) {
56
+ var y = (e) => e === 0 ? 5 : e;
57
+ function b(e, t, n = []) {
64
58
  let i = n.find((e) => e.id === r(t));
65
- if (i) return [...e].sort(b(i));
59
+ if (i) return [...e].sort(x(i));
66
60
  let a = {
67
61
  updated: () => 0,
68
- priority: (e, t) => v(e.priority) - v(t.priority),
62
+ priority: (e, t) => y(e.priority) - y(t.priority),
69
63
  created: (e, t) => t.createdAt.localeCompare(e.createdAt),
70
64
  due: (e, t) => (e.dueDate ?? "9999").localeCompare(t.dueDate ?? "9999"),
71
65
  requests: (e, t) => (t.requests ?? 0) - (e.requests ?? 0)
72
66
  }[t];
73
67
  return [...e].sort(a ?? (() => 0));
74
68
  }
75
- function b(e) {
69
+ function x(e) {
76
70
  let t = (t) => {
77
71
  let n = t.fields[e.id];
78
72
  if (n != null) return e.kind === "select" ? e.options.findIndex((e) => e.id === n) : typeof n == "number" ? n : String(n);
@@ -82,18 +76,18 @@ function b(e) {
82
76
  return r === void 0 || i === void 0 ? Number(r === void 0) - Number(i === void 0) : typeof r == "number" && typeof i == "number" ? r - i : String(r).localeCompare(String(i));
83
77
  };
84
78
  }
85
- function x(i, a, o, s = !1, u = [], d = []) {
86
- let f = u.find((e) => e.id === r(a));
87
- if (f) return S(i, f, o, s);
79
+ function S(i, a, o, s = !1, f = [], p = []) {
80
+ let m = f.find((e) => e.id === r(a));
81
+ if (m) return C(i, m, o, s);
88
82
  if (a === "type") {
89
83
  let t = {
90
84
  key: "none",
91
85
  label: o.noType ?? o.none.all,
92
86
  issues: []
93
- }, n = d.map((t) => ({
87
+ }, n = p.map((t) => ({
94
88
  key: t.id,
95
89
  label: t.name,
96
- icon: /* @__PURE__ */ l(e, {
90
+ icon: /* @__PURE__ */ d(e, {
97
91
  type: t,
98
92
  className: "size-3.5"
99
93
  }),
@@ -108,7 +102,7 @@ function x(i, a, o, s = !1, u = [], d = []) {
108
102
  i || (i = {
109
103
  key: r.type.id,
110
104
  label: r.type.name,
111
- icon: /* @__PURE__ */ l(e, {
105
+ icon: /* @__PURE__ */ d(e, {
112
106
  type: r.type,
113
107
  className: "size-3.5"
114
108
  }),
@@ -122,11 +116,11 @@ function x(i, a, o, s = !1, u = [], d = []) {
122
116
  label: o.none.all,
123
117
  issues: i
124
118
  }] : [];
125
- if (a === "status") return _.map((e) => ({
119
+ if (a === "status") return l.map((e) => ({
126
120
  key: e,
127
121
  label: o.status(e),
128
- icon: /* @__PURE__ */ l(n, { category: e }),
129
- issues: i.filter((t) => t.status.category === e)
122
+ icon: /* @__PURE__ */ d(n, { category: e }),
123
+ issues: i.filter((t) => c(t.status) === e)
130
124
  })).filter((e) => s || e.issues.length > 0);
131
125
  if (a === "priority") return [
132
126
  1,
@@ -137,49 +131,49 @@ function x(i, a, o, s = !1, u = [], d = []) {
137
131
  ].map((e) => ({
138
132
  key: String(e),
139
133
  label: o.priority(e),
140
- icon: /* @__PURE__ */ l(t, { priority: e }),
134
+ icon: /* @__PURE__ */ d(t, { priority: e }),
141
135
  issues: i.filter((t) => t.priority === e)
142
136
  })).filter((e) => s || e.issues.length > 0);
143
- let p = /* @__PURE__ */ new Map(), m = {
137
+ let h = /* @__PURE__ */ new Map(), g = {
144
138
  key: "",
145
139
  label: "",
146
140
  issues: []
147
- }, h = (e, t, n, r) => {
148
- let i = p.get(t) ?? {
141
+ }, _ = (e, t, n, r) => {
142
+ let i = h.get(t) ?? {
149
143
  key: t,
150
144
  label: n,
151
145
  icon: r,
152
146
  issues: []
153
147
  };
154
- i.issues.push(e), p.set(t, i);
148
+ i.issues.push(e), h.set(t, i);
155
149
  };
156
150
  for (let e of i) if (a === "assignee") {
157
151
  for (let t of s ? e.assignees : e.assignees.slice(0, 1)) {
158
152
  let n = o.person(t.kind, t.handle);
159
- h(e, `${t.kind}:${t.handle}`, n, /* @__PURE__ */ l(c, {
153
+ _(e, `${t.kind}:${t.handle}`, n, /* @__PURE__ */ d(u, {
160
154
  name: n,
161
155
  src: o.avatar(t.kind, t.handle),
162
156
  size: "xs",
163
157
  decorative: !0
164
158
  }));
165
159
  }
166
- e.assignees.length === 0 && m.issues.push(e);
167
- } else if (a === "project") e.project ? h(e, e.project.id, e.project.name) : m.issues.push(e);
160
+ e.assignees.length === 0 && g.issues.push(e);
161
+ } else if (a === "project") e.project ? _(e, e.project.id, e.project.name) : g.issues.push(e);
168
162
  else {
169
- for (let t of s ? e.labels : e.labels.slice(0, 1)) h(e, t.id, t.name, /* @__PURE__ */ l("span", {
163
+ for (let t of s ? e.labels : e.labels.slice(0, 1)) _(e, t.id, t.name, /* @__PURE__ */ d("span", {
170
164
  className: "size-2 rounded-full",
171
165
  style: { background: t.color }
172
166
  }));
173
- e.labels.length === 0 && m.issues.push(e);
167
+ e.labels.length === 0 && g.issues.push(e);
174
168
  }
175
- let g = [...p.values()].sort((e, t) => e.label.localeCompare(t.label));
176
- return (s || m.issues.length > 0) && g.push({
177
- ...m,
169
+ let v = [...h.values()].sort((e, t) => e.label.localeCompare(t.label));
170
+ return (s || g.issues.length > 0) && v.push({
171
+ ...g,
178
172
  key: "none",
179
173
  label: o.none[a]
180
- }), g;
174
+ }), v;
181
175
  }
182
- function S(e, t, n, r) {
176
+ function C(e, t, n, r) {
183
177
  let i = {
184
178
  key: "none",
185
179
  label: n.noField?.(t.name) ?? n.none.all,
@@ -187,7 +181,7 @@ function S(e, t, n, r) {
187
181
  }, a = (e) => {
188
182
  let n = e.fields[t.id];
189
183
  return Array.isArray(n) ? r ? n.map(String) : n.slice(0, 1).map(String) : n === !0 ? ["true"] : typeof n == "string" && n ? [n] : [];
190
- }, o = /* @__PURE__ */ new Map(), s = (e) => e ? /* @__PURE__ */ l("span", {
184
+ }, o = /* @__PURE__ */ new Map(), s = (e) => e ? /* @__PURE__ */ d("span", {
191
185
  className: "size-2 rounded-full",
192
186
  style: { background: e }
193
187
  }) : void 0;
@@ -216,7 +210,7 @@ function S(e, t, n, r) {
216
210
  key: i,
217
211
  label: r,
218
212
  issues: [],
219
- ...t.kind === "person" && { icon: /* @__PURE__ */ l(c, {
213
+ ...t.kind === "person" && { icon: /* @__PURE__ */ d(u, {
220
214
  name: r,
221
215
  src: n.avatar("user", i),
222
216
  size: "xs",
@@ -227,10 +221,10 @@ function S(e, t, n, r) {
227
221
  e.issues.push(r);
228
222
  }
229
223
  }
230
- let u = [...o.values()];
231
- return t.kind === "person" && u.sort((e, t) => e.label.localeCompare(t.label)), u.push(i), u.filter((e) => r || e.issues.length > 0);
224
+ let c = [...o.values()];
225
+ return t.kind === "person" && c.sort((e, t) => e.label.localeCompare(t.label)), c.push(i), c.filter((e) => r || e.issues.length > 0);
232
226
  }
233
- function C(e, t) {
227
+ function w(e, t) {
234
228
  let n = e.view ?? "active", r = (e.status ?? "").split(",").flatMap((e) => {
235
229
  let n = t?.filter((t) => s(t) === e).map((e) => e.id) ?? [];
236
230
  return n.length > 0 ? n : [e];
@@ -251,8 +245,8 @@ function C(e, t) {
251
245
  ...e.fields && { field: a(e.fields).map((e) => `${e.field}:${e.value}`) },
252
246
  ...e.overdue && { overdue: !0 },
253
247
  ...e.q && { q: e.q },
254
- ...u[n].categories.length > 0 && { category: u[n].categories },
248
+ ...f[n].categories.length > 0 && { category: f[n].categories },
255
249
  ...n === "all" && { triage: "include" }
256
250
  };
257
251
  }
258
- export { x as groupIssues, f as groupings, m as isGrouping, p as isOrder, C as issueFilterOf, g as issueSearch, d as orders, y as sortIssues, u as views };
252
+ export { S as groupIssues, m as groupings, g as isGrouping, h as isOrder, w as issueFilterOf, v as issueSearch, p as orders, b as sortIssues, f as views };
package/lib/issueMenu.js CHANGED
@@ -192,6 +192,7 @@ function R(x) {
192
192
  label: K("status"),
193
193
  icon: /* @__PURE__ */ N(p, {
194
194
  category: a.status.category,
195
+ review: a.status.review,
195
196
  step: a.status.step
196
197
  }),
197
198
  shortcut: "S",
@@ -199,6 +200,7 @@ function R(x) {
199
200
  label: e.name,
200
201
  icon: /* @__PURE__ */ N(p, {
201
202
  category: e.category,
203
+ review: e.review,
202
204
  step: e.step
203
205
  }),
204
206
  checked: s((t) => t.status.name === e.name),
@@ -21,6 +21,7 @@ function s(s, c) {
21
21
  label: `${e.identifier} ${e.title}`,
22
22
  icon: /* @__PURE__ */ i(t, {
23
23
  category: e.status.category,
24
+ review: e.status.review,
24
25
  step: e.status.step
25
26
  })
26
27
  })),
@@ -13,6 +13,14 @@ function c(e, t, n) {
13
13
  case "status": return n === "triage" ? {
14
14
  ...e,
15
15
  triage: "only"
16
+ } : n === "review" ? {
17
+ ...e,
18
+ category: ["started"],
19
+ review: "only"
20
+ } : n === "started" ? {
21
+ ...e,
22
+ category: ["started"],
23
+ review: "exclude"
16
24
  } : {
17
25
  ...e,
18
26
  category: [n]
@@ -0,0 +1,14 @@
1
+ // src/lib/statusGroup.ts
2
+ function e(e) {
3
+ return e.category === "started" && e.review ? "review" : e.category;
4
+ }
5
+ var t = [
6
+ "review",
7
+ "started",
8
+ "unstarted",
9
+ "backlog",
10
+ "triage",
11
+ "completed",
12
+ "canceled"
13
+ ];
14
+ export { e as statusGroup, t as statusGroupOrder };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parallelworks/tandem-web",
3
- "version": "0.172.0",
3
+ "version": "0.174.0",
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/triage.js CHANGED
@@ -254,6 +254,7 @@ function ne({ workspace: e, issue: t, onEligible: n, picked: r, current: i, open
254
254
  className: "flex h-4 items-center",
255
255
  children: [/* @__PURE__ */ z(l, {
256
256
  category: t.status.category,
257
+ review: t.status.review,
257
258
  step: t.status.step
258
259
  }), /* @__PURE__ */ z("span", {
259
260
  className: "sr-only",
@@ -362,6 +363,7 @@ function re({ workspace: e, issue: t, onBack: i, onDecided: a }) {
362
363
  className: "inline-flex items-center gap-1.5",
363
364
  children: [/* @__PURE__ */ z(l, {
364
365
  category: x.status.category,
366
+ review: x.status.review,
365
367
  step: x.status.step
366
368
  }), x.status.name]
367
369
  }),
@@ -493,6 +493,7 @@ function Le({ workspace: e, docKey: t }) {
493
493
  children: [
494
494
  /* @__PURE__ */ L(p, {
495
495
  category: t.status.category,
496
+ review: t.status.review,
496
497
  step: t.status.step
497
498
  }),
498
499
  /* @__PURE__ */ L("span", {
@@ -598,6 +599,7 @@ function Be({ workspace: t, docKey: n }) {
598
599
  children: [
599
600
  /* @__PURE__ */ L(p, {
600
601
  category: e.status.category,
602
+ review: e.status.review,
601
603
  step: e.status.step
602
604
  }),
603
605
  /* @__PURE__ */ L("span", {
@@ -509,6 +509,7 @@ function Bt({ workspace: n, issue: r, team: i, open: a, setOpen: o, update: s })
509
509
  label: e.name,
510
510
  icon: /* @__PURE__ */ q(ge, {
511
511
  category: e.category,
512
+ review: e.review,
512
513
  step: e.step
513
514
  })
514
515
  })),
@@ -520,6 +521,7 @@ function Bt({ workspace: n, issue: r, team: i, open: a, setOpen: o, update: s })
520
521
  className: A,
521
522
  children: [/* @__PURE__ */ q(ge, {
522
523
  category: r.status.category,
524
+ review: r.status.review,
523
525
  step: r.status.step
524
526
  }), r.status.name]
525
527
  })
@@ -390,6 +390,7 @@ function fe({ workspace: e, group: t, selected: n, picked: r, actions: a }) {
390
390
  className: "flex h-4 items-center",
391
391
  children: [/* @__PURE__ */ B(h, {
392
392
  category: d.status.category,
393
+ review: d.status.review,
393
394
  step: d.status.step
394
395
  }), /* @__PURE__ */ B("span", {
395
396
  className: "sr-only",
@@ -426,6 +427,7 @@ function pe({ workspace: e, identifier: n }) {
426
427
  className: "inline-flex items-center gap-1.5",
427
428
  children: [/* @__PURE__ */ B(h, {
428
429
  category: r.status.category,
430
+ review: r.status.review,
429
431
  step: r.status.step
430
432
  }), r.status.name]
431
433
  }),
package/styles.css CHANGED
@@ -20,6 +20,7 @@
20
20
  --color-status-triage: var(--theme-warning-text);
21
21
  --color-status-unstarted: var(--theme-muted-text-color);
22
22
  --color-status-started: var(--theme-info);
23
+ --color-status-review: color-mix(in oklab, var(--theme-info) 45%, var(--theme-success));
23
24
  --color-status-completed: var(--theme-success);
24
25
  --color-status-canceled: color-mix(
25
26
  in oklab,
@@ -613,6 +614,10 @@ body[data-tandem] > :not(:has(.tandem)) {
613
614
  border-color: var(--color-warning);
614
615
  background: var(--color-warning);
615
616
  }
617
+ .prose-issue .linked-issue[data-category="review"]::before {
618
+ border-color: var(--color-status-review);
619
+ background: var(--color-status-review);
620
+ }
616
621
  .prose-issue .linked-issue[data-category="completed"]::before {
617
622
  border-color: var(--color-primary);
618
623
  background: var(--color-primary);
@@ -745,6 +750,10 @@ body[data-tandem] > :not(:has(.tandem)) {
745
750
  border-color: var(--color-status-started);
746
751
  background: linear-gradient(90deg, transparent 50%, var(--color-status-started) 50%);
747
752
  }
753
+ .issue-mention-status[data-category="review"] {
754
+ border-color: var(--color-status-review);
755
+ background: conic-gradient(var(--color-status-review) 0 75%, transparent 75% 100%);
756
+ }
748
757
  .issue-mention-status[data-category="completed"] {
749
758
  border-color: var(--color-status-completed);
750
759
  background: var(--color-status-completed);