@parallelworks/tandem-web 0.175.1 → 0.175.3

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.
@@ -0,0 +1,13 @@
1
+ import { CopyCodeBlock as e } from "@parallelworks/ui";
2
+ import { useTranslations as t } from "use-intl";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ // src/components/InlineCommand.tsx
5
+ function r({ children: r }) {
6
+ let i = t("account");
7
+ return /* @__PURE__ */ n(e, {
8
+ inline: !0,
9
+ text: [r].flat().join(""),
10
+ label: i("command")
11
+ });
12
+ }
13
+ export { r as InlineCommand };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parallelworks/tandem-web",
3
- "version": "0.175.1",
3
+ "version": "0.175.3",
4
4
  "description": "Tandem's pages, for a host app to render in its own",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -1,198 +1,217 @@
1
1
  import { teamsQuery as e, workspaceQuery as t } from "../../../api/queries.js";
2
2
  import { DocTable as n, groupable as r } from "../../../components/DocTable.js";
3
- import { BoardIcon as i, ListViewIcon as a } from "../../../components/icons.js";
4
- import { docPropertiesQuery as o, docViewsQuery as s, readConfig as c, useDocPropertyActions as l } from "../../../lib/docProperties.js";
5
- import { usePageTitle as u } from "../../../lib/pageTitle.js";
6
- import { usePeople as d } from "../../../lib/people.js";
7
- import { Route as f } from "./space._space.js";
8
- import { Breadcrumbs as p, Button as m, ErrorText as h, Input as g, Popover as _, SegmentedControl as v, Select as y, useClosePopover as b } from "@parallelworks/ui";
9
- import { useNavigate as x } from "@tanstack/react-router";
10
- import { useEffect as S, useState as C } from "react";
11
- import { useErrorMessage as w } from "@parallelworks/problem/react";
12
- import { useTranslations as T } from "use-intl";
13
- import { jsx as E, jsxs as D } from "react/jsx-runtime";
14
- import { useQuery as O, useSuspenseQuery as k } from "@tanstack/react-query";
3
+ import { AddIcon as i, BoardIcon as a, ListViewIcon as o } from "../../../components/icons.js";
4
+ import { docPropertiesQuery as s, docViewsQuery as c, readConfig as l, useDocPropertyActions as u } from "../../../lib/docProperties.js";
5
+ import { useDocActions as d } from "../../../lib/docs.js";
6
+ import { usePageTitle as f } from "../../../lib/pageTitle.js";
7
+ import { usePeople as p } from "../../../lib/people.js";
8
+ import { Route as m } from "./space._space.js";
9
+ import { Breadcrumbs as ee, Button as h, ErrorText as g, Input as _, Popover as v, SegmentedControl as y, Select as b, useClosePopover as x } from "@parallelworks/ui";
10
+ import { useNavigate as S } from "@tanstack/react-router";
11
+ import { useEffect as C, useState as w } from "react";
12
+ import { useErrorMessage as T } from "@parallelworks/problem/react";
13
+ import { useTranslations as E } from "use-intl";
14
+ import { jsx as D, jsxs as O } from "react/jsx-runtime";
15
+ import { useQuery as k, useSuspenseQuery as A } from "@tanstack/react-query";
15
16
  // src/routes/$workspace/docs/space.$space.tsx?tsr-split=component
16
- function A() {
17
- let d = T("docViews"), g = w(), { workspace: _, space: b } = f.useParams(), { view: A } = f.useSearch(), N = x(), P = (e) => N({
17
+ function j() {
18
+ let p = E("docViews"), v = T(), { workspace: x, space: j } = m.useParams(), { view: P } = m.useSearch(), F = S(), I = (e) => F({
18
19
  to: "/$workspace/docs/space/$space",
19
20
  params: {
20
- workspace: _,
21
- space: b
21
+ workspace: x,
22
+ space: j
22
23
  },
23
24
  search: e ? { view: e } : {}
24
- }), { data: F } = k(e(_)), { data: I } = k(t(_)), L = b === "workspace" ? I.name : F.find((e) => e.key === b)?.name ?? b;
25
- u(d("title"), L);
26
- let { data: R = [] } = O(o(_, b)), { data: z = [] } = O(s(_, b)), B = l(_), V = z.find((e) => e.id === A), [H, U] = C("table"), [W, G] = C({});
27
- S(() => {
28
- V && (U(V.layout), G(c(V.config)));
29
- }, [V]);
30
- let K = (e) => G(e), q = [
25
+ }), { data: L } = A(e(x)), { data: R } = A(t(x)), z = j === "workspace" ? R.name : L.find((e) => e.key === j)?.name ?? j;
26
+ f(p("title"), z);
27
+ let { data: B = [] } = k(s(x, j)), { data: V = [] } = k(c(x, j)), H = u(x), U = V.find((e) => e.id === P), [W, G] = w("table"), [K, q] = w({}), [J, Y] = w(""), X = E("docs"), Z = d(x);
28
+ C(() => {
29
+ U && (G(U.layout), q(l(U.config)));
30
+ }, [U]);
31
+ let Q = (e) => q(e), te = [
31
32
  {
32
33
  value: "title",
33
- label: d("docTitle")
34
+ label: p("docTitle")
34
35
  },
35
36
  {
36
37
  value: "updated",
37
- label: d("updated")
38
+ label: p("updated")
38
39
  },
39
- ...R.map((e) => ({
40
+ ...B.map((e) => ({
40
41
  value: e.id,
41
42
  label: e.name
42
43
  }))
43
- ], J = B.saveView.error ?? B.updateView.error;
44
- return /* @__PURE__ */ D("div", {
44
+ ], $ = H.saveView.error ?? H.updateView.error;
45
+ return /* @__PURE__ */ O("div", {
45
46
  className: "flex h-full flex-col",
46
47
  children: [
47
- /* @__PURE__ */ D("header", {
48
+ /* @__PURE__ */ O("header", {
48
49
  className: "flex min-h-12 shrink-0 flex-wrap items-center gap-2 border-b border-border px-4 py-2 md:px-5",
49
50
  children: [
50
- /* @__PURE__ */ E(p, {
51
+ /* @__PURE__ */ D(ee, {
51
52
  crumbs: [{
52
- label: d("docs"),
53
- href: `/${_}/docs`
54
- }, { label: L }],
53
+ label: p("docs"),
54
+ href: `/${x}/docs`
55
+ }, { label: z }],
55
56
  className: "min-w-0 flex-1"
56
57
  }),
57
- /* @__PURE__ */ E(y, {
58
- value: A ?? "",
58
+ /* @__PURE__ */ D(b, {
59
+ value: P ?? "",
59
60
  items: [{
60
61
  value: "",
61
- label: d("unsaved")
62
- }, ...z.map((e) => ({
62
+ label: p("unsaved")
63
+ }, ...V.map((e) => ({
63
64
  value: e.id,
64
65
  label: e.name
65
66
  }))],
66
- onValueChange: (e) => P(e || void 0),
67
- "aria-label": d("savedViews"),
67
+ onValueChange: (e) => I(e || void 0),
68
+ "aria-label": p("savedViews"),
68
69
  size: "sm",
69
70
  width: "content"
70
71
  }),
71
- V ? /* @__PURE__ */ E(m, {
72
+ U ? /* @__PURE__ */ D(h, {
72
73
  size: "sm",
73
- loading: B.updateView.isPending,
74
- onClick: () => B.updateView.mutate({
75
- id: V.id,
76
- layout: H,
77
- config: { ...W }
74
+ loading: H.updateView.isPending,
75
+ onClick: () => H.updateView.mutate({
76
+ id: U.id,
77
+ layout: W,
78
+ config: { ...K }
78
79
  }),
79
- children: d("update")
80
- }) : /* @__PURE__ */ E(M, {
80
+ children: p("update")
81
+ }) : /* @__PURE__ */ D(N, {
81
82
  onSave: async (e) => {
82
- let t = await B.saveView.mutateAsync({
83
- space: b,
83
+ let t = await H.saveView.mutateAsync({
84
+ space: j,
84
85
  name: e,
85
- layout: H,
86
- config: { ...W }
86
+ layout: W,
87
+ config: { ...K }
87
88
  });
88
- P(t.id);
89
+ I(t.id);
89
90
  },
90
- pending: B.saveView.isPending
91
+ pending: H.saveView.isPending
91
92
  }),
92
- /* @__PURE__ */ E(v, {
93
- label: d("layout"),
93
+ /* @__PURE__ */ D(h, {
94
+ variant: "primary",
94
95
  size: "sm",
95
- value: H,
96
- onValueChange: U,
96
+ icon: /* @__PURE__ */ D(i, {}),
97
+ loading: Z.create.isPending,
98
+ onClick: () => Z.create.mutate(j === "workspace" ? {} : { team: j }),
99
+ children: X("new")
100
+ }),
101
+ /* @__PURE__ */ D(y, {
102
+ label: p("layout"),
103
+ size: "sm",
104
+ value: W,
105
+ onValueChange: G,
97
106
  options: [{
98
107
  value: "table",
99
- label: d("table"),
100
- icon: /* @__PURE__ */ E(a, {})
108
+ label: p("table"),
109
+ icon: /* @__PURE__ */ D(o, {})
101
110
  }, {
102
111
  value: "board",
103
- label: d("board"),
104
- icon: /* @__PURE__ */ E(i, {})
112
+ label: p("board"),
113
+ icon: /* @__PURE__ */ D(a, {})
105
114
  }]
106
115
  })
107
116
  ]
108
117
  }),
109
- /* @__PURE__ */ D("div", {
118
+ /* @__PURE__ */ O("div", {
110
119
  className: "flex flex-wrap items-center gap-2 border-b border-border px-4 py-2 text-xs md:px-5",
111
120
  children: [
112
- H === "board" ? /* @__PURE__ */ E(y, {
113
- value: W.groupBy ?? "",
121
+ /* @__PURE__ */ D(_, {
122
+ type: "search",
123
+ size: "sm",
124
+ value: J,
125
+ onChange: (e) => Y(e.target.value),
126
+ placeholder: X("search"),
127
+ "aria-label": X("search"),
128
+ className: "w-48"
129
+ }),
130
+ W === "board" ? /* @__PURE__ */ D(b, {
131
+ value: K.groupBy ?? "",
114
132
  items: [{
115
133
  value: "",
116
- label: d("groupBy")
117
- }, ...R.filter(r).map((e) => ({
134
+ label: p("groupBy")
135
+ }, ...B.filter(r).map((e) => ({
118
136
  value: e.id,
119
137
  label: e.name
120
138
  }))],
121
- onValueChange: (e) => K({
122
- ...W,
139
+ onValueChange: (e) => Q({
140
+ ...K,
123
141
  ...e ? { groupBy: e } : { groupBy: void 0 }
124
142
  }),
125
- "aria-label": d("groupBy"),
143
+ "aria-label": p("groupBy"),
126
144
  size: "sm",
127
145
  width: "content"
128
- }) : /* @__PURE__ */ E(y, {
146
+ }) : /* @__PURE__ */ D(b, {
129
147
  multiple: !0,
130
- value: W.columns ?? R.map((e) => e.id),
131
- items: R.map((e) => ({
148
+ value: K.columns ?? B.map((e) => e.id),
149
+ items: B.map((e) => ({
132
150
  value: e.id,
133
151
  label: e.name
134
152
  })),
135
- onValueChange: (e) => K({
136
- ...W,
153
+ onValueChange: (e) => Q({
154
+ ...K,
137
155
  columns: e
138
156
  }),
139
- "aria-label": d("columns"),
140
- placeholder: d("columns"),
157
+ "aria-label": p("columns"),
158
+ placeholder: p("columns"),
141
159
  size: "sm",
142
160
  width: "content"
143
161
  }),
144
- /* @__PURE__ */ E(y, {
145
- value: W.sort ?? "title",
146
- items: q,
147
- onValueChange: (e) => K({
148
- ...W,
162
+ /* @__PURE__ */ D(b, {
163
+ value: K.sort ?? "title",
164
+ items: te,
165
+ onValueChange: (e) => Q({
166
+ ...K,
149
167
  sort: e
150
168
  }),
151
- "aria-label": d("sortBy"),
169
+ "aria-label": p("sortBy"),
152
170
  size: "sm",
153
171
  width: "content"
154
172
  }),
155
- /* @__PURE__ */ E(m, {
173
+ /* @__PURE__ */ D(h, {
156
174
  size: "xs",
157
175
  variant: "ghost",
158
- onClick: () => K({
159
- ...W,
160
- desc: !W.desc
176
+ onClick: () => Q({
177
+ ...K,
178
+ desc: !K.desc
161
179
  }),
162
- children: W.desc ? d("descending") : d("ascending")
180
+ children: K.desc ? p("descending") : p("ascending")
163
181
  }),
164
- R.map((e) => /* @__PURE__ */ E(j, {
165
- workspace: _,
182
+ B.map((e) => /* @__PURE__ */ D(M, {
183
+ workspace: x,
166
184
  property: e,
167
- value: W.filters?.[e.id] ?? "",
185
+ value: K.filters?.[e.id] ?? "",
168
186
  onChange: (t) => {
169
- let n = { ...W.filters };
170
- t ? n[e.id] = t : delete n[e.id], K({
171
- ...W,
187
+ let n = { ...K.filters };
188
+ t ? n[e.id] = t : delete n[e.id], Q({
189
+ ...K,
172
190
  filters: n
173
191
  });
174
192
  }
175
193
  }, e.id)),
176
- J && /* @__PURE__ */ E(h, {
194
+ $ && /* @__PURE__ */ D(g, {
177
195
  inline: !0,
178
- children: g(J)
196
+ children: v($)
179
197
  })
180
198
  ]
181
199
  }),
182
- /* @__PURE__ */ E("div", {
200
+ /* @__PURE__ */ D("div", {
183
201
  className: "min-h-0 flex-1 overflow-y-auto",
184
- children: /* @__PURE__ */ E(n, {
185
- workspace: _,
186
- space: b,
187
- layout: H,
188
- config: W
202
+ children: /* @__PURE__ */ D(n, {
203
+ workspace: x,
204
+ space: j,
205
+ layout: W,
206
+ config: K,
207
+ query: J
189
208
  })
190
209
  })
191
210
  ]
192
211
  });
193
212
  }
194
- function j({ workspace: e, property: t, value: n, onChange: r }) {
195
- let i = T("docViews"), { members: a } = d(e), o = t.kind === "select" || t.kind === "multi_select" ? t.options.map((e) => ({
213
+ function M({ workspace: e, property: t, value: n, onChange: r }) {
214
+ let i = E("docViews"), { members: a } = p(e), o = t.kind === "select" || t.kind === "multi_select" ? t.options.map((e) => ({
196
215
  value: e.id ?? "",
197
216
  label: e.name
198
217
  })) : t.kind === "person" ? a.map((e) => ({
@@ -202,7 +221,7 @@ function j({ workspace: e, property: t, value: n, onChange: r }) {
202
221
  value: "true",
203
222
  label: i("checked")
204
223
  }] : null;
205
- return o ? /* @__PURE__ */ E(y, {
224
+ return o ? /* @__PURE__ */ D(b, {
206
225
  value: n,
207
226
  items: [{
208
227
  value: "",
@@ -214,10 +233,10 @@ function j({ workspace: e, property: t, value: n, onChange: r }) {
214
233
  width: "content"
215
234
  }) : null;
216
235
  }
217
- function M({ onSave: e, pending: t }) {
218
- let n = T("docViews");
219
- return /* @__PURE__ */ E(_, {
220
- trigger: /* @__PURE__ */ E(m, {
236
+ function N({ onSave: e, pending: t }) {
237
+ let n = E("docViews");
238
+ return /* @__PURE__ */ D(v, {
239
+ trigger: /* @__PURE__ */ D(h, {
221
240
  size: "sm",
222
241
  children: n("save")
223
242
  }),
@@ -225,25 +244,25 @@ function M({ onSave: e, pending: t }) {
225
244
  className: "w-64",
226
245
  initialFocus: "first-control",
227
246
  "aria-label": n("save"),
228
- children: /* @__PURE__ */ E(N, {
247
+ children: /* @__PURE__ */ D(P, {
229
248
  onSave: e,
230
249
  pending: t
231
250
  })
232
251
  });
233
252
  }
234
- function N({ onSave: e, pending: t }) {
235
- let n = T("docViews"), r = b(), [i, a] = C("");
236
- return /* @__PURE__ */ D("form", {
253
+ function P({ onSave: e, pending: t }) {
254
+ let n = E("docViews"), r = x(), [i, a] = w("");
255
+ return /* @__PURE__ */ O("form", {
237
256
  className: "space-y-2",
238
257
  onSubmit: (t) => {
239
258
  t.preventDefault(), i.trim() && (e(i.trim()), r());
240
259
  },
241
- children: [/* @__PURE__ */ E(g, {
260
+ children: [/* @__PURE__ */ D(_, {
242
261
  value: i,
243
262
  onChange: (e) => a(e.target.value),
244
263
  placeholder: n("viewName"),
245
264
  "aria-label": n("viewName")
246
- }), /* @__PURE__ */ E(m, {
265
+ }), /* @__PURE__ */ D(h, {
247
266
  type: "submit",
248
267
  size: "sm",
249
268
  variant: "primary",
@@ -253,4 +272,4 @@ function N({ onSave: e, pending: t }) {
253
272
  })]
254
273
  });
255
274
  }
256
- export { A as component };
275
+ export { j as component };
@@ -1,17 +1,18 @@
1
1
  import { api as e, unwrap as t } from "../../../api/client.js";
2
2
  import { runnersQuery as n } from "../../../api/queries.js";
3
3
  import { ComputeTargets as r } from "../../../components/ComputeTargets.js";
4
- import { WorkerIcon as i } from "../../../components/icons.js";
5
- import { SettingsPage as a } from "../../../components/settings.js";
6
- import { useConfirm as o } from "../../../lib/confirm.js";
7
- import { copyItem as s } from "../../../lib/menus.js";
8
- import { useTime as c } from "../../../lib/time.js";
9
- import { Route as l } from "./runners.js";
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";
4
+ import { InlineCommand as i } from "../../../components/InlineCommand.js";
5
+ import { WorkerIcon as a } from "../../../components/icons.js";
6
+ import { SettingsPage as o } from "../../../components/settings.js";
7
+ import { useConfirm as s } from "../../../lib/confirm.js";
8
+ import { copyItem as c } from "../../../lib/menus.js";
9
+ import { useTime as l } from "../../../lib/time.js";
10
+ import { Route as u } from "./runners.js";
11
+ import { Callout as d, StatusDot as f, Table as p, menuDivider as m, useOpenMenu as h } from "@parallelworks/ui";
12
+ import { useMemo as g } from "react";
13
+ import { useFormatter as _, useTranslations as v } from "use-intl";
14
+ import { jsx as y, jsxs as b } from "react/jsx-runtime";
15
+ import { useMutation as x, useQueryClient as ee, useSuspenseQuery as S } from "@tanstack/react-query";
15
16
  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
17
  // src/routes/$workspace/settings/runners.tsx?tsr-split=component
17
18
  var N = {
@@ -21,22 +22,22 @@ var N = {
21
22
  bypass: "runnerModeBypass"
22
23
  };
23
24
  function P() {
24
- let { workspace: e } = l.useParams();
25
- return /* @__PURE__ */ v(F, { workspace: e });
25
+ let { workspace: e } = u.useParams();
26
+ return /* @__PURE__ */ y(F, { workspace: e });
26
27
  }
27
- function F({ workspace: l }) {
28
- let { data: P } = S(n(l)), F = _("account"), I = g(), L = _("common"), R = c(), z = x(), B = j(), V = A(), H = m(), U = b({
28
+ function F({ workspace: u }) {
29
+ let { data: P } = S(n(u)), F = v("account"), I = _(), L = v("common"), R = l(), z = ee(), B = j(), V = A(), H = h(), U = x({
29
30
  mutationFn: async (n) => t(await e.DELETE("/api/v1/workspaces/{workspace}/runners/{runnerId}", { params: { path: {
30
- workspace: l,
31
+ workspace: u,
31
32
  runnerId: n
32
33
  } } })),
33
- onSettled: () => z.invalidateQueries({ queryKey: n(l).queryKey })
34
- }), { confirm: W, dialog: G } = o(), K = (e) => W({
34
+ onSettled: () => z.invalidateQueries({ queryKey: n(u).queryKey })
35
+ }), { confirm: W, dialog: G } = s(), K = (e) => W({
35
36
  title: F("revokeRunnerTitle"),
36
37
  description: F("revokeRunnerDescription", { name: e.name }),
37
38
  confirmLabel: F("revoke"),
38
39
  onConfirm: () => U.mutateAsync(e.id)
39
- }), q = h(() => [{
40
+ }), q = g(() => [{
40
41
  key: "name",
41
42
  label: L("name"),
42
43
  headerClassName: "py-2",
@@ -46,7 +47,7 @@ function F({ workspace: l }) {
46
47
  label: F("runnerColSeen"),
47
48
  headerClassName: "py-2 w-40",
48
49
  align: "end"
49
- }], [F, L]), J = h(() => [{
50
+ }], [F, L]), J = g(() => [{
50
51
  value: "name",
51
52
  label: L("name"),
52
53
  compare: (e, t) => e.name.localeCompare(t.name)
@@ -55,7 +56,7 @@ function F({ workspace: l }) {
55
56
  label: F("runnerColSeen"),
56
57
  compare: (e, t) => (t.lastSeenAt ?? "").localeCompare(e.lastSeenAt ?? "")
57
58
  }], [F, L]), Y = M({
58
- storageKey: `tandem-runners-${l}`,
59
+ storageKey: `tandem-runners-${u}`,
59
60
  defaultShowColumnHeaders: !1,
60
61
  columns: q,
61
62
  orderBys: J,
@@ -67,21 +68,18 @@ function F({ workspace: l }) {
67
68
  ...e.harnesses,
68
69
  ...e.labels
69
70
  ].some((e) => e.toLowerCase().includes(X))), Q = P.filter((e) => e.sharingRefused), $ = P.filter((e) => e.sharingUnchecked);
70
- return /* @__PURE__ */ y(a, {
71
+ return /* @__PURE__ */ b(o, {
71
72
  wide: !0,
72
73
  title: F("runners"),
73
- description: F.rich("runnersDescription", { code: (e) => /* @__PURE__ */ v("code", {
74
- className: "rounded bg-muted px-1 py-0.5 text-xs",
75
- children: e
76
- }) }),
77
- toolbar: P.length > 0 && /* @__PURE__ */ v(D, {
74
+ description: F.rich("runnersDescription", { code: (e) => /* @__PURE__ */ y(i, { children: e }) }),
75
+ toolbar: P.length > 0 && /* @__PURE__ */ y(D, {
78
76
  view: Y,
79
77
  search: B,
80
78
  searchLabel: F("runnerSearch"),
81
79
  searchPlaceholder: F("runnerSearch")
82
80
  }),
83
81
  children: [
84
- Q.length > 0 && /* @__PURE__ */ v(u, {
82
+ Q.length > 0 && /* @__PURE__ */ y(d, {
85
83
  tone: "warning",
86
84
  className: "mb-6",
87
85
  children: F("runnerSharingRefused", {
@@ -89,7 +87,7 @@ function F({ workspace: l }) {
89
87
  names: I.list(Q.map((e) => e.name), { type: "conjunction" })
90
88
  })
91
89
  }),
92
- $.length > 0 && /* @__PURE__ */ v(u, {
90
+ $.length > 0 && /* @__PURE__ */ y(d, {
93
91
  tone: "muted",
94
92
  className: "mb-6",
95
93
  children: F("runnerSharingUnchecked", {
@@ -97,9 +95,9 @@ function F({ workspace: l }) {
97
95
  names: I.list($.map((e) => e.name), { type: "conjunction" })
98
96
  })
99
97
  }),
100
- /* @__PURE__ */ v("div", {
98
+ /* @__PURE__ */ y("div", {
101
99
  className: "border-t border-border",
102
- children: /* @__PURE__ */ v(T, {
100
+ children: /* @__PURE__ */ y(T, {
103
101
  view: Y,
104
102
  total: P.length,
105
103
  matches: Z.length,
@@ -109,28 +107,28 @@ function F({ workspace: l }) {
109
107
  nounPlural: F("runnerNounPlural")
110
108
  },
111
109
  empty: {
112
- icon: /* @__PURE__ */ v(i, {}),
110
+ icon: /* @__PURE__ */ y(a, {}),
113
111
  title: F("noRunners")
114
112
  },
115
113
  noMatches: F("runnerNoMatches"),
116
- children: /* @__PURE__ */ y(f, {
114
+ children: /* @__PURE__ */ b(p, {
117
115
  ...k,
118
- children: [/* @__PURE__ */ v(w, { view: Y }), Y.applyOrder(Z).map((e) => /* @__PURE__ */ y(E, {
116
+ children: [/* @__PURE__ */ y(w, { view: Y }), Y.applyOrder(Z).map((e) => /* @__PURE__ */ b(E, {
119
117
  href: null,
120
118
  goTo: V,
121
119
  openMenu: H,
122
120
  items: [
123
- s(F("copyRunnerId"), e.id),
124
- s(L("copyName"), e.name),
125
- p,
121
+ c(F("copyRunnerId"), e.id),
122
+ c(L("copyName"), e.name),
123
+ m,
126
124
  {
127
125
  label: F("revoke"),
128
126
  destructive: !0,
129
127
  onClick: () => K(e)
130
128
  }
131
129
  ],
132
- children: [/* @__PURE__ */ v(O, {
133
- icon: /* @__PURE__ */ v(i, {}),
130
+ children: [/* @__PURE__ */ y(O, {
131
+ icon: /* @__PURE__ */ y(a, {}),
134
132
  iconTile: !0,
135
133
  name: e.name,
136
134
  subtitle: I.list([
@@ -142,12 +140,12 @@ function F({ workspace: l }) {
142
140
  ...e.labels
143
141
  ], { type: "unit" }),
144
142
  href: null
145
- }), Y.isVisible("seen") && /* @__PURE__ */ y(f.Item, {
143
+ }), Y.isVisible("seen") && /* @__PURE__ */ b(p.Item, {
146
144
  className: "py-2.5",
147
- children: [/* @__PURE__ */ v(C, { children: e.lastSeenAt ? F("runnerSeen", { seen: R.relative(e.lastSeenAt) }) : F("runnerNeverConnected") }), e.isolation && /* @__PURE__ */ y("span", {
145
+ children: [/* @__PURE__ */ y(C, { children: e.lastSeenAt ? F("runnerSeen", { seen: R.relative(e.lastSeenAt) }) : F("runnerNeverConnected") }), e.isolation && /* @__PURE__ */ b("span", {
148
146
  className: "flex items-center justify-end gap-1.5 text-xs text-muted-foreground",
149
147
  title: e.isolation.failures.join("\n") || void 0,
150
- children: [/* @__PURE__ */ v(d, {
148
+ children: [/* @__PURE__ */ y(f, {
151
149
  variant: e.isolation.passed ? "success" : "error",
152
150
  size: 8
153
151
  }), e.isolation.passed ? F("runnerIsolated") : F("runnerNotIsolated", { count: e.isolation.failures.length })]
@@ -157,7 +155,7 @@ function F({ workspace: l }) {
157
155
  })
158
156
  })
159
157
  }),
160
- /* @__PURE__ */ v(r, { workspace: l }),
158
+ /* @__PURE__ */ y(r, { workspace: u }),
161
159
  G
162
160
  ]
163
161
  });