-
-
Notifications
You must be signed in to change notification settings - Fork 712
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
Fixes #1380 by simplifying the modal closure mechanism in the 'Manage Features' modal. #1393
Fixes #1380 by simplifying the modal closure mechanism in the 'Manage Features' modal. #1393
Conversation
Addressed the issue of UI redundancy as discussed in Issue PalisadoesFoundation#1380. What: - Removed the 'Cancel' button, and added the 'Manage Features' header for the Modal leaving the 'X' icon as the sole close option. Impact: - Simplifies the modal interface, enhancing the overall user experience and reducing potential confusion. Tests: - Tested the individual file by running this command: `npm run test --watchAll=false /path/to/test/file` - Tested code coverage for this file with : `npm run test -- --collectCoverageFrom="src/screens/OrgList/*" /src/screens/OrgList/OrgList.test.tsx`
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
|
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.
Congratulations on making your first PR! 🎊 If you haven't already, check out our Contributing Guidelines and PR Reporting Guidelines to ensure that you are following our guidelines for contributing and creating PR.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1393 +/- ##
===========================================
- Coverage 97.44% 97.20% -0.25%
===========================================
Files 138 133 -5
Lines 3683 3396 -287
Branches 1076 1038 -38
===========================================
- Hits 3589 3301 -288
- Misses 89 90 +1
Partials 5 5 ☔ View full report in Codecov by Sentry. |
@harshpreet14 Remove the custom CSS from the modal buttons and make them look like the other buttons we are using (Bootstrap buttons) Also remove all the changes made to Orglist.module.css in this PR |
Changes Made: -Replaced existing buttons in the OrgList component with Bootstrap buttons for a more consistent and modern UI. -Removed unused CSS classes (greenredbtn, cancel, secondbtn) from OrgList.module.css. -Added new CSS classes enableEverythingBtn and pluginStoreBtn for specific button styling. -Implemented a new test to verify the functionality of the 'Go to Plugin Store' button. Tests: - Tested the individual file by running this command: `npm run test --watchAll=false /src/screens/OrgList/OrgList.test.tsx` - Tested code coverage for this file with : `npm run test -- --collectCoverageFrom="src/screens/OrgList/*" /src/screens/OrgList/OrgList.test.tsx`
Hi Rishav, I have implemented the changes as suggested. The modifications include updating the buttons to Bootstrap versions, cleaning up unused CSS classes, adding new classes for specific buttons, and implementing an additional test for the 'Go to Plugin Store' button. |
@harshpreet14 share the updated Screenshot |
Here's the screenshot @rishav-jha-mech |
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.
@harshpreet14 please address the comment. Rest lgtm.
@harshpreet14 Any update on this ? |
replaced with pluginNotificationHeader accodrdingly fixed tests
@noman2002 fixed the redundant test-id. |
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, thanks @harshpreet14!
@beingnoble03 Should this be merged ? |
Yes |
e8be2da
into
PalisadoesFoundation:develop
…anism in the 'Manage Features' modal. (PalisadoesFoundation#1393) * Fix: Addressed the issue of UI redundancy as discussed in Issue PalisadoesFoundation#1380. What: - Removed the 'Cancel' button, and added the 'Manage Features' header for the Modal leaving the 'X' icon as the sole close option. Impact: - Simplifies the modal interface, enhancing the overall user experience and reducing potential confusion. Tests: - Tested the individual file by running this command: `npm run test --watchAll=false /path/to/test/file` - Tested code coverage for this file with : `npm run test -- --collectCoverageFrom="src/screens/OrgList/*" /src/screens/OrgList/OrgList.test.tsx` * reverted changes made to package-lock.json file * Fix:Replacing Modal Buttons with Bootstrap buttons. Changes Made: -Replaced existing buttons in the OrgList component with Bootstrap buttons for a more consistent and modern UI. -Removed unused CSS classes (greenredbtn, cancel, secondbtn) from OrgList.module.css. -Added new CSS classes enableEverythingBtn and pluginStoreBtn for specific button styling. -Implemented a new test to verify the functionality of the 'Go to Plugin Store' button. Tests: - Tested the individual file by running this command: `npm run test --watchAll=false /src/screens/OrgList/OrgList.test.tsx` - Tested code coverage for this file with : `npm run test -- --collectCoverageFrom="src/screens/OrgList/*" /src/screens/OrgList/OrgList.test.tsx` * fixed redundant test id- modalOrganisationHeader replaced with pluginNotificationHeader accodrdingly fixed tests * Update OrgList.test.tsx
What kind of change does this PR introduce?
This PR addresses issue #1380 by simplifying the modal closure mechanism in the 'Manage Features' modal in OrgList.tsx.
Changes Made:
Issue Number:
Fixes #1380
Did you add tests for your changes?
-Verified that - On clicking cross button the modal should close, on clicking outside the modal the modal should close, on pressing escape key on keyboard the modal should close.
npm run test --watchAll=false /src/screens/OrgList/OrgList.test.tsx
.npm run test -- --collectCoverageFrom="src/screens/OrgList/*" /src/screens/OrgList/OrgList.test.tsx
.Snapshots/Videos:
Before-
After-
OrgList.test.tsx -
Code coverage-
If relevant, did you update the documentation?
NA
Summary
Simplifies the modal interface, enhancing the overall user experience and reducing potential confusion.
Does this PR introduce a breaking change?
NA
Other information
If further tests are required for the specific modal in OrgList.tsx, please let me know, and I'll be more than happy to add them. Thank you for considering my contribution!
Have you read the contributing guide?
Yes