-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[$500] Chat - The contact is highlighted when you create a conversation #37800
Comments
Triggered auto assignment to @sonialiap ( |
@sonialiap 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-vsb |
ProposalPlease 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)
|
The main component for this behaviour is |
@dragnoir The component using SelectionList also encountered this behavior |
I can reproduce this |
Job added to Upwork: https://www.upwork.com/jobs/~017825971f9646dbf3 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Wrong highlighted item. What is the root cause of that problem?We will not use OptionsSelector or update it. Deprecated. What changes do you think we should make in order to solve the problem?Replace As discussed here: https://expensify.slack.com/archives/C01GTK53T8Q/p1709156803359359 We are replacing What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat - The contact is highlighted when you create a conversation What is the root cause of that problem?We use What changes do you think we should make in order to solve the problem?Use App/src/components/SelectionList/BaseSelectionList.tsx Lines 357 to 366 in fda1b3a
We need to make few updates:
const newFocusIndex = textInputValue === '' || (canUseTouchScreen && focusedIndex < 0) ? -1 : 0;
const newScrollIndex = textInputValue === '' ? -1 : 0;
updateAndScrollToFocusedIndex(newFocusIndex,newScrollIndex); Result |
Hello. |
📣 @superAI4003! 📣
|
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
@fedirjh I just tested but still can reproduce |
@nkdengineer The PR that fixed this was reverted in #38182 |
@fedirjh The same behavior also appears in other similar components, for example the search page. And it is because we are using |
PR is merged! Waiting for deploy |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
This issue is fixed within #38610 |
Thanks Rachid, closing this one out |
@sonialiap I still can reproduce in staging: Screen.Recording.2024-04-18.at.20.44.45.mov |
@nkdengineer I am still able to repo, but I am having second thoughts on the expected behavior. In my opinion, it does not seem correct. However, you can use the soft keyboard to navigate to the highlighted contact. So it makes sense to highlight the contact. CleanShot.2024-04-22.at.06.49.37.mp4 |
@fedirjh can you pls re-check with the latest main 20240422_102528.mp4 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@fedirjh In my opinion, I believe that on mobile devices, we should avoid having the "highlight" effect as seen in the expected behavior in the original post. This is because the scenario where the user utilizes the "soft keyboard" is infrequent. |
@dragnoir Try to type any characters, it will highlight the first one.
Hmm, this will also create inconsistency between the Web version and mobile version. I believe the current behaviour is universal and consistent. cc @Expensify/design I would love to hear your opinion on this. Do you think it would be a good idea to disable the highlighting of contacts within the search list on mobile devices? |
Yeah that sounds reasonable to me. Given we focus on the input field for contact when clicking "Start chat" I don't think anything should be selected until you tab out of it. And given on mobile that's not an option (unless you have external keyboard hooked up) it doesn't make sense to show any highlight at all. Keen to hear what rest of @Expensify/design thinks though. |
@dubielzyk-expensify On mobile, we can use the soft keyboard return key to navigate to the highlighted contact, check below video for iOS and this video for android CleanShot.2024-04-24.at.02.21.08.mp4 |
Yeah, I think I generally agree with this from the OP:
|
I see the point about the enter key though... and if we decide to keep that kind of behavior, then it would make sense to keep the highlighting. |
I also agree that no list items should be highlighted/focused until you specifically tab down into the list. |
@dannymcclain Should this be applied only for mobile or it should be on all platforms?
@shawnborton This behavior is consistent across all platforms, using the enter key will navigate you to the highlighted contact. You can check the expected behaviour in this issue #39631. |
Ok looking through this again, is this the correct expected behavior:
If this is the expected behavior, I think it is ok to keep it on mobile as well, since it's been pointed out that using the mobile enter key still functions the same way. Seems like the video in the description of this issue is showing that the first list item is highlighted before a search term is even entered, which is inconsistent with the expected behavior bullets I outlined above (if those are the correct expected behaviors!) |
Not anymore after #38610 |
@dannymcclain Thank you for your feedback. I believe that the expected behavior bullets outlined above accurately reflect what we currently have.
This seems to be already fixed, So we are good to close this issue. cc @sonialiap
I propose updating the expected behavior of this regression test to accurately reflect its intended functionality. The revised expected behavior is as follows:
|
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
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!
Version Number: 1.4.47-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4380775
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
In mWeb and native apps, highlighting contacts should not happen since there is no arrow navigation.
Actual Result:
The contact is highlighted when you create a conversation
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6403281_1709668015258.IMG_001814.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: