Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

feat: optimize onboard

Gus29380336b68d
diff --git a/src/web/src/app/(app)/w/[slug]/runtimes/page.tsx b/src/web/src/app/(app)/w/[slug]/runtimes/page.tsx
index 244a657e8..27159bf71 100644
--- a/src/web/src/app/(app)/w/[slug]/runtimes/page.tsx
+++ b/src/web/src/app/(app)/w/[slug]/runtimes/page.tsx
@@ -430,6 +430,23 @@ export default function RuntimesPage() {
</Badge>
))}
</div>
+ {machine.status !== "online" && (
+ <div className="pt-1.5 border-t border-border/50">
+ <p className="text-[11px] text-muted-foreground mb-1.5">
+ Bring this machine online:
+ </p>
+ <div
+ className="rounded-md bg-muted px-2.5 py-1.5 font-mono text-[11px] text-muted-foreground cursor-pointer hover:bg-muted/80 transition-colors"
+ onClick={() => {
+ navigator.clipboard.writeText(`${CLI_CMD} daemon start`);
+ toast.success("Copied to clipboard");
+ }}
+ title="Click to copy"
+ >
+ {CLI_CMD} daemon start
+ </div>
+ </div>
+ )}
</div>
</CardContent>
</Card>
diff --git a/src/web/src/app/(auth)/sign-in/page.tsx b/src/web/src/app/(auth)/sign-in/page.tsx
index 2da5905d3..fa1178aa7 100644
--- a/src/web/src/app/(auth)/sign-in/page.tsx
+++ b/src/web/src/app/(auth)/sign-in/page.tsx
@@ -24,6 +24,8 @@ import { TypewriterVisual, EMAILS_PLAYFUL } from "@/components/typewriter-visual
const isProd = process.env.NODE_ENV === "production"
+const DEV_PASSWORD = "dev-password-000"
+
function SignInForm() {
const [email, setEmail] = useState("")
const [error, setError] = useState("")
@@ -34,9 +36,6 @@ function SignInForm() {
const [step, setStep] = useState<"email" | "code">("email")
const [retryAfter, setRetryAfter] = useState<number | null>(null)
- // Password-specific state
- const [password, setPassword] = useState("")
-
useEffect(() => {
if (retryAfter == null) return
const id = setTimeout(() => {
@@ -103,22 +102,22 @@ function SignInForm() {
setLoading(false)
}
- // Password handler
- async function handlePasswordSubmit(e: React.FormEvent) {
+ // Dev mode: sign in/up with a fixed password, no user input needed
+ async function handleDevSignIn(e: React.FormEvent) {
e.preventDefault()
setError("")
setLoading(true)
const { error: signInErr } = await signIn.email(
- { email, password },
+ { email, password: DEV_PASSWORD },
{ onError: () => {} },
)
if (signInErr) {
const { error: signUpErr } = await signUp.email(
- { name: email.split("@")[0], email, password },
+ { name: email.split("@")[0], email, password: DEV_PASSWORD },
{ onError: () => {} },
)
if (signUpErr) {
- setError(signInErr.message ?? "Invalid email or password")
+ setError(signUpErr.message ?? "Failed to sign in")
setLoading(false)
return
}
@@ -223,7 +222,7 @@ function SignInForm() {
</>
)
) : (
- <form onSubmit={handlePasswordSubmit}>
+ <form onSubmit={handleDevSignIn}>
<FieldGroup>
<Field>
<FieldLabel htmlFor="email">Email</FieldLabel>
@@ -234,16 +233,7 @@ function SignInForm() {
value={email}
onChange={(e) => setEmail(e.target.value)}
required
- />
- </Field>
- <Field>
- <FieldLabel htmlFor="password">Password</FieldLabel>
- <Input
- id="password"
- type="password"
- value={password}
- onChange={(e) => setPassword(e.target.value)}
- required
+ autoFocus
/>
</Field>
<Field>