Skip to content

Conversation

@jzgom067
Copy link
Member

@jzgom067 jzgom067 commented Oct 2, 2025

What?

This PR adds more pages necessary for the authentication flow. A few small tweaks were also added to the existing auth pages.

New Pages

  • /forgot-password - This page did have a file, but it wasn't implemented until now.
  • /reset-password - Reached via a URL sent by email from the /forgot-password page.
  • /reset-password/success - Displayed after a successful password reset.
  • /sign-up/email-sent - Displayed after a sign up is requested, and allows the user to resend the email.
  • /verify-email - Reached via a URL sent by email from the /sign-up page.

Existing Page Tweaks

  • /login - The email input field now has a type of email just to help with input validation.
  • /sign-up - Also changed the email input field type, but also now redirects to the /sign-up/email-sent page after submission.

New Components

A new component, MessagePage was also created to help with the layout on some of these pages (/success and /email-sent). Since they all have the same format, it made sense to create a reusable component.

Why?

The auth flow needed more pages to support all the functionality required.

How?

🤷‍♂️

Testing?

There aren't any API calls yet, but the pages look fine and the buttons navigate properly.

Missing API functionality, but the layout and page switching is there.
Mostly just checking for the reset token, but also checking that all the fields are filled in.
Since the auth flow includes email verification, this tells the user to verify, as well as give them an option to resend the email.
This just adds another input validation step.
For completing the sign up flow. The layout is there, the logic is on its way.
Right now it's simulated with Math.random just to show both outcomes.
Since all the new auth pages had the same layout, it made more sense to make a component to manage the format on all of them.
This makes the "browser asks you to save password" flow more consistent with other sites.
Even if it was funny, this will just make testing easier.
I thought it would be used more externally. Guess not, so let's keep the codebase clean.
Very subjective, needs more opinions.
@jzgom067 jzgom067 requested review from Copilot and mirmirmirr October 2, 2025 21:27
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds the missing auth flow pages and a reusable MessagePage component, and tweaks existing pages for better UX.

  • Introduces pages for email verification, password reset, and sign-up confirmation.
  • Creates a reusable MessagePage component for consistent success/info screens.
  • Updates login/sign-up inputs to type="email" and wires sign-up to the new email-sent page.

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
app/verify-email/page.tsx New email verification page that reads a code from the URL and renders success/failure states.
app/ui/components/message-page.tsx New reusable component for simple title/description/button layouts.
app/sign-up/page.tsx Redirects to the new email-sent page and sets email input type to email.
app/sign-up/email-sent/page.tsx New page showing email confirmation and a resend action.
app/reset-password/page.tsx New page to set a new password from a tokenized URL.
app/reset-password/success/page.tsx New success page after resetting password.
app/login/page.tsx Changes email input type to email.
app/forgot-password/page.tsx Implements the forgot password page with inline email-sent state.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@jzgom067 jzgom067 requested a review from Copilot October 2, 2025 22:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Before it would reset if the component was re-rendered.
Copy link
Member

@mirmirmirr mirmirmirr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@mirmirmirr mirmirmirr merged commit f264df6 into main-preview Oct 8, 2025
1 check passed
@jzgom067 jzgom067 deleted the more-auth-pages branch October 14, 2025 16:17
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.

3 participants