-
-
Notifications
You must be signed in to change notification settings - Fork 713
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: Use of same Login/Register Component on User and Admin #1493
feat: Use of same Login/Register Component on User and Admin #1493
Conversation
Our Pull Request Approval ProcessWe have these basic policies to make the approval process smoother for our volunteer team. Testing Your CodePlease make sure your code passes all tests. Our test code coverage system will fail if these conditions occur:
The process helps maintain the overall reliability of the code base and is a prerequisite for getting your PR approved. Assigned reviewers regularly review the PR queue and tend to focus on PRs that are passing. ReviewersWhen your PR has been assigned reviewers contact them to get your code reviewed and approved via:
Reviewing Your CodeYour reviewer(s) will have the following roles:
CONTRIBUTING.mdRead our CONTRIBUTING.md file. Most importantly:
Other
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1493 +/- ##
===========================================
- Coverage 96.23% 96.08% -0.16%
===========================================
Files 133 132 -1
Lines 3404 3292 -112
Branches 1031 994 -37
===========================================
- Hits 3276 3163 -113
- Misses 123 124 +1
Partials 5 5 ☔ View full report in Codecov by Sentry. |
@rishabhbizzle Please fix the failing codecov tests. |
Done ✅ @Cioppolo14 |
@tasneemkoushar @beingnoble03 Please review this PR. |
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 fix the conflicting files.
…nt-for-user-and-admin
Done ✅ @noman2002 |
Please fix the failing tests
|
These 2 lines are the reason coverage is declining slightly. Please help me with this @palisadoes @noman2002 |
Search the code base for a similar construct and see how the coverage was handled in those cases |
@rishabhbizzle this can't be tested. So, for similar situations we have added |
Should I add this comment before the |
I guess after that. Please check other files. I have used the same before. |
I've added the comment but now the coverage is even lower than before even though the missing line count decreased from 2 to 1. I'm confused here please help @noman2002 @beingnoble03 |
@rishabhbizzle |
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 fix the conflicting files.
NOTE Read very carefully
This will put your PR at risk of extensive merge conflicts. Do the following IN THIS ORDER:
This will help to reduce the number of existing and future merge conflicts for your PR. |
Closing due to inactivity. |
What kind of change does this PR introduce?
This PR addresses the separate Login/Register components for Admin and User. In this we uses a single Login/Register Component made from the base UI and code of Admin Panel's Login/Register Component for both Admin & User page which helps in maintaining the DRY principle and also solves the issue of unnecessary dependency in the project where we always need to synchronise the UI and other elements for both the User portal and Admin portal.
Issue Number:
Fixes #1377
Did you add tests for your changes?
Yes
Snapshots/Videos:
A video of demonstrating the whole login and register process for both admin & user:
Recording.2024-01-08.000058.mp4
Summary
Does this PR introduce a breaking change?
Other information
Have you read the contributing guide?