From 980e16bb97408ef48ac766ed8154e465255bcce6 Mon Sep 17 00:00:00 2001 From: Adrian Bonpin Date: Thu, 28 May 2026 00:14:26 +0800 Subject: [PATCH] feat: change email placeholder from you@example.com to you@deckyvault.xyz (web) (Task 5) --- .../auth/__tests__/placeholder.test.tsx | 20 +++++++++++++++++++ components/auth/forgot-password-form.tsx | 2 +- components/auth/login-form.tsx | 2 +- components/auth/signup-form-step.tsx | 2 +- 4 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 components/auth/__tests__/placeholder.test.tsx diff --git a/components/auth/__tests__/placeholder.test.tsx b/components/auth/__tests__/placeholder.test.tsx new file mode 100644 index 0000000..00a780b --- /dev/null +++ b/components/auth/__tests__/placeholder.test.tsx @@ -0,0 +1,20 @@ +import { describe, it, expect } from "vitest" +import fs from "node:fs" +import path from "node:path" + +describe("auth form email placeholder text", () => { + it("all auth forms use you@deckyvault.xyz not you@example.com", () => { + const files = [ + "components/auth/signup-form-step.tsx", + "components/auth/login-form.tsx", + "components/auth/forgot-password-form.tsx", + ] + + for (const file of files) { + const fullPath = path.join(process.cwd(), file) + const content = fs.readFileSync(fullPath, "utf8") + expect(content).not.toContain('"you@example.com"') + expect(content).toContain('"you@deckyvault.xyz"') + } + }) +}) diff --git a/components/auth/forgot-password-form.tsx b/components/auth/forgot-password-form.tsx index ca267bd..3c82547 100644 --- a/components/auth/forgot-password-form.tsx +++ b/components/auth/forgot-password-form.tsx @@ -69,7 +69,7 @@ export default function ForgotPasswordForm() { type="email" value={email} onChange={(e) => setEmail(e.target.value)} - placeholder="you@example.com" + placeholder="you@deckyvault.xyz" className="w-full px-4 py-3 rounded-lg border border-border bg-text/5 text-text text-sm placeholder:text-text/40 outline-none focus:border-primary focus:ring-2 focus:ring-primary/50 transition-colors" /> diff --git a/components/auth/login-form.tsx b/components/auth/login-form.tsx index 70d0a96..814cdc5 100644 --- a/components/auth/login-form.tsx +++ b/components/auth/login-form.tsx @@ -249,7 +249,7 @@ export default function LoginForm() { name="email" value={email} onChange={(e) => setEmail(e.target.value)} - placeholder="you@example.com" + placeholder="you@deckyvault.xyz" autoComplete="username webauthn" className="w-full px-4 py-3 rounded-lg border border-border bg-text/5 text-text text-sm placeholder:text-text/40 outline-none focus:border-primary focus:ring-2 focus:ring-primary/50 transition-colors" /> diff --git a/components/auth/signup-form-step.tsx b/components/auth/signup-form-step.tsx index 03f1fbc..05b0e4b 100644 --- a/components/auth/signup-form-step.tsx +++ b/components/auth/signup-form-step.tsx @@ -105,7 +105,7 @@ export default function SignupFormStep({ onSuccess }: SignupFormStepProps) { type="email" value={email} onChange={(e) => setEmail(e.target.value)} - placeholder="you@example.com" + placeholder="you@deckyvault.xyz" className="w-full px-4 py-3 rounded-lg border border-border bg-text/5 text-text text-sm placeholder:text-text/40 outline-none focus:border-primary focus:ring-2 focus:ring-primary/50 transition-colors" /> {errors.email && (