Rewrite video player & its context logic - #59896
Conversation
|
@DylanDylann 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] |
This comment was marked as outdated.
This comment was marked as outdated.
|
Discovered some problems on mobile. Discussin with the author on Slack |
|
🚧 @mountiny has triggered a test app build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
Skalakid
left a comment
There was a problem hiding this comment.
Left some small comments, I really like how you broke this context into smaller parts. Good job!
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-04-14.at.17.26.36.movAndroid: mWeb ChromeScreen.Recording.2025-04-14.at.17.14.06.moviOS: NativeScreen.Recording.2025-04-14.at.17.16.37.moviOS: mWeb SafariScreen.Recording.2025-04-14.at.17.14.45.movMacOS: Chrome / SafariScreen.Recording.2025-04-14.at.17.27.39.movMacOS: DesktopScreen.Recording.2025-04-14.at.17.40.40.mov |
mountiny
left a comment
There was a problem hiding this comment.
Only one NAB, changes look good to me, thank you for refactoring this
|
|
||
| const screensWithReportID = [SCREENS.SEARCH.REPORT_RHP, SCREENS.REPORT, SCREENS.SEARCH.MONEY_REQUEST_REPORT, SCREENS.ATTACHMENTS]; | ||
|
|
||
| function hasReportIdInRouteParams(route: SearchRoute): route is RouteWithReportIDInParams<SearchRoute> { |
There was a problem hiding this comment.
| function hasReportIdInRouteParams(route: SearchRoute): route is RouteWithReportIDInParams<SearchRoute> { | |
| function hasReportIDInRouteParams(route: SearchRoute): route is RouteWithReportIDInParams<SearchRoute> { |
|
✋ 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 https://github.com/mountiny in version: 9.1.28-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.1.28-15 🚀
|
Explanation of Change
This PR rewrites the logic of the video player and its context, making video player work properly in the following cases (on both wide screens & narrow layouts):
Inside chats (inbox):
Inside new report view:
In RHP:
In chats via search:
Fixed Issues
$ #59774
$ #57731
PROPOSAL: N/A
Tests
[Chats (inbox)]
[Chats via search]
[New report view]
[RHP]
After every check you should also:
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
Android: Native
Android-1-compressed.mov
Android-2.mov
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Web-1.mov
Web-2-compressed.mov
MacOS: Desktop