-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Improved functionality of login/registration page #540
base: main
Are you sure you want to change the base?
Conversation
…l of the paws project
removed unnecessary commented part.
…l-patch-3 Added CODE_OF_CONDUCT.md
…ModuleFile [FIX] - Module.css files removed and Tailwind CSS applied.
Added For Innovateninjas#316
Adds new favicon
Create greetings.yaml
Added Nearest NGO Info in Success Page
* R * now * G * FINALLLLL --------- Co-authored-by: Arnab Mondal <[email protected]>
This reverts commit 6ac264d.
modified: src/pages/user/UserRegistration.jsx
* added a happy recovery story page * updated * original Navbar.jsx
Co-authored-by: Arnab Mondal <[email protected]>
modified: src/pages/user/ReportIncidentPages/FeedbackForm/Feedback.jsx
Co-authored-by: Arnab Mondal <[email protected]>
This reverts commit 8fbb271.
…)" (Innovateninjas#529) This reverts commit 7333a69.
modified: src/App.jsx
…ninjas#527)" (Innovateninjas#529)" (Innovateninjas#530) This reverts commit 40fefe1.
* Updated Error Page. * new
Co-authored-by: Arnab Mondal <[email protected]>
WalkthroughThe recent updates consist of streamlining the codebase by removing unused imports and enhancing the user interface in the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant LoginRegisterForm
participant ErrorMessage
User->>LoginRegisterForm: Attempt Login
LoginRegisterForm-->>User: Display Form
alt Error Occurs
LoginRegisterForm->>ErrorMessage: Show Error Message
ErrorMessage-->>User: Display Error Feedback
end
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (4)
- src/App.jsx (1 hunks)
- src/pages/user/Conatctus.jsx (1 hunks)
- src/pages/user/HomePage.jsx (1 hunks)
- src/pages/user/UserRegistration.jsx (4 hunks)
Files skipped from review due to trivial changes (3)
- src/App.jsx
- src/pages/user/Conatctus.jsx
- src/pages/user/HomePage.jsx
Additional comments not posted (1)
src/pages/user/UserRegistration.jsx (1)
146-146
: LGTM! Improved visual hierarchy for the login form.The updated heading enhances the user experience by making the welcome message more prominent.
{error && ( | ||
<p className="w-80 sm:w-60 mt-2 text-red-500 font-semibold text-center"> | ||
{error} | ||
</p> | ||
)} | ||
|
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.
LGTM! Improved error message handling.
The new error message block provides clear feedback to users. For better accessibility, consider adding role="alert"
to the <p>
tag.
- <p className="w-80 sm:w-60 mt-2 text-red-500 font-semibold text-center">
+ <p role="alert" className="w-80 sm:w-60 mt-2 text-red-500 font-semibold text-center">
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
{error && ( | |
<p className="w-80 sm:w-60 mt-2 text-red-500 font-semibold text-center"> | |
{error} | |
</p> | |
)} | |
{error && ( | |
<p role="alert" className="w-80 sm:w-60 mt-2 text-red-500 font-semibold text-center"> | |
{error} | |
</p> | |
)} |
Description
Solved the four errors which where not letting the code run, now the code is running properly.
( Twice import of page not found and faulty import of icons from @fontawesomeicons ).
Improved the functionality of login/registration page.
Related Issue
🐞[Bug]: remove placeholder when error occur #513
Screenshots / GIFs (if applicable)
[Before]
[After]
Checklist:
Summary by CodeRabbit