@parallelworks/tandem-web 0.171.1 → 0.171.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.
Files changed (171) hide show
  1. package/_virtual/_virtual_i18n/en/common.js +5 -2
  2. package/_virtual/_virtual_i18n/es/common.js +5 -2
  3. package/_virtual/_virtual_i18n/ja/common.js +5 -2
  4. package/_virtual/_virtual_i18n/ko/common.js +5 -2
  5. package/_virtual/_virtual_i18n/zh/common.js +5 -2
  6. package/components/AccessGrants.js +6 -6
  7. package/components/ActivityTimeline.js +60 -60
  8. package/components/ActorAvatar.js +4 -4
  9. package/components/ActorLink.js +34 -0
  10. package/components/AgentWork.js +494 -494
  11. package/components/AppLauncher.js +7 -7
  12. package/components/AreaLink.js +13 -13
  13. package/components/AreaTiles.js +13 -13
  14. package/components/AreaWork.js +22 -22
  15. package/components/Attachments.js +73 -69
  16. package/components/BlockHandle.js +3 -3
  17. package/components/BugRotation.js +8 -8
  18. package/components/CodeHostSettings.js +121 -87
  19. package/components/CollabEditor.js +13 -13
  20. package/components/CommandPalette.js +206 -206
  21. package/components/CustomFields.js +95 -95
  22. package/components/CustomerRequests.js +11 -11
  23. package/components/DashboardPanel.js +201 -164
  24. package/components/DateChip.js +21 -21
  25. package/components/DocHistory.js +14 -14
  26. package/components/DocIcon.js +4 -4
  27. package/components/DocIconPicker.js +4 -4
  28. package/components/DocLinkPicker.js +22 -22
  29. package/components/DocLook.js +16 -16
  30. package/components/DocProperties.js +81 -81
  31. package/components/DocTable.js +53 -53
  32. package/components/DocsTree.js +179 -179
  33. package/components/Editor.js +69 -69
  34. package/components/FavoritesNav.js +78 -78
  35. package/components/GitHub.js +87 -87
  36. package/components/Graph.js +14 -14
  37. package/components/HostActions.js +21 -21
  38. package/components/HostPanel.js +6 -6
  39. package/components/HoverCards.js +74 -74
  40. package/components/IssueBoard.js +13 -10
  41. package/components/IssueBreakdown.js +31 -31
  42. package/components/IssueCode.js +19 -19
  43. package/components/IssueEvent.js +97 -92
  44. package/components/IssueFilters.js +39 -39
  45. package/components/IssueGroup.js +16 -16
  46. package/components/IssueImport.js +13 -13
  47. package/components/IssueInsights.js +20 -20
  48. package/components/IssueListBlock.js +81 -81
  49. package/components/IssueRelations.js +34 -34
  50. package/components/IssueRow.js +31 -31
  51. package/components/IssueSentry.js +36 -34
  52. package/components/IssueTemplates.js +23 -23
  53. package/components/IssueTypes.js +40 -40
  54. package/components/MarkdownTransfer.js +10 -10
  55. package/components/MentionPicker.js +19 -19
  56. package/components/NewIssueDialog.js +53 -53
  57. package/components/NewProjectDialog.js +82 -82
  58. package/components/PersonActivity.js +13 -13
  59. package/components/PersonHoverCard.js +44 -44
  60. package/components/Planning.js +16 -16
  61. package/components/Reports.js +8 -8
  62. package/components/SettingsNav.js +15 -15
  63. package/components/ShareDialog.js +8 -8
  64. package/components/SharedViewer.js +23 -23
  65. package/components/SlashMenu.js +26 -26
  66. package/components/SubPages.js +10 -10
  67. package/components/TeamForm.js +9 -9
  68. package/components/TeamRepositories.js +21 -21
  69. package/components/TeamWorkflow.js +6 -6
  70. package/components/UnlinkedMentions.js +29 -29
  71. package/components/Updates.js +8 -8
  72. package/components/Widgets.js +99 -97
  73. package/components/WorkCounts.js +12 -12
  74. package/components/cycleCrumb.js +8 -8
  75. package/components/editorPlugins.js +101 -101
  76. package/components/settings.js +6 -6
  77. package/components/video.js +7 -7
  78. package/hostedApp.js +24 -24
  79. package/index.js +18 -18
  80. package/lib/assignees.js +3 -3
  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/triageSeen.js +2 -2
  92. package/lib/views.js +31 -31
  93. package/package.json +24 -24
  94. package/pages/area.js +64 -64
  95. package/pages/areas.js +199 -199
  96. package/pages/decisions.js +51 -51
  97. package/pages/issues.js +120 -120
  98. package/pages/projects.js +238 -238
  99. package/pages/triage.js +202 -212
  100. package/routes/_workspace/agents/_slug2.js +127 -127
  101. package/routes/_workspace/agents/index2.js +22 -22
  102. package/routes/_workspace/dashboards/_dashboardId2.js +84 -84
  103. package/routes/_workspace/dashboards/index2.js +34 -34
  104. package/routes/_workspace/docs/_doc2.js +267 -267
  105. package/routes/_workspace/docs/space2._space.js +31 -31
  106. package/routes/_workspace/docs2.js +4 -4
  107. package/routes/_workspace/graph2.js +11 -11
  108. package/routes/_workspace/graph3.js +11 -11
  109. package/routes/_workspace/issues/_identifier2.js +519 -522
  110. package/routes/_workspace/issues/index.js +13 -13
  111. package/routes/_workspace/knowledge/_term2.js +148 -146
  112. package/routes/_workspace/knowledge/_term3.js +4 -4
  113. package/routes/_workspace/knowledge/index.js +12 -12
  114. package/routes/_workspace/knowledge/index2.js +117 -115
  115. package/routes/_workspace/measures2.js +8 -8
  116. package/routes/_workspace/measures3.js +29 -29
  117. package/routes/_workspace/notifications2.js +263 -263
  118. package/routes/_workspace/people/_username.js +10 -10
  119. package/routes/_workspace/people/_username2.js +41 -41
  120. package/routes/_workspace/projects/_projectId3.js +303 -303
  121. package/routes/_workspace/projects/_projectId4.js +4 -4
  122. package/routes/_workspace/projects/_projectId_3.milestones._milestoneId.js +28 -28
  123. package/routes/_workspace/projects/_projectId_4.milestones._milestoneId.js +4 -4
  124. package/routes/_workspace/projects/index.js +8 -8
  125. package/routes/_workspace/settings/account2.js +8 -8
  126. package/routes/_workspace/settings/audit-log2.js +8 -8
  127. package/routes/_workspace/settings/audit-log3.js +155 -155
  128. package/routes/_workspace/settings/connections2.js +4 -4
  129. package/routes/_workspace/settings/fields2.js +5 -5
  130. package/routes/_workspace/settings/github2.js +11 -11
  131. package/routes/_workspace/settings/gitlab2.js +5 -5
  132. package/routes/_workspace/settings/groups2.js +52 -52
  133. package/routes/_workspace/settings/import2.js +39 -39
  134. package/routes/_workspace/settings/index2.js +5 -5
  135. package/routes/_workspace/settings/intercom2.js +11 -11
  136. package/routes/_workspace/settings/labels2.js +33 -33
  137. package/routes/_workspace/settings/members2.js +81 -81
  138. package/routes/_workspace/settings/notifications2.js +46 -46
  139. package/routes/_workspace/settings/parallelworks2.js +20 -20
  140. package/routes/_workspace/settings/roles2.js +41 -41
  141. package/routes/_workspace/settings/runners2.js +15 -15
  142. package/routes/_workspace/settings/sentry2.js +15 -15
  143. package/routes/_workspace/settings/sessions2.js +9 -9
  144. package/routes/_workspace/settings/sessions3.js +4 -4
  145. package/routes/_workspace/settings/slack2.js +12 -12
  146. package/routes/_workspace/settings/sso2.js +37 -37
  147. package/routes/_workspace/settings/sso3.js +7 -7
  148. package/routes/_workspace/settings/teams2.js +29 -29
  149. package/routes/_workspace/settings/tokens2.js +32 -32
  150. package/routes/_workspace/settings/tokens3.js +4 -4
  151. package/routes/_workspace/settings/webhooks2.js +41 -41
  152. package/routes/_workspace/settings/zendesk2.js +11 -11
  153. package/routes/_workspace/teams/_key/cycles/_number2.js +33 -33
  154. package/routes/_workspace/teams/_key/cycles/_number3.js +7 -7
  155. package/routes/_workspace/teams/_key/cycles/index2.js +37 -37
  156. package/routes/_workspace/teams/_key/issues.js +10 -10
  157. package/routes/_workspace/teams/_key/projects.js +6 -6
  158. package/routes/_workspace/teams/_key/settings2.js +396 -396
  159. package/routes/_workspace2.js +308 -308
  160. package/routes/_workspace3.js +8 -8
  161. package/routes/device2.js +4 -4
  162. package/routes/device3.js +4 -4
  163. package/routes/docs/_tag/_endpoint2.js +3 -3
  164. package/routes/docs/_tag/index2.js +3 -3
  165. package/routes/docs/route2.js +7 -7
  166. package/routes/index2.js +5 -5
  167. package/routes/login2.js +10 -10
  168. package/routes/new2.js +12 -12
  169. package/routes/new3.js +5 -5
  170. package/routes/request2._token.js +6 -6
  171. package/routes/share2._secret.js +4 -4
@@ -1,10 +1,10 @@
1
1
  import { api as e, unwrap as t } from "../../../api/client.js";
2
- import { useNavigate as n } from "../../../lib/router.js";
3
- import { sessionsQuery as r } from "../../../api/queries.js";
4
- import { ShieldIcon as i } from "../../../components/icons.js";
5
- import { useTime as a } from "../../../lib/time.js";
2
+ import { sessionsQuery as n } from "../../../api/queries.js";
3
+ import { ShieldIcon as r } from "../../../components/icons.js";
4
+ import { SettingsPage as i, useFormError as a } from "../../../components/settings.js";
6
5
  import { useConfirm as o } from "../../../lib/confirm.js";
7
- import { SettingsPage as s, useFormError as c } from "../../../components/settings.js";
6
+ import { useNavigate as s } from "../../../lib/router.js";
7
+ import { useTime as c } from "../../../lib/time.js";
8
8
  import { ErrorText as l, PageHeaderAction as u, Table as d, useOpenMenu as f } from "@parallelworks/ui";
9
9
  import { useMemo as p } from "react";
10
10
  import { useTranslations as m } from "use-intl";
@@ -14,7 +14,7 @@ import { ListCellText as b, ListColumns as x, ListPage as S, ListRow as C, ListT
14
14
  import { SignOutIcon as A } from "@parallelworks/ui/icons";
15
15
  // src/routes/$workspace/settings/sessions.tsx?tsr-split=component
16
16
  function j() {
17
- let { data: j } = y(r), N = m("sessions"), P = a(), F = v(), I = n(), L = c(), R = () => F.invalidateQueries({ queryKey: r.queryKey }), z = _({
17
+ let { data: j } = y(n), N = m("sessions"), P = c(), F = v(), I = s(), L = a(), R = () => F.invalidateQueries({ queryKey: n.queryKey }), z = _({
18
18
  mutationFn: async (n) => t(await e.DELETE("/api/v1/me/sessions/{sessionId}", { params: { path: { sessionId: n } } })),
19
19
  onMutate: L.clear,
20
20
  onSettled: R
@@ -55,7 +55,7 @@ function j() {
55
55
  confirmLabel: N("end"),
56
56
  onConfirm: () => z.mutateAsync(e.id)
57
57
  });
58
- return /* @__PURE__ */ g(s, {
58
+ return /* @__PURE__ */ g(i, {
59
59
  wide: !0,
60
60
  title: N("title"),
61
61
  description: N("description"),
@@ -88,7 +88,7 @@ function j() {
88
88
  nounPlural: N("nounPlural")
89
89
  },
90
90
  empty: {
91
- icon: /* @__PURE__ */ h(i, {}),
91
+ icon: /* @__PURE__ */ h(r, {}),
92
92
  title: N("none")
93
93
  },
94
94
  noMatches: N("noMatches"),
@@ -107,7 +107,7 @@ function j() {
107
107
  onClick: () => $(e)
108
108
  }],
109
109
  children: [/* @__PURE__ */ h(T, {
110
- icon: /* @__PURE__ */ h(i, {}),
110
+ icon: /* @__PURE__ */ h(r, {}),
111
111
  iconTile: !0,
112
112
  name: M(e.userAgent) || N("unknownBrowser"),
113
113
  subtitle: e.current ? N("current", { created: P.relative(e.createdAt) }) : N("created", { created: P.relative(e.createdAt) }),
@@ -1,11 +1,11 @@
1
- import { redirect as e } from "../../../lib/router.js";
2
- import { meQuery as t, sessionsQuery as n } from "../../../api/queries.js";
1
+ import { meQuery as e, sessionsQuery as t } from "../../../api/queries.js";
2
+ import { redirect as n } from "../../../lib/router.js";
3
3
  // src/routes/$workspace/settings/sessions.tsx?tsr-split=loader
4
4
  var r = async ({ context: { queryClient: r }, params: { workspace: i } }) => {
5
- if ((await r.ensureQueryData(t))?.mode === "platform") throw e({
5
+ if ((await r.ensureQueryData(e))?.mode === "platform") throw n({
6
6
  to: "/$workspace/settings/account",
7
7
  params: { workspace: i }
8
8
  });
9
- await r.ensureQueryData(n);
9
+ await r.ensureQueryData(t);
10
10
  };
11
11
  export { r as loader };
@@ -1,12 +1,12 @@
1
1
  import { api as e, unwrap as t } from "../../../api/client.js";
2
2
  import { slackQuery as n } from "../../../api/queries.js";
3
- import { externalUrl as r } from "../../../lib/externalUrl.js";
4
- import { usePeople as i } from "../../../lib/people.js";
5
- import { useCan as a } from "../../../lib/roles.js";
6
- import { useConfirm as o } from "../../../lib/confirm.js";
7
- import { AdminOnly as s, SettingsPage as c, useFormError as l } from "../../../components/settings.js";
8
- import { Route as u } from "./slack.js";
9
- import { ConnectionCard as d } from "../../../components/ConnectionCard.js";
3
+ import { ConnectionCard as r } from "../../../components/ConnectionCard.js";
4
+ import { AdminOnly as i, SettingsPage as a, useFormError as o } from "../../../components/settings.js";
5
+ import { useConfirm as s } from "../../../lib/confirm.js";
6
+ import { externalUrl as c } from "../../../lib/externalUrl.js";
7
+ import { usePeople as l } from "../../../lib/people.js";
8
+ import { useCan as u } from "../../../lib/roles.js";
9
+ import { Route as d } from "./slack.js";
10
10
  import { Button as f, SettingsCard as p, StatusLabel as m, buttonClasses as h } from "@parallelworks/ui";
11
11
  import { useFormatter as g, useTranslations as _ } from "use-intl";
12
12
  import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
@@ -14,11 +14,11 @@ import { useMutation as x, useQueryClient as S, useSuspenseQuery as C } from "@t
14
14
  import { SlackIcon as w } from "@parallelworks/ui/brand-icons";
15
15
  // src/routes/$workspace/settings/slack.tsx?tsr-split=component
16
16
  function T() {
17
- let { workspace: T } = u.useParams(), { slack: E } = u.useSearch(), { data: D } = C(n(T)), O = a(T, "manage_workspace"), k = _("settingsNav"), A = _("slack"), j = g(), { person: M } = i(T), N = S(), P = l(), { confirm: F, dialog: I } = o(), L = x({
17
+ let { workspace: T } = d.useParams(), { slack: E } = d.useSearch(), { data: D } = C(n(T)), O = u(T, "manage_workspace"), k = _("settingsNav"), A = _("slack"), j = g(), { person: M } = l(T), N = S(), P = o(), { confirm: F, dialog: I } = s(), L = x({
18
18
  mutationFn: async () => t(await e.POST("/api/v1/workspaces/{workspace}/slack/connect", { params: { path: { workspace: T } } })),
19
19
  onMutate: P.clear,
20
20
  onSuccess: ({ url: e }) => {
21
- let t = r(e);
21
+ let t = c(e);
22
22
  t && window.location.assign(t);
23
23
  },
24
24
  onError: P.set
@@ -28,11 +28,11 @@ function T() {
28
28
  onSuccess: () => N.invalidateQueries({ queryKey: n(T).queryKey }),
29
29
  onError: P.set
30
30
  });
31
- return /* @__PURE__ */ b(c, {
31
+ return /* @__PURE__ */ b(a, {
32
32
  title: k("slack"),
33
33
  description: A("pageDescription"),
34
34
  children: [
35
- /* @__PURE__ */ y(s, { workspace: T }),
35
+ /* @__PURE__ */ y(i, { workspace: T }),
36
36
  I,
37
37
  D.enabled ? /* @__PURE__ */ b("div", {
38
38
  className: "space-y-6",
@@ -46,7 +46,7 @@ function T() {
46
46
  className: "text-sm text-muted-foreground",
47
47
  children: A("managedByHost")
48
48
  }),
49
- /* @__PURE__ */ y(d, {
49
+ /* @__PURE__ */ y(r, {
50
50
  icon: /* @__PURE__ */ y(w, { className: "size-7" }),
51
51
  name: k("slack"),
52
52
  status: D.connected ? A("connectedTo", {
@@ -1,8 +1,8 @@
1
1
  import { api as e, unwrap as t } from "../../../api/client.js";
2
2
  import { providersQuery as n, ssoQuery as r } from "../../../api/queries.js";
3
- import { useCan as i } from "../../../lib/roles.js";
4
- import { useConfirm as a } from "../../../lib/confirm.js";
5
- import { AdminOnly as o, SettingsPage as s, cardList as c, useFormError as l } from "../../../components/settings.js";
3
+ import { AdminOnly as i, SettingsPage as a, cardList as o, useFormError as s } from "../../../components/settings.js";
4
+ import { useConfirm as c } from "../../../lib/confirm.js";
5
+ import { useCan as l } from "../../../lib/roles.js";
6
6
  import { Route as u } from "./sso.js";
7
7
  import { Button as d, CopyButton as f, CopyCodeBlock as p, ErrorText as m, Input as h, Section as g, Select as _, SettingRow as v, SettingsCard as y, StatusLabel as b, Switch as x } from "@parallelworks/ui";
8
8
  import { useState as S } from "react";
@@ -11,17 +11,17 @@ import { jsx as w, jsxs as T } from "react/jsx-runtime";
11
11
  import { useMutation as E, useQueryClient as D, useSuspenseQuery as O } from "@tanstack/react-query";
12
12
  // src/routes/$workspace/settings/sso.tsx?tsr-split=component
13
13
  function k() {
14
- let { workspace: e } = u.useParams(), t = C("settingsNav"), r = C("sso"), a = i(e, "manage_workspace"), { data: c } = O(n);
15
- return /* @__PURE__ */ T(s, {
14
+ let { workspace: e } = u.useParams(), t = C("settingsNav"), r = C("sso"), o = l(e, "manage_workspace"), { data: s } = O(n);
15
+ return /* @__PURE__ */ T(a, {
16
16
  title: t("sso"),
17
17
  description: r("description"),
18
18
  children: [
19
- /* @__PURE__ */ w(o, { workspace: e }),
20
- !c.sso && /* @__PURE__ */ w("p", {
19
+ /* @__PURE__ */ w(i, { workspace: e }),
20
+ !s.sso && /* @__PURE__ */ w("p", {
21
21
  className: "rounded-lg bg-muted px-3 py-2 text-sm text-muted-foreground",
22
22
  children: r("off")
23
23
  }),
24
- a && c.sso && /* @__PURE__ */ w(A, { workspace: e })
24
+ o && s.sso && /* @__PURE__ */ w(A, { workspace: e })
25
25
  ]
26
26
  });
27
27
  }
@@ -43,19 +43,19 @@ function A({ workspace: e }) {
43
43
  });
44
44
  }
45
45
  function j({ workspace: n, sso: i }) {
46
- let a = C("sso"), o = D(), s = l(), [c, u] = S(i.issuer ?? ""), [p, m] = S(i.clientId ?? ""), [g, b] = S(""), [O, k] = S(i.defaultRole), [A, j] = S(i.requireSso), M = E({
46
+ let a = C("sso"), o = D(), c = s(), [l, u] = S(i.issuer ?? ""), [p, m] = S(i.clientId ?? ""), [g, b] = S(""), [O, k] = S(i.defaultRole), [A, j] = S(i.requireSso), M = E({
47
47
  mutationFn: async () => t(await e.PUT("/api/v1/workspaces/{workspace}/sso", {
48
48
  params: { path: { workspace: n } },
49
49
  body: {
50
- issuer: c.trim(),
50
+ issuer: l.trim(),
51
51
  clientId: p.trim(),
52
52
  defaultRole: O,
53
53
  requireSso: A,
54
54
  ...g && { clientSecret: g }
55
55
  }
56
56
  })),
57
- onMutate: s.clear,
58
- onError: s.set,
57
+ onMutate: c.clear,
58
+ onError: c.set,
59
59
  onSuccess: (e) => {
60
60
  b(""), o.setQueryData(r(n).queryKey, e);
61
61
  }
@@ -73,7 +73,7 @@ function j({ workspace: n, sso: i }) {
73
73
  children: M.isSuccess ? a("saved") : a("save")
74
74
  }),
75
75
  actionAlign: "end",
76
- error: s.error,
76
+ error: c.error,
77
77
  children: [
78
78
  /* @__PURE__ */ w(v, {
79
79
  label: a("callbackUrl"),
@@ -100,7 +100,7 @@ function j({ workspace: n, sso: i }) {
100
100
  type: "url",
101
101
  required: !0,
102
102
  placeholder: "https://login.example.com",
103
- value: c,
103
+ value: l,
104
104
  onChange: (e) => u(e.target.value),
105
105
  mono: !0
106
106
  })
@@ -162,7 +162,7 @@ function j({ workspace: n, sso: i }) {
162
162
  });
163
163
  }
164
164
  function M({ workspace: n, sso: i }) {
165
- let o = C("sso"), s = D(), u = l(), { confirm: f, dialog: g } = a(), [_, v] = S(""), y = () => s.invalidateQueries({ queryKey: r(n).queryKey }), x = E({
165
+ let a = C("sso"), l = D(), u = s(), { confirm: f, dialog: g } = c(), [_, v] = S(""), y = () => l.invalidateQueries({ queryKey: r(n).queryKey }), x = E({
166
166
  mutationFn: async () => t(await e.POST("/api/v1/workspaces/{workspace}/sso/domains", {
167
167
  params: { path: { workspace: n } },
168
168
  body: { domain: _.trim() }
@@ -190,19 +190,19 @@ function M({ workspace: n, sso: i }) {
190
190
  return /* @__PURE__ */ T("section", { children: [
191
191
  /* @__PURE__ */ w("h2", {
192
192
  className: "text-sm font-semibold",
193
- children: o("domains")
193
+ children: a("domains")
194
194
  }),
195
195
  /* @__PURE__ */ w("p", {
196
196
  className: "mt-0.5 text-sm text-muted-foreground",
197
- children: o("domainsDescription")
197
+ children: a("domainsDescription")
198
198
  }),
199
199
  /* @__PURE__ */ T("div", {
200
200
  className: "mt-4 rounded-lg border border-border",
201
201
  children: [i.domains.length === 0 ? /* @__PURE__ */ w("p", {
202
202
  className: "px-3 py-3 text-sm text-muted-foreground",
203
- children: o("noDomains")
203
+ children: a("noDomains")
204
204
  }) : /* @__PURE__ */ w("ul", {
205
- className: c,
205
+ className: o,
206
206
  children: i.domains.map((e) => /* @__PURE__ */ T("li", {
207
207
  className: "px-3 py-3",
208
208
  children: [
@@ -216,7 +216,7 @@ function M({ workspace: n, sso: i }) {
216
216
  }), /* @__PURE__ */ w(b, {
217
217
  variant: e.verified ? "success" : "warning",
218
218
  className: "text-xs",
219
- children: e.verified ? o("verified") : o("pending")
219
+ children: e.verified ? a("verified") : a("pending")
220
220
  })]
221
221
  }), /* @__PURE__ */ T("div", {
222
222
  className: "flex shrink-0 gap-2",
@@ -225,17 +225,17 @@ function M({ workspace: n, sso: i }) {
225
225
  variant: "outline",
226
226
  loading: O.isPending && O.variables === e.domain,
227
227
  onClick: () => O.mutate(e.domain),
228
- children: o("verify")
228
+ children: a("verify")
229
229
  }), /* @__PURE__ */ w(d, {
230
230
  size: "sm",
231
231
  variant: "ghost",
232
232
  onClick: () => f({
233
- title: o("removeDomainTitle", { domain: e.domain }),
234
- description: o("removeDomainDescription"),
235
- confirmLabel: o("removeDomain"),
233
+ title: a("removeDomainTitle", { domain: e.domain }),
234
+ description: a("removeDomainDescription"),
235
+ confirmLabel: a("removeDomain"),
236
236
  onConfirm: () => k.mutateAsync(e.domain)
237
237
  }),
238
- children: o("removeDomain")
238
+ children: a("removeDomain")
239
239
  })]
240
240
  })]
241
241
  }),
@@ -248,32 +248,32 @@ function M({ workspace: n, sso: i }) {
248
248
  className: "mt-3 space-y-2",
249
249
  children: [/* @__PURE__ */ w("p", {
250
250
  className: "text-sm text-muted-foreground",
251
- children: o("txtInstructions")
251
+ children: a("txtInstructions")
252
252
  }), /* @__PURE__ */ T("dl", {
253
253
  className: "grid gap-2 sm:grid-cols-[auto_1fr] sm:items-center",
254
254
  children: [
255
255
  /* @__PURE__ */ w("dt", {
256
256
  className: "text-xs text-muted-foreground",
257
- children: o("txtName")
257
+ children: a("txtName")
258
258
  }),
259
259
  /* @__PURE__ */ w("dd", {
260
260
  className: "min-w-0",
261
261
  children: /* @__PURE__ */ w(p, {
262
262
  text: e.txtName,
263
- label: o("txtName"),
263
+ label: a("txtName"),
264
264
  wrap: !0,
265
265
  children: e.txtName
266
266
  })
267
267
  }),
268
268
  /* @__PURE__ */ w("dt", {
269
269
  className: "text-xs text-muted-foreground",
270
- children: o("txtValue")
270
+ children: a("txtValue")
271
271
  }),
272
272
  /* @__PURE__ */ w("dd", {
273
273
  className: "min-w-0",
274
274
  children: /* @__PURE__ */ w(p, {
275
275
  text: e.txtValue,
276
- label: o("txtValue"),
276
+ label: a("txtValue"),
277
277
  wrap: !0,
278
278
  children: e.txtValue
279
279
  })
@@ -293,7 +293,7 @@ function M({ workspace: n, sso: i }) {
293
293
  children: [/* @__PURE__ */ w("div", {
294
294
  className: "min-w-0 flex-1",
295
295
  children: /* @__PURE__ */ w(h, {
296
- "aria-label": o("domain"),
296
+ "aria-label": a("domain"),
297
297
  "aria-describedby": A ? "sso-domain-error" : void 0,
298
298
  placeholder: "example.com",
299
299
  value: _,
@@ -305,7 +305,7 @@ function M({ workspace: n, sso: i }) {
305
305
  type: "submit",
306
306
  size: "sm",
307
307
  loading: x.isPending,
308
- children: o("addDomain")
308
+ children: a("addDomain")
309
309
  })]
310
310
  }), /* @__PURE__ */ w(m, {
311
311
  id: "sso-domain-error",
@@ -319,10 +319,10 @@ function M({ workspace: n, sso: i }) {
319
319
  ] });
320
320
  }
321
321
  function N({ workspace: n }) {
322
- let i = C("sso"), o = D(), s = l(), { confirm: c, dialog: u } = a(), f = E({
322
+ let i = C("sso"), a = D(), o = s(), { confirm: l, dialog: u } = c(), f = E({
323
323
  mutationFn: async () => t(await e.DELETE("/api/v1/workspaces/{workspace}/sso", { params: { path: { workspace: n } } })),
324
- onMutate: s.clear,
325
- onSettled: () => o.invalidateQueries({ queryKey: r(n).queryKey })
324
+ onMutate: o.clear,
325
+ onSettled: () => a.invalidateQueries({ queryKey: r(n).queryKey })
326
326
  });
327
327
  return /* @__PURE__ */ T(g, {
328
328
  variant: "card",
@@ -335,7 +335,7 @@ function N({ workspace: n }) {
335
335
  /* @__PURE__ */ w(d, {
336
336
  variant: "danger",
337
337
  loading: f.isPending,
338
- onClick: () => c({
338
+ onClick: () => l({
339
339
  title: i("removeTitle"),
340
340
  description: i("removeDescription"),
341
341
  confirmLabel: i("remove"),
@@ -346,7 +346,7 @@ function N({ workspace: n }) {
346
346
  /* @__PURE__ */ w(m, {
347
347
  size: "md",
348
348
  className: "mt-3",
349
- children: s.error
349
+ children: o.error
350
350
  }),
351
351
  u
352
352
  ]
@@ -1,14 +1,14 @@
1
- import { redirect as e } from "../../../lib/router.js";
2
- import { meQuery as t, providersQuery as n, ssoQuery as r } from "../../../api/queries.js";
3
- import { may as i } from "../../../lib/roles.js";
1
+ import { meQuery as e, providersQuery as t, ssoQuery as n } from "../../../api/queries.js";
2
+ import { may as r } from "../../../lib/roles.js";
3
+ import { redirect as i } from "../../../lib/router.js";
4
4
  // src/routes/$workspace/settings/sso.tsx?tsr-split=loader
5
5
  var a = async ({ context: { queryClient: a }, params: { workspace: o } }) => {
6
- let s = await a.ensureQueryData(t);
7
- if (s?.mode === "platform") throw e({
6
+ let s = await a.ensureQueryData(e);
7
+ if (s?.mode === "platform") throw i({
8
8
  to: "/$workspace/settings",
9
9
  params: { workspace: o }
10
10
  });
11
- let c = await a.ensureQueryData(n);
12
- i(s, o, "manage_workspace") && c.sso && await a.ensureQueryData(r(o));
11
+ let c = await a.ensureQueryData(t);
12
+ r(s, o, "manage_workspace") && c.sso && await a.ensureQueryData(n(o));
13
13
  };
14
14
  export { a as loader };
@@ -1,12 +1,12 @@
1
- import { useNavigate as e } from "../../../lib/router.js";
2
- import { teamsQuery as t } from "../../../api/queries.js";
3
- import { copyItem as n, useLinkItems as r } from "../../../lib/menus.js";
4
- import { FolderIcon as i } from "../../../components/icons.js";
5
- import { useCan as a } from "../../../lib/roles.js";
6
- import { teamPath as o } from "../../../lib/teamPaths.js";
7
- import { AdminOnly as s, SettingsPage as c } from "../../../components/settings.js";
8
- import { Route as l } from "./teams.js";
9
- import { TeamForm as u } from "../../../components/TeamForm.js";
1
+ import { teamsQuery as e } from "../../../api/queries.js";
2
+ import { FolderIcon as t } from "../../../components/icons.js";
3
+ import { AdminOnly as n, SettingsPage as r } from "../../../components/settings.js";
4
+ import { TeamForm as i } from "../../../components/TeamForm.js";
5
+ import { copyItem as a, useLinkItems as o } from "../../../lib/menus.js";
6
+ import { useCan as s } from "../../../lib/roles.js";
7
+ import { useNavigate as c } from "../../../lib/router.js";
8
+ import { teamPath as l } from "../../../lib/teamPaths.js";
9
+ import { Route as u } from "./teams.js";
10
10
  import { Modal as d, ModalTitle as f, PageHeaderAddButton as p, StatusBadge as m, Table as h, menuDivider as g, useOpenMenu as _ } from "@parallelworks/ui";
11
11
  import { useMemo as v, useState as y } from "react";
12
12
  import { useTranslations as b } from "use-intl";
@@ -15,14 +15,14 @@ import { useSuspenseQuery as C } from "@tanstack/react-query";
15
15
  import { ListCellText as w, ListColumns as T, ListPage as E, ListRow as D, ListToolbar as O, NameCell as k, listTableProps as A, useListNavigate as j, useListSearch as M, useListView as N } from "@parallelworks/ui/list";
16
16
  // src/routes/$workspace/settings/teams.tsx?tsr-split=component
17
17
  function P() {
18
- let { workspace: e } = l.useParams();
18
+ let { workspace: e } = u.useParams();
19
19
  return /* @__PURE__ */ x(F, {
20
20
  workspace: e,
21
- isAdmin: a(e, "manage_teams")
21
+ isAdmin: s(e, "manage_teams")
22
22
  });
23
23
  }
24
- function F({ workspace: a, isAdmin: l }) {
25
- let { data: P } = C(t(a)), F = e(), I = b("settings"), L = b("common"), R = r(), z = M(), B = j(), V = _(), [H, U] = y(!1), W = v(() => [{
24
+ function F({ workspace: s, isAdmin: u }) {
25
+ let { data: P } = C(e(s)), F = c(), I = b("settings"), L = b("common"), R = o(), z = M(), B = j(), V = _(), [H, U] = y(!1), W = v(() => [{
26
26
  key: "name",
27
27
  label: L("name"),
28
28
  headerClassName: "py-2",
@@ -41,18 +41,18 @@ function F({ workspace: a, isAdmin: l }) {
41
41
  label: I("key"),
42
42
  compare: (e, t) => e.key.localeCompare(t.key)
43
43
  }], [I, L]), K = N({
44
- storageKey: `tandem-teams-${a}`,
44
+ storageKey: `tandem-teams-${s}`,
45
45
  defaultShowColumnHeaders: !1,
46
46
  columns: W,
47
47
  orderBys: G,
48
48
  defaultOrderBy: "name",
49
49
  facets: []
50
50
  }), q = z.filter.trim().toLowerCase(), J = P.filter((e) => !q || [e.name, e.key].some((e) => e.toLowerCase().includes(q)));
51
- return /* @__PURE__ */ S(c, {
51
+ return /* @__PURE__ */ S(r, {
52
52
  wide: !0,
53
53
  title: I("teams"),
54
54
  description: I("teamsDescription"),
55
- actions: l && /* @__PURE__ */ x(p, {
55
+ actions: u && /* @__PURE__ */ x(p, {
56
56
  label: I("newTeam"),
57
57
  word: "create",
58
58
  onClick: () => U(!0)
@@ -66,8 +66,8 @@ function F({ workspace: a, isAdmin: l }) {
66
66
  children: [
67
67
  /* @__PURE__ */ x("div", {
68
68
  className: "px-4",
69
- children: /* @__PURE__ */ x(s, {
70
- workspace: a,
69
+ children: /* @__PURE__ */ x(n, {
70
+ workspace: s,
71
71
  permission: "manage_teams"
72
72
  })
73
73
  }),
@@ -83,14 +83,14 @@ function F({ workspace: a, isAdmin: l }) {
83
83
  nounPlural: I("teamNounPlural")
84
84
  },
85
85
  empty: {
86
- icon: /* @__PURE__ */ x(i, {}),
86
+ icon: /* @__PURE__ */ x(t, {}),
87
87
  title: I("noTeams")
88
88
  },
89
89
  noMatches: I("teamNoMatches"),
90
90
  children: /* @__PURE__ */ S(h, {
91
91
  ...A,
92
92
  children: [/* @__PURE__ */ x(T, { view: K }), K.applyOrder(J).map((e) => /* @__PURE__ */ S(D, {
93
- href: o(a, e.key, "settings"),
93
+ href: l(s, e.key, "settings"),
94
94
  goTo: B,
95
95
  openMenu: V,
96
96
  items: [
@@ -99,7 +99,7 @@ function F({ workspace: a, isAdmin: l }) {
99
99
  onClick: () => F({
100
100
  to: "/$workspace/teams/$key/issues",
101
101
  params: {
102
- workspace: a,
102
+ workspace: s,
103
103
  key: e.key
104
104
  }
105
105
  })
@@ -109,20 +109,20 @@ function F({ workspace: a, isAdmin: l }) {
109
109
  onClick: () => F({
110
110
  to: "/$workspace/teams/$key/settings",
111
111
  params: {
112
- workspace: a,
112
+ workspace: s,
113
113
  key: e.key
114
114
  }
115
115
  })
116
116
  },
117
117
  g,
118
- ...R(o(a, e.key, "settings")),
119
- n(L("copyKey"), e.key)
118
+ ...R(l(s, e.key, "settings")),
119
+ a(L("copyKey"), e.key)
120
120
  ],
121
121
  children: [/* @__PURE__ */ x(k, {
122
- icon: /* @__PURE__ */ x(i, {}),
122
+ icon: /* @__PURE__ */ x(t, {}),
123
123
  iconTile: !0,
124
124
  name: e.name,
125
- href: o(a, e.key, "settings"),
125
+ href: l(s, e.key, "settings"),
126
126
  ...e.archivedAt && { badge: /* @__PURE__ */ x(m, {
127
127
  emphasis: "outline",
128
128
  children: I("teamArchived")
@@ -145,13 +145,13 @@ function F({ workspace: a, isAdmin: l }) {
145
145
  children: [/* @__PURE__ */ x(f, {
146
146
  className: "mb-4 text-sm font-semibold",
147
147
  children: I("newTeam")
148
- }), /* @__PURE__ */ x(u, {
149
- workspace: a,
148
+ }), /* @__PURE__ */ x(i, {
149
+ workspace: s,
150
150
  autoFocus: !0,
151
151
  onCreated: (e) => F({
152
152
  to: "/$workspace/teams/$key/settings",
153
153
  params: {
154
- workspace: a,
154
+ workspace: s,
155
155
  key: e.key
156
156
  }
157
157
  })