feat: change email placeholder from you@example.com to you@deckyvault.xyz (web) (Task 5)
This commit is contained in:
@@ -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"')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
@@ -69,7 +69,7 @@ export default function ForgotPasswordForm() {
|
|||||||
type="email"
|
type="email"
|
||||||
value={email}
|
value={email}
|
||||||
onChange={(e) => setEmail(e.target.value)}
|
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"
|
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"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -249,7 +249,7 @@ export default function LoginForm() {
|
|||||||
name="email"
|
name="email"
|
||||||
value={email}
|
value={email}
|
||||||
onChange={(e) => setEmail(e.target.value)}
|
onChange={(e) => setEmail(e.target.value)}
|
||||||
placeholder="you@example.com"
|
placeholder="you@deckyvault.xyz"
|
||||||
autoComplete="username webauthn"
|
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"
|
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"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ export default function SignupFormStep({ onSuccess }: SignupFormStepProps) {
|
|||||||
type="email"
|
type="email"
|
||||||
value={email}
|
value={email}
|
||||||
onChange={(e) => setEmail(e.target.value)}
|
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"
|
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 && (
|
{errors.email && (
|
||||||
|
|||||||
Reference in New Issue
Block a user