fix: attachment arrows are hidden when playing video - #75899
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
Typescript and unit test checks are already on |
| if (controlStatusState === CONST.VIDEO_PLAYER.CONTROLS_STATUS.SHOW) { | ||
| onTap(true); | ||
| } else if (controlStatusState === CONST.VIDEO_PLAYER.CONTROLS_STATUS.HIDE) { | ||
| onTap(false); |
There was a problem hiding this comment.
Have you also tested VOLUME_ONLY case?
There was a problem hiding this comment.
I can't find any where we're using VOLUME_ONLY in the current code base. But I think we should show the arrows in that case because volume button is a part of the control bar.
JmillsExpensify
left a comment
There was a problem hiding this comment.
Verify that the arrows will show and hide based on control bar by tapping on the video (control bar shows > arrows show; control bar hides > arrows hide)
UX approved by product
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.movAndroid: mWeb Chromemchrome.moviOS: HybridAppios.moviOS: mWeb Safarimsafari.movMacOS: Chrome / Safariweb.mov |
|
@gijoe0295 please merge main |
|
When video is paused and arrows are auto-hidden, need to tap and then tap again to see arrows. Screen.Recording.2025-12-10.at.10.44.30.PM.mov |
Hmm this can be confusing I feel like. Thoughts @JmillsExpensify? |
|
Ah interesting, I didn't catch that before. I agree the UX isn't great, though I also kind of question why we actually need the arrows in the carousel in the first place. Most apps don't really use this anymore on mobile. So I don't think we need to block on this right now either. |
|
@lakchote All checks have passed. Is it ready for merging? |
|
✋ 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/JmillsExpensify in version: 9.2.87-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.87-7 🚀
|
| return; | ||
| } | ||
| const handleTap = useCallback( | ||
| (shouldShowArrows?: boolean) => { |
Explanation of Change
The arrows to navigate through attachments in the carousel are hidden while video is playing. They only appear again when we navigate to another attachment. This PR resolves that problem.
Fixed Issues
$ #72505
PROPOSAL: #72505 (comment)
Tests
Offline tests
NA
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)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
Screen.Recording.2025-11-24.at.21.16.37.mov
Android: mWeb Chrome
Screen.Recording.2025-11-24.at.21.17.52.mov
iOS: Native
Screen.Recording.2025-11-24.at.21.08.24.mov
iOS: mWeb Safari
Screen.Recording.2025-11-24.at.21.13.54.mov
MacOS: Chrome / Safari
Screen.Recording.2025-11-24.at.21.18.43.mp4
MacOS: Desktop