Navigate to #admin on workspace creation#22619
Conversation
|
@abdulrahuman5196 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] |
|
bump @abdulrahuman5196 I hope this looks good! Hope we can get this done till tomorrow 😇 |
|
Sorry for the delay. Will complete the review in the morning. |
|
@abdulrahuman5196 Then would it be fine to pass the App.setUpPoliciesAndNavigate(this.props.session, !this.props.isSmallScreenWidth); |
|
@abdulrahuman5196 This is the only case where the function |
|
Yes. Its should be fine. @esh-g |
|
@abdulrahuman5196 I hope this looks good now! |
|
@abdulrahuman5196 Do I need to merge main to this PR? |
|
@esh-g I don't see testing video for this #22619 (comment) and the settings->workspace creation flow? And author's checklist testing steps also doesn't have the same? |
|
@abdulrahuman5196 Sorry, I thought we only needed to add tests for the main bug. |
|
@abdulrahuman5196 I have now added videos for all platforms as well (except the ones mentioned in the above comment) |
|
@esh-g For the old dot migration flow, For some reason the LHN becomes unresponsive for me, but the same doesn't happen on main. Screen.Recording.2023-07-14.at.11.55.17.PM.mov |
|
@abdulrahuman5196 I merged main into this branch and it goes away. Before Screen.Recording.2023-07-15.at.11.28.09.AM-1.movAfter Screen.Recording.2023-07-15.at.11.21.35.AM.mov |
|
@abdulrahuman5196 Do let me know if that fixes it for you 😇 |
|
Bump @abdulrahuman5196 |
|
@abdulrahuman5196 Seems like another PR removed the logic to navigate to the admins chat as well as policy details from the |
|
Should I just replace the Navigation.setParams there like I did in this solution? @esh-g Yes. Its only the position of the code that has changed. The same solution should apply AFAIK |
|
@abdulrahuman5196 I have made the required changes! |
|
bump @abdulrahuman5196 |
|
Hi, will work on the review today |
|
Working on review now |
|
@esh-g Test 2 alone will be applicable for offline test as well |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-07-21.at.2.52.04.PM.mp4Screen.Recording.2023-07-21.at.3.11.59.PM.mp4Mobile Web - Chromeaz_recorder_20230721_151731.mp4Mobile Web - SafariUntitled.1.mp4DesktopScreen.Recording.2023-07-21.at.6.33.35.PM.mp4iOSScreen.Recording.2023-07-21.at.6.38.35.PM.mp4Androidaz_recorder_20230721_185519.mp4 |
|
@abdulrahuman5196 Made the change for offline tests 💫 |
abdulrahuman5196
left a comment
There was a problem hiding this comment.
Changes looks good and works well. Reviewers checklist is also complete.
All yours @aldo-expensify
🎀 👀 🎀
C+ Reviewed
aldo-expensify
left a comment
There was a problem hiding this comment.
Tested well for me, thank you!
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
| import * as ReportUtils from '../../libs/ReportUtils'; | ||
| import * as CurrencyUtils from '../../libs/CurrencyUtils'; | ||
| import withPolicyAndFullscreenLoading from './withPolicyAndFullscreenLoading'; | ||
| import withWindowDimensions from '../../components/withWindowDimensions'; |
There was a problem hiding this comment.
Minor feedback for next time, we have hooks to replace many of our HOCs, and we should strive to use them going forward in functional components
withWindowDimensions=>useWindowDimensionswithLocalize=>useLocalizewithNetwork=>useNetwork
etc...
whenever refactoring a class component or adding new HOCs, please check src/hooks first. Thanks! 😄
|
🚀 Deployed to staging by https://github.com/aldo-expensify in version: 1.3.45-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.45-7 🚀
|
Details
Fixed Issues
$ #21408
PROPOSAL: #21408 (comment)
Tests
Test 1
+icon and create new workspace.Test 2
Test 3 (For web and mWeb)
new.expensify.comwithlocalhost:8080.Offline tests
Test 2 (Only this test required for offline)
QA Steps
Test 1
+icon and create new workspace.Test 2
Test 3 (For web and mWeb)
new.expensify.comwithstaging.new.expensify.comPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Screen.Recording.2023-07-08.at.2.28.23.PM.mov
Screen.Recording.2023-07-14.at.8.29.14.PM.mov
Screen.Recording.2023-07-14.at.8.37.51.PM-1.mov
Mobile Web - Chrome
Screen.Recording.2023-07-11.at.11.56.22.AM.mov
Screen.Recording.2023-07-14.at.9.46.08.PM.mov
Screen.Recording.2023-07-14.at.9.43.44.PM-1.mov
Mobile Web - Safari
Screen.Recording.2023-07-11.at.11.29.58.AM.mov
Screen.Recording.2023-07-14.at.9.01.15.PM.mov
Screen.Recording.2023-07-14.at.9.05.15.PM.mov
Desktop
Screen.Recording.2023-07-11.at.11.45.10.AM.mov
Screen.Recording.2023-07-14.at.8.32.41.PM.mov
iOS
Screen.Recording.2023-07-08.at.2.42.29.PM.mov
Screen.Recording.2023-07-14.at.9.00.46.PM.mov
Android
Screen.Recording.2023-07-11.at.11.53.31.AM.mov
Screen.Recording.2023-07-14.at.9.25.36.PM.mov