@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.
- package/_virtual/_virtual_i18n/en/common.js +5 -2
- package/_virtual/_virtual_i18n/es/common.js +5 -2
- package/_virtual/_virtual_i18n/ja/common.js +5 -2
- package/_virtual/_virtual_i18n/ko/common.js +5 -2
- package/_virtual/_virtual_i18n/zh/common.js +5 -2
- package/components/AccessGrants.js +6 -6
- package/components/ActivityTimeline.js +60 -60
- package/components/ActorAvatar.js +4 -4
- package/components/ActorLink.js +34 -0
- package/components/AgentWork.js +494 -494
- package/components/AppLauncher.js +7 -7
- package/components/AreaLink.js +13 -13
- package/components/AreaTiles.js +13 -13
- package/components/AreaWork.js +22 -22
- package/components/Attachments.js +73 -69
- package/components/BlockHandle.js +3 -3
- package/components/BugRotation.js +8 -8
- package/components/CodeHostSettings.js +121 -87
- package/components/CollabEditor.js +13 -13
- package/components/CommandPalette.js +206 -206
- package/components/CustomFields.js +95 -95
- package/components/CustomerRequests.js +11 -11
- package/components/DashboardPanel.js +201 -164
- package/components/DateChip.js +21 -21
- package/components/DocHistory.js +14 -14
- package/components/DocIcon.js +4 -4
- package/components/DocIconPicker.js +4 -4
- package/components/DocLinkPicker.js +22 -22
- package/components/DocLook.js +16 -16
- package/components/DocProperties.js +81 -81
- package/components/DocTable.js +53 -53
- package/components/DocsTree.js +179 -179
- package/components/Editor.js +69 -69
- package/components/FavoritesNav.js +78 -78
- package/components/GitHub.js +87 -87
- package/components/Graph.js +14 -14
- package/components/HostActions.js +21 -21
- package/components/HostPanel.js +6 -6
- package/components/HoverCards.js +74 -74
- package/components/IssueBoard.js +13 -10
- package/components/IssueBreakdown.js +31 -31
- package/components/IssueCode.js +19 -19
- package/components/IssueEvent.js +97 -92
- package/components/IssueFilters.js +39 -39
- package/components/IssueGroup.js +16 -16
- package/components/IssueImport.js +13 -13
- package/components/IssueInsights.js +20 -20
- package/components/IssueListBlock.js +81 -81
- package/components/IssueRelations.js +34 -34
- package/components/IssueRow.js +31 -31
- package/components/IssueSentry.js +36 -34
- package/components/IssueTemplates.js +23 -23
- package/components/IssueTypes.js +40 -40
- package/components/MarkdownTransfer.js +10 -10
- package/components/MentionPicker.js +19 -19
- package/components/NewIssueDialog.js +53 -53
- package/components/NewProjectDialog.js +82 -82
- package/components/PersonActivity.js +13 -13
- package/components/PersonHoverCard.js +44 -44
- package/components/Planning.js +16 -16
- package/components/Reports.js +8 -8
- package/components/SettingsNav.js +15 -15
- package/components/ShareDialog.js +8 -8
- package/components/SharedViewer.js +23 -23
- package/components/SlashMenu.js +26 -26
- package/components/SubPages.js +10 -10
- package/components/TeamForm.js +9 -9
- package/components/TeamRepositories.js +21 -21
- package/components/TeamWorkflow.js +6 -6
- package/components/UnlinkedMentions.js +29 -29
- package/components/Updates.js +8 -8
- package/components/Widgets.js +99 -97
- package/components/WorkCounts.js +12 -12
- package/components/cycleCrumb.js +8 -8
- package/components/editorPlugins.js +101 -101
- package/components/settings.js +6 -6
- package/components/video.js +7 -7
- package/hostedApp.js +24 -24
- package/index.js +18 -18
- package/lib/assignees.js +3 -3
- package/lib/attachments.js +12 -12
- package/lib/boardMove.js +27 -27
- package/lib/collab.js +1 -1
- package/lib/docs.js +115 -115
- package/lib/githubLink.js +7 -7
- package/lib/issueList.js +51 -51
- package/lib/issueMenu.js +117 -117
- package/lib/knowledge.js +134 -134
- package/lib/live.js +38 -38
- package/lib/notifications.js +47 -47
- package/lib/triageSeen.js +2 -2
- package/lib/views.js +31 -31
- package/package.json +24 -24
- package/pages/area.js +64 -64
- package/pages/areas.js +199 -199
- package/pages/decisions.js +51 -51
- package/pages/issues.js +120 -120
- package/pages/projects.js +238 -238
- package/pages/triage.js +202 -212
- package/routes/_workspace/agents/_slug2.js +127 -127
- package/routes/_workspace/agents/index2.js +22 -22
- package/routes/_workspace/dashboards/_dashboardId2.js +84 -84
- package/routes/_workspace/dashboards/index2.js +34 -34
- package/routes/_workspace/docs/_doc2.js +267 -267
- package/routes/_workspace/docs/space2._space.js +31 -31
- package/routes/_workspace/docs2.js +4 -4
- package/routes/_workspace/graph2.js +11 -11
- package/routes/_workspace/graph3.js +11 -11
- package/routes/_workspace/issues/_identifier2.js +519 -522
- package/routes/_workspace/issues/index.js +13 -13
- package/routes/_workspace/knowledge/_term2.js +148 -146
- package/routes/_workspace/knowledge/_term3.js +4 -4
- package/routes/_workspace/knowledge/index.js +12 -12
- package/routes/_workspace/knowledge/index2.js +117 -115
- package/routes/_workspace/measures2.js +8 -8
- package/routes/_workspace/measures3.js +29 -29
- package/routes/_workspace/notifications2.js +263 -263
- package/routes/_workspace/people/_username.js +10 -10
- package/routes/_workspace/people/_username2.js +41 -41
- package/routes/_workspace/projects/_projectId3.js +303 -303
- package/routes/_workspace/projects/_projectId4.js +4 -4
- package/routes/_workspace/projects/_projectId_3.milestones._milestoneId.js +28 -28
- package/routes/_workspace/projects/_projectId_4.milestones._milestoneId.js +4 -4
- package/routes/_workspace/projects/index.js +8 -8
- package/routes/_workspace/settings/account2.js +8 -8
- package/routes/_workspace/settings/audit-log2.js +8 -8
- package/routes/_workspace/settings/audit-log3.js +155 -155
- package/routes/_workspace/settings/connections2.js +4 -4
- package/routes/_workspace/settings/fields2.js +5 -5
- package/routes/_workspace/settings/github2.js +11 -11
- package/routes/_workspace/settings/gitlab2.js +5 -5
- package/routes/_workspace/settings/groups2.js +52 -52
- package/routes/_workspace/settings/import2.js +39 -39
- package/routes/_workspace/settings/index2.js +5 -5
- package/routes/_workspace/settings/intercom2.js +11 -11
- package/routes/_workspace/settings/labels2.js +33 -33
- package/routes/_workspace/settings/members2.js +81 -81
- package/routes/_workspace/settings/notifications2.js +46 -46
- package/routes/_workspace/settings/parallelworks2.js +20 -20
- package/routes/_workspace/settings/roles2.js +41 -41
- package/routes/_workspace/settings/runners2.js +15 -15
- package/routes/_workspace/settings/sentry2.js +15 -15
- package/routes/_workspace/settings/sessions2.js +9 -9
- package/routes/_workspace/settings/sessions3.js +4 -4
- package/routes/_workspace/settings/slack2.js +12 -12
- package/routes/_workspace/settings/sso2.js +37 -37
- package/routes/_workspace/settings/sso3.js +7 -7
- package/routes/_workspace/settings/teams2.js +29 -29
- package/routes/_workspace/settings/tokens2.js +32 -32
- package/routes/_workspace/settings/tokens3.js +4 -4
- package/routes/_workspace/settings/webhooks2.js +41 -41
- package/routes/_workspace/settings/zendesk2.js +11 -11
- package/routes/_workspace/teams/_key/cycles/_number2.js +33 -33
- package/routes/_workspace/teams/_key/cycles/_number3.js +7 -7
- package/routes/_workspace/teams/_key/cycles/index2.js +37 -37
- package/routes/_workspace/teams/_key/issues.js +10 -10
- package/routes/_workspace/teams/_key/projects.js +6 -6
- package/routes/_workspace/teams/_key/settings2.js +396 -396
- package/routes/_workspace2.js +308 -308
- package/routes/_workspace3.js +8 -8
- package/routes/device2.js +4 -4
- package/routes/device3.js +4 -4
- package/routes/docs/_tag/_endpoint2.js +3 -3
- package/routes/docs/_tag/index2.js +3 -3
- package/routes/docs/route2.js +7 -7
- package/routes/index2.js +5 -5
- package/routes/login2.js +10 -10
- package/routes/new2.js +12 -12
- package/routes/new3.js +5 -5
- package/routes/request2._token.js +6 -6
- package/routes/share2._secret.js +4 -4
package/routes/_workspace3.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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(
|
|
6
|
+
if (!await l.ensureQueryData(n)) throw c({
|
|
7
7
|
to: "/login",
|
|
8
|
-
search: { next:
|
|
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(
|
|
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 {
|
|
3
|
-
import {
|
|
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 } =
|
|
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(
|
|
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 {
|
|
2
|
-
import {
|
|
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(
|
|
6
|
-
if (!i) throw
|
|
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 {
|
|
2
|
-
import {
|
|
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 =
|
|
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 {
|
|
3
|
-
import {
|
|
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 =
|
|
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: [
|
package/routes/docs/route2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
-
|
|
14
|
-
let h = o(), { spec: g, parsed: _ } = a(), v =
|
|
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(
|
|
23
|
+
children: [/* @__PURE__ */ l(n, {
|
|
24
24
|
to: "/",
|
|
25
|
-
children: /* @__PURE__ */ l(
|
|
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 {
|
|
2
|
-
import {
|
|
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(
|
|
6
|
-
if (!r) throw
|
|
5
|
+
let r = await n.queryClient.ensureQueryData(e);
|
|
6
|
+
if (!r) throw t({ to: "/login" });
|
|
7
7
|
let i = r.workspaces[0];
|
|
8
|
-
throw
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
import { useNavigate as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
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(
|
|
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 (
|
|
39
|
-
|
|
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
|
-
...
|
|
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(
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
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 =
|
|
19
|
-
|
|
20
|
-
let b = f(), x = p("common"), S =
|
|
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 (
|
|
25
|
-
|
|
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
|
-
...
|
|
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(
|
|
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 {
|
|
2
|
-
import {
|
|
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(
|
|
6
|
-
if (!r) throw
|
|
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
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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 } =
|
|
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
|
-
|
|
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(
|
|
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",
|
package/routes/share2._secret.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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 } =
|
|
7
|
-
return /* @__PURE__ */ n(
|
|
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
|
});
|