-
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
[HOLD for payment 2023-06-29] Web - Split Bill - Money request confirmation list stays highlighted after press #20585
Comments
Triggered auto assignment to @Christinadobrzyn ( |
Bug0 Triage Checklist (Main S/O)
|
I can reproduce but I don't see why this is a bug - asking for more information https://expensify.slack.com/archives/C049HHMV9SM/p1686604097827569?thread_ts=1686202285.251059&cid=C049HHMV9SM |
ProposalPlease re-state the problem that we are trying to solve in this issue.Money request confirmation list stays highlighted after press What is the root cause of that problem?We add focusStyle as App/src/components/OptionRow.js Line 185 in 93957f0
In money request confirmation list we pass optionHoveredStyle to OptionsSelector , so that when a row is selected it stays highlighted with style backgroundColor: themeColors.hoverComponentBG , focusIndex change to the next option in OptionsSelector and then we can see both options are highlighted with different bg color.
What changes do you think we should make in order to solve the problem?I saw that What alternative solutions did you explore? (Optional) |
Reached out here for some help - #19612 (comment) |
@bernhardoj @Christinadobrzyn I reverted my changes for testing and still, I got the same bug (even in PRs merged before #19612). However, I think I know where is the problem. It is caused because of not disabling focusing in this list. I will write the proposal |
ProposalPlease re-state the problem that we are trying to solve in this issue.The money request confirmation list stays highlighted after press What is the root cause of that problem?There are two root causes of this problem. The first one is that we don't disable focusing on this list. The second one is that we have two places that specify focus styles for What changes do you think we should make in order to solve the problem?We should pass the After we do these changes, the issue should be fixed, however we will have to fix again this issue. To do this we should change a little bit What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
Hmm maybe I misunderstand something, I thought that after we select/unselect something nothing should be highlighted. Something like this: Nagranie.z.ekranu.2023-06-14.o.17.24.43.movSo the last clicked element should be on focus? Because on the ss that you sent, I see two highlights |
Sorry if my previous comment is a bit confusing. The ss I sent show 2 highlighted rows. The bottom one is the correct one. It highlights the row that can be selected by pressing enter in keyboard. I think in all cases, it will highlights the first unselected row. The top one should not be highlighted. It is highlighted because of the Screen.Recording.2023-06-14.at.23.22.58.mov |
Oh okay, now I think I understand, we want to focus last unselected element to enable the user to select it by clicking enter but the other highlight is wrong. Hmm, I tested it and its really buggy so I thought that we don't want this 😅 Nagranie.z.ekranu.2023-06-14.o.17.43.41.mov |
I guess that's another bug to be solved haha. I think we should focus on the wrong highlight here. |
Okay, so to fix this issue we have to move styles in |
The bug with switching between items using arrows and enter button occurs after you change the focused item using the |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Looks like @Skalakid is working on this issue. The assigned engineer on the PR is @Julesssss, and the assigned C+ is @s77rt, so I will fix the assignments here to keep everything in sync. |
We need to make a small follow up change, so we'll hold the payment on that temporarily. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.30-5 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-06-29. 🎊 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.
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:
|
|
Looks like no regressions - paying this out. This is a regression, right so I would only pay the reporter? If that's not the case, will you please let me know if there's a speed bonus for this? |
Not a regression that was caught during regression period (i.e. not a regression from something that we worked on recently) so I think we should pay everyone here. No bonus though. |
Thanks @s77rt! Here's the Upwork job posting: Internal: https://www.upwork.com/ab/applicants/1670152822418042880/job-details @s77rt as C+ |
Not overdue |
Paid out based on #20585 (comment) Closing |
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:
The item is not highlighted if we don't hover it or is not focused
Actual Result:
The item stays highlighted after press and also the first item that is not clickable is highlighted if we click it
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.26.1
Reproducible in staging?: yes
Reproducible in production?: yes
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-06-08.at.13.24.35.mov
Recording.3078.mp4
Expensify/Expensify Issue URL:
Issue reported by: @bernhardoj
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686202285251059
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: