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

feat: add back button and anonymous login warning (#720) #738

Conversation

sant0143
Copy link

Fixes Issue

**My PR closes #720 **

πŸ‘¨β€πŸ’» Changes proposed(What did you do ?)

  • I have implemented the back to home functionality in the Login.jsx
  • I have also implemented the anonymously login we will get a dialog box asking should we login anonymously or not

βœ”οΈ Check List (Check all the applicable boxes)

  • My code follows the code style of this project.
  • This PR does not contain plagiarized content.
  • The title and description of the PR is clear and explains the approach.

Note to reviewers

πŸ“· Screenshots

whispherbacktohome
whispherloginanonymous

Copy link

vercel bot commented Dec 24, 2024

@sant0143 is attempting to deploy a commit to the dunsin's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

PR Compliance Checks Passed!

@sant0143 sant0143 changed the title [Feature]: Add back button and anonymous login warning (#720) feature: add back button and anonymous login warning (#720) Dec 24, 2024
@sant0143 sant0143 changed the title feature: add back button and anonymous login warning (#720) feat: add back button and anonymous login warning (#720) Dec 24, 2024
Comment on lines 54 to 75
<img
src="/landing page image.jpg"
alt="Landing page illustration"
className="h-auto rounded-full w-auto object-cover"
/>
</div>
</div>

{showAnonymousConfirm && (
<div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center">
<div className="bg-white dark:bg-gray-800 p-6 rounded-lg shadow-xl max-w-md w-full">
<h2 className="text-2xl font-bold mb-4 text-gray-900 dark:text-white">
Login Anonymously
</h2>
<p className="mb-6 text-gray-700 dark:text-gray-300">
Are you sure you want to login anonymously? This will create a temporary account.
</p>
<div className="flex justify-end space-x-4">
<button
onClick={() => setShowAnonymousConfirm(false)}
className="px-4 py-2 text-sm font-medium text-gray-700 bg-gray-200 rounded-md hover:bg-gray-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500"
>
Copy link
Owner

Choose a reason for hiding this comment

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

@sant0143 we already have a dialog modal you can use, please use that instead

https://github.com/Dun-sin/Whisper/blob/main/client/src/components/Dialog.jsx

Copy link
Author

Choose a reason for hiding this comment

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

okay sure will check it

@sant0143
Copy link
Author

Added the default dialog please check @Dun-sin

@sant0143
Copy link
Author

Hello @Dun-sin i have made requested changes and raised the PR

Copy link
Owner

@Dun-sin Dun-sin left a comment

Choose a reason for hiding this comment

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

You did great, thanks for contributing, I hope you will stick around and continue to contribute to this project.

Consider giving this project a star, sharing the project with your friends, and joining the community discord server if you haven't for more resources and opportunities to connect with others. πŸ‘‰πŸ½hereπŸ‘ˆπŸ½

Copy link

vercel bot commented Dec 27, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
whisper-b2p2 βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Dec 27, 2024 7:25am

@sant0143
Copy link
Author

yes sure @Dun-sin will be happy to contribute to this project in future

@Dun-sin
Copy link
Owner

Dun-sin commented Dec 27, 2024

@sant0143 on testing, the dialog doesn't work, you can check the preview with the vercel comment

@Dun-sin
Copy link
Owner

Dun-sin commented Dec 27, 2024

@sant0143 and can we have a back button where the arrow is pointing to instead
image

@sant0143
Copy link
Author

i have asked for approval please give approval will check it

@Dun-sin
Copy link
Owner

Dun-sin commented Dec 27, 2024

i have asked for approval please give approval will check it

the vercel link is the updated code

@sant0143
Copy link
Author

i have asked for approval please give approval will check it

the vercel link is the updated code

can u provide the link here?

@Dun-sin
Copy link
Owner

Dun-sin commented Jan 6, 2025

@sant0143 i checked the latest link and the changes haven't been made

@Dun-sin
Copy link
Owner

Dun-sin commented Jan 18, 2025

@sant0143 is this something you are still interested in working on?

@Dun-sin Dun-sin closed this Jan 20, 2025
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.

[FEATURE] Back button & warning when asked to "Login Anonymously" or "Login"
2 participants