-
Notifications
You must be signed in to change notification settings - Fork 3k
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
fixed new room page form validation #7098
Conversation
I think we should create new statements for: I need help on where to define these statements on |
@parasharrajat Thank you for the suggestions. I will update them. can you tell me why is Jest Unit Tests is failing on something called |
That is an internal issue and soon be fixed. |
And what about translation of the sentence to Español language? @parasharrajat |
For translation to Español language I have left empty string on es.js 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.
Nice job so far! Left a few style reminders. Mostly looking good here.
@parasharrajat @marcaaron I have done changes as per reviews. You can review the changes. |
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.
looks good. only the translation part is remaining.
I have changed |
Found a few more things to fix. Also there are conflicts that will need to be fixed before we can merge. |
@parasharrajat @marcaaron I have fixed all the review changes. Now, I think we should resolve conflicts first before merge. But, help me on resolving those conflicts. |
@ABee-Tech Please merge Main into your branch and resolvee the conflicts if any. and let me know when this is ready. |
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.
Looks good. Please resolve the conflcits. thanks.
@parasharrajat @marcaaron should we use |
The slack post didn't get much attention but it seems we can proceed with the changes. |
Okay then. |
…to fix-empty-room-name
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.
Thanks for the changes. I noticed some changed code in your PR. Please make sure that you don't break the fix #7661.
Please adjust the code so that 7661 still works on your changes. And It would be great if you can mark old comments resolved. Thanks.
Modify your screenshots to reflect both changes. new Room page and Room Settings page in the single video for each platform. You can leave Desktop and IOS, I will test that as you don't have access to it.
@parasharrajat Everything is fine. There is no issue prevailing like on the issue of the PR #7661. There is no need for change I think. That works fine. I will attach screenshots for Android and Web including that. |
Ohh sorry. I checked on android. It was fine. But, on web the issue exists. I will adjust the code and then upload screenshots. |
@parasharrajat I have adjusted the code and tested on web and android. I have uploaded screenshots above. |
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.
Thanks, @ABee-Tech. One more small tweak.
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.
One change and we should be good.
@parasharrajat I am having trouble running web version. Can we consider last screenshot just without growl message? |
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.
Android screenshot updated. |
src/libs/ValidationUtils.js
Outdated
* component because then we are not changing the room's name | ||
* | ||
* @param {String} roomName | ||
* @param {Object[]} reports |
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.
* @param {Object[]} reports | |
* @param {Object} reports |
src/libs/ValidationUtils.js
Outdated
*/ | ||
function isExistingRoomName(roomName, reports, policyID) { | ||
return _.some( | ||
_.values(reports), |
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.
_.some()
should work on object collections so no need to use _.values()
here
isLoading={this.props.isLoadingRenamePolicyRoom} | ||
isDisabled={shouldDisableRename} |
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.
NAB (as we are conducting an audit of all forms now) but no form buttons should be disabled
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 think this needs to be disabled for this case when user is seeing settings for default policies #admins, etc. I haven't seen the new Form style draft so I can't think of anything apart from it.
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.
We'll release the guidelines soon. Basically, no forms should be disabled for any reason.
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.
Ok. Thanks. Also, the input is read-only here so I think disabling the button is justified. Another approach could be to hide the Rename form for default policies.
} | ||
|
||
// We error if the room name already exists. We don't care if it matches the original name provided in this | ||
// component because then we are not changing the room's name. |
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 don't really understand the comment. In particular...
We don't care if it matches the original name provided in this component because then we are not changing the room's name.
What does this have to do with the check we make? How is it determined that the name in state matches the "original name provided in this component"? Which variable represents that "original name"? Can we be more specific or is the comment out of context?
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.
@marcaaron Yes actually it is out of context for this page so we should remove this and we can be more specific on same comment on ReportSettingsPage
by just modifing it as We don't error if the room name matches same as previous.
@marcaaron Please review the changes. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by @marcaaron in version: 1.1.40-0 🚀
|
🚀 Deployed to production by @yuwenmemon in version: 1.1.40-2 🚀
|
Issue 1 - Title- [Medium] Chrome +Jaws : 'Room Name' text edit field is not marked as required and announced. 7098_.Room.Name.text.edit.field.is.not.marked.as.required.and.announced.mp4Issue 2 - Title-[Medium] Chrome + Jaws: Screen reader : Error message is not announced by the screen reader. 7098_Error.message.is.not.announced.by.the.screen.reader.mp4Issue 3 - Title-[Medium] Chrome + Jaws: Screen reader : Screen reader is not provide any information after creating the room. 7098_N0t.provide.any.information.after.creating.the.room.mp4Issue 4 - Title-[Medium] Safari+ Voiceover : Screen reader : Screen reader is not reading role for 'create room' control. 7098_Not.reading.the.role.for.Create.room.control.mp4 |
Details
Explained over here: #6967 (comment)
Fixed Issues
$ #6967
Tests
QA Steps
Tested On
Screenshots
Android
Proposal.-.1.mp4
Proposal.-.2.mp4
Screenshots after all changes
Web
testing-on-web4.mp4
Android
testing-on-android.mp4