-
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
[$250] [Search v2.1] - (you) disappears after selecting own user name #47712
Comments
Triggered auto assignment to @twisterdotcom ( |
@twisterdotcom 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 #wave-collect - Release 1 |
Edited by proposal-police: This proposal was edited at 2024-08-20 13:39:32 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.(you) disappears after selecting own user name What is the root cause of that problem?When the user selects their account, In App/src/libs/OptionsListUtils.ts Lines 447 to 457 in d519981
And the text prop will be used to render the users display name in InviteMemberListItem component
App/src/libs/OptionsListUtils.ts Line 2378 in d519981
And App/src/components/Search/SearchFiltersParticipantsSelector.tsx Lines 98 to 99 in d519981
Then the What changes do you think we should make in order to solve the problem?Since text: participant?.text ?? displayName, What alternative solutions did you explore? (Optional) |
Edited by proposal-police: This proposal was edited at 2024-08-20 14:33:24 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Search filters - (you) disappears after selecting own user name What is the root cause of that problem?We are properly setting (you) to current user here App/src/components/Search/SearchFiltersParticipantsSelector.tsx Lines 111 to 113 in a32da40
but only doing it when current user is not selected What changes do you think we should make in order to solve the problem?We should do the same update of
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.The (you) text disappears from the current user option after selecting it. What is the root cause of that problem?When the current user is not selected yet, we format the name using App/src/components/Search/SearchFiltersParticipantsSelector.tsx Lines 111 to 115 in c6d81c8
When the user is selected, the selected options is formatted with App/src/components/Search/SearchFiltersParticipantsSelector.tsx Lines 98 to 100 in c6d81c8
App/src/libs/OptionsListUtils.ts Line 2378 in c6d81c8
In App/src/libs/OptionsListUtils.ts Line 451 in c6d81c8
What changes do you think we should make in order to solve the problem?Pass as true for
This will require us to pass down the value as true from SearchFiltersParticipantsSelector > formatSectionsFromSearchTerm > getParticipantsOption. |
Job added to Upwork: https://www.upwork.com/jobs/~01bc33a0aabc7f4ab9 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
@twisterdotcom, @abdulrahuman5196 Eep! 4 days overdue now. Issues have feelings too... |
Hi, came back from weekend. Will check in the morning. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@FitseTLT 's proposal here #47712 (comment) looks good and works well. It aims to fix the issue in the SearchFiltersParticipantsSelector similar to existing approach of showing (you). 🎀 👀 🎀 |
Triggered auto assignment to @Gonals, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@abdulrahuman5196 any opinion with my proposal? I think the selected proposal doesn't follow a similar approach. The approach is mutating the item returned from the array below.
The current approach is, selected options are formatted by Also, the selected proposal will cause the current user to always be at the top even though there are selected items. |
@abdulrahuman5196 It's because I moved down the
the only problem we forgot to do the same for selected list so my approach is indeed using the same as existing approach. 2024-08-29.20-47-03.mp4 |
I noticed that during approval, but its more like a PR code fix.
I was not aligned in passing shouldAddCurrentUserPostfix as true in the common helper method usecase. Since the default value of shouldAddCurrentUserPostfix in getDisplayNameOrDefault is false and I have also noticed we are not passing it as true in multiple common places. |
I don't see why this is a problem since we only pass it as true in the filter page just like we did with the non-selected current user section.
I believe the root issue is that we are not formatting it inside ^ just an explaination why I posted my proposal 😄, i'll accept any decision |
📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
We have an assignee @MelvinBot |
@twisterdotcom @Gonals @FitseTLT @abdulrahuman5196 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
PR will be up tomorrow |
bump for a review @abdulrahuman5196 |
It seems like we can close this issue then? |
@twisterdotcom PR was raised and was on review; I think Payment is due here. |
Yeah. Same is mentioned in C+ doc as well |
Aha, I see.
Okay, cool, @abdulrahuman5196 was actively reviewing, so let's do both $250. Payment Summary:
|
$250 approved for @abdulrahuman5196 |
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: 9.0.22-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: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
(you) will not disappear after selecting own user name
Actual Result:
(you) disappears after selecting own user name
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6576827_1724140883869.bandicam_2024-08-20_15-59-12-380.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @FitseTLTThe text was updated successfully, but these errors were encountered: