You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$250] Attachment - Wrong video playback speed is highlighted #42425
Version Number: 1.4.74.4 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
@JmillsExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
Please re-state the problem that we are trying to solve in this issue.
Wrong video playback speed is highlighted. There is no highlight on Android and iOS app
What is the root cause of that problem?
When we are in Download | Playback speed menu, click on Playback speed option will set the focused index to 1 in here.
Then, the Playback speed menu opens. In here, the focused index is still 1 as we set before, leads to the current bug.
What changes do you think we should make in order to solve the problem?
We need to set onMouseDown={(e)=>e.preventDefault()} in here. We already have this logic in a lot of logics, such as here to prevent app from focusing on the mouse down option.
We can also create a prop named shouldPreventDefaultFocusOnSelectRow to just apply the change e.preventDefault() if shouldPreventDefaultFocusOnSelectRow: true
What alternative solutions did you explore? (Optional)
changed the title [-]Attachment - Wrong video playback speed is highlighted[/-][+][$250] Attachment - Wrong video playback speed is highlighted[/+]on May 22, 2024
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
Activity
melvin-bot commentedon May 21, 2024
Triggered auto assignment to @JmillsExpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.lanitochka17 commentedon May 21, 2024
@JmillsExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
lanitochka17 commentedon May 21, 2024
We think that this bug might be related to #vip-vsp
Krishna2323 commentedon May 21, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Attachment - Wrong video playback speed is highlighted
What is the root cause of that problem?
The focused index in not updated correctly when
currentMenuItemsgets changed and isSelected isn't passed insubMenuItemsoption.App/src/components/PopoverMenu.tsx
Lines 102 to 111 in e8ae3c5
App/src/components/VideoPlayerContexts/VideoPopoverMenuContext.tsx
Lines 60 to 67 in e8ae3c5
What changes do you think we should make in order to solve the problem?
isSelectedproperty insubMenuItemsoption.focusedindex whenevercurrentMenuItemsgets changed.What alternative solutions did you explore? (Optional)
We can use
useEffectto update the focused index.Alternative solution 2
If we don't want to highlight the selected option then we can just call
setFocusedIndex(-1);insideselectItemcallback.App/src/components/PopoverMenu.tsx
Lines 102 to 111 in e8ae3c5
We already clear the index when selecting the option by pressing enter.
App/src/components/PopoverMenu.tsx
Lines 148 to 152 in e8ae3c5
tienifr commentedon May 22, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Wrong video playback speed is highlighted. There is no highlight on Android and iOS app
What is the root cause of that problem?
When we are in
Download | Playback speedmenu, click onPlayback speedoption will set the focused index to1in here.Then, the
Playback speedmenu opens. In here, the focused index is still1as we set before, leads to the current bug.What changes do you think we should make in order to solve the problem?
We need to set
onMouseDown={(e)=>e.preventDefault()}in here. We already have this logic in a lot of logics, such as here to prevent app from focusing on the mouse down option.We can also create a prop named
shouldPreventDefaultFocusOnSelectRowto just apply the changee.preventDefault()ifshouldPreventDefaultFocusOnSelectRow: trueWhat alternative solutions did you explore? (Optional)
NA
JmillsExpensify commentedon May 22, 2024
Opening up to the community.
melvin-bot commentedon May 22, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01bf77b70eb73d8074
[-]Attachment - Wrong video playback speed is highlighted[/-][+][$250] Attachment - Wrong video playback speed is highlighted[/+]melvin-bot commentedon May 22, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 (
External)51 remaining items
Krishna2323 commentedon Jul 6, 2024
@allroundexperts PR ready for review ^
Krishna2323 commentedon Jul 14, 2024
@JmillsExpensify, PR was deployed to production 4 days ago, can you please update the title? Thanks
Krishna2323 commentedon Jul 23, 2024
@JmillsExpensify, payments due date was 17th July, could you please process the payments? Thanks
Krishna2323 commentedon Aug 5, 2024
@allroundexperts, can you please bump @JmillsExpensify for payments in slack 🙏🏻
Krishna2323 commentedon Aug 9, 2024
@JmillsExpensify @allroundexperts friendly bump
allroundexperts commentedon Aug 11, 2024
Hi @Krishna2323!
I have messaged @JmillsExpensify. Thanks for your patience. Someone from the team should be handling this soon.
allroundexperts commentedon Aug 11, 2024
Checklist
Regression test
Do we 👍 or 👎 ?
JmillsExpensify commentedon Aug 12, 2024
@Krishna2323 All paid out. Always feel free to reach out to me via Slack if you don't see a response here.
JmillsExpensify commentedon Aug 12, 2024
Payment summary:
melvin-bot commentedon Sep 4, 2024
This issue has not been updated in over 15 days. @JmillsExpensify, @cristipaval, @allroundexperts, @Krishna2323 eroding to Monthly issue.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
trjExpensify commentedon Oct 4, 2024
^^ Payment summary here confirmed is good.
JmillsExpensify commentedon Oct 4, 2024
$250 approved for @allroundexperts