@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,19 +1,19 @@
1
- import { appPath as e } from "../lib/base.js";
2
- import { redirect as t } from "../lib/router.js";
3
- import { docsQuery as n, knowledgeQuery as r, meQuery as i, membersQuery as a, myTeamsQuery as o, teamsQuery as s, workspaceQuery as c } from "../api/queries.js";
1
+ import { docsQuery as e, knowledgeQuery as t, meQuery as n, membersQuery as r, myTeamsQuery as i, teamsQuery as a, workspaceQuery as o } from "../api/queries.js";
2
+ import { appPath as s } from "../lib/base.js";
3
+ import { redirect as c } from "../lib/router.js";
4
4
  // src/routes/$workspace.tsx?tsr-split=loader
5
5
  var l = async ({ context: { queryClient: l }, params: u, location: d }) => {
6
- if (!await l.ensureQueryData(i)) throw t({
6
+ if (!await l.ensureQueryData(n)) throw c({
7
7
  to: "/login",
8
- search: { next: e(d.href) }
8
+ search: { next: s(d.href) }
9
9
  });
10
10
  await Promise.all([
11
- l.ensureQueryData(c(u.workspace)),
12
- l.ensureQueryData(s(u.workspace)),
13
11
  l.ensureQueryData(o(u.workspace)),
14
12
  l.ensureQueryData(a(u.workspace)),
13
+ l.ensureQueryData(i(u.workspace)),
15
14
  l.ensureQueryData(r(u.workspace)),
16
- l.ensureQueryData(n(u.workspace, { top: !0 }))
15
+ l.ensureQueryData(t(u.workspace)),
16
+ l.ensureQueryData(e(u.workspace, { top: !0 }))
17
17
  ]);
18
18
  };
19
19
  export { l as loader };
package/routes/device2.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { api as e, unwrap as t } from "../api/client.js";
2
- import { Route as n } from "./device.js";
3
- import { Logo as r } from "../components/Logo.js";
2
+ import { Logo as n } from "../components/Logo.js";
3
+ import { Route as r } from "./device.js";
4
4
  import { Button as i, ErrorText as a } from "@parallelworks/ui";
5
5
  import { useState as o } from "react";
6
6
  import { useErrorMessage as s } from "@parallelworks/problem/react";
@@ -9,7 +9,7 @@ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
9
9
  import { useMutation as f, useQuery as p } from "@tanstack/react-query";
10
10
  // src/routes/device.tsx?tsr-split=component
11
11
  function m() {
12
- let m = c("device"), h = s(), { code: g } = n.useSearch(), _ = n.useLoaderData(), [v, y] = o(g ?? ""), b = v.trim().toUpperCase(), x = /^[A-Z]{4}-?[A-Z]{4}$/.test(b), S = p({
12
+ let m = c("device"), h = s(), { code: g } = r.useSearch(), _ = r.useLoaderData(), [v, y] = o(g ?? ""), b = v.trim().toUpperCase(), x = /^[A-Z]{4}-?[A-Z]{4}$/.test(b), S = p({
13
13
  queryKey: ["device", b],
14
14
  queryFn: async () => t(await e.GET("/api/v1/auth/device/{userCode}", { params: { path: { userCode: b } } })),
15
15
  enabled: x,
@@ -19,7 +19,7 @@ function m() {
19
19
  className: "flex min-h-screen items-center justify-center px-4",
20
20
  children: /* @__PURE__ */ d("div", {
21
21
  className: "w-full max-w-sm",
22
- children: [/* @__PURE__ */ u(r, { className: "mb-10" }), C.isSuccess ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("h1", {
22
+ children: [/* @__PURE__ */ u(n, { className: "mb-10" }), C.isSuccess ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("h1", {
23
23
  className: "text-2xl font-semibold tracking-tight",
24
24
  children: m("signedIn")
25
25
  }), /* @__PURE__ */ u("p", {
package/routes/device3.js CHANGED
@@ -1,9 +1,9 @@
1
- import { redirect as e } from "../lib/router.js";
2
- import { meQuery as t } from "../api/queries.js";
1
+ import { meQuery as e } from "../api/queries.js";
2
+ import { redirect as t } from "../lib/router.js";
3
3
  // src/routes/device.tsx?tsr-split=loader
4
4
  var n = async ({ context: n, location: r }) => {
5
- let i = await n.queryClient.ensureQueryData(t);
6
- if (!i) throw e({
5
+ let i = await n.queryClient.ensureQueryData(e);
6
+ if (!i) throw t({
7
7
  to: "/login",
8
8
  search: { next: r.href }
9
9
  });
@@ -1,10 +1,10 @@
1
- import { Route as e } from "./_endpoint.js";
2
- import { useApiSpec as t } from "../../../lib/useApiSpec.js";
1
+ import { useApiSpec as e } from "../../../lib/useApiSpec.js";
2
+ import { Route as t } from "./_endpoint.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  import { ApiOperation as i, ApiParameters as a, ApiRequestBody as o, ApiResponse as s } from "@parallelworks/api-docs/components";
5
5
  // src/routes/docs/$tag/$endpoint.tsx?tsr-split=component
6
6
  function c() {
7
- let c = e.useParams(), { spec: l, parsed: u } = t(), d = u.tags.find((e) => e.slug === c.tag)?.endpoints.find((e) => e.slug === c.endpoint);
7
+ let c = t.useParams(), { spec: l, parsed: u } = e(), d = u.tags.find((e) => e.slug === c.tag)?.endpoints.find((e) => e.slug === c.endpoint);
8
8
  if (!d) return null;
9
9
  let { operation: f } = d;
10
10
  return /* @__PURE__ */ r("div", {
@@ -1,11 +1,11 @@
1
1
  import { useNavigate as e } from "../../../lib/router.js";
2
- import { Route as t } from "./index.js";
3
- import { useApiSpec as n } from "../../../lib/useApiSpec.js";
2
+ import { useApiSpec as t } from "../../../lib/useApiSpec.js";
3
+ import { Route as n } from "./index.js";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
5
  import { ApiOperationCard as a } from "@parallelworks/api-docs/components";
6
6
  // src/routes/docs/$tag/index.tsx?tsr-split=component
7
7
  function o() {
8
- let o = t.useParams(), s = e(), c = n().parsed.tags.find((e) => e.slug === o.tag);
8
+ let o = n.useParams(), s = e(), c = t().parsed.tags.find((e) => e.slug === o.tag);
9
9
  return c ? /* @__PURE__ */ i("div", {
10
10
  className: "space-y-4",
11
11
  children: [
@@ -1,6 +1,6 @@
1
- import { usePageTitle as e } from "../../lib/pageTitle.js";
2
- import { Link as t, useLocation as n, useNavigate as r } from "../../lib/router.js";
3
- import { Logo as i } from "../../components/Logo.js";
1
+ import { Logo as e } from "../../components/Logo.js";
2
+ import { usePageTitle as t } from "../../lib/pageTitle.js";
3
+ import { Link as n, useLocation as r, useNavigate as i } from "../../lib/router.js";
4
4
  import { useApiSpec as a } from "../../lib/useApiSpec.js";
5
5
  import { useApiDocsMessages as o } from "./-apiDocsMessages.js";
6
6
  import { Outlet as s } from "@tanstack/react-router";
@@ -10,8 +10,8 @@ import { ApiDocsMessagesProvider as d, ApiSidebar as f, SchemaViewerProvider as
10
10
  // src/routes/docs/route.tsx?tsr-split=component
11
11
  function m() {
12
12
  let m = c("apiDocs.page");
13
- e(m("title"));
14
- let h = o(), { spec: g, parsed: _ } = a(), v = r(), y = n({ select: (e) => e.pathname.replace(/^\/docs\/?/, "").replace(/\/$/, "") });
13
+ t(m("title"));
14
+ let h = o(), { spec: g, parsed: _ } = a(), v = i(), y = r({ select: (e) => e.pathname.replace(/^\/docs\/?/, "").replace(/\/$/, "") });
15
15
  return /* @__PURE__ */ l(d, {
16
16
  messages: h,
17
17
  children: /* @__PURE__ */ u(p, {
@@ -20,9 +20,9 @@ function m() {
20
20
  className: "border-b border-border bg-card",
21
21
  children: /* @__PURE__ */ u("div", {
22
22
  className: "mx-auto flex h-12 max-w-7xl items-center gap-3 px-4",
23
- children: [/* @__PURE__ */ l(t, {
23
+ children: [/* @__PURE__ */ l(n, {
24
24
  to: "/",
25
- children: /* @__PURE__ */ l(i, {})
25
+ children: /* @__PURE__ */ l(e, {})
26
26
  }), /* @__PURE__ */ l("span", {
27
27
  className: "text-sm text-muted-foreground",
28
28
  children: m("title")
package/routes/index2.js CHANGED
@@ -1,11 +1,11 @@
1
- import { redirect as e } from "../lib/router.js";
2
- import { meQuery as t } from "../api/queries.js";
1
+ import { meQuery as e } from "../api/queries.js";
2
+ import { redirect as t } from "../lib/router.js";
3
3
  // src/routes/index.tsx?tsr-split=loader
4
4
  var n = async ({ context: n }) => {
5
- let r = await n.queryClient.ensureQueryData(t);
6
- if (!r) throw e({ to: "/login" });
5
+ let r = await n.queryClient.ensureQueryData(e);
6
+ if (!r) throw t({ to: "/login" });
7
7
  let i = r.workspaces[0];
8
- throw e(i ? {
8
+ throw t(i ? {
9
9
  to: "/$workspace/issues",
10
10
  params: { workspace: i.slug }
11
11
  } : { to: r.canCreateWorkspace ? "/new" : "/no-access" });
package/routes/login2.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { api as e, unwrap as t } from "../api/client.js";
2
- import { sitePath as n } from "../lib/sitePath.js";
3
- import { Route as r } from "./login.js";
4
- import { useNavigate as i } from "../lib/router.js";
5
- import { meQuery as a, providersQuery as o } from "../api/queries.js";
6
- import { Logo as s } from "../components/Logo.js";
2
+ import { meQuery as n, providersQuery as r } from "../api/queries.js";
3
+ import { Logo as i } from "../components/Logo.js";
4
+ import { useNavigate as a } from "../lib/router.js";
5
+ import { sitePath as o } from "../lib/sitePath.js";
6
+ import { Route as s } from "./login.js";
7
7
  import { Button as c, Callout as l, Input as u, MethodButton as d } from "@parallelworks/ui";
8
8
  import { useState as f } from "react";
9
9
  import { useErrorMessage as p } from "@parallelworks/problem/react";
@@ -19,7 +19,7 @@ var S = [
19
19
  "sso"
20
20
  ], C = (e) => S.some((t) => t === e);
21
21
  function w() {
22
- let S = m("login"), w = p(), T = m("common"), { data: E } = v(o), { next: D, error: O } = r.useSearch(), k = n(D), A = i(), j = _(), [M, N] = f(""), [P, F] = f(""), [I, L] = f(O && C(O) ? S(`errors.${O}`) : null), [R, z] = f(!1), [B, V] = f(null), [H, U] = f(""), [W, G] = f(!1), K = async (n) => {
22
+ let S = m("login"), w = p(), T = m("common"), { data: E } = v(r), { next: D, error: O } = s.useSearch(), k = o(D), A = a(), j = _(), [M, N] = f(""), [P, F] = f(""), [I, L] = f(O && C(O) ? S(`errors.${O}`) : null), [R, z] = f(!1), [B, V] = f(null), [H, U] = f(""), [W, G] = f(!1), K = async (n) => {
23
23
  n.preventDefault(), G(!0), L(null);
24
24
  try {
25
25
  let n = t(await e.POST("/api/v1/auth/route", { body: {
@@ -35,14 +35,14 @@ function w() {
35
35
  L(w(e));
36
36
  }
37
37
  G(!1);
38
- }, q = async (n) => {
39
- n.preventDefault(), z(!0), L(null);
38
+ }, q = async (r) => {
39
+ r.preventDefault(), z(!0), L(null);
40
40
  try {
41
41
  t(await e.POST("/api/v1/auth/dev-login", { body: {
42
42
  email: M,
43
43
  name: P
44
44
  } })), await j.fetchQuery({
45
- ...a,
45
+ ...n,
46
46
  staleTime: 0
47
47
  }), await A({ href: k });
48
48
  } catch (e) {
@@ -56,7 +56,7 @@ function w() {
56
56
  children: /* @__PURE__ */ g("div", {
57
57
  className: "w-full max-w-sm",
58
58
  children: [
59
- /* @__PURE__ */ h(s, { className: "mb-10" }),
59
+ /* @__PURE__ */ h(i, { className: "mb-10" }),
60
60
  /* @__PURE__ */ h("h1", {
61
61
  className: "text-2xl font-semibold tracking-tight",
62
62
  children: S("title")
package/routes/new2.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { ApiError as e, api as t, unwrap as n } from "../api/client.js";
2
- import { usePageTitle as r } from "../lib/pageTitle.js";
3
- import { Route as i } from "./new.js";
4
- import { useNavigate as a } from "../lib/router.js";
5
- import { meQuery as o } from "../api/queries.js";
6
- import { Logo as s } from "../components/Logo.js";
2
+ import { meQuery as r } from "../api/queries.js";
3
+ import { Logo as i } from "../components/Logo.js";
4
+ import { usePageTitle as a } from "../lib/pageTitle.js";
5
+ import { useNavigate as o } from "../lib/router.js";
6
+ import { Route as s } from "./new.js";
7
7
  import { Button as c, ErrorText as l, Input as u } from "@parallelworks/ui";
8
8
  import { useState as d } from "react";
9
9
  import { useErrorMessage as f } from "@parallelworks/problem/react";
@@ -15,21 +15,21 @@ function _(e) {
15
15
  return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 63);
16
16
  }
17
17
  function v() {
18
- let v = i.useLoaderData(), y = p("newWorkspace");
19
- r(y("title"));
20
- let b = f(), x = p("common"), S = a(), C = g(), [w, T] = d(""), [E, D] = d(""), [O, k] = d(!1), [A, j] = d({}), [M, N] = d(!1), P = O ? E : _(w);
18
+ let v = s.useLoaderData(), y = p("newWorkspace");
19
+ a(y("title"));
20
+ let b = f(), x = p("common"), S = o(), C = g(), [w, T] = d(""), [E, D] = d(""), [O, k] = d(!1), [A, j] = d({}), [M, N] = d(!1), P = O ? E : _(w);
21
21
  return /* @__PURE__ */ m("main", {
22
22
  className: "flex min-h-screen items-center justify-center px-4",
23
23
  children: /* @__PURE__ */ h("form", {
24
- onSubmit: async (r) => {
25
- r.preventDefault(), N(!0), j({});
24
+ onSubmit: async (i) => {
25
+ i.preventDefault(), N(!0), j({});
26
26
  try {
27
27
  let e = n(await t.POST("/api/v1/workspaces", { body: {
28
28
  name: w,
29
29
  slug: P
30
30
  } }));
31
31
  await C.fetchQuery({
32
- ...o,
32
+ ...r,
33
33
  staleTime: 0
34
34
  }), await S({
35
35
  to: "/$workspace/issues",
@@ -43,7 +43,7 @@ function v() {
43
43
  },
44
44
  className: "w-full max-w-sm space-y-4",
45
45
  children: [
46
- /* @__PURE__ */ m(s, { className: "mb-10" }),
46
+ /* @__PURE__ */ m(i, { className: "mb-10" }),
47
47
  /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("h1", {
48
48
  className: "text-2xl font-semibold tracking-tight",
49
49
  children: y("title")
package/routes/new3.js CHANGED
@@ -1,13 +1,13 @@
1
- import { redirect as e } from "../lib/router.js";
2
- import { meQuery as t } from "../api/queries.js";
1
+ import { meQuery as e } from "../api/queries.js";
2
+ import { redirect as t } from "../lib/router.js";
3
3
  // src/routes/new.tsx?tsr-split=loader
4
4
  var n = async ({ context: n }) => {
5
- let r = await n.queryClient.ensureQueryData(t);
6
- if (!r) throw e({
5
+ let r = await n.queryClient.ensureQueryData(e);
6
+ if (!r) throw t({
7
7
  to: "/login",
8
8
  search: { next: "/new" }
9
9
  });
10
- if (!r.canCreateWorkspace) throw e({ to: "/" });
10
+ if (!r.canCreateWorkspace) throw t({ to: "/" });
11
11
  return r;
12
12
  };
13
13
  export { n as loader };
@@ -1,7 +1,7 @@
1
1
  import { api as e, unwrap as t } from "../api/client.js";
2
- import { usePageTitle as n } from "../lib/pageTitle.js";
3
- import { Route as r } from "./request._token.js";
4
- import { Logo as i } from "../components/Logo.js";
2
+ import { Logo as n } from "../components/Logo.js";
3
+ import { usePageTitle as r } from "../lib/pageTitle.js";
4
+ import { Route as i } from "./request._token.js";
5
5
  import { Button as a, Card as o, ErrorText as s, Input as c, Textarea as l } from "@parallelworks/ui";
6
6
  import { useState as u } from "react";
7
7
  import { useErrorMessage as d } from "@parallelworks/problem/react";
@@ -10,7 +10,7 @@ import { jsx as p, jsxs as m } from "react/jsx-runtime";
10
10
  import { useMutation as h, useQuery as g } from "@tanstack/react-query";
11
11
  // src/routes/request.$token.tsx?tsr-split=component
12
12
  function _() {
13
- let _ = f("intakeForm"), v = d(), { token: y } = r.useParams(), { data: b, error: x } = g({
13
+ let _ = f("intakeForm"), v = d(), { token: y } = i.useParams(), { data: b, error: x } = g({
14
14
  queryKey: ["intake", y],
15
15
  queryFn: async ({ signal: n }) => t(await e.GET("/api/v1/intake/{token}", {
16
16
  params: { path: { token: y } },
@@ -18,7 +18,7 @@ function _() {
18
18
  })),
19
19
  retry: !1
20
20
  });
21
- n(b ? _("title", { team: b.team }) : _("heading"));
21
+ r(b ? _("title", { team: b.team }) : _("heading"));
22
22
  let [S, C] = u(""), [w, T] = u(""), [E, D] = u(""), [O, k] = u(""), A = h({ mutationFn: async () => t(await e.POST("/api/v1/intake/{token}/requests", {
23
23
  params: { path: { token: y } },
24
24
  body: {
@@ -32,7 +32,7 @@ function _() {
32
32
  className: "min-h-full bg-background px-4 py-10",
33
33
  children: /* @__PURE__ */ m("div", {
34
34
  className: "mx-auto max-w-lg",
35
- children: [/* @__PURE__ */ p(i, { className: "mb-8 h-6" }), /* @__PURE__ */ p(o, {
35
+ children: [/* @__PURE__ */ p(n, { className: "mb-8 h-6" }), /* @__PURE__ */ p(o, {
36
36
  padding: "lg",
37
37
  children: x || b && !b.form ? /* @__PURE__ */ p("p", {
38
38
  className: "text-sm",
@@ -1,10 +1,10 @@
1
- import { Route as e } from "./share._secret.js";
2
- import { SharedViewer as t } from "../components/SharedViewer.js";
1
+ import { SharedViewer as e } from "../components/SharedViewer.js";
2
+ import { Route as t } from "./share._secret.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  // src/routes/share.$secret.tsx?tsr-split=component
5
5
  function r() {
6
- let { secret: r } = e.useParams(), { doc: i } = e.useSearch();
7
- return /* @__PURE__ */ n(t, {
6
+ let { secret: r } = t.useParams(), { doc: i } = t.useSearch();
7
+ return /* @__PURE__ */ n(e, {
8
8
  source: { secret: r },
9
9
  ...i && { doc: i }
10
10
  });