Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update login form with additional links and error messaging #605

Merged
merged 19 commits into from
Jun 9, 2024

Conversation

jeromehardaway
Copy link
Contributor

@jeromehardaway jeromehardaway commented Jun 9, 2024

This pull request includes a series of changes across multiple files, primarily focusing on improving the user login experience, updating SEO metadata, and cleaning up the user context. The most significant changes are:

  1. User Login Experience Improvements: The login page (src/pages/login.tsx) now redirects to the dashboard if the user is already logged in. A welcome message has been added to the login page for better user experience. The user context (src/contexts/user-context.tsx) has been simplified to only handle login and logout actions, and the local storage is updated accordingly. [1] [2]

  2. SEO Metadata Updates: The SEO metadata in src/components/seo/default-seo.tsx and src/components/seo/page-seo.tsx has been updated to include the correct URLs and image paths. The site configuration (src/data/site-config.ts) now includes the URL of the website. [1] [2] [3]

  3. Other Changes: The application name and short name in public/manifest.json have been updated. A new component WelcomeMessage has been added to src/components/welcome-message/index.tsx. [1] [2]

Here are the most important changes grouped by theme:

User Login Experience Improvements:

  • src/pages/login.tsx: Updated the login page to redirect to the dashboard if the user is already logged in and added a welcome message for better user experience.
  • src/contexts/user-context.tsx: Simplified the user context to handle only login and logout actions, and updated local storage accordingly.

SEO Metadata Updates:

Other Changes:

  • public/manifest.json: Updated the application name and short name.
  • src/components/welcome-message/index.tsx: Added a new component WelcomeMessage.This pull request primarily focuses on updating the application's user authentication functionality, improving SEO, and enhancing the user interface. The most notable changes include updating the application's name and short name, adding a welcome message for users, and modifying the login form and user context.

User Interface Enhancements:

User Authentication Updates:

  • src/contexts/user-context.tsx: Simplified the user context by removing course-related functionalities and focusing on login and logout actions. The user's login status is now stored in local storage under the key 'vwcAuth'.
  • src/components/forms/login-form.tsx: Modified the login form to display server feedback after the "Remember me" checkbox and added links for "Forgot Password?" and "Register New Account". [1] [2]

SEO Improvements:

  • Adds links for "Forgot Password" and "Register New Account" below the submit button, providing users with navigation options for account recovery and registration.
  • Implements error messaging for invalid login attempts, displaying feedback above the submit button to inform users of incorrect username or password entries.

For more details, open the Copilot Workspace session.

Copy link

vercel bot commented Jun 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vets-who-code-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 9, 2024 4:22am

@jeromehardaway jeromehardaway merged commit d22454d into master Jun 9, 2024
3 checks passed
@jeromehardaway jeromehardaway deleted the jeromehardaway/update-login-form branch June 9, 2024 04:22
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