feat(ui): add maxLength attributes to task and auth forms matching db schema
All checks were successful
Deploy Flowstate to VPS / deploy (push) Successful in 43s

This commit is contained in:
Chneemann 2026-08-23 10:05:36 +02:00
parent b94e7834be
commit 5a45643331
No known key found for this signature in database
3 changed files with 9 additions and 0 deletions

View file

@ -41,6 +41,7 @@ export default function TaskBasicInfo({
<input
type="text"
required
maxLength={255}
value={title}
onChange={(e) => setTitle(e.target.value)}
placeholder="e.g. Redesign Landing Page"
@ -56,6 +57,7 @@ export default function TaskBasicInfo({
<textarea
rows={4}
required
maxLength={2000}
value={description}
onChange={(e) => setDescription(e.target.value)}
placeholder="Add details about this task..."

View file

@ -110,6 +110,7 @@ export default function LoginPage() {
name="email"
type="email"
placeholder="name@example.com"
maxLength={255}
required
className="w-full px-3 py-2 text-sm rounded-lg border border-border bg-background focus:outline-none focus:border-foreground"
/>
@ -123,6 +124,7 @@ export default function LoginPage() {
name="password"
type="password"
placeholder="•••••••••••••"
maxLength={72}
required
className="w-full px-3 py-2 text-sm rounded-lg border border-border bg-background focus:outline-none focus:border-foreground"
/>

View file

@ -73,6 +73,7 @@ export default function RegisterPage() {
name="firstName"
type="text"
placeholder="First Name*"
maxLength={50}
required
className="w-full px-3 py-2 text-sm rounded-lg border border-border bg-background focus:outline-none focus:border-foreground"
/>
@ -80,6 +81,7 @@ export default function RegisterPage() {
name="lastName"
type="text"
placeholder="Last Name*"
maxLength={50}
required
className="w-full px-3 py-2 text-sm rounded-lg border border-border bg-background focus:outline-none focus:border-foreground"
/>
@ -88,6 +90,7 @@ export default function RegisterPage() {
name="email"
type="email"
placeholder="Email*"
maxLength={255}
required
className="w-full px-3 py-2 text-sm rounded-lg border border-border bg-background focus:outline-none focus:border-foreground"
/>
@ -95,6 +98,7 @@ export default function RegisterPage() {
name="password"
type="password"
placeholder="Password*"
maxLength={72}
required
className="w-full px-3 py-2 text-sm rounded-lg border border-border bg-background focus:outline-none focus:border-foreground"
/>
@ -102,6 +106,7 @@ export default function RegisterPage() {
name="confirmPassword"
type="password"
placeholder="Confirm Password*"
maxLength={72}
required
className="w-full px-3 py-2 text-sm rounded-lg border border-border bg-background focus:outline-none focus:border-foreground"
/>