From 3319412b66e954b824c7eff2a57fd65b6c694ee2 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 15:32:48 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20Enhance=20V2=20Auth?= =?UTF-8?q?=20Forms=20Accessibility=20and=20UX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I have updated the Version 2 authentication forms (Login, Signup, and Forgot Password) to improve the overall user experience and accessibility. Key changes: - Corrected semantic association between labels and inputs using `id` and `htmlFor`. - Added `aria-required="true"` to mandatory fields for better screen reader support. - Implemented a password visibility toggle in the Signup page for consistency with the Login page. - Added leading Material Icons to input fields to provide immediate visual context and a more delightful MD3 feel. - Standardized visual loading feedback in form buttons using the `CustomPreloader` component. - Verified visual changes with Playwright screenshots and confirmed that all existing unit tests continue to pass. Co-authored-by: godie <227743+godie@users.noreply.github.com> --- src/v2/pages/V2ForgotPassword.jsx | 20 ++++++++-- src/v2/pages/V2Login.jsx | 21 ++++++++-- src/v2/pages/V2Signup.jsx | 65 +++++++++++++++++++++++++++---- 3 files changed, 92 insertions(+), 14 deletions(-) diff --git a/src/v2/pages/V2ForgotPassword.jsx b/src/v2/pages/V2ForgotPassword.jsx index 2f6b6fa..8d0e6cf 100644 --- a/src/v2/pages/V2ForgotPassword.jsx +++ b/src/v2/pages/V2ForgotPassword.jsx @@ -1,6 +1,7 @@ import { useState } from 'react'; import { useHistory, Link } from 'react-router-dom'; import { alertSuccess, alertError } from '../../services/AlertService'; +import CustomPreloader from '../../components/custom/CustomPreloader'; import '../styles/v2-theme.css'; const V2ForgotPassword = () => { @@ -48,19 +49,32 @@ const V2ForgotPassword = () => { {!submitted ? (
) : ( diff --git a/src/v2/pages/V2Login.jsx b/src/v2/pages/V2Login.jsx index 026235f..cd0a21d 100644 --- a/src/v2/pages/V2Login.jsx +++ b/src/v2/pages/V2Login.jsx @@ -3,6 +3,7 @@ import { useHistory, Link } from 'react-router-dom'; import UserService from '../../services/UserService'; import Auth from '../../modules/Auth'; import { alertError } from '../../services/AlertService'; +import CustomPreloader from '../../components/custom/CustomPreloader'; import '../styles/v2-theme.css'; const V2Login = () => { @@ -55,6 +56,7 @@ const V2Login = () => { diff --git a/src/v2/pages/V2Signup.jsx b/src/v2/pages/V2Signup.jsx index 5305544..b6de022 100644 --- a/src/v2/pages/V2Signup.jsx +++ b/src/v2/pages/V2Signup.jsx @@ -3,6 +3,7 @@ import { useHistory, Link } from 'react-router-dom'; import UserService from '../../services/UserService'; import Auth from '../../modules/Auth'; import { alertError } from '../../services/AlertService'; +import CustomPreloader from '../../components/custom/CustomPreloader'; import '../styles/v2-theme.css'; const V2Signup = () => { @@ -12,6 +13,7 @@ const V2Signup = () => { username: '', password: '' }); + const [showPassword, setShowPassword] = useState(false); const [loading, setLoading] = useState(false); const history = useHistory(); @@ -61,56 +63,103 @@ const V2Signup = () => {