From 7d31488d6f888da89d6b0944399479eb764304fa Mon Sep 17 00:00:00 2001 From: Daniel Shi <144500568+danielshid@users.noreply.github.com> Date: Sat, 27 Jun 2026 01:37:01 +0000 Subject: [PATCH 01/21] added limits and inline style to TextInputField component --- .../src/app/(auth)/forgot-password/page.tsx | 2 +- frontend/src/app/(auth)/login/page.tsx | 4 +- frontend/src/app/(auth)/register/page.tsx | 6 +- .../src/app/(auth)/reset-password/page.tsx | 4 +- .../[event-code]/painting/page-client.tsx | 22 +-- frontend/src/app/settings/(submenus)/page.tsx | 2 +- frontend/src/components/text-input-field.tsx | 157 ++++++++++++------ .../change-password/steps/change.tsx | 6 +- .../change-password/steps/reset.tsx | 4 +- .../setting-dialogs/delete-account.tsx | 2 +- .../features/event/availability/constants.ts | 1 + .../event/availability/validate-data.ts | 3 + frontend/src/lib/messages.ts | 6 +- 13 files changed, 136 insertions(+), 83 deletions(-) create mode 100644 frontend/src/features/event/availability/constants.ts diff --git a/frontend/src/app/(auth)/forgot-password/page.tsx b/frontend/src/app/(auth)/forgot-password/page.tsx index e52f7923f..4575adf91 100644 --- a/frontend/src/app/(auth)/forgot-password/page.tsx +++ b/frontend/src/app/(auth)/forgot-password/page.tsx @@ -80,7 +80,7 @@ export default function Page() { label="Email*" value={email} onChange={handleEmailChange} - outlined + style="outlined" error={errors.email || errors.api} />, ]} diff --git a/frontend/src/app/(auth)/login/page.tsx b/frontend/src/app/(auth)/login/page.tsx index 0d90179a9..d95350698 100644 --- a/frontend/src/app/(auth)/login/page.tsx +++ b/frontend/src/app/(auth)/login/page.tsx @@ -93,7 +93,7 @@ export default function Page() { label="Email*" value={email} onChange={handleEmailChange} - outlined + style="outlined" error={errors.email || errors.api} />, @@ -105,7 +105,7 @@ export default function Page() { label="Password*" value={password} onChange={handlePasswordChange} - outlined + style="outlined" error={errors.password || errors.api} />, ]} diff --git a/frontend/src/app/(auth)/register/page.tsx b/frontend/src/app/(auth)/register/page.tsx index 6e911c4fc..79c214c77 100644 --- a/frontend/src/app/(auth)/register/page.tsx +++ b/frontend/src/app/(auth)/register/page.tsx @@ -104,7 +104,7 @@ export default function Page() { label="Email*" value={email} onChange={handleEmailChange} - outlined + style="outlined" error={errors.email || errors.api} />, @@ -124,7 +124,7 @@ export default function Page() { setShowPasswordCriteria(false); } }} - outlined + style="outlined" error={errors.password || errors.api} showPasswordCriteria={showPasswordCriteria} passwordCriteria={passwordCriteria} @@ -138,7 +138,7 @@ export default function Page() { label="Retype Password*" value={confirmPassword} onChange={handleConfirmPasswordChange} - outlined + style="outlined" error={errors.confirmPassword || errors.api} />, ]} diff --git a/frontend/src/app/(auth)/reset-password/page.tsx b/frontend/src/app/(auth)/reset-password/page.tsx index 600c3768c..2d7c05e20 100644 --- a/frontend/src/app/(auth)/reset-password/page.tsx +++ b/frontend/src/app/(auth)/reset-password/page.tsx @@ -101,7 +101,7 @@ export default function Page() { setShowPasswordCriteria(false); } }} - outlined + style="outlined" error={errors.password || errors.api} showPasswordCriteria={showPasswordCriteria} passwordCriteria={passwordCriteria} @@ -115,7 +115,7 @@ export default function Page() { label="Retype Password*" value={confirmPassword} onChange={handleConfirmPasswordChange} - outlined + style="outlined" error={errors.confirmPassword || errors.api} />, ]} diff --git a/frontend/src/app/(event)/[event-code]/painting/page-client.tsx b/frontend/src/app/(event)/[event-code]/painting/page-client.tsx index ffda22256..7dd5085a1 100644 --- a/frontend/src/app/(event)/[event-code]/painting/page-client.tsx +++ b/frontend/src/app/(event)/[event-code]/painting/page-client.tsx @@ -8,6 +8,7 @@ import { useDebouncedCallback } from "use-debounce"; import Checkbox from "@/components/checkbox"; import MobileFooterIsland from "@/components/mobile-footer-island"; +import TextInputField from "@/components/text-input-field"; import { useAvailability } from "@/core/availability/use-availability"; import { EventRange } from "@/core/event/types"; import ActionButton from "@/features/button/components/action"; @@ -379,26 +380,19 @@ function DisplayNameInput({
- {errors.displayName ? errors.displayName : "Error Placeholder"} -
Hi,{" "} - { - setDisplayName(e.target.value); - handleNameChange(e.target.value); + setDisplayName(e); + handleNameChange(e); }} placeholder="add your name" - className={`inline-block w-auto border-b bg-transparent px-1 focus:outline-none ${ - errors.displayName - ? "border-error placeholder:text-error" - : "border-gray-400" - }`} + error={errors.displayName} />+ {activeError ? activeError : "Error Placeholder"} +
+ )} + +{activeError ? activeError : "Error Placeholder"}
)} + {isInline && ( + + )} +
From 79ec82d88d4190cbd6b2b2a1e114f21eb5495a87 Mon Sep 17 00:00:00 2001
From: jzgom067
Grid Preview
- {isOpen ? ( -
From 7fbaea717292380cf9090fc85e6d652fc84e80f8 Mon Sep 17 00:00:00 2001
From: jzgom067