Skip to content

Conversation

@Karelaking
Copy link
Contributor

📝 Description

Prevent crashes in ResetPasswordPage by guarding Supabase auth calls when the backend is unavailable (demo mode or missing env).

🎯 Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 📚 Documentation update
  • 🎨 UI/UX improvement
  • ⚡ Performance improvement
  • ♿ Accessibility improvement
  • 🔧 Refactoring

🔗 Related Issues

Closes #

📋 Changes Made

  • Guard supabase.auth calls when backend is unavailable
  • Show clear error messaging for demo/misconfigured environments
  • Change 3

🧪 Testing

  • Unit tests added/updated
  • Tested on desktop
  • Tested on mobile
  • Manual testing completed

Testing Steps:

  1. Not run (not requested)

🎨 Screenshots/Demo

📦 Dependencies

  • No new dependencies
  • New dependencies added (list below)
    • dependency-name@version

✅ Checklist

Code Quality

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I ran npm run lint and fixed all issues

Testing & Functionality

  • I have tested my changes thoroughly
  • New and existing tests pass locally with my changes
  • I have added tests that prove my fix is effective or my feature works

Documentation

  • I have updated the documentation accordingly
  • I have updated the README if needed
  • I have added/updated inline comments where necessary

Git & Commits

  • My commits have clear, descriptive messages
  • My branch is up to date with the base branch
  • I have not included unnecessary commits

Breaking Changes

  • This PR does not introduce breaking changes
  • I have documented any breaking changes clearly

📝 Additional Context

🔍 Reviewer Notes

🚀 Deployment Notes

Copilot AI review requested due to automatic review settings January 28, 2026 16:10
@vercel
Copy link

vercel bot commented Jan 28, 2026

@Karelaking is attempting to deploy a commit to the Divya Tiwari's projects Team on Vercel.

A member of the Team first needs to authorize it.

@netlify
Copy link

netlify bot commented Jan 28, 2026

Deploy Preview for tiwaridivya25-devconnect ready!

Name Link
🔨 Latest commit 0d62191
🔍 Latest deploy log https://app.netlify.com/projects/tiwaridivya25-devconnect/deploys/697a3708ca6353000830101e
😎 Deploy Preview https://deploy-preview-197--tiwaridivya25-devconnect.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@Karelaking
Copy link
Contributor Author

i have done my, please review it and let me know if their is any problem.

Copy link

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

Prevents crashes in ResetPasswordPage by guarding Supabase auth calls when running in demo mode or without backend configuration.

Changes:

  • Import and use isBackendAvailable alongside supabase to gate backend operations.
  • Add early-return guards in useEffect (session check) and password update submit handler.
  • Surface clearer user-facing messaging when password reset is unavailable.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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