@parallelworks/tandem-web 0.171.0 → 0.171.2

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 (170) hide show
  1. package/_virtual/_virtual_i18n/en/common.js +1 -0
  2. package/_virtual/_virtual_i18n/es/common.js +1 -0
  3. package/_virtual/_virtual_i18n/ja/common.js +1 -0
  4. package/_virtual/_virtual_i18n/ko/common.js +1 -0
  5. package/_virtual/_virtual_i18n/zh/common.js +1 -0
  6. package/components/AccessGrants.js +6 -6
  7. package/components/ActivityTimeline.js +57 -57
  8. package/components/ActorAvatar.js +4 -4
  9. package/components/AgentWork.js +494 -494
  10. package/components/AppLauncher.js +7 -7
  11. package/components/AreaLink.js +13 -13
  12. package/components/AreaTiles.js +13 -13
  13. package/components/AreaWork.js +22 -22
  14. package/components/Attachments.js +29 -29
  15. package/components/BlockHandle.js +3 -3
  16. package/components/BugRotation.js +8 -8
  17. package/components/CodeHostSettings.js +38 -38
  18. package/components/CollabEditor.js +13 -13
  19. package/components/CommandPalette.js +206 -206
  20. package/components/CustomFields.js +95 -95
  21. package/components/CustomerRequests.js +11 -11
  22. package/components/DashboardPanel.js +23 -23
  23. package/components/DateChip.js +21 -21
  24. package/components/DocHistory.js +14 -14
  25. package/components/DocIcon.js +4 -4
  26. package/components/DocIconPicker.js +4 -4
  27. package/components/DocLinkPicker.js +22 -22
  28. package/components/DocLook.js +16 -16
  29. package/components/DocProperties.js +81 -81
  30. package/components/DocTable.js +53 -53
  31. package/components/DocsTree.js +179 -179
  32. package/components/Editor.js +69 -69
  33. package/components/FavoritesNav.js +78 -78
  34. package/components/GitHub.js +87 -87
  35. package/components/Graph.js +14 -14
  36. package/components/HostActions.js +21 -21
  37. package/components/HostPanel.js +6 -6
  38. package/components/HoverCards.js +74 -74
  39. package/components/IssueBoard.js +13 -10
  40. package/components/IssueBreakdown.js +31 -31
  41. package/components/IssueCode.js +19 -19
  42. package/components/IssueEvent.js +12 -12
  43. package/components/IssueFilters.js +103 -99
  44. package/components/IssueGroup.js +16 -16
  45. package/components/IssueImport.js +13 -13
  46. package/components/IssueInsights.js +20 -20
  47. package/components/IssueListBlock.js +81 -81
  48. package/components/IssueRelations.js +34 -34
  49. package/components/IssueRow.js +31 -31
  50. package/components/IssueSentry.js +4 -4
  51. package/components/IssueTemplates.js +23 -23
  52. package/components/IssueTypes.js +40 -40
  53. package/components/MarkdownTransfer.js +10 -10
  54. package/components/MentionPicker.js +19 -19
  55. package/components/NewIssueDialog.js +53 -53
  56. package/components/NewProjectDialog.js +82 -82
  57. package/components/PersonActivity.js +13 -13
  58. package/components/PersonHoverCard.js +44 -44
  59. package/components/Planning.js +16 -16
  60. package/components/Reports.js +8 -8
  61. package/components/SettingsNav.js +15 -15
  62. package/components/ShareDialog.js +8 -8
  63. package/components/SharedViewer.js +23 -23
  64. package/components/SlashMenu.js +26 -26
  65. package/components/SubPages.js +10 -10
  66. package/components/TeamForm.js +9 -9
  67. package/components/TeamRepositories.js +21 -21
  68. package/components/TeamWorkflow.js +6 -6
  69. package/components/UnlinkedMentions.js +29 -29
  70. package/components/Updates.js +8 -8
  71. package/components/Widgets.js +4 -4
  72. package/components/WorkCounts.js +12 -12
  73. package/components/cycleCrumb.js +8 -8
  74. package/components/editorPlugins.js +101 -101
  75. package/components/settings.js +6 -6
  76. package/components/video.js +7 -7
  77. package/hostedApp.js +24 -24
  78. package/index.js +18 -18
  79. package/lib/assigneeOrder.js +6 -0
  80. package/lib/assignees.js +24 -20
  81. package/lib/attachments.js +12 -12
  82. package/lib/boardMove.js +27 -27
  83. package/lib/collab.js +1 -1
  84. package/lib/docs.js +115 -115
  85. package/lib/githubLink.js +7 -7
  86. package/lib/issueList.js +51 -51
  87. package/lib/issueMenu.js +117 -117
  88. package/lib/knowledge.js +134 -134
  89. package/lib/live.js +38 -38
  90. package/lib/notifications.js +47 -47
  91. package/lib/views.js +31 -31
  92. package/package.json +24 -24
  93. package/pages/area.js +64 -64
  94. package/pages/areas.js +199 -199
  95. package/pages/decisions.js +51 -51
  96. package/pages/issues.js +120 -120
  97. package/pages/projects.js +238 -238
  98. package/pages/triage.js +109 -109
  99. package/routes/_workspace/agents/_slug2.js +127 -127
  100. package/routes/_workspace/agents/index2.js +22 -22
  101. package/routes/_workspace/dashboards/_dashboardId2.js +84 -84
  102. package/routes/_workspace/dashboards/index2.js +34 -34
  103. package/routes/_workspace/docs/_doc2.js +267 -267
  104. package/routes/_workspace/docs/space2._space.js +31 -31
  105. package/routes/_workspace/docs2.js +4 -4
  106. package/routes/_workspace/graph2.js +11 -11
  107. package/routes/_workspace/graph3.js +11 -11
  108. package/routes/_workspace/issues/_identifier2.js +477 -477
  109. package/routes/_workspace/issues/index.js +13 -13
  110. package/routes/_workspace/knowledge/_term2.js +175 -175
  111. package/routes/_workspace/knowledge/_term3.js +4 -4
  112. package/routes/_workspace/knowledge/index.js +12 -12
  113. package/routes/_workspace/knowledge/index2.js +117 -117
  114. package/routes/_workspace/measures2.js +8 -8
  115. package/routes/_workspace/measures3.js +29 -29
  116. package/routes/_workspace/notifications2.js +263 -263
  117. package/routes/_workspace/people/_username.js +10 -10
  118. package/routes/_workspace/people/_username2.js +41 -41
  119. package/routes/_workspace/projects/_projectId3.js +303 -303
  120. package/routes/_workspace/projects/_projectId4.js +4 -4
  121. package/routes/_workspace/projects/_projectId_3.milestones._milestoneId.js +28 -28
  122. package/routes/_workspace/projects/_projectId_4.milestones._milestoneId.js +4 -4
  123. package/routes/_workspace/projects/index.js +8 -8
  124. package/routes/_workspace/settings/account2.js +8 -8
  125. package/routes/_workspace/settings/audit-log2.js +8 -8
  126. package/routes/_workspace/settings/audit-log3.js +155 -155
  127. package/routes/_workspace/settings/connections2.js +4 -4
  128. package/routes/_workspace/settings/fields2.js +5 -5
  129. package/routes/_workspace/settings/github2.js +11 -11
  130. package/routes/_workspace/settings/gitlab2.js +5 -5
  131. package/routes/_workspace/settings/groups2.js +52 -52
  132. package/routes/_workspace/settings/import2.js +39 -39
  133. package/routes/_workspace/settings/index2.js +5 -5
  134. package/routes/_workspace/settings/intercom2.js +11 -11
  135. package/routes/_workspace/settings/labels2.js +33 -33
  136. package/routes/_workspace/settings/members2.js +81 -81
  137. package/routes/_workspace/settings/notifications2.js +46 -46
  138. package/routes/_workspace/settings/parallelworks2.js +20 -20
  139. package/routes/_workspace/settings/roles2.js +41 -41
  140. package/routes/_workspace/settings/runners2.js +15 -15
  141. package/routes/_workspace/settings/sentry2.js +15 -15
  142. package/routes/_workspace/settings/sessions2.js +9 -9
  143. package/routes/_workspace/settings/sessions3.js +4 -4
  144. package/routes/_workspace/settings/slack2.js +12 -12
  145. package/routes/_workspace/settings/sso2.js +37 -37
  146. package/routes/_workspace/settings/sso3.js +7 -7
  147. package/routes/_workspace/settings/teams2.js +29 -29
  148. package/routes/_workspace/settings/tokens2.js +32 -32
  149. package/routes/_workspace/settings/tokens3.js +4 -4
  150. package/routes/_workspace/settings/webhooks2.js +41 -41
  151. package/routes/_workspace/settings/zendesk2.js +11 -11
  152. package/routes/_workspace/teams/_key/cycles/_number2.js +33 -33
  153. package/routes/_workspace/teams/_key/cycles/_number3.js +7 -7
  154. package/routes/_workspace/teams/_key/cycles/index2.js +37 -37
  155. package/routes/_workspace/teams/_key/issues.js +10 -10
  156. package/routes/_workspace/teams/_key/projects.js +6 -6
  157. package/routes/_workspace/teams/_key/settings2.js +396 -396
  158. package/routes/_workspace2.js +308 -308
  159. package/routes/_workspace3.js +8 -8
  160. package/routes/device2.js +4 -4
  161. package/routes/device3.js +4 -4
  162. package/routes/docs/_tag/_endpoint2.js +3 -3
  163. package/routes/docs/_tag/index2.js +3 -3
  164. package/routes/docs/route2.js +7 -7
  165. package/routes/index2.js +5 -5
  166. package/routes/login2.js +10 -10
  167. package/routes/new2.js +12 -12
  168. package/routes/new3.js +5 -5
  169. package/routes/request2._token.js +6 -6
  170. package/routes/share2._secret.js +4 -4
@@ -1,11 +1,11 @@
1
1
  import { api as e, unwrap as t } from "../../../api/client.js";
2
- import { useNavigate as n } from "../../../lib/router.js";
3
- import { labelsQuery as r } from "../../../api/queries.js";
4
- import { copyItem as i } from "../../../lib/menus.js";
5
- import { TagIcon as a } from "../../../components/icons.js";
6
- import { useCan as o } from "../../../lib/roles.js";
2
+ import { labelsQuery as n } from "../../../api/queries.js";
3
+ import { TagIcon as r } from "../../../components/icons.js";
4
+ import { AdminOnly as i, SettingsPage as a, useFormError as o } from "../../../components/settings.js";
7
5
  import { useConfirm as s } from "../../../lib/confirm.js";
8
- import { AdminOnly as c, SettingsPage as l, useFormError as u } from "../../../components/settings.js";
6
+ import { copyItem as c } from "../../../lib/menus.js";
7
+ import { useCan as l } from "../../../lib/roles.js";
8
+ import { useNavigate as u } from "../../../lib/router.js";
9
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";
@@ -18,17 +18,17 @@ function B() {
18
18
  let { workspace: e } = d.useParams();
19
19
  return /* @__PURE__ */ T(V, {
20
20
  workspace: e,
21
- isAdmin: o(e, "manage_labels")
21
+ isAdmin: l(e, "manage_labels")
22
22
  });
23
23
  }
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({
24
+ function V({ workspace: o, isAdmin: l }) {
25
+ let { data: d } = k(n(o)), f = u(), 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
29
29
  } } })),
30
30
  onSettled: () => {
31
- U.invalidateQueries({ queryKey: r(o).queryKey }), U.invalidateQueries({ queryKey: [
31
+ U.invalidateQueries({ queryKey: n(o).queryKey }), U.invalidateQueries({ queryKey: [
32
32
  "workspace",
33
33
  o,
34
34
  "issues"
@@ -61,11 +61,11 @@ function V({ workspace: o, isAdmin: u }) {
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(l, {
64
+ return /* @__PURE__ */ E(a, {
65
65
  wide: !0,
66
66
  title: m("labels"),
67
67
  description: p("labelsDescription"),
68
- actions: u && /* @__PURE__ */ T(v, {
68
+ actions: l && /* @__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: u }) {
79
79
  children: [
80
80
  /* @__PURE__ */ T("div", {
81
81
  className: "px-4",
82
- children: /* @__PURE__ */ T(c, {
82
+ children: /* @__PURE__ */ T(i, {
83
83
  workspace: o,
84
84
  permission: "manage_labels"
85
85
  })
@@ -96,7 +96,7 @@ function V({ workspace: o, isAdmin: u }) {
96
96
  nounPlural: p("labelNounPlural")
97
97
  },
98
98
  empty: {
99
- icon: /* @__PURE__ */ T(a, {}),
99
+ icon: /* @__PURE__ */ T(r, {}),
100
100
  title: p("noLabels")
101
101
  },
102
102
  noMatches: p("labelNoMatches"),
@@ -104,7 +104,7 @@ function V({ workspace: o, isAdmin: u }) {
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: u ? () => V(e.id) : void 0,
107
+ onActivate: l ? () => V(e.id) : void 0,
108
108
  goTo: g,
109
109
  openMenu: _,
110
110
  items: [
@@ -116,9 +116,9 @@ function V({ workspace: o, isAdmin: u }) {
116
116
  search: { label: e.name }
117
117
  })
118
118
  },
119
- i(m("copyName"), e.name),
120
- i(p("copyColor"), e.color),
121
- ...u ? [
119
+ c(m("copyName"), e.name),
120
+ c(p("copyColor"), e.color),
121
+ ...l ? [
122
122
  b,
123
123
  {
124
124
  label: p("editLabel"),
@@ -159,11 +159,11 @@ function V({ workspace: o, isAdmin: u }) {
159
159
  ]
160
160
  });
161
161
  }
162
- function H({ workspace: n, label: i, onDone: a }) {
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({
162
+ function H({ workspace: r, label: i, onDone: a }) {
163
+ let s = w("settings"), c = w("common"), l = O(), u = o(), [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
- workspace: n,
166
+ workspace: r,
167
167
  labelId: i.id
168
168
  } },
169
169
  body: {
@@ -171,21 +171,21 @@ function H({ workspace: n, label: i, onDone: a }) {
171
171
  ...y !== i.color && { color: y }
172
172
  }
173
173
  }) : await e.POST("/api/v1/workspaces/{workspace}/labels", {
174
- params: { path: { workspace: n } },
174
+ params: { path: { workspace: r } },
175
175
  body: {
176
176
  name: d,
177
177
  color: y
178
178
  }
179
179
  })),
180
- onMutate: l.clear,
180
+ onMutate: u.clear,
181
181
  onSuccess: () => {
182
- c.invalidateQueries({ queryKey: r(n).queryKey }), i && c.invalidateQueries({ queryKey: [
182
+ l.invalidateQueries({ queryKey: n(r).queryKey }), i && l.invalidateQueries({ queryKey: [
183
183
  "workspace",
184
- n,
184
+ r,
185
185
  "issues"
186
186
  ] }), a();
187
187
  },
188
- onError: l.set
188
+ onError: u.set
189
189
  });
190
190
  return /* @__PURE__ */ T(g, {
191
191
  open: !0,
@@ -198,42 +198,42 @@ function H({ workspace: n, label: i, onDone: a }) {
198
198
  children: [
199
199
  /* @__PURE__ */ T(_, {
200
200
  className: "text-sm font-semibold",
201
- children: o(i ? "editLabel" : "newLabel")
201
+ children: s(i ? "editLabel" : "newLabel")
202
202
  }),
203
203
  /* @__PURE__ */ E("div", {
204
204
  className: "mt-4 flex gap-2",
205
205
  children: [/* @__PURE__ */ T(p, {
206
206
  value: y,
207
207
  onValueChange: b,
208
- "aria-label": o("color"),
208
+ "aria-label": s("color"),
209
209
  className: "w-36 shrink-0"
210
210
  }), /* @__PURE__ */ T(h, {
211
211
  required: !0,
212
212
  autoFocus: !0,
213
- placeholder: o("labelName"),
213
+ placeholder: s("labelName"),
214
214
  value: d,
215
215
  onChange: (e) => v(e.target.value),
216
- "aria-label": o("labelName"),
216
+ "aria-label": s("labelName"),
217
217
  className: "min-w-0 flex-1"
218
218
  })]
219
219
  }),
220
220
  /* @__PURE__ */ T(m, {
221
221
  size: "md",
222
222
  className: "mt-3",
223
- children: l.error
223
+ children: u.error
224
224
  }),
225
225
  /* @__PURE__ */ E("div", {
226
226
  className: "mt-5 flex justify-end gap-2",
227
227
  children: [/* @__PURE__ */ T(f, {
228
228
  type: "button",
229
229
  onClick: a,
230
- children: s("cancel")
230
+ children: c("cancel")
231
231
  }), /* @__PURE__ */ T(f, {
232
232
  type: "submit",
233
233
  variant: "primary",
234
234
  disabled: !d.trim(),
235
235
  loading: x.isPending,
236
- children: i ? s("save") : o("createLabel")
236
+ children: i ? c("save") : s("createLabel")
237
237
  })]
238
238
  })
239
239
  ]
@@ -1,14 +1,14 @@
1
1
  import { api as e, unwrap as t } from "../../../api/client.js";
2
- import { useNavigate as n } from "../../../lib/router.js";
3
- import { meQuery as r, membersQuery as i, workspaceAccessQuery as a, workspaceQuery as o } from "../../../api/queries.js";
4
- import { copyItem as s } from "../../../lib/menus.js";
5
- import { ShieldIcon as c, UserIcon as l, UsersIcon as u } from "../../../components/icons.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
- import { AccessGrants as y } from "../../../components/AccessGrants.js";
2
+ import { meQuery as n, membersQuery as r, workspaceAccessQuery as i, workspaceQuery as a } from "../../../api/queries.js";
3
+ import { AccessGrants as o } from "../../../components/AccessGrants.js";
4
+ import { ShieldIcon as s, UserIcon as c, UsersIcon as l } from "../../../components/icons.js";
5
+ import { PersonHoverCard as u } from "../../../components/PersonHoverCard.js";
6
+ import { AdminOnly as d, SettingsPage as f, useFormError as p } from "../../../components/settings.js";
7
+ import { useConfirm as m } from "../../../lib/confirm.js";
8
+ import { copyItem as h } from "../../../lib/menus.js";
9
+ import { useCan as g, useRoleOptions as _ } from "../../../lib/roles.js";
10
+ import { useNavigate as v } from "../../../lib/router.js";
11
+ import { Route as y } from "./members.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";
14
14
  import { useFormatter as A, useTranslations as j } from "use-intl";
@@ -17,23 +17,23 @@ 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 } = v.useParams(), { data: t } = I(r), n = d(e, "manage_members"), i = t?.user.username ?? "";
20
+ let { workspace: e } = y.useParams(), { data: t } = I(n), r = g(e, "manage_members"), i = t?.user.username ?? "";
21
21
  return t?.mode === "platform" ? /* @__PURE__ */ M(H, {
22
22
  workspace: e,
23
- isAdmin: n,
23
+ isAdmin: r,
24
24
  myUsername: i
25
25
  }) : /* @__PURE__ */ M(V, {
26
26
  workspace: e,
27
- isAdmin: n,
27
+ isAdmin: r,
28
28
  myUsername: i
29
29
  });
30
30
  }
31
- function V({ workspace: a, isAdmin: o, myUsername: c }) {
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
- d.invalidateQueries({ queryKey: i(a).queryKey }), d.invalidateQueries({ queryKey: r.queryKey });
31
+ function V({ workspace: i, isAdmin: a, myUsername: o }) {
32
+ let { data: s } = I(r(i)), l = F(), g = v(), [y, S] = k(""), [w, A] = k("member"), [B, V] = k(!1), H = j("settings"), U = j("common"), W = _(i), G = p(), K = () => {
33
+ l.invalidateQueries({ queryKey: r(i).queryKey }), l.invalidateQueries({ queryKey: n.queryKey });
34
34
  }, q = P({
35
35
  mutationFn: async () => t(await e.POST("/api/v1/workspaces/{workspace}/members", {
36
- params: { path: { workspace: a } },
36
+ params: { path: { workspace: i } },
37
37
  body: {
38
38
  email: y,
39
39
  role: w
@@ -47,7 +47,7 @@ function V({ workspace: a, isAdmin: o, myUsername: c }) {
47
47
  }), J = P({
48
48
  mutationFn: async ({ username: n, role: r }) => t(await e.PATCH("/api/v1/workspaces/{workspace}/members/{username}", {
49
49
  params: { path: {
50
- workspace: a,
50
+ workspace: i,
51
51
  username: n
52
52
  } },
53
53
  body: { role: r }
@@ -57,12 +57,12 @@ function V({ workspace: a, isAdmin: o, myUsername: c }) {
57
57
  onError: G.set
58
58
  }), Y = P({
59
59
  mutationFn: async (n) => t(await e.DELETE("/api/v1/workspaces/{workspace}/members/{username}", { params: { path: {
60
- workspace: a,
60
+ workspace: i,
61
61
  username: n
62
62
  } } })),
63
63
  onMutate: G.clear,
64
64
  onSuccess: K
65
- }), { confirm: fe, dialog: pe } = p(), me = (e) => fe(e.user.username === c ? {
65
+ }), { confirm: fe, dialog: pe } = m(), me = (e) => fe(e.user.username === o ? {
66
66
  title: H("leaveTitle"),
67
67
  description: H("leaveDescription"),
68
68
  confirmLabel: H("leave"),
@@ -100,27 +100,27 @@ function V({ workspace: a, isAdmin: o, myUsername: c }) {
100
100
  label: U("role"),
101
101
  compare: (e, t) => e.role.localeCompare(t.role)
102
102
  }], [U]), Z = de({
103
- storageKey: `tandem-members-${a}`,
103
+ storageKey: `tandem-members-${i}`,
104
104
  defaultShowColumnHeaders: !1,
105
105
  columns: _e,
106
106
  orderBys: ve,
107
107
  defaultOrderBy: "name",
108
108
  facets: []
109
- }), Q = X.filter.trim().toLowerCase(), $ = u.filter((e) => !Q || [
109
+ }), Q = X.filter.trim().toLowerCase(), $ = s.filter((e) => !Q || [
110
110
  e.user.name,
111
111
  e.user.username,
112
112
  e.user.email
113
113
  ].some((e) => e.toLowerCase().includes(Q)));
114
- return /* @__PURE__ */ N(h, {
114
+ return /* @__PURE__ */ N(f, {
115
115
  wide: !0,
116
116
  title: H("members"),
117
117
  description: H("membersDescription"),
118
- actions: o && /* @__PURE__ */ M(re, {
118
+ actions: a && /* @__PURE__ */ M(re, {
119
119
  label: H("addMember"),
120
120
  word: "add",
121
121
  onClick: () => V(!0)
122
122
  }),
123
- toolbar: u.length > 0 && /* @__PURE__ */ M(oe, {
123
+ toolbar: s.length > 0 && /* @__PURE__ */ M(oe, {
124
124
  view: Z,
125
125
  search: X,
126
126
  searchLabel: H("searchPeople"),
@@ -129,8 +129,8 @@ 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(m, {
133
- workspace: a,
132
+ children: /* @__PURE__ */ M(d, {
133
+ workspace: i,
134
134
  permission: "manage_members"
135
135
  })
136
136
  }),
@@ -138,7 +138,7 @@ function V({ workspace: a, isAdmin: o, myUsername: c }) {
138
138
  className: "border-t border-border",
139
139
  children: /* @__PURE__ */ M(z, {
140
140
  view: Z,
141
- total: u.length,
141
+ total: s.length,
142
142
  matches: $.length,
143
143
  count: {
144
144
  filterActive: X.filter.trim() !== "",
@@ -146,7 +146,7 @@ function V({ workspace: a, isAdmin: o, myUsername: c }) {
146
146
  nounPlural: H("memberNounPlural")
147
147
  },
148
148
  empty: {
149
- icon: /* @__PURE__ */ M(l, {}),
149
+ icon: /* @__PURE__ */ M(c, {}),
150
150
  title: H("noMembersYet")
151
151
  },
152
152
  noMatches: H("noPeopleMatch"),
@@ -157,7 +157,7 @@ function V({ workspace: a, isAdmin: o, myUsername: c }) {
157
157
  goTo: he,
158
158
  openMenu: ge,
159
159
  items: [
160
- ...o ? [{
160
+ ...a ? [{
161
161
  label: U("role"),
162
162
  items: W.map((t) => ({
163
163
  label: t.label,
@@ -170,25 +170,25 @@ function V({ workspace: a, isAdmin: o, myUsername: c }) {
170
170
  }] : [],
171
171
  {
172
172
  label: H("viewIssues"),
173
- onClick: () => v({
173
+ onClick: () => g({
174
174
  to: "/$workspace/people/$username",
175
175
  params: {
176
- workspace: a,
176
+ workspace: i,
177
177
  username: e.user.username
178
178
  }
179
179
  })
180
180
  },
181
- s(U("copyEmail"), e.user.email),
182
- ...o || e.user.username === c ? [E, {
183
- label: e.user.username === c ? H("leaveWorkspace") : H("removeFromWorkspace"),
181
+ h(U("copyEmail"), e.user.email),
182
+ ...a || e.user.username === o ? [E, {
183
+ label: e.user.username === o ? H("leaveWorkspace") : H("removeFromWorkspace"),
184
184
  destructive: !0,
185
185
  onClick: () => me(e)
186
186
  }] : []
187
187
  ],
188
188
  children: [
189
189
  /* @__PURE__ */ M(se, {
190
- icon: /* @__PURE__ */ M(_, {
191
- workspace: a,
190
+ icon: /* @__PURE__ */ M(u, {
191
+ workspace: i,
192
192
  handle: e.user.username,
193
193
  children: /* @__PURE__ */ M(b, {
194
194
  name: e.user.name,
@@ -196,7 +196,7 @@ function V({ workspace: a, isAdmin: o, myUsername: c }) {
196
196
  size: "md"
197
197
  })
198
198
  }),
199
- name: e.user.username === c ? `${e.user.name} ${H("you")}` : e.user.name,
199
+ name: e.user.username === o ? `${e.user.name} ${H("you")}` : e.user.name,
200
200
  subtitle: e.user.username,
201
201
  href: null,
202
202
  children: J.isError && J.variables?.username === e.user.username && /* @__PURE__ */ M(C, {
@@ -275,8 +275,8 @@ function V({ workspace: a, isAdmin: o, myUsername: c }) {
275
275
  ]
276
276
  });
277
277
  }
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"), g = j("settingsNav"), [_, v] = k(!1), b = P({
278
+ function H({ workspace: n, isAdmin: c, myUsername: u }) {
279
+ let { data: d } = I(i(n)), { data: p } = I(r(n)), { data: m } = I(a(n)), h = F(), g = j("settings"), _ = j("settingsNav"), [v, y] = 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: {
@@ -290,67 +290,67 @@ function H({ workspace: n, isAdmin: r, myUsername: s }) {
290
290
  }))
291
291
  }
292
292
  })),
293
- onSuccess: (e) => p.setQueryData(a(n).queryKey, e),
293
+ onSuccess: (e) => h.setQueryData(i(n).queryKey, e),
294
294
  onSettled: () => {
295
- p.invalidateQueries({ queryKey: a(n).queryKey }), p.invalidateQueries({ queryKey: i(n).queryKey });
295
+ h.invalidateQueries({ queryKey: i(n).queryKey }), h.invalidateQueries({ queryKey: r(n).queryKey });
296
296
  }
297
- }), x = (e) => d.filter((t) => t.via?.some((t) => t.kind === e)), S = x("organizationAdmin");
298
- return /* @__PURE__ */ N(h, {
299
- title: g("access"),
300
- description: m("workspaceAccessDescription"),
301
- children: [/* @__PURE__ */ M(y, {
297
+ }), x = (e) => p.filter((t) => t.via?.some((t) => t.kind === e)), S = x("organizationAdmin");
298
+ return /* @__PURE__ */ N(f, {
299
+ title: _("access"),
300
+ description: g("workspaceAccessDescription"),
301
+ children: [/* @__PURE__ */ M(o, {
302
302
  workspace: n,
303
- resourceName: f.name,
304
- access: l,
303
+ resourceName: m.name,
304
+ access: d,
305
305
  save: (e) => b.mutateAsync(e),
306
- openLabel: m("workspaceAccessEveryone"),
307
- readOnly: !r,
306
+ openLabel: g("workspaceAccessEveryone"),
307
+ readOnly: !c,
308
308
  rules: [{
309
309
  id: "organizationAdmins",
310
- icon: /* @__PURE__ */ M(c, { className: "size-4" }),
311
- title: m("organizationAdmins"),
312
- detail: m("organizationAdminsDetail", { count: S.length }),
310
+ icon: /* @__PURE__ */ M(s, { className: "size-4" }),
311
+ title: g("organizationAdmins"),
312
+ detail: g("organizationAdminsDetail", { count: S.length }),
313
313
  people: S.map((e) => ({
314
314
  name: e.user.name,
315
315
  avatarUrl: e.user.avatarUrl
316
316
  })),
317
317
  roleId: "admin"
318
- }, ...l.restricted ? [] : [{
318
+ }, ...d.restricted ? [] : [{
319
319
  id: "everyone",
320
- icon: /* @__PURE__ */ M(u, { className: "size-4" }),
321
- title: m("workspaceAccessEveryone"),
322
- detail: m("peopleCount", { count: x("everyone").length }),
320
+ icon: /* @__PURE__ */ M(l, { className: "size-4" }),
321
+ title: g("workspaceAccessEveryone"),
322
+ detail: g("peopleCount", { count: x("everyone").length }),
323
323
  roleId: "member"
324
324
  }]],
325
325
  footer: /* @__PURE__ */ M("button", {
326
326
  type: "button",
327
- "aria-expanded": _,
328
- onClick: () => v(!_),
327
+ "aria-expanded": v,
328
+ onClick: () => y(!v),
329
329
  className: "text-sm text-primary hover:underline",
330
- children: _ ? m("hidePeople") : m("showPeople", { count: d.length })
330
+ children: v ? g("hidePeople") : g("showPeople", { count: p.length })
331
331
  })
332
- }), _ && /* @__PURE__ */ M(U, {
332
+ }), v && /* @__PURE__ */ M(U, {
333
333
  workspace: n,
334
- members: d,
335
- myUsername: s
334
+ members: p,
335
+ myUsername: u
336
336
  })]
337
337
  });
338
338
  }
339
- function U({ workspace: e, members: t, myUsername: r }) {
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) => {
339
+ function U({ workspace: e, members: t, myUsername: n }) {
340
+ let r = j("settings"), i = j("common"), a = A(), o = _(e), s = D(), c = v(), [l, d] = k(""), f = (e) => e.kind === "organizationAdmin" ? r("viaOrganizationAdmin") : e.kind === "everyone" ? r("viaEveryone") : e.kind === "group" ? e.principal?.name ?? "" : r("viaGrant"), p = l.trim().toLowerCase(), m = (e) => {
341
341
  let t = e.via ?? [], n = t.filter((e) => e.kind !== "everyone");
342
342
  return n.length > 0 ? n : t;
343
- }, v = (e) => +!!g(e).every((e) => e.kind === "organizationAdmin"), y = t.toSorted((e, t) => v(e) - v(t)).filter((e) => !h || [
343
+ }, g = (e) => +!!m(e).every((e) => e.kind === "organizationAdmin"), y = t.toSorted((e, t) => g(e) - g(t)).filter((e) => !p || [
344
344
  e.user.name,
345
345
  e.user.username,
346
346
  e.user.email
347
- ].some((e) => e.toLowerCase().includes(h)));
347
+ ].some((e) => e.toLowerCase().includes(p)));
348
348
  return /* @__PURE__ */ N("div", {
349
349
  className: "mt-4",
350
350
  children: [/* @__PURE__ */ M(w, {
351
- value: d,
352
- onValueChange: p,
353
- label: i("searchPeople")
351
+ value: l,
352
+ onValueChange: d,
353
+ label: r("searchPeople")
354
354
  }), /* @__PURE__ */ N(S, {
355
355
  size: "fill",
356
356
  padding: "none",
@@ -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) => l(n, [{
363
- label: i("viewIssues"),
364
- onClick: () => u({
362
+ onContextMenu: (n) => s(n, [{
363
+ label: r("viewIssues"),
364
+ onClick: () => c({
365
365
  to: "/$workspace/people/$username",
366
366
  params: {
367
367
  workspace: e,
368
368
  username: t.user.username
369
369
  }
370
370
  })
371
- }, s(a("copyEmail"), t.user.email)]),
371
+ }, h(i("copyEmail"), t.user.email)]),
372
372
  className: "flex items-center gap-3 px-3 py-2",
373
373
  children: [
374
- /* @__PURE__ */ M(_, {
374
+ /* @__PURE__ */ M(u, {
375
375
  workspace: e,
376
376
  handle: t.user.username,
377
377
  children: /* @__PURE__ */ M(b, {
@@ -384,27 +384,27 @@ function U({ workspace: e, members: t, myUsername: r }) {
384
384
  className: "min-w-0 flex-1",
385
385
  children: [/* @__PURE__ */ N("p", {
386
386
  className: "truncate text-sm",
387
- children: [t.user.name, t.user.username === r && /* @__PURE__ */ N("span", {
387
+ children: [t.user.name, t.user.username === n && /* @__PURE__ */ N("span", {
388
388
  className: "text-muted-foreground",
389
- children: [" ", i("you")]
389
+ children: [" ", r("you")]
390
390
  })]
391
391
  }), /* @__PURE__ */ N("p", {
392
392
  className: "truncate text-xs text-muted-foreground",
393
393
  children: [
394
394
  t.user.username,
395
395
  " · ",
396
- o.list(g(t).map(m), { type: "conjunction" })
396
+ a.list(m(t).map(f), { type: "conjunction" })
397
397
  ]
398
398
  })]
399
399
  }),
400
400
  /* @__PURE__ */ M("span", {
401
401
  className: "text-sm text-muted-foreground",
402
- children: c.find((e) => e.value === t.role)?.label
402
+ children: o.find((e) => e.value === t.role)?.label
403
403
  })
404
404
  ]
405
405
  }, t.user.username)), y.length === 0 && /* @__PURE__ */ M("li", {
406
406
  className: "px-3 py-2 text-sm text-muted-foreground",
407
- children: i("noPeopleMatch")
407
+ children: r("noPeopleMatch")
408
408
  })]
409
409
  })]
410
410
  });