App
App copied to clipboard
Video playback speed change should not move to next video
Details
Video playback speed change should not move to next video.
Fixed Issues
$ https://github.com/Expensify/App/issues/38831 PROPOSAL: https://github.com/Expensify/App/issues/38831#issuecomment-2016798802
Tests
- Upload multiple attachments to one chat.
- Expand any video which has some attachments after it.
- Change the playback speed.
- Attachment should not change.
QA Steps
- Upload multiple attachments to one chat.
- Expand any video which has some attachments after it.
- Change the playback speed.
- Attachment should not change.
PR Author Checklist
- [x] I linked the correct issue in the
### Fixed Issuessection above - [x] I wrote clear testing steps that cover the changes made in this PR
- [x] I added steps for local testing in the
Testssection - [x] I added steps for the expected offline behavior in the
Offline stepssection - [x] I added steps for Staging and/or Production testing in the
QA stepssection - [x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
- [x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
- [x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
- [x] I added steps for local testing in the
- [x] I included screenshots or videos for tests on all platforms
- [x] I ran the tests on all platforms & verified they passed on:
- [x] Android: Native
- [x] Android: mWeb Chrome
- [x] iOS: Native
- [x] iOS: mWeb Safari
- [x] MacOS: Chrome / Safari
- [x] MacOS: Desktop
- [x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
- [x] I followed proper code patterns (see Reviewing the code)
- [x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e.
toggleReportand notonIconClick) - [x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g.
myBool && <MyComponent />. - [x] I verified that comments were added to code that is not self explanatory
- [x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
- [x] I verified any copy / text shown in the product is localized by adding it to
src/languages/*files and using the translation method- [x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:
- [x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
- [x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
- [x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
- [x] I verified the JSDocs style guidelines (in
STYLE.md) were followed
- [x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e.
- [x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
- [x] I followed the guidelines as stated in the Review Guidelines
- [x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like
Avatar, I verified the components usingAvatarare working as expected) - [x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
- [x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
- [x] I verified that if a function's arguments changed that all usages have also been updated correctly
- [x] If any new file was added I verified that:
- [x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
- [x] If a new CSS style is added I verified that:
- [x] A similar style doesn't already exist
- [x] The style can't be created with an existing StyleUtils function (i.e.
StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
- [x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
- [x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like
Avataris modified, I verified thatAvataris working as expected in all cases) - [x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
- [x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
- [x] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
- [x] I verified that all the inputs inside a form are aligned with each other.
- [x] I added
Designlabel and/or tagged@Expensify/designso the design team can review the changes.
- [x] If a new page is added, I verified it's using the
ScrollViewcomponent to make it scrollable when more elements are added to the page. - [x] If the
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
https://github.com/Expensify/App/assets/35566748/54b70d17-4d18-4798-bf24-4e1e6ceeed66
Android: mWeb Chrome
https://github.com/Expensify/App/assets/35566748/16e1d115-e646-4f49-a0f1-eee294b3e4f6
iOS: Native
https://github.com/Expensify/App/assets/35566748/4156331c-03af-441d-8207-00d6b3087079
iOS: mWeb Safari
https://github.com/Expensify/App/assets/35566748/414450a0-c0ae-4e6b-a22f-5e37a9099230
MacOS: Chrome / Safari
https://github.com/Expensify/App/assets/35566748/621b721b-2bb8-41f5-815b-99f5e3e0b925
MacOS: Desktop
https://github.com/Expensify/App/assets/35566748/c31608a0-a9e8-4fbe-9d34-1ad084cf93a7
@parasharrajat 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]
Looks like this solution will not work. It changes UI interaction while menu is active. Previously, user could cancel the attachment view and do other things while menu is active but those are not possible on this PR.
Check the staging video.
https://github.com/Expensify/App/assets/24370807/a0f998a0-ed17-4d35-98ea-fdc777ac66c4
@parasharrajat Isn't this the expected behaviour?
For example, go to workspaces list, open any workspace popover menu and then try clicking the "New workspace" button. The same behaviour is present.
Clicking anywhere outside the menu will close it.
Isn't this the expected behaviour?
I doubt that. I have asked for more clarification. But I think this was the reason behind using without overlay popover.
@parasharrajat Can you check this video?
https://github.com/Expensify/App/assets/35566748/153de1e4-af0d-4084-a9e9-ebe19065d49e
I understood your point but that is a different UI in the App. There can be different purposes behind using a different UI at different places.
Why the current production experience is wrong?
Suppose the user wants to close the popup menu by clicking outside the menu. This also leads to unintended actions like playing/pausing the video, closing the video etc.
If you see YouTube, they also just close the popup when you click outside and they don't play/pause the video when clicking outside the popup.
@parasharrajat Do let me know your thoughts on the above. Should we tag someone from the design team or product team here?
https://github.com/Expensify/App/assets/35566748/ffcb4853-cc6f-43ff-82f2-6393198ef03a
https://github.com/Expensify/App/assets/35566748/2e9dc561-48f3-48a8-944e-fa4102982632
Above videos show the difference in experience between YouTube and Expensify's video.
I think you have a point. Let's bring this to Slack open source channel. Do you mind posting this on slack with explanations like above?
Please tag me.
Looks like we got an approval for it. Thanks for posting it on Slack.
Screenshots
:black_square_button: iOS / native
https://github.com/Expensify/App/assets/24370807/e4cbd059-8e75-4159-9823-cfa1553c57e7
:black_square_button: iOS / Safari
https://github.com/Expensify/App/assets/24370807/561cb04f-dd1b-403e-94c7-0e76db5e2bb7
:black_square_button: MacOS / Desktop
https://github.com/Expensify/App/assets/24370807/74f9a219-7618-4846-9c6f-580dcebaa168
:black_square_button: MacOS / Chrome
https://github.com/Expensify/App/assets/24370807/dd0dfa3a-3ad6-41b1-9a60-d25e5d8ce092
:black_square_button: Android / Chrome
https://github.com/Expensify/App/assets/24370807/668569d9-8068-4d9c-9ce6-a9f610b8c522
:black_square_button: Android / native
https://github.com/Expensify/App/assets/24370807/39cedaf7-e8ce-43aa-82fc-1f77a125a4bf
:hand: 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/iwiznia in version: 1.4.59-0 🚀
| platform | result |
|---|---|
| 🤖 android 🤖 | success ✅ |
| 🖥 desktop 🖥 | success ✅ |
| 🍎 iOS 🍎 | success ✅ |
| 🕸 web 🕸 | success ✅ |
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.60-13 🚀
| platform | result |
|---|---|
| 🤖 android 🤖 | success ✅ |
| 🖥 desktop 🖥 | success ✅ |
| 🍎 iOS 🍎 | success ✅ |
| 🕸 web 🕸 | success ✅ |