-
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
Contact method needs reload to correct the order #30038
Comments
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)
ResultScreencast.from.21-09-2023.07.03.03.webm |
ProposalPlease re-state the problem that we are trying to solve in this issue.Added contact method is not placed in sorted order after adding a contact method. What is the root cause of that problem?Here we are only keeping the default contact method at top and not changing the order of the logins for others.
When we refresh the list received from BE has the login list sorted so the list is sorted. What changes do you think we should make in order to solve the problem?We can sort the remaining contact methods in this way const sortedLoginNames = _.sortBy(loginNames, (loginName) => [
props.loginList[loginName].partnerUserID !== props.session.email, // true (1) for non-matching, and false (0) for matching, so matching ones come first
loginName.toLowerCase() // case-insensitive lexicographic sort for the rest
]); What alternative solutions did you explore? (Optional)I think the ideal order should be
const sortedLoginNames = _.sortBy(loginNames, (loginName) => {
const user = props.loginList[loginName];
return [
user.partnerUserID !== props.session.email, // First: Matching partnerUserID comes first
!user.validatedDate, // Second: Non-empty validated comes first
loginName.toLowerCase() // Third: Sorted by loginName
];
}); |
Triggered auto assignment to @mallenexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Issue not reproducible by QA team |
I still can reproduce Screencast.from.20-10-2023.11.54.53.webm |
|
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:
Reproducible in staging?: needs reproduction
Reproducible in production?: needs reproduction
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
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695036320538419
Action Performed:
Precondition: user should have at least 2 contact methods added
Expected Result:
App should order contact method alphabetically as soon as we add the contact
Actual Result:
App need reload after adding contact method to order it alphabetically
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
reload.needed.to.arrange.alphabetically.contact.method.mp4
MacOS: Desktop
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: