@parallelworks/tandem-web 0.169.0 → 0.170.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.
@@ -143,6 +143,10 @@ var e = {
143
143
  runnerSeen: "seen {seen}",
144
144
  runnerNeverConnected: "never connected",
145
145
  runnerSharedWith: "shared with {group}",
146
+ runnerSharingRefused: "{count, plural, one {{names} is shared, but only platform admins can share runners here, so it takes no runs. A platform admin can register it again as shared, or revoke it.} other {{names} are shared, but only platform admins can share runners here, so they take no runs. A platform admin can register them again as shared, or revoke them.}}",
147
+ runnerNotTakingRuns: "not taking runs",
148
+ runnerSharingUnchecked: "{count, plural, one {Couldn't check sharing permission for {names}, so it takes no runs for now. Reload to try again.} other {Couldn't check sharing permission for {names}, so they take no runs for now. Reload to try again.}}",
149
+ runnerSharingUnknown: "sharing permission unknown",
146
150
  runnerModeDefault: "agents ask first",
147
151
  runnerModeAcceptEdits: "agents may accept edits",
148
152
  runnerModeAuto: "agents may decide with a reviewer",
@@ -1100,6 +1104,7 @@ var e = {
1100
1104
  apiErrors: {
1101
1105
  network: "Could not reach the server. Check your connection and try again.",
1102
1106
  compute_admin_required: "Only platform admins can see and turn on compute for agents.",
1107
+ runner_share_admin_required: "Only platform admins can share runners here.",
1103
1108
  conflict: "This changed since you loaded it. Reload and try again.",
1104
1109
  device_code_invalid: "That code is unknown, expired or already used.",
1105
1110
  insufficient_scope: "This app can only read Tandem. Sign in to it again and allow it to make changes.",
@@ -143,6 +143,10 @@ var e = {
143
143
  runnerSeen: "visto {seen}",
144
144
  runnerNeverConnected: "nunca se ha conectado",
145
145
  runnerSharedWith: "compartido con {group}",
146
+ runnerSharingRefused: "{count, plural, one {{names} está compartido, pero aquí solo los administradores de la plataforma pueden compartir ejecutores, así que no toma ejecuciones. Un administrador de la plataforma puede registrarlo de nuevo como compartido, o revocarlo.} other {{names} están compartidos, pero aquí solo los administradores de la plataforma pueden compartir ejecutores, así que no toman ejecuciones. Un administrador de la plataforma puede registrarlos de nuevo como compartidos, o revocarlos.}}",
147
+ runnerNotTakingRuns: "no toma ejecuciones",
148
+ runnerSharingUnchecked: "{count, plural, one {No se pudo comprobar el permiso para compartir {names}, así que por ahora no toma ejecuciones. Recarga para intentarlo de nuevo.} other {No se pudo comprobar el permiso para compartir {names}, así que por ahora no toman ejecuciones. Recarga para intentarlo de nuevo.}}",
149
+ runnerSharingUnknown: "permiso para compartir desconocido",
146
150
  runnerModeDefault: "los agentes preguntan primero",
147
151
  runnerModeAcceptEdits: "los agentes pueden aceptar ediciones",
148
152
  runnerModeAuto: "los agentes pueden decidir con un revisor",
@@ -1100,6 +1104,7 @@ var e = {
1100
1104
  apiErrors: {
1101
1105
  network: "No se pudo conectar con el servidor. Revisa tu conexión e inténtalo de nuevo.",
1102
1106
  compute_admin_required: "Solo los administradores de la plataforma pueden ver y activar el cómputo para los agentes.",
1107
+ runner_share_admin_required: "Aquí solo los administradores de la plataforma pueden compartir ejecutores.",
1103
1108
  conflict: "Esto cambió desde que lo cargaste. Recarga e inténtalo de nuevo.",
1104
1109
  device_code_invalid: "Ese código no existe, ha caducado o ya se usó.",
1105
1110
  insufficient_scope: "Esta app solo puede leer Tandem. Vuelve a iniciar sesión en ella y permite que haga cambios.",
@@ -143,6 +143,10 @@ var e = {
143
143
  runnerSeen: "{seen}に確認",
144
144
  runnerNeverConnected: "未接続",
145
145
  runnerSharedWith: "{group} と共有",
146
+ runnerSharingRefused: "{count, plural, other {{names} は共有されていますが、ここではプラットフォーム管理者だけがランナーを共有できるため、実行を引き受けません。プラットフォーム管理者が共有ランナーとして登録し直すか、取り消してください。}}",
147
+ runnerNotTakingRuns: "実行を引き受けていません",
148
+ runnerSharingUnchecked: "{count, plural, other {{names} の共有権限を確認できなかったため、現在は実行を引き受けません。再読み込みしてもう一度お試しください。}}",
149
+ runnerSharingUnknown: "共有権限が不明",
146
150
  runnerModeDefault: "エージェントは先に確認",
147
151
  runnerModeAcceptEdits: "エージェントは編集を許可可能",
148
152
  runnerModeAuto: "エージェントはレビュアーと判断可能",
@@ -1100,6 +1104,7 @@ var e = {
1100
1104
  apiErrors: {
1101
1105
  network: "サーバーに接続できませんでした。接続を確認して、もう一度お試しください。",
1102
1106
  compute_admin_required: "エージェント用のコンピュートを表示・有効化できるのはプラットフォーム管理者だけです。",
1107
+ runner_share_admin_required: "ここでランナーを共有できるのはプラットフォーム管理者だけです。",
1103
1108
  conflict: "読み込んだ後に変更されています。再読み込みして、もう一度お試しください。",
1104
1109
  device_code_invalid: "このコードは不明、期限切れ、または使用済みです。",
1105
1110
  insufficient_scope: "このアプリは Tandem の読み取りのみ許可されています。もう一度サインインし、変更を許可してください。",
@@ -143,6 +143,10 @@ var e = {
143
143
  runnerSeen: "{seen} 확인됨",
144
144
  runnerNeverConnected: "연결된 적 없음",
145
145
  runnerSharedWith: "{group}과(와) 공유됨",
146
+ runnerSharingRefused: "{count, plural, other {{names}은(는) 공유되어 있지만 여기서는 플랫폼 관리자만 러너를 공유할 수 있어 실행을 맡지 않습니다. 플랫폼 관리자가 공유 러너로 다시 등록하거나 취소할 수 있습니다.}}",
147
+ runnerNotTakingRuns: "실행을 맡지 않음",
148
+ runnerSharingUnchecked: "{count, plural, other {{names}의 공유 권한을 확인할 수 없어 지금은 실행을 맡지 않습니다. 새로고침해 다시 시도하세요.}}",
149
+ runnerSharingUnknown: "공유 권한 알 수 없음",
146
150
  runnerModeDefault: "에이전트가 먼저 물음",
147
151
  runnerModeAcceptEdits: "에이전트가 편집 허용 가능",
148
152
  runnerModeAuto: "에이전트가 검토자와 결정 가능",
@@ -1100,6 +1104,7 @@ var e = {
1100
1104
  apiErrors: {
1101
1105
  network: "서버에 연결할 수 없습니다. 연결 상태를 확인하고 다시 시도하세요.",
1102
1106
  compute_admin_required: "에이전트용 컴퓨트는 플랫폼 관리자만 보고 켤 수 있습니다.",
1107
+ runner_share_admin_required: "여기서는 플랫폼 관리자만 러너를 공유할 수 있습니다.",
1103
1108
  conflict: "불러온 뒤 내용이 변경되었습니다. 새로 고친 후 다시 시도하세요.",
1104
1109
  device_code_invalid: "알 수 없거나 만료되었거나 이미 사용된 코드입니다.",
1105
1110
  insufficient_scope: "이 앱은 Tandem을 읽기만 할 수 있습니다. 앱에 다시 로그인하고 변경을 허용하세요.",
@@ -143,6 +143,10 @@ var e = {
143
143
  runnerSeen: "{seen}在线",
144
144
  runnerNeverConnected: "从未连接",
145
145
  runnerSharedWith: "已与 {group} 共享",
146
+ runnerSharingRefused: "{count, plural, other {{names} 已共享,但此处只有平台管理员可以共享运行器,因此它不会接收运行。平台管理员可以将其重新注册为共享运行器,或将其撤销。}}",
147
+ runnerNotTakingRuns: "不接收运行",
148
+ runnerSharingUnchecked: "{count, plural, other {无法检查 {names} 的共享权限,因此暂不接收运行。请刷新后重试。}}",
149
+ runnerSharingUnknown: "共享权限未知",
146
150
  runnerModeDefault: "代理先询问",
147
151
  runnerModeAcceptEdits: "代理可接受编辑",
148
152
  runnerModeAuto: "代理可由审查者代为决定",
@@ -1100,6 +1104,7 @@ var e = {
1100
1104
  apiErrors: {
1101
1105
  network: "无法连接到服务器。请检查网络连接后重试。",
1102
1106
  compute_admin_required: "只有平台管理员可以查看并为代理启用计算资源。",
1107
+ runner_share_admin_required: "此处只有平台管理员可以共享运行器。",
1103
1108
  conflict: "加载后此内容已被更改。请重新加载后重试。",
1104
1109
  device_code_invalid: "该代码无效、已过期或已被使用。",
1105
1110
  insufficient_scope: "此应用只能读取 Tandem。请重新登录该应用,并允许它进行更改。",
package/api/queries.js CHANGED
@@ -932,7 +932,8 @@ var a = i({
932
932
  queryFn: async ({ signal: r }) => n(await t.GET("/api/v1/workspaces/{workspace}/triage/visits", {
933
933
  params: { path: { workspace: e } },
934
934
  signal: r
935
- })).issueIds
935
+ })).issueIds,
936
+ retry: !1
936
937
  }), Ne = (e, r) => i({
937
938
  queryKey: [
938
939
  "workspace",
@@ -5,25 +5,25 @@ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
5
  // src/components/ActorAvatar.tsx
6
6
  function a({ actor: a, name: o, src: s, badge: c }) {
7
7
  let l = a.kind === "connector" ? a.handle.split(":")[0] : void 0;
8
- return /* @__PURE__ */ i("span", {
8
+ return l === "github" || l === "gitlab" ? /* @__PURE__ */ i("span", {
9
9
  className: "relative flex",
10
- children: [l === "github" || l === "gitlab" ? /* @__PURE__ */ r("span", {
11
- className: "flex size-5 items-center justify-center rounded-full bg-muted text-foreground",
12
- children: /* @__PURE__ */ r(e, {
13
- provider: l,
14
- className: "size-3.5"
15
- })
16
- }) : /* @__PURE__ */ r(n, {
10
+ children: [/* @__PURE__ */ r(n, {
17
11
  name: o,
18
- src: s,
19
- ...t(a.kind),
12
+ colorClassName: "bg-muted text-transparent",
20
13
  size: "sm",
14
+ badge: c,
21
15
  decorative: !0
22
- }), c && /* @__PURE__ */ r("span", {
23
- "aria-hidden": !0,
24
- className: "absolute -right-1.5 -bottom-1.5 flex size-3.5 items-center justify-center rounded-full border border-border bg-card text-muted-foreground [&_svg]:size-2.5",
25
- children: c
16
+ }), /* @__PURE__ */ r(e, {
17
+ provider: l,
18
+ className: "pointer-events-none absolute top-0.75 left-0.75 size-3.5 text-foreground"
26
19
  })]
20
+ }) : /* @__PURE__ */ r(n, {
21
+ name: o,
22
+ src: s,
23
+ ...t(a.kind),
24
+ size: "sm",
25
+ badge: c,
26
+ decorative: !0
27
27
  });
28
28
  }
29
29
  export { a as ActorAvatar };
@@ -0,0 +1,5 @@
1
+ // src/lib/triageSeen.ts
2
+ function e(e, t) {
3
+ return t.failed ? !0 : t.data !== void 0 && !t.data.includes(e);
4
+ }
5
+ export { e as unseen };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parallelworks/tandem-web",
3
- "version": "0.169.0",
3
+ "version": "0.170.0",
4
4
  "description": "Tandem's pages, for a host app to render in its own",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -49,7 +49,7 @@
49
49
  "yjs": "^13.6.33"
50
50
  },
51
51
  "peerDependencies": {
52
- "@parallelworks/ui": ">=0.112.0 <1",
52
+ "@parallelworks/ui": ">=0.117.0 <1",
53
53
  "@tanstack/react-router": "^1.170.0",
54
54
  "react": "^19.3.0",
55
55
  "react-dom": "^19.3.0",
package/pages/triage.js CHANGED
@@ -6,34 +6,38 @@ import { triageQuery as c, useVisitTriage as l } from "../lib/triage.js";
6
6
  import { AddIcon as u, PriorityIcon as d, StatusIcon as f, TriageIcon as p, usePriorityNames as m } from "../components/icons.js";
7
7
  import { usePeople as h } from "../lib/people.js";
8
8
  import { useTime as g } from "../lib/time.js";
9
- import { EntityIcon as _ } from "../components/EntityIcon.js";
10
- import { useCanTriage as v } from "../lib/roles.js";
11
- import { actorAvatar as y } from "../lib/avatar.js";
12
- import { Editor as b } from "../components/Editor.js";
13
- import { useShortcuts as x } from "../lib/shortcuts.js";
14
- import { ActorAvatar as S } from "../components/ActorAvatar.js";
9
+ import { EntityIcon as ee } from "../components/EntityIcon.js";
10
+ import { useCanTriage as _ } from "../lib/roles.js";
11
+ import { actorAvatar as v } from "../lib/avatar.js";
12
+ import { Editor as y } from "../components/Editor.js";
13
+ import { useShortcuts as b } from "../lib/shortcuts.js";
14
+ import { ActorAvatar as x } from "../components/ActorAvatar.js";
15
+ import { unseen as S } from "../lib/triageSeen.js";
15
16
  import { Avatar as C, Button as w, EmptyState as T, RelativeTime as E, buttonClasses as D, toast as O } from "@parallelworks/ui";
16
- import { useParams as k, useSearch as A } from "@tanstack/react-router";
17
- import { useCallback as j, useEffect as M, useRef as N, useState as P } from "react";
18
- import { useErrorMessage as F } from "@parallelworks/problem/react";
19
- import { useTranslations as I } from "use-intl";
20
- import { Fragment as L, jsx as R, jsxs as z } from "react/jsx-runtime";
21
- import { useMutation as B, useQuery as V, useQueryClient as H, useSuspenseQuery as U } from "@tanstack/react-query";
17
+ import { useParams as te, useSearch as k } from "@tanstack/react-router";
18
+ import { useCallback as A, useEffect as j, useRef as M, useState as N } from "react";
19
+ import { useErrorMessage as P } from "@parallelworks/problem/react";
20
+ import { useTranslations as F } from "use-intl";
21
+ import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
22
+ import { useMutation as z, useQuery as B, useQueryClient as V, useSuspenseQuery as H } from "@tanstack/react-query";
22
23
  // src/pages/triage.tsx
23
- function W() {
24
- let r = I("triage"), { workspace: a, key: o } = k({ strict: !1 }), { issue: u } = A({ strict: !1 }), { data: d } = U(c(a, o));
24
+ function U() {
25
+ let r = F("triage"), { workspace: a, key: o } = te({ strict: !1 }), { issue: u } = k({ strict: !1 }), { data: d } = H(c(a, o));
25
26
  n(r("title"));
26
- let f = d.issues, m = F(), h = H(), [g, _] = P(/* @__PURE__ */ new Set()), [v, y] = P(/* @__PURE__ */ new Set()), b = j((e, t) => {
27
- _((n) => n.has(e) === t ? n : t ? new Set(n).add(e) : K(n, e));
28
- }, []), S = f.filter((e) => g.has(e.id)), C = S.filter((e) => v.has(e.id)), E = i(), D = f.findIndex((e) => e.identifier === u?.toUpperCase()), L = N(null), V = f[D], { data: W } = U(s(a)), { mutate: q } = l(a), J = N(/* @__PURE__ */ new Set());
29
- M(() => {
30
- !V || W.includes(V.id) || J.current.has(V.id) || (J.current.add(V.id), q({
31
- id: V.id,
32
- identifier: V.identifier
27
+ let f = d.issues, m = P(), h = V(), [g, ee] = N(/* @__PURE__ */ new Set()), [_, v] = N(/* @__PURE__ */ new Set()), y = A((e, t) => {
28
+ ee((n) => n.has(e) === t ? n : t ? new Set(n).add(e) : G(n, e));
29
+ }, []), x = f.filter((e) => g.has(e.id)), C = x.filter((e) => _.has(e.id)), E = i(), D = f.findIndex((e) => e.identifier === u?.toUpperCase()), I = M(null), U = f[D], { data: K, isError: ie } = B(s(a)), ae = {
30
+ data: K,
31
+ failed: ie
32
+ }, { mutate: q } = l(a), J = M(/* @__PURE__ */ new Set());
33
+ j(() => {
34
+ U && K && !K.includes(U.id) && !J.current.has(U.id) && (J.current.add(U.id), q({
35
+ id: U.id,
36
+ identifier: U.identifier
33
37
  }));
34
38
  }, [
35
- V,
36
- W,
39
+ U,
40
+ K,
37
41
  q
38
42
  ]);
39
43
  let Y = (e) => E({
@@ -41,22 +45,22 @@ function W() {
41
45
  search: e ? { issue: e.identifier.toLowerCase() } : {},
42
46
  replace: !0
43
47
  }), X = (e) => {
44
- g.has(e.id) && y((t) => t.has(e.id) ? K(t, e.id) : new Set(t).add(e.id));
48
+ g.has(e.id) && v((t) => t.has(e.id) ? G(t, e.id) : new Set(t).add(e.id));
45
49
  }, Z = (e, t) => {
46
50
  let [n, r] = e < t ? [e, t] : [t, e];
47
- y(new Set(f.slice(n, r + 1).filter((e) => g.has(e.id)).map((e) => e.id)));
48
- }, ne = (e, t) => {
51
+ v(new Set(f.slice(n, r + 1).filter((e) => g.has(e.id)).map((e) => e.id)));
52
+ }, oe = (e, t) => {
49
53
  let n = f[t];
50
- n && (e.metaKey || e.ctrlKey ? (e.preventDefault(), X(n), L.current = t) : e.shiftKey && (e.preventDefault(), Z(L.current ?? (D >= 0 ? D : t), t)));
54
+ n && (e.metaKey || e.ctrlKey ? (e.preventDefault(), X(n), I.current = t) : e.shiftKey && (e.preventDefault(), Z(I.current ?? (D >= 0 ? D : t), t)));
51
55
  }, Q = (e, t) => {
52
56
  if (f.length === 0) return;
53
57
  let n = D < 0 ? 0 : Math.min(Math.max(D + e, 0), f.length - 1);
54
- t && ((L.current === null || v.size === 0) && (L.current = Math.max(D, 0)), Z(L.current, n)), Y(f[n]);
55
- }, re = (e) => {
58
+ t && ((I.current === null || _.size === 0) && (I.current = Math.max(D, 0)), Z(I.current, n)), Y(f[n]);
59
+ }, se = (e) => {
56
60
  let t = f.findIndex((t) => t.id === e.id);
57
- e.id === V?.id && Y(f[t + 1] ?? f[t - 1]);
61
+ e.id === U?.id && Y(f[t + 1] ?? f[t - 1]);
58
62
  };
59
- x({
63
+ b({
60
64
  j: () => Q(1, !1),
61
65
  k: () => Q(-1, !1),
62
66
  J: () => Q(1, !0),
@@ -64,23 +68,23 @@ function W() {
64
68
  ArrowDown: (e) => Q(1, e.shiftKey),
65
69
  ArrowUp: (e) => Q(-1, e.shiftKey),
66
70
  x: () => {
67
- V && (X(V), L.current = D);
71
+ U && (X(U), I.current = D);
68
72
  },
69
- Enter: () => V && E({
73
+ Enter: () => U && E({
70
74
  to: "/$workspace/issues/$identifier",
71
75
  params: {
72
76
  workspace: a,
73
- identifier: V.identifier
77
+ identifier: U.identifier
74
78
  }
75
79
  }),
76
- "Mod+a": () => y(new Set(f.map((e) => e.id))),
77
- "Shift+Mod+a": () => y(/* @__PURE__ */ new Set()),
78
- Escape: () => v.size > 0 ? y(/* @__PURE__ */ new Set()) : Y(void 0)
79
- }), M(() => {
80
- let e = V && document.getElementById(`triage-${V.id}`);
80
+ "Mod+a": () => v(new Set(f.map((e) => e.id))),
81
+ "Shift+Mod+a": () => v(/* @__PURE__ */ new Set()),
82
+ Escape: () => _.size > 0 ? v(/* @__PURE__ */ new Set()) : Y(void 0)
83
+ }), j(() => {
84
+ let e = U && document.getElementById(`triage-${U.id}`);
81
85
  e && (e.scrollIntoView({ block: "nearest" }), e.parentElement?.contains(document.activeElement) && e.querySelector("a")?.focus({ preventScroll: !0 }));
82
- }, [V]);
83
- let $ = B({
86
+ }, [U]);
87
+ let $ = z({
84
88
  mutationFn: async (n) => (await Promise.allSettled(C.map(async (r) => t(await e.POST("/api/v1/workspaces/{workspace}/issues/{identifier}/triage", {
85
89
  params: { path: {
86
90
  workspace: a,
@@ -89,11 +93,11 @@ function W() {
89
93
  body: { decision: n }
90
94
  }))))).filter((e) => e.status === "rejected"),
91
95
  onSuccess: (e) => {
92
- if (V && v.has(V.id)) {
93
- let e = (e) => !v.has(e.id);
96
+ if (U && _.has(U.id)) {
97
+ let e = (e) => !_.has(e.id);
94
98
  Y(f.slice(D + 1).find(e) ?? f.slice(0, D).findLast(e));
95
99
  }
96
- y(/* @__PURE__ */ new Set());
100
+ v(/* @__PURE__ */ new Set());
97
101
  let t = e[0];
98
102
  t && O.error(r("bulkFailed", {
99
103
  count: e.length,
@@ -106,39 +110,39 @@ function W() {
106
110
  "issues"
107
111
  ] })
108
112
  });
109
- return /* @__PURE__ */ z("div", {
113
+ return /* @__PURE__ */ R("div", {
110
114
  className: "flex h-full flex-col",
111
- children: [/* @__PURE__ */ z("header", {
115
+ children: [/* @__PURE__ */ R("header", {
112
116
  className: "flex h-12 shrink-0 items-center gap-3 border-b border-border px-4 md:px-5",
113
117
  children: [
114
- /* @__PURE__ */ R("h1", {
118
+ /* @__PURE__ */ L("h1", {
115
119
  className: "text-sm font-semibold",
116
120
  children: r("title")
117
121
  }),
118
- /* @__PURE__ */ R("span", {
122
+ /* @__PURE__ */ L("span", {
119
123
  className: "text-xs text-muted-foreground tabular-nums",
120
124
  children: f.length
121
125
  }),
122
- C.length > 0 && /* @__PURE__ */ z("div", {
126
+ C.length > 0 && /* @__PURE__ */ R("div", {
123
127
  className: "ml-auto flex items-center gap-2",
124
128
  children: [
125
- /* @__PURE__ */ R("span", {
129
+ /* @__PURE__ */ L("span", {
126
130
  className: "text-xs font-medium text-human",
127
131
  children: r("selected", { count: C.length })
128
132
  }),
129
- C.length < S.length && /* @__PURE__ */ R("button", {
133
+ C.length < x.length && /* @__PURE__ */ L("button", {
130
134
  type: "button",
131
- onClick: () => y(new Set(S.map((e) => e.id))),
135
+ onClick: () => v(new Set(x.map((e) => e.id))),
132
136
  className: "text-xs hover:underline",
133
137
  children: r("selectAll")
134
138
  }),
135
- /* @__PURE__ */ R("button", {
139
+ /* @__PURE__ */ L("button", {
136
140
  type: "button",
137
- onClick: () => y(/* @__PURE__ */ new Set()),
141
+ onClick: () => v(/* @__PURE__ */ new Set()),
138
142
  className: "text-xs hover:underline",
139
143
  children: r("clear")
140
144
  }),
141
- /* @__PURE__ */ R(w, {
145
+ /* @__PURE__ */ L(w, {
142
146
  variant: "outline",
143
147
  size: "sm",
144
148
  title: r("declineHelp"),
@@ -147,7 +151,7 @@ function W() {
147
151
  onClick: () => $.mutate("decline"),
148
152
  children: r("declineCount", { count: C.length })
149
153
  }),
150
- /* @__PURE__ */ R(w, {
154
+ /* @__PURE__ */ L(w, {
151
155
  variant: "primary",
152
156
  size: "sm",
153
157
  title: r("acceptHelp"),
@@ -159,37 +163,37 @@ function W() {
159
163
  ]
160
164
  })
161
165
  ]
162
- }), f.length === 0 ? /* @__PURE__ */ R("div", {
166
+ }), f.length === 0 ? /* @__PURE__ */ L("div", {
163
167
  className: "min-h-0 flex-1 overflow-y-auto p-6",
164
- children: /* @__PURE__ */ R(T, {
165
- icon: /* @__PURE__ */ R(p, {}),
168
+ children: /* @__PURE__ */ L(T, {
169
+ icon: /* @__PURE__ */ L(p, {}),
166
170
  title: r("empty"),
167
171
  description: r("emptyDescription")
168
172
  })
169
- }) : /* @__PURE__ */ z("div", {
173
+ }) : /* @__PURE__ */ R("div", {
170
174
  className: "flex min-h-0 flex-1",
171
- children: [/* @__PURE__ */ R("ul", {
175
+ children: [/* @__PURE__ */ L("ul", {
172
176
  "aria-label": r("title"),
173
- className: G("min-h-0 min-w-0 flex-1 flex-col overflow-y-auto px-2 py-2 md:flex md:max-w-md md:border-r md:border-border", V ? "hidden" : "flex"),
174
- children: f.map((e, t) => /* @__PURE__ */ R(ee, {
177
+ className: W("min-h-0 min-w-0 flex-1 flex-col overflow-y-auto px-2 py-2 md:flex md:max-w-md md:border-r md:border-border", U ? "hidden" : "flex"),
178
+ children: f.map((e, t) => /* @__PURE__ */ L(ne, {
175
179
  workspace: a,
176
180
  issue: e,
177
- onEligible: b,
178
- picked: v.has(e.id) && g.has(e.id),
181
+ onEligible: y,
182
+ picked: _.has(e.id) && g.has(e.id),
179
183
  current: t === D,
180
- unread: !W.includes(e.id),
181
- onClick: (e) => ne(e, t)
184
+ unread: S(e.id, ae),
185
+ onClick: (e) => oe(e, t)
182
186
  }, e.id))
183
- }), /* @__PURE__ */ R("div", {
184
- className: G("min-w-0 flex-1 overflow-y-auto md:block", V ? "block" : "hidden"),
185
- children: V ? /* @__PURE__ */ R(te, {
187
+ }), /* @__PURE__ */ L("div", {
188
+ className: W("min-w-0 flex-1 overflow-y-auto md:block", U ? "block" : "hidden"),
189
+ children: U ? /* @__PURE__ */ L(re, {
186
190
  workspace: a,
187
- issue: V,
191
+ issue: U,
188
192
  onBack: () => Y(void 0),
189
- onDecided: re
190
- }, V.id) : /* @__PURE__ */ R("div", {
193
+ onDecided: se
194
+ }, U.id) : /* @__PURE__ */ L("div", {
191
195
  className: "px-6 py-24",
192
- children: /* @__PURE__ */ R(T, {
196
+ children: /* @__PURE__ */ L(T, {
193
197
  title: r("noneSelected"),
194
198
  description: r("shortcuts")
195
199
  })
@@ -198,75 +202,75 @@ function W() {
198
202
  })]
199
203
  });
200
204
  }
201
- var G = (...e) => e.filter(Boolean).join(" ");
202
- function K(e, t) {
205
+ var W = (...e) => e.filter(Boolean).join(" ");
206
+ function G(e, t) {
203
207
  let n = new Set(e);
204
208
  return n.delete(t), n;
205
209
  }
206
- function ee({ workspace: e, issue: t, onEligible: n, picked: i, current: a, unread: o, onClick: s }) {
207
- let c = I("triage"), { actorName: l, avatarOf: d } = h(e), p = v(e, t.teamId);
208
- M(() => n(t.id, p), [
210
+ function ne({ workspace: e, issue: t, onEligible: n, picked: i, current: a, unread: o, onClick: s }) {
211
+ let c = F("triage"), { actorName: l, avatarOf: d } = h(e), p = _(e, t.teamId);
212
+ j(() => n(t.id, p), [
209
213
  n,
210
214
  t.id,
211
215
  p
212
216
  ]);
213
217
  let m = t.creator;
214
- return /* @__PURE__ */ R("li", {
218
+ return /* @__PURE__ */ L("li", {
215
219
  id: `triage-${t.id}`,
216
220
  "data-picked": i || void 0,
217
- children: /* @__PURE__ */ z(r, {
221
+ children: /* @__PURE__ */ R(r, {
218
222
  to: ".",
219
223
  search: { issue: t.identifier.toLowerCase() },
220
224
  replace: !0,
221
225
  onClick: s,
222
226
  "aria-current": a || void 0,
223
- className: G("flex gap-3 px-2 py-2.5 select-none", i ? "bg-human-soft" : G("rounded-md", a ? "bg-muted" : "hover:bg-muted")),
227
+ className: W("flex gap-3 px-2 py-2.5 select-none", i ? "bg-human-soft" : W("rounded-md", a ? "bg-muted" : "hover:bg-muted")),
224
228
  children: [
225
- /* @__PURE__ */ R("span", {
229
+ /* @__PURE__ */ L("span", {
226
230
  className: "flex w-2 shrink-0 justify-center pt-2.5",
227
- children: o && /* @__PURE__ */ R("span", {
231
+ children: o && /* @__PURE__ */ L("span", {
228
232
  role: "img",
229
233
  "aria-label": c("unseen"),
230
234
  className: "size-2 rounded-full bg-primary"
231
235
  })
232
236
  }),
233
- /* @__PURE__ */ R("span", {
234
- className: G("h-fit shrink-0 rounded-full", i && "ring-1 ring-human/40"),
235
- children: /* @__PURE__ */ R(S, {
237
+ /* @__PURE__ */ L("span", {
238
+ className: W("h-fit shrink-0 rounded-full", i && "ring-1 ring-human/40"),
239
+ children: /* @__PURE__ */ L(x, {
236
240
  actor: m,
237
241
  name: l(m),
238
242
  src: d(m.kind, m.handle),
239
- badge: /* @__PURE__ */ R(u, {})
243
+ badge: /* @__PURE__ */ L(u, {})
240
244
  })
241
245
  }),
242
- /* @__PURE__ */ z("span", {
246
+ /* @__PURE__ */ R("span", {
243
247
  className: "min-w-0 flex-1",
244
- children: [/* @__PURE__ */ z("span", {
248
+ children: [/* @__PURE__ */ R("span", {
245
249
  className: "flex items-baseline gap-2 text-sm",
246
- children: [/* @__PURE__ */ R("span", {
247
- className: G("shrink-0 text-xs tabular-nums", o ? "font-medium text-foreground" : "text-muted-foreground"),
250
+ children: [/* @__PURE__ */ L("span", {
251
+ className: W("shrink-0 text-xs tabular-nums", o ? "font-medium text-foreground" : "text-muted-foreground"),
248
252
  children: t.identifier
249
- }), /* @__PURE__ */ R("span", {
250
- className: G("min-w-0 flex-1 truncate", o ? "font-medium text-foreground" : "text-muted-foreground"),
253
+ }), /* @__PURE__ */ L("span", {
254
+ className: W("min-w-0 flex-1 truncate", o ? "font-medium text-foreground" : "text-muted-foreground"),
251
255
  children: t.title
252
256
  })]
253
- }), /* @__PURE__ */ R("span", {
257
+ }), /* @__PURE__ */ L("span", {
254
258
  className: "mt-0.5 block truncate text-xs text-muted-foreground",
255
259
  children: c("from", { name: l(m) })
256
260
  })]
257
261
  }),
258
- /* @__PURE__ */ z("span", {
262
+ /* @__PURE__ */ R("span", {
259
263
  className: "flex shrink-0 flex-col items-end gap-1 pt-0.5",
260
- children: [/* @__PURE__ */ z("span", {
264
+ children: [/* @__PURE__ */ R("span", {
261
265
  className: "flex h-4 items-center",
262
- children: [/* @__PURE__ */ R(f, {
266
+ children: [/* @__PURE__ */ L(f, {
263
267
  category: t.status.category,
264
268
  step: t.status.step
265
- }), /* @__PURE__ */ R("span", {
269
+ }), /* @__PURE__ */ L("span", {
266
270
  className: "sr-only",
267
271
  children: t.status.name
268
272
  })]
269
- }), /* @__PURE__ */ R(E, {
273
+ }), /* @__PURE__ */ L(E, {
270
274
  value: t.createdAt,
271
275
  format: "compact",
272
276
  exact: "medium",
@@ -277,104 +281,104 @@ function ee({ workspace: e, issue: t, onEligible: n, picked: i, current: a, unre
277
281
  })
278
282
  });
279
283
  }
280
- function te({ workspace: n, issue: i, onBack: s, onDecided: c }) {
281
- let l = I("triage"), u = g(), p = F(), x = H(), S = m(), { data: T } = U(o(n)), { data: E } = V(a(n, i.identifier)), O = E ?? i, { actorName: k, avatarOf: A } = h(n), j = T.find((e) => e.id === O.teamId), M = v(n, O.teamId), N = B({
284
+ function re({ workspace: n, issue: i, onBack: s, onDecided: c }) {
285
+ let l = F("triage"), u = g(), p = P(), b = V(), x = m(), { data: S } = H(o(n)), { data: T } = B(a(n, i.identifier)), E = T ?? i, { actorName: O, avatarOf: te } = h(n), k = S.find((e) => e.id === E.teamId), A = _(n, E.teamId), j = z({
282
286
  mutationFn: async (r) => t(await e.POST("/api/v1/workspaces/{workspace}/issues/{identifier}/triage", {
283
287
  params: { path: {
284
288
  workspace: n,
285
- identifier: O.identifier
289
+ identifier: E.identifier
286
290
  } },
287
291
  body: { decision: r }
288
292
  })),
289
293
  onSuccess: () => {
290
- c(i), x.invalidateQueries({ queryKey: [
294
+ c(i), b.invalidateQueries({ queryKey: [
291
295
  "workspace",
292
296
  n,
293
297
  "issues"
294
298
  ] });
295
299
  }
296
- }), P = O.creator;
297
- return /* @__PURE__ */ z("article", {
300
+ }), M = E.creator;
301
+ return /* @__PURE__ */ R("article", {
298
302
  className: "mx-auto w-full max-w-3xl px-4 py-5 md:px-8",
299
303
  children: [
300
- /* @__PURE__ */ R("button", {
304
+ /* @__PURE__ */ L("button", {
301
305
  type: "button",
302
306
  onClick: s,
303
307
  className: "mb-3 text-xs text-muted-foreground hover:text-foreground md:hidden",
304
308
  children: l("back")
305
309
  }),
306
- /* @__PURE__ */ z("p", {
310
+ /* @__PURE__ */ R("p", {
307
311
  className: "flex items-center gap-1.5 text-xs text-muted-foreground",
308
312
  children: [
309
- j && /* @__PURE__ */ R(_, {
310
- icon: j.icon,
311
- name: j.name,
313
+ k && /* @__PURE__ */ L(ee, {
314
+ icon: k.icon,
315
+ name: k.name,
312
316
  className: "size-3.5"
313
317
  }),
314
- /* @__PURE__ */ R("span", {
318
+ /* @__PURE__ */ L("span", {
315
319
  className: "tabular-nums",
316
- children: O.identifier
320
+ children: E.identifier
317
321
  }),
318
- /* @__PURE__ */ R("span", {
322
+ /* @__PURE__ */ L("span", {
319
323
  "aria-hidden": "true",
320
324
  children: "·"
321
325
  }),
322
- /* @__PURE__ */ R(C, {
323
- ...y(P.kind),
324
- name: k(P),
325
- src: A(P.kind, P.handle),
326
+ /* @__PURE__ */ L(C, {
327
+ ...v(M.kind),
328
+ name: O(M),
329
+ src: te(M.kind, M.handle),
326
330
  size: "xs"
327
331
  }),
328
- /* @__PURE__ */ R("span", {
332
+ /* @__PURE__ */ L("span", {
329
333
  className: "truncate",
330
- children: l("from", { name: k(P) })
334
+ children: l("from", { name: O(M) })
331
335
  }),
332
- /* @__PURE__ */ R("span", {
336
+ /* @__PURE__ */ L("span", {
333
337
  "aria-hidden": "true",
334
338
  children: "·"
335
339
  }),
336
- /* @__PURE__ */ R("time", {
337
- dateTime: O.createdAt,
338
- title: u.full(O.createdAt),
339
- children: u.relative(O.createdAt)
340
+ /* @__PURE__ */ L("time", {
341
+ dateTime: E.createdAt,
342
+ title: u.full(E.createdAt),
343
+ children: u.relative(E.createdAt)
340
344
  })
341
345
  ]
342
346
  }),
343
- /* @__PURE__ */ R("h2", {
347
+ /* @__PURE__ */ L("h2", {
344
348
  className: "mt-1 text-xl font-semibold text-balance",
345
- children: /* @__PURE__ */ R(r, {
349
+ children: /* @__PURE__ */ L(r, {
346
350
  to: "/$workspace/issues/$identifier",
347
351
  params: {
348
352
  workspace: n,
349
- identifier: O.identifier
353
+ identifier: E.identifier
350
354
  },
351
355
  className: "hover:underline",
352
- children: O.title
356
+ children: E.title
353
357
  })
354
358
  }),
355
- /* @__PURE__ */ z("div", {
359
+ /* @__PURE__ */ R("div", {
356
360
  className: "mt-4 flex flex-wrap items-center gap-2",
357
- children: [M && /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(w, {
361
+ children: [A && /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L(w, {
358
362
  variant: "primary",
359
363
  size: "sm",
360
364
  title: l("acceptHelp"),
361
- loading: N.isPending && N.variables === "accept",
362
- disabled: N.isPending,
363
- onClick: () => N.mutate("accept"),
365
+ loading: j.isPending && j.variables === "accept",
366
+ disabled: j.isPending,
367
+ onClick: () => j.mutate("accept"),
364
368
  children: l("accept")
365
- }), /* @__PURE__ */ R(w, {
369
+ }), /* @__PURE__ */ L(w, {
366
370
  variant: "outline",
367
371
  size: "sm",
368
372
  title: l("declineHelp"),
369
- loading: N.isPending && N.variables === "decline",
370
- disabled: N.isPending,
371
- onClick: () => N.mutate("decline"),
373
+ loading: j.isPending && j.variables === "decline",
374
+ disabled: j.isPending,
375
+ onClick: () => j.mutate("decline"),
372
376
  children: l("decline")
373
- })] }), /* @__PURE__ */ R(r, {
377
+ })] }), /* @__PURE__ */ L(r, {
374
378
  to: "/$workspace/issues/$identifier",
375
379
  params: {
376
380
  workspace: n,
377
- identifier: O.identifier
381
+ identifier: E.identifier
378
382
  },
379
383
  className: D({
380
384
  size: "sm",
@@ -383,48 +387,48 @@ function te({ workspace: n, issue: i, onBack: s, onDecided: c }) {
383
387
  children: l("openIssue")
384
388
  })]
385
389
  }),
386
- N.error && /* @__PURE__ */ R("p", {
390
+ j.error && /* @__PURE__ */ L("p", {
387
391
  className: "mt-2 text-xs text-danger",
388
- children: p(N.error)
392
+ children: p(j.error)
389
393
  }),
390
- /* @__PURE__ */ R("p", {
394
+ /* @__PURE__ */ L("p", {
391
395
  className: "mt-3 text-xs text-muted-foreground",
392
396
  children: l("duplicateHint")
393
397
  }),
394
- /* @__PURE__ */ z("div", {
398
+ /* @__PURE__ */ R("div", {
395
399
  className: "mt-5 flex flex-wrap items-center gap-x-4 gap-y-1 border-y border-border py-2.5 text-xs text-muted-foreground",
396
400
  children: [
397
- /* @__PURE__ */ z("span", {
401
+ /* @__PURE__ */ R("span", {
398
402
  className: "inline-flex items-center gap-1.5",
399
- children: [/* @__PURE__ */ R(f, {
400
- category: O.status.category,
401
- step: O.status.step
402
- }), O.status.name]
403
+ children: [/* @__PURE__ */ L(f, {
404
+ category: E.status.category,
405
+ step: E.status.step
406
+ }), E.status.name]
403
407
  }),
404
- /* @__PURE__ */ z("span", {
408
+ /* @__PURE__ */ R("span", {
405
409
  className: "inline-flex items-center gap-1.5",
406
- children: [/* @__PURE__ */ R(d, { priority: O.priority }), S[O.priority]]
410
+ children: [/* @__PURE__ */ L(d, { priority: E.priority }), x[E.priority]]
407
411
  }),
408
- O.labels.map((e) => /* @__PURE__ */ z("span", {
412
+ E.labels.map((e) => /* @__PURE__ */ R("span", {
409
413
  className: "inline-flex items-center gap-1.5",
410
- children: [/* @__PURE__ */ R("span", {
414
+ children: [/* @__PURE__ */ L("span", {
411
415
  className: "size-2 rounded-full",
412
416
  style: { background: e.color }
413
417
  }), e.name]
414
418
  }, e.id))
415
419
  ]
416
420
  }),
417
- O.body.trim() ? /* @__PURE__ */ R("div", {
421
+ E.body.trim() ? /* @__PURE__ */ L("div", {
418
422
  className: "mt-5 text-sm",
419
- children: /* @__PURE__ */ R(b, {
420
- value: O.body,
423
+ children: /* @__PURE__ */ L(y, {
424
+ value: E.body,
421
425
  editable: !1
422
426
  })
423
- }) : /* @__PURE__ */ R("p", {
427
+ }) : /* @__PURE__ */ L("p", {
424
428
  className: "mt-5 text-sm text-muted-foreground",
425
429
  children: l("noDescription")
426
430
  })
427
431
  ]
428
432
  });
429
433
  }
430
- export { W as TriagePage };
434
+ export { U as TriagePage };
@@ -7,141 +7,159 @@ import { useConfirm as o } from "../../../lib/confirm.js";
7
7
  import { SettingsPage as s } from "../../../components/settings.js";
8
8
  import { Route as c } from "./runners.js";
9
9
  import { ComputeTargets as l } from "../../../components/ComputeTargets.js";
10
- import { StatusDot as u, Table as d, menuDivider as f, useOpenMenu as p } from "@parallelworks/ui";
11
- import { useMemo as m } from "react";
12
- import { useFormatter as h, useTranslations as g } from "use-intl";
13
- import { jsx as _, jsxs as v } from "react/jsx-runtime";
14
- import { useMutation as y, useQueryClient as b, useSuspenseQuery as x } from "@tanstack/react-query";
15
- import { ListCellText as S, ListColumns as C, ListPage as w, ListRow as T, ListToolbar as E, NameCell as D, listTableProps as O, useListNavigate as k, useListSearch as A, useListView as j } from "@parallelworks/ui/list";
10
+ import { Callout as u, StatusDot as d, Table as f, menuDivider as p, useOpenMenu as m } from "@parallelworks/ui";
11
+ import { useMemo as h } from "react";
12
+ import { useFormatter as g, useTranslations as _ } from "use-intl";
13
+ import { jsx as v, jsxs as y } from "react/jsx-runtime";
14
+ import { useMutation as b, useQueryClient as x, useSuspenseQuery as S } from "@tanstack/react-query";
15
+ import { ListCellText as C, ListColumns as w, ListPage as T, ListRow as E, ListToolbar as D, NameCell as O, listTableProps as k, useListNavigate as A, useListSearch as j, useListView as M } from "@parallelworks/ui/list";
16
16
  // src/routes/$workspace/settings/runners.tsx?tsr-split=component
17
- var M = {
17
+ var N = {
18
18
  default: "runnerModeDefault",
19
19
  "accept-edits": "runnerModeAcceptEdits",
20
20
  auto: "runnerModeAuto",
21
21
  bypass: "runnerModeBypass"
22
22
  };
23
- function N() {
23
+ function P() {
24
24
  let { workspace: e } = c.useParams();
25
- return /* @__PURE__ */ _(P, { workspace: e });
25
+ return /* @__PURE__ */ v(F, { workspace: e });
26
26
  }
27
- function P({ workspace: c }) {
28
- let { data: N } = x(n(c)), P = g("account"), F = h(), I = g("common"), L = a(), R = b(), z = A(), B = k(), V = p(), H = y({
27
+ function F({ workspace: c }) {
28
+ let { data: P } = S(n(c)), F = _("account"), I = g(), L = _("common"), R = a(), z = x(), B = j(), V = A(), H = m(), U = b({
29
29
  mutationFn: async (n) => t(await e.DELETE("/api/v1/workspaces/{workspace}/runners/{runnerId}", { params: { path: {
30
30
  workspace: c,
31
31
  runnerId: n
32
32
  } } })),
33
- onSettled: () => R.invalidateQueries({ queryKey: n(c).queryKey })
34
- }), { confirm: U, dialog: W } = o(), G = (e) => U({
35
- title: P("revokeRunnerTitle"),
36
- description: P("revokeRunnerDescription", { name: e.name }),
37
- confirmLabel: P("revoke"),
38
- onConfirm: () => H.mutateAsync(e.id)
39
- }), K = m(() => [{
33
+ onSettled: () => z.invalidateQueries({ queryKey: n(c).queryKey })
34
+ }), { confirm: W, dialog: G } = o(), K = (e) => W({
35
+ title: F("revokeRunnerTitle"),
36
+ description: F("revokeRunnerDescription", { name: e.name }),
37
+ confirmLabel: F("revoke"),
38
+ onConfirm: () => U.mutateAsync(e.id)
39
+ }), q = h(() => [{
40
40
  key: "name",
41
- label: I("name"),
41
+ label: L("name"),
42
42
  headerClassName: "py-2",
43
43
  alwaysVisible: !0
44
44
  }, {
45
45
  key: "seen",
46
- label: P("runnerColSeen"),
46
+ label: F("runnerColSeen"),
47
47
  headerClassName: "py-2 w-40",
48
48
  align: "end"
49
- }], [P, I]), q = m(() => [{
49
+ }], [F, L]), J = h(() => [{
50
50
  value: "name",
51
- label: I("name"),
51
+ label: L("name"),
52
52
  compare: (e, t) => e.name.localeCompare(t.name)
53
53
  }, {
54
54
  value: "seen",
55
- label: P("runnerColSeen"),
55
+ label: F("runnerColSeen"),
56
56
  compare: (e, t) => (t.lastSeenAt ?? "").localeCompare(e.lastSeenAt ?? "")
57
- }], [P, I]), J = j({
57
+ }], [F, L]), Y = M({
58
58
  storageKey: `tandem-runners-${c}`,
59
59
  defaultShowColumnHeaders: !1,
60
- columns: K,
61
- orderBys: q,
60
+ columns: q,
61
+ orderBys: J,
62
62
  defaultOrderBy: "name",
63
63
  facets: []
64
- }), Y = z.filter.trim().toLowerCase(), X = N.filter((e) => !Y || [
64
+ }), X = B.filter.trim().toLowerCase(), Z = P.filter((e) => !X || [
65
65
  e.name,
66
66
  e.group ?? "",
67
67
  ...e.harnesses,
68
68
  ...e.labels
69
- ].some((e) => e.toLowerCase().includes(Y)));
70
- return /* @__PURE__ */ v(s, {
69
+ ].some((e) => e.toLowerCase().includes(X))), Q = P.filter((e) => e.sharingRefused), $ = P.filter((e) => e.sharingUnchecked);
70
+ return /* @__PURE__ */ y(s, {
71
71
  wide: !0,
72
- title: P("runners"),
73
- description: P.rich("runnersDescription", { code: (e) => /* @__PURE__ */ _("code", {
72
+ title: F("runners"),
73
+ description: F.rich("runnersDescription", { code: (e) => /* @__PURE__ */ v("code", {
74
74
  className: "rounded bg-muted px-1 py-0.5 text-xs",
75
75
  children: e
76
76
  }) }),
77
- toolbar: N.length > 0 && /* @__PURE__ */ _(E, {
78
- view: J,
79
- search: z,
80
- searchLabel: P("runnerSearch"),
81
- searchPlaceholder: P("runnerSearch")
77
+ toolbar: P.length > 0 && /* @__PURE__ */ v(D, {
78
+ view: Y,
79
+ search: B,
80
+ searchLabel: F("runnerSearch"),
81
+ searchPlaceholder: F("runnerSearch")
82
82
  }),
83
83
  children: [
84
- /* @__PURE__ */ _("div", {
84
+ Q.length > 0 && /* @__PURE__ */ v(u, {
85
+ tone: "warning",
86
+ className: "mb-6",
87
+ children: F("runnerSharingRefused", {
88
+ count: Q.length,
89
+ names: I.list(Q.map((e) => e.name), { type: "conjunction" })
90
+ })
91
+ }),
92
+ $.length > 0 && /* @__PURE__ */ v(u, {
93
+ tone: "muted",
94
+ className: "mb-6",
95
+ children: F("runnerSharingUnchecked", {
96
+ count: $.length,
97
+ names: I.list($.map((e) => e.name), { type: "conjunction" })
98
+ })
99
+ }),
100
+ /* @__PURE__ */ v("div", {
85
101
  className: "border-t border-border",
86
- children: /* @__PURE__ */ _(w, {
87
- view: J,
88
- total: N.length,
89
- matches: X.length,
102
+ children: /* @__PURE__ */ v(T, {
103
+ view: Y,
104
+ total: P.length,
105
+ matches: Z.length,
90
106
  count: {
91
- filterActive: z.filter.trim() !== "",
92
- noun: P("runnerNoun"),
93
- nounPlural: P("runnerNounPlural")
107
+ filterActive: B.filter.trim() !== "",
108
+ noun: F("runnerNoun"),
109
+ nounPlural: F("runnerNounPlural")
94
110
  },
95
111
  empty: {
96
- icon: /* @__PURE__ */ _(i, {}),
97
- title: P("noRunners")
112
+ icon: /* @__PURE__ */ v(i, {}),
113
+ title: F("noRunners")
98
114
  },
99
- noMatches: P("runnerNoMatches"),
100
- children: /* @__PURE__ */ v(d, {
101
- ...O,
102
- children: [/* @__PURE__ */ _(C, { view: J }), J.applyOrder(X).map((e) => /* @__PURE__ */ v(T, {
115
+ noMatches: F("runnerNoMatches"),
116
+ children: /* @__PURE__ */ y(f, {
117
+ ...k,
118
+ children: [/* @__PURE__ */ v(w, { view: Y }), Y.applyOrder(Z).map((e) => /* @__PURE__ */ y(E, {
103
119
  href: null,
104
- goTo: B,
105
- openMenu: V,
120
+ goTo: V,
121
+ openMenu: H,
106
122
  items: [
107
- r(P("copyRunnerId"), e.id),
108
- r(I("copyName"), e.name),
109
- f,
123
+ r(F("copyRunnerId"), e.id),
124
+ r(L("copyName"), e.name),
125
+ p,
110
126
  {
111
- label: P("revoke"),
127
+ label: F("revoke"),
112
128
  destructive: !0,
113
- onClick: () => G(e)
129
+ onClick: () => K(e)
114
130
  }
115
131
  ],
116
- children: [/* @__PURE__ */ _(D, {
117
- icon: /* @__PURE__ */ _(i, {}),
132
+ children: [/* @__PURE__ */ v(O, {
133
+ icon: /* @__PURE__ */ v(i, {}),
118
134
  iconTile: !0,
119
135
  name: e.name,
120
- subtitle: F.list([
121
- ...e.group ? [P("runnerSharedWith", { group: e.group })] : [],
122
- ...e.permissionMode ? [P(M[e.permissionMode])] : [],
136
+ subtitle: I.list([
137
+ ...e.group ? [F("runnerSharedWith", { group: e.group })] : [],
138
+ ...e.sharingRefused ? [F("runnerNotTakingRuns")] : [],
139
+ ...e.sharingUnchecked ? [F("runnerSharingUnknown")] : [],
140
+ ...e.permissionMode ? [F(N[e.permissionMode])] : [],
123
141
  ...e.harnesses,
124
142
  ...e.labels
125
143
  ], { type: "unit" }),
126
144
  href: null
127
- }), J.isVisible("seen") && /* @__PURE__ */ v(d.Item, {
145
+ }), Y.isVisible("seen") && /* @__PURE__ */ y(f.Item, {
128
146
  className: "py-2.5",
129
- children: [/* @__PURE__ */ _(S, { children: e.lastSeenAt ? P("runnerSeen", { seen: L.relative(e.lastSeenAt) }) : P("runnerNeverConnected") }), e.isolation && /* @__PURE__ */ v("span", {
147
+ children: [/* @__PURE__ */ v(C, { children: e.lastSeenAt ? F("runnerSeen", { seen: R.relative(e.lastSeenAt) }) : F("runnerNeverConnected") }), e.isolation && /* @__PURE__ */ y("span", {
130
148
  className: "flex items-center justify-end gap-1.5 text-xs text-muted-foreground",
131
149
  title: e.isolation.failures.join("\n") || void 0,
132
- children: [/* @__PURE__ */ _(u, {
150
+ children: [/* @__PURE__ */ v(d, {
133
151
  variant: e.isolation.passed ? "success" : "error",
134
152
  size: 8
135
- }), e.isolation.passed ? P("runnerIsolated") : P("runnerNotIsolated", { count: e.isolation.failures.length })]
153
+ }), e.isolation.passed ? F("runnerIsolated") : F("runnerNotIsolated", { count: e.isolation.failures.length })]
136
154
  })]
137
155
  })]
138
156
  }, e.id))]
139
157
  })
140
158
  })
141
159
  }),
142
- /* @__PURE__ */ _(l, { workspace: c }),
143
- W
160
+ /* @__PURE__ */ v(l, { workspace: c }),
161
+ G
144
162
  ]
145
163
  });
146
164
  }
147
- export { N as component };
165
+ export { P as component };
@@ -1,5 +1,4 @@
1
- import { triageVisitsQuery as e } from "../../../../api/queries.js";
2
- import { triageQuery as t } from "../../../../lib/triage.js";
1
+ import { triageQuery as e } from "../../../../lib/triage.js";
3
2
  // src/routes/$workspace/teams/$key/triage.tsx?tsr-split=loader
4
- var n = ({ context: { queryClient: n }, params: { workspace: r, key: i } }) => Promise.all([n.ensureQueryData(t(r, i)), n.ensureQueryData(e(r))]);
5
- export { n as loader };
3
+ var t = ({ context: { queryClient: t }, params: { workspace: n, key: r } }) => t.ensureQueryData(e(n, r));
4
+ export { t as loader };
@@ -1,5 +1,4 @@
1
- import { triageVisitsQuery as e } from "../../api/queries.js";
2
- import { triageQuery as t } from "../../lib/triage.js";
1
+ import { triageQuery as e } from "../../lib/triage.js";
3
2
  // src/routes/$workspace/triage.tsx?tsr-split=loader
4
- var n = ({ context: { queryClient: n }, params: { workspace: r } }) => Promise.all([n.ensureQueryData(t(r)), n.ensureQueryData(e(r))]);
5
- export { n as loader };
3
+ var t = ({ context: { queryClient: t }, params: { workspace: n } }) => t.ensureQueryData(e(n));
4
+ export { t as loader };