-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2023-09-20] [$1000] FAB menu - Pressing Enter doesn't open the selected option page #26228
Comments
Triggered auto assignment to @flaviadefaria ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.FAB menu - Pressing Enter doesn't open the selected option page What is the root cause of that problem?we're updating we're updating App/src/components/PopoverMenu/index.js Line 57 in 9398754
And when the modal hides, we should execute the onSelected of the corresponding item App/src/components/PopoverMenu/index.js Lines 79 to 85 in 9398754
But at that time, the What changes do you think we should make in order to solve the problem?We don't use
and update other places to use |
Job added to Upwork: https://www.upwork.com/jobs/~013ca232e37db3db0d |
Current assignee @flaviadefaria is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The first time we press enter with the FAB menu, the page of the selected option is not opened. What is the root cause of that problem?The root cause of this is that when an option has been selected, we first set App/src/components/PopoverMenu/index.js Lines 54 to 58 in a644050
And then we actually open the selected item when the modal closes: App/src/components/PopoverMenu/index.js Lines 79 to 85 in a644050
But the What changes do you think we should make in order to solve the problem?Unless I have missed something, there is no reason to split the code this way.
We can clean things up quite a bit by calling the selected option's This way, we do not have to worry about if The steps to implement this would be:
It's worth noting that we still want to clear the focused index in
And
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.In the FAB menu , when Enter is pressed , it does not open selected Item What is the root cause of that problem?The root cause of the issue is in the selectItem function , onSelectedItem Prop , which call hideCreateMenu but it does not call App/src/components/PopoverMenu/index.js Lines 54 to 58 in c20c387
App/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.js Lines 128 to 129 in c20c387
when second time enter is pressed , onModalHide is executed ,selectedItemIndex with previous item .App/src/components/PopoverMenu/index.js Lines 79 to 85 in c20c387
What changes do you think we should make in order to solve the problem?we should update the selectItem function as follow , selectedItemIndex state is no needed . const selectItem = (index) => {
const selectedItem = props.menuItems[index];
selectedItem.onSelected()
}; and update the on onModalHide={() => {
setFocusedIndex(-1);
}} What alternative solutions did you explore? (Optional)N/A |
Reviewing tomorrow! |
Sorry higher priority PR review got in the way, will come back to this on Monday. |
Waiting for @jjcoffee's review today/tomorrow. |
Happy to go with @dukenv0307's proposal! It has the correct RCA and a good solution that cuts back usage of 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @Beamanator, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @jjcoffee 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @hungvu193 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
@jjcoffee The PR is ready for review |
Thanks, reviewing tomorrow! |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.68-17 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-09-20. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
|
Regression Test Proposal
Do we agree 👍 or 👎 |
Just noting that this one was approved within 3WD, so technically due the timeliness bonus (slight extra delay was due to the merge freeze). cc @flaviadefaria |
@Beamanator, @jjcoffee, @flaviadefaria, @dukenv0307 Huh... This is 4 days overdue. Who can take care of this? |
Payment details: |
Everyone has been paid. |
@flaviadefaria Can you please update the reporting bonus to 250$? |
But the offer was initially sent and accepted with $50, which is the new amount we're paying. |
Got it, I have paid $50 already so sent you a new offer fo the remaining $200. |
Thank you 😄 |
Everyone has been paid, so closing this! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
After pressing Enter, it should open selected option.
Actual Result:
Pressing Enter doesn't open the selected option page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.57-5
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.2023-08-22.At.15.43.41.mp4
bandicam.2023-08-29.01-40-15-309.mp4
Expensify/Expensify Issue URL:
Issue reported by: @hungvu193
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692694374144279
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: