Skip to content

Conversation

@Kalpana-chavhan
Copy link

@Kalpana-chavhan Kalpana-chavhan commented Jan 4, 2026

Closes # 264


Description

This PR improves the authentication user experience (UX) by relocating the "Already have an account? / Don’t have an account?" navigation links. Previously, these links were located in the global header; they have now been moved directly into the authentication card on both the Login and Signup pages.


UX Rationale:

  • Fitts's Law: Reduces the distance between the primary action (Sign In/Up button) and the alternative action (switching accounts).
  • Distraction-Free Auth: Cleans up the header to keep the user focused on the authentication task.
  • Mobile First: Improves thumb-reachability on smaller screens by keeping all interactions contained within the central card.

Changes Made

  • LoginPage.tsx: Removed the "Sign up" link from the header and added it to the bottom of the login card with a visual separator.
  • SignupPage.tsx: Removed the "Sign in" link from the header and added it to the bottom of the signup card.
  • Styling: Added a subtle top border (border-t) and consistent padding to the new card footers to match the existing design system.
  • Responsiveness: Ensured the links remain centered and legible across all screen sizes.
  • Dark Mode: Applied dark: utility classes to ensure the border and text colors adapt correctly to the dark theme.

Screenshots or Visual Changes

  • before :
before
  • after:
after loginPage

Checklist

  • I have read the contributing guidelines.
  • My changes follow the project's code style.
  • I have tested the changes locally in both light and dark modes.
  • I have verified the links function correctly and lead to the intended routes.

Summary by CodeRabbit

  • Style

    • Reorganized login page layout: signup prompt moved from header to below social login buttons
    • Reorganized signup page layout: sign-in link moved from header to below signup form
  • Chores

    • Removed example environment variable entries from configuration template

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 4, 2026

📝 Walkthrough

Walkthrough

Environment variables removed from example config. Login and Signup page components refactored to relocate authentication mode toggle prompts from page headers to dedicated sections positioned below their respective primary authentication forms.

Changes

Cohort / File(s) Summary
Configuration
Frontend/env-example
Removed three example environment variable declarations: Supabase URL, Supabase anon key, and YouTube API key.
Authentication UI Layout
Frontend/src/pages/Login.tsx, Frontend/src/pages/Signup.tsx
Relocated signup/signin toggle prompts from inline headers to dedicated sections below social login and signup forms respectively. Simplified page headers to display only essential content. Removed stale navigation comments.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 Hop, hop, the UI's rearranged!
Auth prompts find a better place,
No more secrets in the env file—
Just clean headers, a friendlier face!

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The PR title directly describes the main change: moving authentication switch links from the header into the authentication card on Login and Signup pages, which aligns with the file modifications shown in the raw summary.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
Frontend/src/pages/Login.tsx (1)

221-233: Consider unnesting the auth switch section for consistency.

The functionality and styling are correct, and the UX improvement aligns well with the PR objectives. However, this section is currently nested inside the social login container div (opened at line 180), whereas in Signup.tsx the equivalent section is a direct sibling of the social login block. For semantic clarity and structural consistency between both auth pages, consider moving this section outside the <div className="mt-8"> that wraps the social login options.

🔎 Suggested structural adjustment

Move the auth switch section to be a sibling of the social login container:

                </div>
+              </div>
+
+              {/* --- MOVED AUTH SWITCH LINK --- */}
+              <div className="mt-8 pt-6 border-t border-gray-100 dark:border-gray-700 text-center">
+                <p className="text-sm text-gray-600 dark:text-gray-300">
+                  Don't have an account?{" "}
+                  <Link
+                    to="/signup"
+                    className="font-medium text-purple-600 hover:text-purple-800 dark:text-purple-400 dark:hover:text-purple-300 transition-colors duration-200"
+                  >
+                    Sign up
+                  </Link>
+                </p>
+              </div>
-
-                {/* --- MOVED AUTH SWITCH LINK --- */}
-                <div className="mt-8 pt-6 border-t border-gray-100 dark:border-gray-700 text-center">
-                  <p className="text-sm text-gray-600 dark:text-gray-300">
-                    Don't have an account?{" "}
-                    <Link
-                      to="/signup"
-                      className="font-medium text-purple-600 hover:text-purple-800 dark:text-purple-400 dark:hover:text-purple-300 transition-colors duration-200"
-                    >
-                      Sign up
-                    </Link>
-                  </p>
-                </div>
-              </div>
            </div>
          </div>
📜 Review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a3be437 and 512efe3.

📒 Files selected for processing (3)
  • Frontend/env-example
  • Frontend/src/pages/Login.tsx
  • Frontend/src/pages/Signup.tsx
💤 Files with no reviewable changes (1)
  • Frontend/env-example
🔇 Additional comments (3)
Frontend/src/pages/Login.tsx (1)

55-55: LGTM – Clear documentation of header simplification.

The comment accurately describes the structural change.

Frontend/src/pages/Signup.tsx (2)

117-117: LGTM – Clear documentation of header simplification.

The comment accurately describes the structural change.


209-221: LGTM – Well-structured auth switch section.

The auth switch link is properly positioned as a sibling to the conditional social login section, maintaining good semantic structure. The styling is consistent with the Login page, includes proper dark mode support, and the border separator provides clear visual distinction. The placement improves UX by reducing the distance users need to travel to switch authentication modes.

@Kalpana-chavhan
Copy link
Author

Kalpana-chavhan commented Jan 8, 2026

Hi Maintainers,
Just a gentle follow-up on this PR.
All checks are passing, please let me know if any changes are needed from my side.
Thanks! @Saahi30 , @Aditya30ag

@Aditya30ag
Copy link
Contributor

@chandansgowda looks good to me

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.

2 participants