-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
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]SEO Metadata Updates: The SEO metadata in
src/components/seo/default-seo.tsx
andsrc/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]Other Changes: The application name and short name in
public/manifest.json
have been updated. A new componentWelcomeMessage
has been added tosrc/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:
src/components/seo/default-seo.tsx
: Updated the SEO metadata to include the correct URLs and image paths.src/components/seo/page-seo.tsx
: Updated the SEO metadata to include the correct URLs and image paths.src/data/site-config.ts
: Added the URL of the website to the site configuration.Other Changes:
public/manifest.json
: Updated the application name and short name.src/components/welcome-message/index.tsx
: Added a new componentWelcomeMessage
.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:
public/manifest.json
: Updated the application's name and short name to "Vets Who Code".src/components/welcome-message/index.tsx
: Added a new component to display a welcome message to users.src/pages/login.tsx
: Integrated the new welcome message component into the login page. Also, upon successful login, users are now redirected to the dashboard instead of the login page.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:
src/components/seo/deafult-seo.tsx
: Updated the SEO component to use site configuration data for canonical URLs and Open Graph images. [1] [2]src/components/seo/page-seo.tsx
: Modified the PageSeo component to use string literals for title templates and updated the JSON-LD metadata for articles and courses. [1] [2] [3] [4]Updates the login form to enhance user experience and security feedback.For more details, open the Copilot Workspace session.