-
Notifications
You must be signed in to change notification settings - Fork 48
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
Sai Preetham taking over for Clemar add a reminder to save changes modal to permissions management page #2309
Conversation
…pen the reminder modal and save modifications
…styling the modal
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.
Great work on implementing the permission reminder modals for users and admins! Here's the review based on the provided testing steps:
✅ User Reminder Modal:
- Verified that when a new permission is granted to a user, a modal appears reminding them to save their changes.
- Confirmed that the modal is displayed correctly and contains the appropriate message.
✅ Permission Modal:
- Tested that after granting a new permission, a modal is displayed informing the user that they need to log out and log back in for the new permissions to take effect.
- Verified that the modal is triggered correctly and provides clear instructions to the user.
✅ Admin Notification Modal:
- Logged in as an Owner user and navigated to the Permissions Management section (Dashboard → Other Links → Permissions Management → Manage User Permissions).
- Assigned new permissions to a user.
- Confirmed that the user receives a modal notification informing them to log out and log back in for the changes to take effect.
✅ Modal Behavior:
- Tested the modal behavior by granting permissions to different users and admins.
- Verified that the modals are displayed consistently and contain the correct information.
Suggestions:
- It was noticed that users may scroll within the reminder modal, so the permissions list will not scroll according causing a bad user experience.
- There seems to be a typo in the "Close" button text on the modal that appears after logging in.
https://www.loom.com/share/30b9bac3ab744a71a2583c34411bacb1?sid=1b970a9d-f482-4699-9995-0ddee8a2eff2
After the permissions are updated the user gets a popup of the permission updated. That works perfectly well. After logging out and logging back in the pop up is still popping everytime i logged back in. Screen.Recording.mp4 |
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.
1875f8a
to
7bbec60
Compare
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.
Hi, could you resolve the merge conflicts? |
8a0e088
to
da64544
Compare
…_modal_to_Permissions_Management_page
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 tested the feature according to the instructions in the PR, and it generally works as expected. However, I did notice a couple of issues:
- The "Manage User Permissions" and "Remember to save your changes!" popups are not responsive, and when they are open, you can still scroll the background. (Refer attached screen recording)
- The user reminder modal appears only when the user logs into their account, not when they are already logged in.
Additionally, I’m not sure, but shouldn’t this feature be designed to work only when the user is already logged into their account, rather than when they log in freshly?
Screen.Recording.2024-08-09.at.6.20.09.PM.mp4
…_modal_to_Permissions_Management_page
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…ge with Flexbox adjustments and improved text wrapping.
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.
While editing user permissions, the system displays a dialog box prompting a logout and login to apply the changes. Upon logging in as the user with the updated permissions, I can confirm that the changes have been successfully applied. However, the prompt indicating 'Permissions have been updated, please log out and log back in to see the changes' does not appear.
Recording.2024-09-21.175929.mp4
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.
Followed instructions to test, but when logging into test account after setting new permission, there was no modal pop-up to inform me to log out then back in, and I waited a few minutes.
Also, small note: I noticed a grammatical error in the toaster notification that pops up after assigning permissions. It says "Be sure to tell them that you are changing these permissions and for that they need to log out and log back in..."
The "for" should be removed. It should say "Be sure to tell them that you are changing these permissions and that they need to log out...".
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.
Hello,
I followed the instructions to test and a modal did not appear on the user account with the change in permissions informing them to log out. Please let me know if there's something else missing.
Besides that, I notice a few changes that could be made:
- When I minimize the screen, the save changes modal is hidden and does not appear to the user.
- The green modal telling users the permissions have been updated appears too many times, once when you save changes and the next when you submit the changes. This may be a potential bug.
Do take a look!
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…popup to show only once
Hello all, I've made the following updates based on the feedback provided: Reminder Modal Centering: Ensured that the "Remember to Save Your Changes" modal is properly centered on the screen, with equal spacing on both the left and right sides, especially for smaller screens. Responsive Adjustments: Adjusted the modal's width and padding to make it responsive, so it remains within screen boundaries and looks balanced across different screen sizes. Green Popup Notification Frequency: Updated the green popup notification to display only once per permission update action, avoiding multiple pop-ups and enhancing the user experience. Please review the changes Thank you! |
Thank you all, merging! |
Description
when a new permission is granted, a modal will appear reminding to save their changes.
will also open a modal informing you that you must log out and log back in for the permissions to take effect.
Additionally, if an admin receives a new permission, a modal will notify them that they need to log out and log back in for the changes to take effect.
Related PRS (if any):
none
Main changes explained:
-User reminder modal: Added a modal that appears when a new permission is granted, reminding to save their changes.
-permission modal: Created a modal that informs need to log out and log back in for new permissions to take effect.
How to test:
npm install
and...
to run this PR locallyScreenshots or videos of changes:
video.mp4
After fix:
Reminder.Modal.mov