-
-
Notifications
You must be signed in to change notification settings - Fork 118
Added new PR with optimized sign In and sign up functionality #64
Conversation
Someone is attempting to deploy a commit to a Personal Account owned by @ykdojo on Vercel. @ykdojo first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@AdityaPainuli can you double-check and make sure to address all the points I raised in the previous PR? Also, could you please use proper punctuation? I highly recommend Grammarly to check everything you write before you send it here. |
why we need mui? we already have tailwindCSS, |
@rohitdasu right, we should probably stick with one unless they're designed to work together. If we were to pick one, Tailwind seems like a good choice. Open to suggestions, though |
@ykdojo tailwindCSS is enough to work with the project. If we need any components then TailwindCSS provides components as well and we can create our custom components using headless ui which is provided by TailwindCSS. So we don't need MUI or other libraries. It will make our app unnecessarily heavy. |
Ok, I will fix the issues so do we need to create different routes for the sign-in and sign-up pages? Also, I think it will be great if the page doesn't get loaded when the user switches between those two what do you think? let me know I will do things accordingly |
What should be the best for icons cause in hero icons which is the tailwind library I searched for google icons and couldn't able to find them. Sorry , If I am asking silly question |
@AdityaPainuli Your |
Don't hesitate to question, it's a good habit. Regarding the icons package if we don't get the desired icon from heroicons then we can get the icons from FontAwesome website. |
Thanks, I will keep that in mind |
What do you guys think about this? should I create a different page or the same page? |
Ok, this Image is from unsplash.com and is available for free to use. let me correct all the issues . |
Fixed the broken image link. |
For routing, first of all, a smaller PR is generally better. So can you keep the routes the same as before in this PR? In this PR, you can focus on the visual elements. You're welcome to raise an issue, a discussion, or a PR for the routes if you think we should change them later. Also, as I said earlier, could you please use correct punctuation in your comments for better readability? For example, here:
There should not be a space before the second period, and the beginning of each sentence should be capitalized. I recommend Grammarly for this. |
Ok sorry for the inconvenience. I will try to keep these things in my mind. |
I created a different page for sign up and sign in as you said. Let me know what you think about it now. |
i can't access the signin and signup page, I think its not deployed - @AdityaPainuli |
Yes, it's not deployed yet. You can see the personal deployed version If you want and let me know if it is good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please work on the changes requested
package.json
Outdated
"@mui/icons-material": "^5.8.4", | ||
"@mui/material": "^5.10.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove MUI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I will work on that.
pages/signin.tsx
Outdated
@@ -1,66 +1,103 @@ | |||
import GoogleIcon from '@mui/icons-material/Google'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't use mui
I removed Mui completely from the project. |
please use semantic commits - @AdityaPainuli |
Ok, I will keep that in mind for the next time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import NextPage
as a type so it's not included in the bundle
@ykdojo can you review the code and let me know what are your thoughts? |
Hey, I corrected the lines you mentioned but it's saying that this branch has conflicts . Can you help me how to resolve them |
@iShibi can you review the code and let me know what is the error? |
Your |
Fixed the correction and conflicts as @ykdojo mentioned. Please review the code and let me know what you think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied all the corrections as you mentioned above @ykdojo |
Is it okay now? Sorry I didn't understand it at the first. |
As we are not using google icon right now I removed it from the project also the image link instead downloaded an image in the public folder. Is it ok now @ykdojo |
Should be okay now assuming the signing up and signing in still work. I would like to wait for one or two of the other maintainers to check this first though. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've checked the auth part, it was working! but UI is what i'm not fully satisfied but it can be improved later when we have proper designs. But anyways good job @AdityaPainuli
I would suggest other maintainers also to review it. Thanks
Is there any specific reason you used next router instead of the |
No, I don't think there is any specific reason for it I just want to use it. Is there any benefit in using a link instead of a router? |
if there is no conditional routing then we can simply use Link component. |
Then should I change it to a link component? |
yeah it should be changed if there is a simple route exist we should use Link only |
also please resolve branch conflicts |
I think removing it will simplify the code. Unless we're planning to redirect the user to the sign-in page after sign-up. After signing up, if we immediately give the user access to the dashboard, then it's not necessary imo. But if we add another step in between, i.e. redirect the user to the sign-in page, then it might be useful. |
yeah it depends to the use case |
Let's merge it for now. We can refactor later. But it seems there are merge conflicts. @AdityaPainuli mind taking a look at it? |
Hey this one is the new PR I fixed the bugs and now you can switch between sign-in and sign-up very easily . let me know if you want any change for the google login button I am still working on it.