@parallelworks/tandem-web 0.150.3 → 0.152.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/_virtual/_virtual_i18n/en/common.js +36 -4
  2. package/_virtual/_virtual_i18n/es/common.js +36 -4
  3. package/_virtual/_virtual_i18n/ja/common.js +36 -4
  4. package/_virtual/_virtual_i18n/ko/common.js +36 -4
  5. package/_virtual/_virtual_i18n/zh/common.js +36 -4
  6. package/api/queries.js +88 -77
  7. package/components/AccessGrants.js +6 -6
  8. package/components/ActivityTimeline.js +4 -4
  9. package/components/AgentWork.js +111 -111
  10. package/components/AreaLink.js +32 -0
  11. package/components/AreaTiles.js +10 -13
  12. package/components/AreaWork.js +25 -1
  13. package/components/BugRotation.js +3 -3
  14. package/components/CodeHostSettings.js +30 -30
  15. package/components/CommandPalette.js +53 -53
  16. package/components/CustomFields.js +116 -116
  17. package/components/DateChip.js +11 -11
  18. package/components/DocButton.js +6 -6
  19. package/components/DocHistory.js +4 -4
  20. package/components/DocLinkPicker.js +8 -8
  21. package/components/DocProperties.js +15 -15
  22. package/components/DocTable.js +15 -15
  23. package/components/DocsTree.js +80 -80
  24. package/components/Editor.js +35 -35
  25. package/components/FavoritesNav.js +53 -53
  26. package/components/GitHub.js +18 -18
  27. package/components/Graph.js +15 -15
  28. package/components/HostActions.js +21 -21
  29. package/components/HostPanel.js +6 -6
  30. package/components/HoverCards.js +38 -38
  31. package/components/IssueBoard.js +4 -4
  32. package/components/IssueCode.js +14 -14
  33. package/components/IssueEvent.js +3 -3
  34. package/components/IssueFilters.js +71 -71
  35. package/components/IssueListBlock.js +32 -32
  36. package/components/IssueRow.js +21 -21
  37. package/components/IssueTemplates.js +118 -118
  38. package/components/IssueTypes.js +40 -40
  39. package/components/NewIssueDialog.js +76 -76
  40. package/components/NewProjectDialog.js +145 -145
  41. package/components/PersonActivity.js +4 -4
  42. package/components/SharedViewer.js +5 -5
  43. package/components/SlashMenu.js +29 -29
  44. package/components/TeamRepositories.js +51 -51
  45. package/components/TeamWorkflow.js +6 -6
  46. package/components/UnlinkedMentions.js +20 -20
  47. package/components/Updates.js +3 -3
  48. package/components/Widgets.js +20 -20
  49. package/components/columns.js +17 -17
  50. package/components/editorPlugins.js +80 -80
  51. package/components/mathDiagrams.js +17 -17
  52. package/lib/boardMove.js +5 -5
  53. package/lib/issueList.js +58 -58
  54. package/lib/issueMenu.js +27 -27
  55. package/lib/knowledge.js +106 -106
  56. package/lib/views.js +9 -9
  57. package/package.json +1 -1
  58. package/pages/area.js +291 -0
  59. package/pages/areas.js +258 -287
  60. package/pages/decisions.js +21 -21
  61. package/pages/issues.js +52 -52
  62. package/pages/projects.js +125 -125
  63. package/pages/triage.js +12 -12
  64. package/routeTree.gen.js +186 -180
  65. package/routes/_workspace/agents/_slug2.js +11 -11
  66. package/routes/_workspace/agents/index2.js +10 -10
  67. package/routes/_workspace/areas/_area.js +7 -8
  68. package/routes/_workspace/areas/_area2.js +3 -290
  69. package/routes/_workspace/areas/_area3.js +7 -8
  70. package/routes/_workspace/docs/_doc2.js +230 -230
  71. package/routes/_workspace/docs/space2._space.js +27 -27
  72. package/routes/_workspace/issues/_identifier2.js +222 -224
  73. package/routes/_workspace/knowledge/_term2.js +43 -43
  74. package/routes/_workspace/knowledge/index.js +6 -6
  75. package/routes/_workspace/knowledge/index2.js +15 -15
  76. package/routes/_workspace/measures3.js +70 -72
  77. package/routes/_workspace/notifications2.js +150 -150
  78. package/routes/_workspace/people/_username2.js +10 -10
  79. package/routes/_workspace/projects/_projectId3.js +276 -276
  80. package/routes/_workspace/settings/audit-log3.js +136 -138
  81. package/routes/_workspace/settings/fields2.js +11 -11
  82. package/routes/_workspace/settings/github2.js +6 -6
  83. package/routes/_workspace/settings/groups2.js +26 -26
  84. package/routes/_workspace/settings/import2.js +414 -151
  85. package/routes/_workspace/settings/import3.js +7 -3
  86. package/routes/_workspace/settings/index2.js +6 -6
  87. package/routes/_workspace/settings/labels2.js +21 -21
  88. package/routes/_workspace/settings/members2.js +27 -27
  89. package/routes/_workspace/settings/notifications2.js +8 -8
  90. package/routes/_workspace/settings/parallelworks2.js +32 -32
  91. package/routes/_workspace/settings/roles2.js +24 -24
  92. package/routes/_workspace/settings/runners2.js +15 -15
  93. package/routes/_workspace/settings/sessions2.js +17 -17
  94. package/routes/_workspace/settings/slack2.js +7 -7
  95. package/routes/_workspace/settings/sso2.js +31 -31
  96. package/routes/_workspace/settings/teams2.js +25 -25
  97. package/routes/_workspace/settings/tokens2.js +12 -12
  98. package/routes/_workspace/settings/webhooks2.js +13 -13
  99. package/routes/_workspace/teams/_key/areas/_area.js +8 -0
  100. package/routes/_workspace/teams/_key/areas/_area2.js +4 -0
  101. package/routes/_workspace/teams/_key/areas/_area3.js +9 -0
  102. package/routes/_workspace/teams/_key/areas/index.js +6 -0
  103. package/routes/_workspace/teams/_key/areas/index2.js +4 -0
  104. package/routes/_workspace/teams/_key/{areas3.js → areas/index3.js} +2 -2
  105. package/routes/_workspace/teams/_key/cycles/_number2.js +27 -27
  106. package/routes/_workspace/teams/_key/cycles/index2.js +24 -24
  107. package/routes/_workspace/teams/_key/settings2.js +29 -29
  108. package/routes/_workspace2.js +368 -368
  109. package/routes/_workspace/teams/_key/areas.js +0 -6
  110. package/routes/_workspace/teams/_key/areas2.js +0 -4
@@ -1,4 +1,8 @@
1
- import { linearImportQuery as e, teamsQuery as t } from "../../../api/queries.js";
1
+ import { jiraImportQuery as e, linearImportQuery as t, teamsQuery as n } from "../../../api/queries.js";
2
2
  // src/routes/$workspace/settings/import.tsx?tsr-split=loader
3
- var n = ({ context: { queryClient: n }, params: { workspace: r } }) => Promise.all([n.ensureQueryData(e(r)), n.ensureQueryData(t(r))]);
4
- export { n as loader };
3
+ var r = ({ context: { queryClient: r }, params: { workspace: i } }) => Promise.all([
4
+ r.ensureQueryData(t(i)),
5
+ r.ensureQueryData(e(i)),
6
+ r.ensureQueryData(n(i))
7
+ ]);
8
+ export { r as loader };
@@ -1,8 +1,8 @@
1
1
  import { api as e, unwrap as t } from "../../../api/client.js";
2
2
  import { meQuery as n, workspaceQuery as r } from "../../../api/queries.js";
3
- import { Route as i } from "./index.js";
4
- import { useCan as a } from "../../../lib/roles.js";
5
- import { AdminOnly as o, SettingsPage as s, useFormError as c } from "../../../components/settings.js";
3
+ import { useCan as i } from "../../../lib/roles.js";
4
+ import { AdminOnly as a, SettingsPage as o, useFormError as s } from "../../../components/settings.js";
5
+ import { Route as c } from "./index.js";
6
6
  import { IconUpload as l } from "../../../components/IconUpload.js";
7
7
  import { Button as u, Input as d, SettingRow as f, SettingsCard as p } from "@parallelworks/ui";
8
8
  import { useState as m } from "react";
@@ -11,7 +11,7 @@ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
11
11
  import { useMutation as v, useQueryClient as y, useSuspenseQuery as b } from "@tanstack/react-query";
12
12
  // src/routes/$workspace/settings/index.tsx?tsr-split=component
13
13
  function x() {
14
- let { workspace: x } = i.useParams(), { data: S } = b(r(x)), C = a(x, "manage_workspace"), w = y(), [T, E] = m(S.name), D = h("settings"), O = h("settingsNav"), k = h("common"), A = c(), j = v({
14
+ let { workspace: x } = c.useParams(), { data: S } = b(r(x)), C = i(x, "manage_workspace"), w = y(), [T, E] = m(S.name), D = h("settings"), O = h("settingsNav"), k = h("common"), A = s(), j = v({
15
15
  mutationFn: async (n) => t(await e.PATCH("/api/v1/workspaces/{workspace}", {
16
16
  params: { path: { workspace: x } },
17
17
  body: n
@@ -22,10 +22,10 @@ function x() {
22
22
  w.invalidateQueries({ queryKey: r(x).queryKey }), w.invalidateQueries({ queryKey: n.queryKey });
23
23
  }
24
24
  }), M = j.variables?.icon === void 0 ? null : A.error, N = j.variables?.name === void 0 ? null : A.error;
25
- return /* @__PURE__ */ _(s, {
25
+ return /* @__PURE__ */ _(o, {
26
26
  title: O("general"),
27
27
  description: D("generalDescription"),
28
- children: [/* @__PURE__ */ g(o, { workspace: x }), /* @__PURE__ */ _(p, { children: [/* @__PURE__ */ g(f, {
28
+ children: [/* @__PURE__ */ g(a, { workspace: x }), /* @__PURE__ */ _(p, { children: [/* @__PURE__ */ g(f, {
29
29
  label: D("workspaceIcon"),
30
30
  helpText: D("workspaceIconDescription"),
31
31
  error: M,
@@ -1,12 +1,12 @@
1
1
  import { api as e, unwrap as t } from "../../../api/client.js";
2
2
  import { useNavigate as n } from "../../../lib/router.js";
3
3
  import { labelsQuery as r } from "../../../api/queries.js";
4
- import { useConfirm as i } from "../../../lib/confirm.js";
4
+ import { copyItem as i } from "../../../lib/menus.js";
5
5
  import { TagIcon as a } from "../../../components/icons.js";
6
- import { Route as o } from "./labels.js";
7
- import { copyItem as s } from "../../../lib/menus.js";
8
- import { useCan as c } from "../../../lib/roles.js";
9
- import { AdminOnly as l, SettingsPage as u, useFormError as d } from "../../../components/settings.js";
6
+ import { useCan as o } from "../../../lib/roles.js";
7
+ import { useConfirm as s } from "../../../lib/confirm.js";
8
+ import { AdminOnly as c, SettingsPage as l, useFormError as u } from "../../../components/settings.js";
9
+ import { Route as d } from "./labels.js";
10
10
  import { Button as f, ColorInput as p, ErrorText as m, Input as h, Modal as g, ModalTitle as _, PageHeaderAddButton as v, Table as y, menuDivider as b, useOpenMenu as x } from "@parallelworks/ui";
11
11
  import { useMemo as S, useState as C } from "react";
12
12
  import { useTranslations as w } from "use-intl";
@@ -15,14 +15,14 @@ import { useMutation as D, useQueryClient as O, useSuspenseQuery as k } from "@t
15
15
  import { ListCellText as A, ListColumns as j, ListPage as M, ListRow as N, ListToolbar as P, NameCell as F, listTableProps as I, useListNavigate as L, useListSearch as R, useListView as z } from "@parallelworks/ui/list";
16
16
  // src/routes/$workspace/settings/labels.tsx?tsr-split=component
17
17
  function B() {
18
- let { workspace: e } = o.useParams();
18
+ let { workspace: e } = d.useParams();
19
19
  return /* @__PURE__ */ T(V, {
20
20
  workspace: e,
21
- isAdmin: c(e, "manage_labels")
21
+ isAdmin: o(e, "manage_labels")
22
22
  });
23
23
  }
24
- function V({ workspace: o, isAdmin: c }) {
25
- let { data: d } = k(r(o)), f = n(), p = w("settings"), m = w("common"), h = R(), g = L(), _ = x(), [B, V] = C(null), U = O(), { confirm: W, dialog: G } = i(), K = D({
24
+ function V({ workspace: o, isAdmin: u }) {
25
+ let { data: d } = k(r(o)), f = n(), p = w("settings"), m = w("common"), h = R(), g = L(), _ = x(), [B, V] = C(null), U = O(), { confirm: W, dialog: G } = s(), K = D({
26
26
  mutationFn: async (n) => t(await e.DELETE("/api/v1/workspaces/{workspace}/labels/{labelId}", { params: { path: {
27
27
  workspace: o,
28
28
  labelId: n.id
@@ -61,11 +61,11 @@ function V({ workspace: o, isAdmin: c }) {
61
61
  defaultOrderBy: "name",
62
62
  facets: []
63
63
  }), Z = h.filter.trim().toLowerCase(), Q = d.filter((e) => !Z || e.name.toLowerCase().includes(Z)), $ = d.find((e) => e.id === B);
64
- return /* @__PURE__ */ E(u, {
64
+ return /* @__PURE__ */ E(l, {
65
65
  wide: !0,
66
66
  title: m("labels"),
67
67
  description: p("labelsDescription"),
68
- actions: c && /* @__PURE__ */ T(v, {
68
+ actions: u && /* @__PURE__ */ T(v, {
69
69
  label: p("newLabel"),
70
70
  word: "create",
71
71
  onClick: () => V("new")
@@ -79,7 +79,7 @@ function V({ workspace: o, isAdmin: c }) {
79
79
  children: [
80
80
  /* @__PURE__ */ T("div", {
81
81
  className: "px-4",
82
- children: /* @__PURE__ */ T(l, {
82
+ children: /* @__PURE__ */ T(c, {
83
83
  workspace: o,
84
84
  permission: "manage_labels"
85
85
  })
@@ -104,7 +104,7 @@ function V({ workspace: o, isAdmin: c }) {
104
104
  ...I,
105
105
  children: [/* @__PURE__ */ T(j, { view: X }), X.applyOrder(Q).map((e) => /* @__PURE__ */ E(N, {
106
106
  href: null,
107
- onActivate: c ? () => V(e.id) : void 0,
107
+ onActivate: u ? () => V(e.id) : void 0,
108
108
  goTo: g,
109
109
  openMenu: _,
110
110
  items: [
@@ -116,9 +116,9 @@ function V({ workspace: o, isAdmin: c }) {
116
116
  search: { label: e.name }
117
117
  })
118
118
  },
119
- s(m("copyName"), e.name),
120
- s(p("copyColor"), e.color),
121
- ...c ? [
119
+ i(m("copyName"), e.name),
120
+ i(p("copyColor"), e.color),
121
+ ...u ? [
122
122
  b,
123
123
  {
124
124
  label: p("editLabel"),
@@ -160,20 +160,20 @@ function V({ workspace: o, isAdmin: c }) {
160
160
  });
161
161
  }
162
162
  function H({ workspace: n, label: i, onDone: a }) {
163
- let o = w("settings"), s = w("common"), c = O(), l = d(), [u, v] = C(i?.name ?? ""), [y, b] = C(i?.color ?? "#d73a4a"), x = D({
163
+ let o = w("settings"), s = w("common"), c = O(), l = u(), [d, v] = C(i?.name ?? ""), [y, b] = C(i?.color ?? "#d73a4a"), x = D({
164
164
  mutationFn: async () => t(i ? await e.PATCH("/api/v1/workspaces/{workspace}/labels/{labelId}", {
165
165
  params: { path: {
166
166
  workspace: n,
167
167
  labelId: i.id
168
168
  } },
169
169
  body: {
170
- ...u !== i.name && { name: u },
170
+ ...d !== i.name && { name: d },
171
171
  ...y !== i.color && { color: y }
172
172
  }
173
173
  }) : await e.POST("/api/v1/workspaces/{workspace}/labels", {
174
174
  params: { path: { workspace: n } },
175
175
  body: {
176
- name: u,
176
+ name: d,
177
177
  color: y
178
178
  }
179
179
  })),
@@ -211,7 +211,7 @@ function H({ workspace: n, label: i, onDone: a }) {
211
211
  required: !0,
212
212
  autoFocus: !0,
213
213
  placeholder: o("labelName"),
214
- value: u,
214
+ value: d,
215
215
  onChange: (e) => v(e.target.value),
216
216
  "aria-label": o("labelName"),
217
217
  className: "min-w-0 flex-1"
@@ -231,7 +231,7 @@ function H({ workspace: n, label: i, onDone: a }) {
231
231
  }), /* @__PURE__ */ T(f, {
232
232
  type: "submit",
233
233
  variant: "primary",
234
- disabled: !u.trim(),
234
+ disabled: !d.trim(),
235
235
  loading: x.isPending,
236
236
  children: i ? s("save") : o("createLabel")
237
237
  })]
@@ -1,13 +1,13 @@
1
1
  import { api as e, unwrap as t } from "../../../api/client.js";
2
2
  import { useNavigate as n } from "../../../lib/router.js";
3
3
  import { meQuery as r, membersQuery as i, workspaceAccessQuery as a, workspaceQuery as o } from "../../../api/queries.js";
4
- import { useConfirm as s } from "../../../lib/confirm.js";
4
+ import { copyItem as s } from "../../../lib/menus.js";
5
5
  import { ShieldIcon as c, UserIcon as l, UsersIcon as u } from "../../../components/icons.js";
6
- import { Route as d } from "./members.js";
7
- import { copyItem as f } from "../../../lib/menus.js";
8
- import { useCan as p, useRoleOptions as m } from "../../../lib/roles.js";
9
- import { AdminOnly as h, SettingsPage as g, useFormError as _ } from "../../../components/settings.js";
10
- import { PersonHoverCard as v } from "../../../components/PersonHoverCard.js";
6
+ import { useCan as d, useRoleOptions as f } from "../../../lib/roles.js";
7
+ import { useConfirm as p } from "../../../lib/confirm.js";
8
+ import { AdminOnly as m, SettingsPage as h, useFormError as g } from "../../../components/settings.js";
9
+ import { PersonHoverCard as _ } from "../../../components/PersonHoverCard.js";
10
+ import { Route as v } from "./members.js";
11
11
  import { AccessGrants as y } from "../../../components/AccessGrants.js";
12
12
  import { Avatar as b, Button as x, Card as S, ErrorText as C, Input as ee, Modal as te, ModalTitle as ne, PageHeaderAddButton as re, SearchInput as w, Select as ie, Table as T, menuDivider as E, useOpenMenu as D } from "@parallelworks/ui";
13
13
  import { useMemo as O, useState as k } from "react";
@@ -17,7 +17,7 @@ import { useMutation as P, useQueryClient as F, useSuspenseQuery as I } from "@t
17
17
  import { ListCellText as L, ListColumns as R, ListPage as z, ListRow as ae, ListToolbar as oe, NameCell as se, listTableProps as ce, useListNavigate as le, useListSearch as ue, useListView as de } from "@parallelworks/ui/list";
18
18
  // src/routes/$workspace/settings/members.tsx?tsr-split=component
19
19
  function B() {
20
- let { workspace: e } = d.useParams(), { data: t } = I(r), n = p(e, "manage_members"), i = t?.user.username ?? "";
20
+ let { workspace: e } = v.useParams(), { data: t } = I(r), n = d(e, "manage_members"), i = t?.user.username ?? "";
21
21
  return t?.mode === "platform" ? /* @__PURE__ */ M(H, {
22
22
  workspace: e,
23
23
  isAdmin: n,
@@ -29,7 +29,7 @@ function B() {
29
29
  });
30
30
  }
31
31
  function V({ workspace: a, isAdmin: o, myUsername: c }) {
32
- let { data: u } = I(i(a)), d = F(), p = n(), [y, S] = k(""), [w, A] = k("member"), [B, V] = k(!1), H = j("settings"), U = j("common"), W = m(a), G = _(), K = () => {
32
+ let { data: u } = I(i(a)), d = F(), v = n(), [y, S] = k(""), [w, A] = k("member"), [B, V] = k(!1), H = j("settings"), U = j("common"), W = f(a), G = g(), K = () => {
33
33
  d.invalidateQueries({ queryKey: i(a).queryKey }), d.invalidateQueries({ queryKey: r.queryKey });
34
34
  }, q = P({
35
35
  mutationFn: async () => t(await e.POST("/api/v1/workspaces/{workspace}/members", {
@@ -62,7 +62,7 @@ function V({ workspace: a, isAdmin: o, myUsername: c }) {
62
62
  } } })),
63
63
  onMutate: G.clear,
64
64
  onSuccess: K
65
- }), { confirm: fe, dialog: pe } = s(), me = (e) => fe(e.user.username === c ? {
65
+ }), { confirm: fe, dialog: pe } = p(), me = (e) => fe(e.user.username === c ? {
66
66
  title: H("leaveTitle"),
67
67
  description: H("leaveDescription"),
68
68
  confirmLabel: H("leave"),
@@ -111,7 +111,7 @@ function V({ workspace: a, isAdmin: o, myUsername: c }) {
111
111
  e.user.username,
112
112
  e.user.email
113
113
  ].some((e) => e.toLowerCase().includes(Q)));
114
- return /* @__PURE__ */ N(g, {
114
+ return /* @__PURE__ */ N(h, {
115
115
  wide: !0,
116
116
  title: H("members"),
117
117
  description: H("membersDescription"),
@@ -129,7 +129,7 @@ function V({ workspace: a, isAdmin: o, myUsername: c }) {
129
129
  children: [
130
130
  /* @__PURE__ */ M("div", {
131
131
  className: "px-4",
132
- children: /* @__PURE__ */ M(h, {
132
+ children: /* @__PURE__ */ M(m, {
133
133
  workspace: a,
134
134
  permission: "manage_members"
135
135
  })
@@ -170,7 +170,7 @@ function V({ workspace: a, isAdmin: o, myUsername: c }) {
170
170
  }] : [],
171
171
  {
172
172
  label: H("viewIssues"),
173
- onClick: () => p({
173
+ onClick: () => v({
174
174
  to: "/$workspace/people/$username",
175
175
  params: {
176
176
  workspace: a,
@@ -178,7 +178,7 @@ function V({ workspace: a, isAdmin: o, myUsername: c }) {
178
178
  }
179
179
  })
180
180
  },
181
- f(U("copyEmail"), e.user.email),
181
+ s(U("copyEmail"), e.user.email),
182
182
  ...o || e.user.username === c ? [E, {
183
183
  label: e.user.username === c ? H("leaveWorkspace") : H("removeFromWorkspace"),
184
184
  destructive: !0,
@@ -187,7 +187,7 @@ function V({ workspace: a, isAdmin: o, myUsername: c }) {
187
187
  ],
188
188
  children: [
189
189
  /* @__PURE__ */ M(se, {
190
- icon: /* @__PURE__ */ M(v, {
190
+ icon: /* @__PURE__ */ M(_, {
191
191
  workspace: a,
192
192
  handle: e.user.username,
193
193
  children: /* @__PURE__ */ M(b, {
@@ -276,7 +276,7 @@ function V({ workspace: a, isAdmin: o, myUsername: c }) {
276
276
  });
277
277
  }
278
278
  function H({ workspace: n, isAdmin: r, myUsername: s }) {
279
- let { data: l } = I(a(n)), { data: d } = I(i(n)), { data: f } = I(o(n)), p = F(), m = j("settings"), h = j("settingsNav"), [_, v] = k(!1), b = P({
279
+ let { data: l } = I(a(n)), { data: d } = I(i(n)), { data: f } = I(o(n)), p = F(), m = j("settings"), g = j("settingsNav"), [_, v] = k(!1), b = P({
280
280
  mutationFn: async (r) => t(await e.PUT("/api/v1/workspaces/{workspace}/access", {
281
281
  params: { path: { workspace: n } },
282
282
  body: {
@@ -295,8 +295,8 @@ function H({ workspace: n, isAdmin: r, myUsername: s }) {
295
295
  p.invalidateQueries({ queryKey: a(n).queryKey }), p.invalidateQueries({ queryKey: i(n).queryKey });
296
296
  }
297
297
  }), x = (e) => d.filter((t) => t.via?.some((t) => t.kind === e)), S = x("organizationAdmin");
298
- return /* @__PURE__ */ N(g, {
299
- title: h("access"),
298
+ return /* @__PURE__ */ N(h, {
299
+ title: g("access"),
300
300
  description: m("workspaceAccessDescription"),
301
301
  children: [/* @__PURE__ */ M(y, {
302
302
  workspace: n,
@@ -337,10 +337,10 @@ function H({ workspace: n, isAdmin: r, myUsername: s }) {
337
337
  });
338
338
  }
339
339
  function U({ workspace: e, members: t, myUsername: r }) {
340
- let i = j("settings"), a = j("common"), o = A(), s = m(e), c = D(), l = n(), [u, d] = k(""), p = (e) => e.kind === "organizationAdmin" ? i("viaOrganizationAdmin") : e.kind === "everyone" ? i("viaEveryone") : e.kind === "group" ? e.principal?.name ?? "" : i("viaGrant"), h = u.trim().toLowerCase(), g = (e) => {
340
+ let i = j("settings"), a = j("common"), o = A(), c = f(e), l = D(), u = n(), [d, p] = k(""), m = (e) => e.kind === "organizationAdmin" ? i("viaOrganizationAdmin") : e.kind === "everyone" ? i("viaEveryone") : e.kind === "group" ? e.principal?.name ?? "" : i("viaGrant"), h = d.trim().toLowerCase(), g = (e) => {
341
341
  let t = e.via ?? [], n = t.filter((e) => e.kind !== "everyone");
342
342
  return n.length > 0 ? n : t;
343
- }, _ = (e) => +!!g(e).every((e) => e.kind === "organizationAdmin"), y = t.toSorted((e, t) => _(e) - _(t)).filter((e) => !h || [
343
+ }, v = (e) => +!!g(e).every((e) => e.kind === "organizationAdmin"), y = t.toSorted((e, t) => v(e) - v(t)).filter((e) => !h || [
344
344
  e.user.name,
345
345
  e.user.username,
346
346
  e.user.email
@@ -348,8 +348,8 @@ function U({ workspace: e, members: t, myUsername: r }) {
348
348
  return /* @__PURE__ */ N("div", {
349
349
  className: "mt-4",
350
350
  children: [/* @__PURE__ */ M(w, {
351
- value: u,
352
- onValueChange: d,
351
+ value: d,
352
+ onValueChange: p,
353
353
  label: i("searchPeople")
354
354
  }), /* @__PURE__ */ N(S, {
355
355
  size: "fill",
@@ -359,19 +359,19 @@ function U({ workspace: e, members: t, myUsername: r }) {
359
359
  render: /* @__PURE__ */ M("ul", {}),
360
360
  className: "mt-2",
361
361
  children: [y.map((t) => /* @__PURE__ */ N("li", {
362
- onContextMenu: (n) => c(n, [{
362
+ onContextMenu: (n) => l(n, [{
363
363
  label: i("viewIssues"),
364
- onClick: () => l({
364
+ onClick: () => u({
365
365
  to: "/$workspace/people/$username",
366
366
  params: {
367
367
  workspace: e,
368
368
  username: t.user.username
369
369
  }
370
370
  })
371
- }, f(a("copyEmail"), t.user.email)]),
371
+ }, s(a("copyEmail"), t.user.email)]),
372
372
  className: "flex items-center gap-3 px-3 py-2",
373
373
  children: [
374
- /* @__PURE__ */ M(v, {
374
+ /* @__PURE__ */ M(_, {
375
375
  workspace: e,
376
376
  handle: t.user.username,
377
377
  children: /* @__PURE__ */ M(b, {
@@ -393,13 +393,13 @@ function U({ workspace: e, members: t, myUsername: r }) {
393
393
  children: [
394
394
  t.user.username,
395
395
  " · ",
396
- o.list(g(t).map(p), { type: "conjunction" })
396
+ o.list(g(t).map(m), { type: "conjunction" })
397
397
  ]
398
398
  })]
399
399
  }),
400
400
  /* @__PURE__ */ M("span", {
401
401
  className: "text-sm text-muted-foreground",
402
- children: s.find((e) => e.value === t.role)?.label
402
+ children: c.find((e) => e.value === t.role)?.label
403
403
  })
404
404
  ]
405
405
  }, t.user.username)), y.length === 0 && /* @__PURE__ */ M("li", {
@@ -2,8 +2,8 @@ import { api as e, unwrap as t } from "../../../api/client.js";
2
2
  import { Link as n, useNavigate as r } from "../../../lib/router.js";
3
3
  import { notificationSettingsQuery as i, pushSettingsQuery as a } from "../../../api/queries.js";
4
4
  import { ChevronRightIcon as o } from "../../../components/icons.js";
5
- import { Route as s } from "./notifications.js";
6
- import { SettingsPage as c, useFormError as l } from "../../../components/settings.js";
5
+ import { SettingsPage as s, useFormError as c } from "../../../components/settings.js";
6
+ import { Route as l } from "./notifications.js";
7
7
  import { usePush as u } from "../../../lib/notifications.js";
8
8
  import { SettingRow as d, SettingsCard as f, Switch as p } from "@parallelworks/ui";
9
9
  import { useTranslations as m } from "use-intl";
@@ -11,13 +11,13 @@ import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
11
11
  import { useMutation as v, useQuery as y, useQueryClient as b, useSuspenseQuery as x } from "@tanstack/react-query";
12
12
  // src/routes/$workspace/settings/notifications.tsx?tsr-split=component
13
13
  function S() {
14
- let { channel: e } = s.useSearch(), { data: t } = y(a), { data: n } = x(i);
14
+ let { channel: e } = l.useSearch(), { data: t } = y(a), { data: n } = x(i);
15
15
  return e && (e !== "push" || t?.enabled) && n.channels.some((t) => t.channel === e) ? /* @__PURE__ */ g(w, { channel: e }) : /* @__PURE__ */ g(C, {});
16
16
  }
17
17
  function C() {
18
- let { workspace: e } = s.useParams(), t = m("notificationSettings"), l = m("settingsNav"), p = r(), { data: v } = x(i), { data: b } = y(a), S = u(), C = v.channels.filter((e) => e.channel !== "push" || b?.enabled);
19
- return /* @__PURE__ */ g(c, {
20
- title: l("notifications"),
18
+ let { workspace: e } = l.useParams(), t = m("notificationSettings"), c = m("settingsNav"), p = r(), { data: v } = x(i), { data: b } = y(a), S = u(), C = v.channels.filter((e) => e.channel !== "push" || b?.enabled);
19
+ return /* @__PURE__ */ g(s, {
20
+ title: c("notifications"),
21
21
  description: t("description"),
22
22
  children: /* @__PURE__ */ _(f, { children: [C.map((r) => {
23
23
  let i = r.events.filter((e) => e.enabled).length, a = t("allOn");
@@ -56,7 +56,7 @@ function w({ channel: e }) {
56
56
  return /* @__PURE__ */ g(T, { channel: e });
57
57
  }
58
58
  function T({ channel: n }) {
59
- let r = m("notificationSettings"), a = b(), o = l(), { data: s } = x(i), u = s.channels.find((e) => e.channel === n), h = v({
59
+ let r = m("notificationSettings"), a = b(), o = c(), { data: l } = x(i), u = l.channels.find((e) => e.channel === n), h = v({
60
60
  mutationFn: async (r) => t(await e.PATCH("/api/v1/me/notification-settings", { body: {
61
61
  channel: n,
62
62
  ...r
@@ -65,7 +65,7 @@ function T({ channel: n }) {
65
65
  onSuccess: (e) => a.setQueryData(i.queryKey, e),
66
66
  onError: o.set
67
67
  }), y = r(`channel.${n}`);
68
- return /* @__PURE__ */ _(c, {
68
+ return /* @__PURE__ */ _(s, {
69
69
  title: y,
70
70
  description: r(`channelDescription.${n}`),
71
71
  children: [/* @__PURE__ */ _(f, { children: [/* @__PURE__ */ g(d, {
@@ -1,10 +1,10 @@
1
1
  import { api as e, unwrap as t } from "../../../api/client.js";
2
2
  import { meQuery as n, parallelWorksBucketsQuery as r, parallelWorksQuery as i } from "../../../api/queries.js";
3
- import { useConfirm as a } from "../../../lib/confirm.js";
4
- import { BucketIcon as o } from "../../../components/icons.js";
5
- import { Route as s } from "./parallelworks.js";
6
- import { useCan as c } from "../../../lib/roles.js";
7
- import { AdminOnly as l, SettingsPage as u, useFormError as d } from "../../../components/settings.js";
3
+ import { BucketIcon as a } from "../../../components/icons.js";
4
+ import { useCan as o } from "../../../lib/roles.js";
5
+ import { useConfirm as s } from "../../../lib/confirm.js";
6
+ import { AdminOnly as c, SettingsPage as l, useFormError as u } from "../../../components/settings.js";
7
+ import { Route as d } from "./parallelworks.js";
8
8
  import { Button as f, Callout as p, Input as m, Select as h, SettingRow as g, SettingsCard as _ } from "@parallelworks/ui";
9
9
  import { useState as v } from "react";
10
10
  import { useFormatter as y, useTranslations as b } from "use-intl";
@@ -12,11 +12,11 @@ import { jsx as x, jsxs as S } from "react/jsx-runtime";
12
12
  import { useMutation as C, useQuery as w, useQueryClient as T, useSuspenseQuery as E } from "@tanstack/react-query";
13
13
  // src/routes/$workspace/settings/parallelworks.tsx?tsr-split=component
14
14
  function D() {
15
- let { workspace: e } = s.useParams(), t = b("parallelWorks"), n = c(e, "manage_workspace");
16
- return /* @__PURE__ */ S(u, {
15
+ let { workspace: e } = d.useParams(), t = b("parallelWorks"), n = o(e, "manage_workspace");
16
+ return /* @__PURE__ */ S(l, {
17
17
  title: t("title"),
18
18
  description: t("description"),
19
- children: [/* @__PURE__ */ x(l, { workspace: e }), n && /* @__PURE__ */ x(O, { workspace: e })]
19
+ children: [/* @__PURE__ */ x(c, { workspace: e }), n && /* @__PURE__ */ x(O, { workspace: e })]
20
20
  });
21
21
  }
22
22
  function O({ workspace: e }) {
@@ -36,11 +36,11 @@ function O({ workspace: e }) {
36
36
  });
37
37
  }
38
38
  function k({ workspace: r, conn: a }) {
39
- let o = b("parallelWorks"), s = T(), c = d(), { data: l } = w(n), [u, h] = v(a.url ?? (l?.mode === "platform" ? window.location.origin : "https://cloud.parallel.works")), [y, E] = v(""), D = C({
39
+ let o = b("parallelWorks"), s = T(), c = u(), { data: l } = w(n), [d, h] = v(a.url ?? (l?.mode === "platform" ? window.location.origin : "https://cloud.parallel.works")), [y, E] = v(""), D = C({
40
40
  mutationFn: async () => t(await e.PUT("/api/v1/workspaces/{workspace}/parallelworks", {
41
41
  params: { path: { workspace: r } },
42
42
  body: {
43
- url: u.trim(),
43
+ url: d.trim(),
44
44
  apiKey: y.trim()
45
45
  }
46
46
  })),
@@ -77,7 +77,7 @@ function k({ workspace: r, conn: a }) {
77
77
  id: "pw-url",
78
78
  type: "url",
79
79
  required: !0,
80
- value: u,
80
+ value: d,
81
81
  onChange: (e) => h(e.target.value),
82
82
  mono: !0
83
83
  })
@@ -101,26 +101,26 @@ function k({ workspace: r, conn: a }) {
101
101
  });
102
102
  }
103
103
  function A({ workspace: n, conn: r }) {
104
- let o = b("parallelWorks"), s = y(), c = T(), { confirm: l, dialog: u } = a(), d = C({
104
+ let a = b("parallelWorks"), o = y(), c = T(), { confirm: l, dialog: u } = s(), d = C({
105
105
  mutationFn: async () => t(await e.DELETE("/api/v1/workspaces/{workspace}/parallelworks", { params: { path: { workspace: n } } })),
106
106
  onSettled: () => c.invalidateQueries({ queryKey: i(n).queryKey })
107
107
  });
108
108
  return /* @__PURE__ */ S(_, {
109
- title: o("account"),
109
+ title: a("account"),
110
110
  action: /* @__PURE__ */ x(f, {
111
111
  variant: "danger",
112
112
  onClick: () => l({
113
- title: o("disconnectTitle"),
114
- description: o("disconnectDescription"),
115
- confirmLabel: o("disconnect"),
113
+ title: a("disconnectTitle"),
114
+ description: a("disconnectDescription"),
115
+ confirmLabel: a("disconnect"),
116
116
  onConfirm: () => d.mutateAsync()
117
117
  }),
118
- children: o("disconnect")
118
+ children: a("disconnect")
119
119
  }),
120
120
  actionAlign: "end",
121
121
  children: [
122
122
  /* @__PURE__ */ x(g, {
123
- label: o("platform"),
123
+ label: a("platform"),
124
124
  children: /* @__PURE__ */ x("a", {
125
125
  href: r.url,
126
126
  className: "font-mono text-sm text-link hover:underline",
@@ -128,14 +128,14 @@ function A({ workspace: n, conn: r }) {
128
128
  })
129
129
  }),
130
130
  /* @__PURE__ */ x(g, {
131
- label: o("signedInAs"),
132
- helpText: r.connectedAt && o("connectedBy", { date: s.dateTime(new Date(r.connectedAt), {
131
+ label: a("signedInAs"),
132
+ helpText: r.connectedAt && a("connectedBy", { date: o.dateTime(new Date(r.connectedAt), {
133
133
  dateStyle: "medium",
134
134
  timeStyle: "short"
135
135
  }) }),
136
136
  children: /* @__PURE__ */ x("span", {
137
137
  className: "text-sm font-medium",
138
- children: o("user", {
138
+ children: a("user", {
139
139
  user: r.username ?? "",
140
140
  organization: r.organization ?? ""
141
141
  })
@@ -146,8 +146,8 @@ function A({ workspace: n, conn: r }) {
146
146
  });
147
147
  }
148
148
  var j = (e) => `${e.user}/${e.name}`;
149
- function M({ workspace: n, conn: a }) {
150
- let s = b("parallelWorks"), c = T(), l = d(), u = w(r(n)), [p, m] = v(a.bucket ? j(a.bucket) : null), y = (e) => {
149
+ function M({ workspace: n, conn: o }) {
150
+ let s = b("parallelWorks"), c = T(), l = u(), d = w(r(n)), [p, m] = v(o.bucket ? j(o.bucket) : null), y = (e) => {
151
151
  e ? c.setQueryData(i(n).queryKey, e) : c.invalidateQueries({ queryKey: i(n).queryKey });
152
152
  }, E = C({
153
153
  mutationFn: async (r) => t(await e.PUT("/api/v1/workspaces/{workspace}/parallelworks/bucket", {
@@ -167,18 +167,18 @@ function M({ workspace: n, conn: a }) {
167
167
  onSuccess: () => {
168
168
  m(null), y();
169
169
  }
170
- }), O = u.data?.find((e) => j(e) === p), k = a.bucket ? j(a.bucket) : null;
170
+ }), O = d.data?.find((e) => j(e) === p), k = o.bucket ? j(o.bucket) : null;
171
171
  return /* @__PURE__ */ S(_, {
172
172
  title: s("storage"),
173
173
  description: s("storageDescription"),
174
- error: l.error ?? (u.error && s("bucketsFailed")),
174
+ error: l.error ?? (d.error && s("bucketsFailed")),
175
175
  children: [
176
176
  /* @__PURE__ */ x(g, {
177
177
  label: s("filesGoTo"),
178
- helpText: a.bucket ? s("filesInBucket") : s("filesOnServer"),
178
+ helpText: o.bucket ? s("filesInBucket") : s("filesOnServer"),
179
179
  children: /* @__PURE__ */ S("span", {
180
180
  className: "flex items-center gap-1.5 text-sm font-medium",
181
- children: [a.bucket && /* @__PURE__ */ x(o, { className: "size-4 text-muted-foreground" }), a.bucket ? a.bucket.displayName || a.bucket.name : s("server")]
181
+ children: [o.bucket && /* @__PURE__ */ x(a, { className: "size-4 text-muted-foreground" }), o.bucket ? o.bucket.displayName || o.bucket.name : s("server")]
182
182
  })
183
183
  }),
184
184
  /* @__PURE__ */ x(g, {
@@ -192,10 +192,10 @@ function M({ workspace: n, conn: a }) {
192
192
  width: "fill",
193
193
  "aria-label": s("bucket"),
194
194
  value: p,
195
- placeholder: u.isPending ? s("loading") : s("pickBucket"),
196
- disabled: !u.data?.length,
195
+ placeholder: d.isPending ? s("loading") : s("pickBucket"),
196
+ disabled: !d.data?.length,
197
197
  onValueChange: m,
198
- items: (u.data ?? []).map((e) => ({
198
+ items: (d.data ?? []).map((e) => ({
199
199
  value: j(e),
200
200
  label: e.displayName || e.name,
201
201
  description: [
@@ -204,7 +204,7 @@ function M({ workspace: n, conn: a }) {
204
204
  ...e.canWrite ? [] : [s("readOnly")]
205
205
  ].join(" · "),
206
206
  disabled: !e.canWrite,
207
- icon: /* @__PURE__ */ x(o, {})
207
+ icon: /* @__PURE__ */ x(a, {})
208
208
  }))
209
209
  })
210
210
  }), /* @__PURE__ */ x(f, {
@@ -215,7 +215,7 @@ function M({ workspace: n, conn: a }) {
215
215
  })]
216
216
  })
217
217
  }),
218
- a.bucket && /* @__PURE__ */ x(g, {
218
+ o.bucket && /* @__PURE__ */ x(g, {
219
219
  label: s("stop"),
220
220
  helpText: s("stopHelp"),
221
221
  children: /* @__PURE__ */ x(f, {