diff --git a/packages/web/app/page.tsx b/packages/web/app/page.tsx index 9767e316..f9ab8dce 100644 --- a/packages/web/app/page.tsx +++ b/packages/web/app/page.tsx @@ -29,10 +29,6 @@ export default function HomePage() { -
- Free first worker - Polar billing for scale -
diff --git a/packages/web/components/cloud-control.tsx b/packages/web/components/cloud-control.tsx index 110495c6..0485a878 100644 --- a/packages/web/components/cloud-control.tsx +++ b/packages/web/components/cloud-control.tsx @@ -1,9 +1,8 @@ "use client"; import { FormEvent, useEffect, useState } from "react"; -import { DenMarketingRail } from "./den-marketing-rail"; -type Step = "auth" | "name" | "intent" | "initializing" | "workspace"; +type Step = "auth" | "name" | "initializing" | "connect" | "workspace"; type AuthMode = "sign-in" | "sign-up"; type SocialAuthProvider = "github" | "google"; type ShellView = "workers" | "billing"; @@ -162,13 +161,6 @@ const OPENWORK_APP_CONNECT_BASE_URL = (process.env.NEXT_PUBLIC_OPENWORK_APP_CONN const OPENWORK_AUTH_CALLBACK_BASE_URL = (process.env.NEXT_PUBLIC_OPENWORK_AUTH_CALLBACK_URL ?? "").trim(); const OPENWORK_DOWNLOAD_URL = "https://openwork.software/download"; const OPENWORK_DISCORD_URL = "https://discord.gg/VEhNQXxYMB"; -const INTENT_SUGGESTIONS = [ - "Handle customer support triage", - "Review pull requests and summarize", - "Run sales follow-ups from CRM", - "Prepare weekly operations reports" -]; - function getEmailDomain(email: string): string { const atIndex = email.lastIndexOf("@"); if (atIndex === -1 || atIndex + 1 >= email.length) { @@ -250,10 +242,6 @@ function getSocialProviderLabel(provider: SocialAuthProvider): string { return provider === "github" ? "GitHub" : "Google"; } -function normalizeIntent(input: string): string { - return input.trim().replace(/\s+/g, " "); -} - function normalizeWorkerName(input: string): string { const normalized = input.trim().replace(/\s+/g, " "); return normalized || "Founder Ops Pilot"; @@ -268,17 +256,6 @@ function isDesktopContext(): boolean { return !/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(ua); } -function getAdditionalWorkerRequestHref(): string { - const subject = "requesting an additional worker"; - const body = [ - "Hey Ben,", - "", - "I would like to create an additional worker in order to {INSERT REASON}" - ].join("\n"); - - return `mailto:ben@openwork.software?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`; -} - function GitHubLogo() { return (
{step === "auth" ? ( -
-
-

- {authMode === "sign-up" ? "Create your account." : "Sign in to Den."} -

-
+
+ {sessionHydrated ? ( +
+
+

+ {authMode === "sign-up" ? "Create your account." : "Sign in to Den."} +

+

+ {authMode === "sign-up" + ? "Sign up to launch your first worker and connect it in minutes." + : "Sign in to launch and connect your worker."} +

+
-
- + + - + -
- - - - - - - - -
-

{authMode === "sign-in" ? "Need an account?" : "Already have an account?"}

- -
- - {showAuthFeedback ? ( -
- {authInfo !== defaultAuthInfo ?

{authInfo}

: null} - {authError ?

{authError}

: null} + ) : ( +
+

Checking your session...

- ) : null} + )}
) : null} {step === "name" ? ( -
+
+

Step 1 of 3 - Account ready

Name your worker.

@@ -2940,80 +2907,11 @@ export function CloudControlPanel() {
) : null} - {step === "intent" ? ( -
-
-
-

What do you want it to do?

-

- Keep it short. You can tap multiple suggestions to chain them together. -

-
- -
- {INTENT_SUGGESTIONS.map((suggestion) => ( - - ))} -
- -