Skip to content

refactor(auth): use shared Field in Login, ForgotPassword and PasswordChangeRequired - #191

Open
CloudCorpRecords wants to merge 1 commit into
contextforge-org:mainfrom
CloudCorpRecords:refactor/7007-auth-pages
Open

CloudCorpRecords wants to merge 1 commit into
contextforge-org:mainfrom
CloudCorpRecords:refactor/7007-auth-pages

Conversation

@CloudCorpRecords

Copy link
Copy Markdown
Contributor

Summary

Next checklist item of IBM/mcp-context-forge#7007 (after #181): convert the auth pages' hand-built label + control markup to the shared Field.

  • Login.tsx: email and password use Field. The existing label and input classes are kept (labelProps / on the Input), and the native required attribute stays without a visual asterisk, as before.
  • ForgotPassword.tsx: the email field uses Field; its error now comes from Field (aria-invalid, aria-describedby, role="alert") instead of a hand-wired forgot-password-email-error id.
  • PasswordChangeRequired.tsx: the read-only email field uses Field for its label (the three password fields already go through PasswordInput, which wraps Field).

Not touched: ToolArgumentsForm (a larger conversion, I'll do it as its own PR) and CatalogOAuthDialog.

Label-to-control spacing on these pages now follows Field's standard gap rather than the old mb-1/space-y-1.

Test plan

  • tsc -b clean; eslint and prettier clean
  • vitest run src/pages src/components: 2745 passed (includes the existing Login / ForgotPassword / PasswordChangeRequired / App tests)
  • Pushed with --no-verify: the local pre-push hook runs the full suite, where App.test.tsx "logs in and navigates to Gateways page" fails on untouched main on my machine while passing in isolation. CI will run the full suite.

Refs IBM/mcp-context-forge#7007

🤖 Generated with Claude Code

…dChangeRequired

Replace the hand-built label + control (+ error) markup on the three auth
pages with Field. Login keeps its existing label/control styling via
labelProps and the native required attribute (no visual asterisk, as before).
ForgotPassword's email error now comes from Field (aria-invalid,
aria-describedby, role=alert) instead of a hand-wired id. The read-only
email on PasswordChangeRequired uses Field for its label.

Refs IBM/mcp-context-forge#7007

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Rene Turcios <95189389+CloudCorpRecords@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant