-
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
Tapan - Fixed UI for Create New Role Without Name and Permission #2031
Tapan - Fixed UI for Create New Role Without Name and Permission #2031
Conversation
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 @TapanPathak
I have pulled your changes and tested your code and it works as described. Nice work!
I attempted to make a role on dev without a name/role selected and the page goes blank
but with your changes the proper checks prevent that from happening nice catch!
See below video of successful role create.
2024-03-07.21-07-52.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.
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, I tested your PR and it works as intended. The role validation works fine and passed all the test cases. Please refer the video attached.
PR.2031.mov
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, I have test your PR. The error message though out when no role name or no Permissions selected. Check the video below:
2031.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.
Hello, I tested you PR and it works perfectly. Great Job! Below is a video for your reference.
Screen.Recording.2024-03-23.at.11.48.33.PM.mov
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.
Hey, I've gone through the PR and tested it according to the steps you provided. Tried out different combinations and everything works smoothly. Also, it correctly notifies if the role name already exists. Nicely done!
Here is the screen recording:
Screen.Recording.2024-04-04.at.10.17.52.PM.mov
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.
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.
Everything works as expected. When create a role without giving role name and without selecting any permission, it throws an error. Also, it correctly notifies if the role name already exists.
Screen.Recording.2024-04-05.at.9.30.11.AM.mov
Screen.Recording.2024-04-05.at.9.32.09.AM.mov
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.
Thank you all, merging! |
Description
Demo of Bug - https://www.dropbox.com/scl/fi/ei3ag16xb57isrx2ek7ak/Create-new-role-click-with-empty-fields-white-screen.mp4?rlkey=vb01psyvwwwmeyoigwmm1x1j7&e=1&dl=0
Related PRS (if any):
N/A
…
Main changes explained:
How to test:
npm install
and...
to run this PR locallyScreenshots or videos of changes:
Screen.Recording.2024-03-05.at.3.21.07.PM.mov