-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[$250] Attachment - Wrong video playback speed is highlighted #42425
Comments
Triggered auto assignment to @JmillsExpensify ( |
@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 |
We think that this bug might be related to #vip-vsp |
ProposalPlease 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 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?
const selectItem = (index: number) => {
const selectedItem = currentMenuItems[index];
if (selectedItem?.subMenuItems) {
const selectedItemIndexH = selectedItem?.subMenuItems.findIndex((option) => option.isSelected);
setCurrentMenuItems([...selectedItem.subMenuItems]);
setEnteredSubMenuIndexes([...enteredSubMenuIndexes, index]);
setFocusedIndex(selectedItemIndexH);
} else {
selectedItemIndex.current = index;
onItemSelected(selectedItem, index);
}
}; What alternative solutions did you explore? (Optional)We can use useEffect(() => {
setFocusedIndex(-1);
const selectedItemIndexH = currentMenuItems.findIndex((option) => option.isSelected);
setFocusedIndex(selectedItemIndexH ?? -1);
}, [currentMenuItems, setFocusedIndex]); Alternative solution 2If we don't want to highlight the selected option then we can just call 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
|
ProposalPlease 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?
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)NA |
Opening up to the community. |
Job added to Upwork: https://www.upwork.com/jobs/~01bf77b70eb73d8074 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
Proposal Updated
|
Proposal Please re-state the problem that we are trying to solve in this issue. What is the root cause of that problem? What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional) Another solution for this problem would be passing App/src/components/PopoverMenu.tsx Line 160 in e8ae3c5
this above function call and update focused index according to selected speed menu item index to get it highlighted From this App/src/components/VideoPlayerContexts
Let me know, if this proposal seems to work |
📣 @hurram-dev! 📣
|
Contributor details |
@JmillsExpensify, @abdulrahuman5196 Huh... This is 4 days overdue. Who can take care of this? |
Waiting for proposal reviews. cc @abdulrahuman5196 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@JmillsExpensify, @abdulrahuman5196 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
Hi, Will check on this tomorrow |
Checking now |
@lanitochka17 / @JmillsExpensify I don't see this happening from the OP - Wrong video playback speed is highlighted. Should we make a fix to show the pre-selected playback speed highlighted? Screen.Recording.2024-06-05.at.12.50.33.AM.mov |
@JmillsExpensify Eep! 4 days overdue now. Issues have feelings too... |
All yours @allroundexperts! |
Thanks for the proposals everyone. Given the updated requirements here, @Krishna2323's main solution works good. Let's go with them. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @cristipaval, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @Krishna2323 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@allroundexperts PR ready for review ^ |
@JmillsExpensify, PR was deployed to production 4 days ago, can you please update the title? Thanks |
@JmillsExpensify, payments due date was 17th July, could you please process the payments? Thanks |
@allroundexperts, can you please bump @JmillsExpensify for payments in slack 🙏🏻 |
@JmillsExpensify @allroundexperts friendly bump |
Hi @Krishna2323! I have messaged @JmillsExpensify. Thanks for your patience. Someone from the team should be handling this soon. |
Checklist
Regression test
Do we 👍 or 👎 ? |
@Krishna2323 All paid out. Always feel free to reach out to me via Slack if you don't see a response here. |
Payment summary:
|
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! |
^^ Payment summary here confirmed is good. |
$250 approved for @allroundexperts |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
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
Issue found when executing https://github.com/Expensify/Expensify/issues/383873
Action Performed:
Expected Result:
The current playback speed should be highlighted
Actual Result:
Wrong video playback speed is highlighted. There is no highlight on Android and iOS app
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6486124_1716205749562.bandicam_2024-05-20_13-36-09-159.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @abdulrahuman5196The text was updated successfully, but these errors were encountered: