-
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
Update ReportSettingsPage and NotificationPreferencePage permission #23255
Conversation
@robertKozik Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Great 🚀 Will check it shortly! |
Reviewer Checklist
Screenshots/VideosWebDesktop.-.web.movMobile Web - Chromeandroid.-.chrome.movMobile Web - SafariiOS.-.safari.movDesktopdesktop.-.native.moviOSiOS.-.native.movAndroidandroid.mov |
@ginsuma I've encountered two new problems that I cannot reproduce on the latest main. Could you kindly check on your end whether your PR introduces them? |
I did the check. Those problems happen when I register a new account. After reloading, I don't see it anymore. I don't think this PR caused it. |
@robertKozik also seen these errors on latest main and they are already in the main branch, not in this PR. I think they are in BaseSidebarScreen component |
Thanks @ginsuma and @alexxxwork for checking and confirming. |
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 minor suggestion. Overall great job!
@@ -80,7 +81,7 @@ class ReportSettingsPage extends Component { | |||
|
|||
return ( | |||
<ScreenWrapper> | |||
<FullPageNotFoundView shouldShow={_.isEmpty(this.props.report)}> | |||
<FullPageNotFoundView shouldShow={shouldDisableSettings}> |
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.
After the change FullPageNotFoundView was not checking whether this.props.report is empty. I'll add it for clear message (as I know it won't pass checks anyway) that we don't wont to show screen when no report is found.
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. Let me add 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.
Thank you
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 job 🚀
@arosiclair looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
Tests passed |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@ginsuma @arosiclair Seems it is causing a regression where it is not showing correct room name in the Details page. Screen.Recording.2023-07-21.at.8.50.36.PM.mov |
@Pujan92 I removed |
@ginsuma this problem is a regression from this PR, could you kindly open new PR with fix for that? |
I think that needs to fix in follow-up PR here, I am seeing this assignment seems wrong App/src/pages/ReportDetailsPage.js Line 64 in c225999
|
@Pujan92 Yeah, it should be negated |
@robertKozik #23358 please check here. |
🚀 Deployed to staging by https://github.com/arosiclair in version: 1.3.44-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.44-2 🚀
|
🚀 Deployed to staging by https://github.com/arosiclair in version: 1.3.45-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.45-7 🚀
|
@@ -155,7 +155,7 @@ function ReportDetailsPage(props) { | |||
tooltipEnabled | |||
numberOfLines={1} | |||
textStyles={[styles.textHeadline, styles.textAlignCenter, styles.pre]} | |||
shouldUseFullTitle={isChatRoom || isPolicyExpenseChat || isThread} | |||
shouldUseFullTitle={shouldUseFullTitle} |
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.
@ginsuma You forgot to negate this condition
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.
This probably caused the regression @Pujan92 found
Details
Update ReportSettingsPage and NotificationPreferencePage permission
Fixed Issues
$ #22997
PROPOSAL: #22997 (comment)
Tests
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
web.mov
Mobile Web - Safari
ios_safari.mov
Mobile Web - Chrome
android_chrome.mov
Desktop
desktop.mov
iOS
ios_app.mov
Android
android_app.mov