Skip to content

[HOLD for payment] "No results found" message is missing when there're no search results for New Chat/New Group/Main Search #4163

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

Closed
aman-atg opened this issue Jul 21, 2021 · 41 comments
Assignees
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@aman-atg
Copy link
Contributor

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Login to e.cash
  2. Open Main Search / New Chat / New Group
  3. Type random word so that there're no search results

Expected Result:

image

Actual Result:

image

Workaround:

Visual Issue

Platform:

  • [:heavy_check_mark: ] Web
  • [ ✔️ ] iOS
  • [:heavy_check_mark: ] Android
  • [:heavy_check_mark: ] Desktop App
  • [:heavy_check_mark: ] Mobile Web

Version Number:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:

View all open jobs on Upwork

@aman-atg aman-atg added the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Jul 21, 2021
@MelvinBot
Copy link

Triggered auto assignment to @NicMendonca (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

@MelvinBot MelvinBot removed the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Jul 21, 2021
@aman-atg
Copy link
Contributor Author

aman-atg commented Jul 21, 2021

Proposal :

function getHeaderMessage(hasSelectableOptions, hasUserToInvite, searchValue, maxParticipantsReached = false) {
if (maxParticipantsReached) {
return translate(preferredLocale, 'messages.maxParticipantsReached');
}
if (searchValue && CONST.REGEX.DIGITS_AND_PLUS.test(searchValue) && !Str.isValidPhone(searchValue)) {
return translate(preferredLocale, 'messages.noPhoneNumber');
}
if (!hasSelectableOptions && !hasUserToInvite) {
if (/^\d+$/.test(searchValue)) {
return translate(preferredLocale, 'messages.noPhoneNumber');
}
return searchValue;
}
return '';
}

  • We're returning searchValue on line 681 instead of that we can use a different message like:
    • No results found
    • No users found
    • Please enter a valid email address
    • or any other message

@MelvinBot MelvinBot added the Monthly KSv2 label Jul 26, 2021
@NicMendonca NicMendonca added Daily KSv2 Engineering and removed Monthly KSv2 labels Jul 27, 2021
@MelvinBot
Copy link

Triggered auto assignment to @Beamanator (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@NicMendonca NicMendonca removed their assignment Jul 27, 2021
@Beamanator
Copy link
Contributor

Beamanator commented Jul 27, 2021

Thanks @aman-atg but this is technically working as expected. The search is waiting until you type a valid email address, then it will allow you to start a new chat with the email address you typed. We're working on some improvements in #2936 which should cover this case. When that solution gets merged, please feel free to test and let us know if it looks good or if you think it should change 👍 I'll close this for now.

@aman-atg
Copy link
Contributor Author

@Beamanator
Maybe we can open this issue now. And close the dupe: #4677

I'll update the proposal.

@Beamanator
Copy link
Contributor

Beamanator commented Aug 17, 2021

Good idea @aman-atg 👍 It looks like this was discussed in #expensify-open-source and people decided it would be nice to have a message like "No results found" instead of just coping whatever is in the text field - I didn't close #4677 yet, asking there if they agree it should be closed.

@Beamanator Beamanator reopened this Aug 17, 2021
@Beamanator Beamanator added the External Added to denote the issue can be worked on by a contributor label Aug 17, 2021
@MelvinBot
Copy link

Triggered auto assignment to @puneetlath (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@Beamanator

This comment has been minimized.

@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Aug 17, 2021

@aman-atg do you really want to edit your (#4163 (comment)) older proposal with what I proposed here #4677 (comment) yesterday.

cc: @Beamanator

@Beamanator
Copy link
Contributor

Wow I didn't notice that, thanks for bringing that to my attention @Santhosh-Sellavel

@Beamanator
Copy link
Contributor

@Santhosh-Sellavel will you please add your original proposal to this issue so we can move forward with your idea? 👍

@Santhosh-Sellavel
Copy link
Collaborator

@Beamanator Can we just close this move it forward there #4677

@Santhosh-Sellavel
Copy link
Collaborator

Here it is @Beamanator

Proposal

Simple returning searchValue is the problem here, if we remove it problem solved.

Screenshot 2021-08-16 at 11 21 00 PM

Instead, we could return the appropriate message if needed.

@aman-atg
Copy link
Contributor Author

aman-atg commented Aug 17, 2021

@Santhosh-Sellavel Sorry, If you felt that way but I didn't really saw your proposal before updating mine.
The problem was already known to me and it was a simple fix.
@Beamanator you can check the proposal history and the issue description that solution was already there. Only the location changed as new PRs were merged.

#4163

"No results found" message is missing when there're no search results for New Chat/New Group/Main Search

It's in the title as well.

@Beamanator
Copy link
Contributor

Thanks for the discussion @aman-atg and @Santhosh-Sellavel , let's remember to keep our conversations respectful at all times :)

@aman-atg Thanks for explaining your situation. I am going to move forward with another proposal. Your previous proposed solution may have been best at the time it was proposed, but we didn't move forward fixing the issue at the time. Your new proposal is good, but since it was very similar to a proposal that someone posted ~ 3 to 4 hours before you, I believe it's only fair to move forward with the other proposal. Please feel free to reach out to me in NewDot if you have questions.

@Santhosh-Sellavel Let's move forward with your proposal. I think we should work from this issue since this is the original reporting of the issue, can you please let me know why you prefer to move forward in the other issue?

@aman-atg
Copy link
Contributor Author

aman-atg commented Aug 17, 2021

@Beamanator

I am going to move forward with another proposal

That's fine. But I just wanted to clarify that the proposed solution, a different message, was already posted here days ago.

@MelvinBot MelvinBot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 20, 2021
@Beamanator Beamanator removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 20, 2021
@Beamanator
Copy link
Contributor

Thanks @dylanexpensify ! Just to quickly catch you up - this job has already been finished 😅 I merged @Santhosh-Sellavel 's code this morning, so @Santhosh-Sellavel can you let @dylanexpensify know when you apply so he can hire you?

@Santhosh-Sellavel
Copy link
Collaborator

Applied! @dylanexpensify

@dylanexpensify
Copy link
Contributor

dylanexpensify commented Aug 20, 2021

Hired @Santhosh-Sellavel ! 😄

@Beamanator Beamanator changed the title [Pay 8/27] "No results found" message is missing when there're no search results for New Chat/New Group/Main Search [HOLD for payment] "No results found" message is missing when there're no search results for New Chat/New Group/Main Search Aug 23, 2021
@Beamanator
Copy link
Contributor

Putting on hold for payment so it's clear what the current status is & so it's clear on my todo list :D

@MelvinBot MelvinBot removed the Overdue label Aug 23, 2021
@puneetlath puneetlath removed their assignment Aug 23, 2021
@MelvinBot
Copy link

@Beamanator, @Santhosh-Sellavel Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@Beamanator
Copy link
Contributor

@dylanexpensify assigning you since Puneet unassigned himself - seems your takeover is official! 😅

@dylanexpensify
Copy link
Contributor

Sounds good!

@MelvinBot MelvinBot removed the Overdue label Sep 2, 2021
@aman-atg
Copy link
Contributor Author

aman-atg commented Sep 2, 2021

Hi @Beamanator, Can you please clarify if a bonus will be paid for this issue as it was reported by me?

@Beamanator
Copy link
Contributor

Good question @aman-atg - as @mallenexpensify posted in #expensify-open-source here:

This change is in effect as of yesterday and the bonus for independently reporting an issue is only valid from yesterday forward. If there are existing, open, GH issues that you believe you should be compensated for reporting a bug, please comment in the issue.

@MelvinBot MelvinBot removed the Overdue label Sep 6, 2021
@aman-atg
Copy link
Contributor Author

aman-atg commented Sep 6, 2021

Thanks for clarifying.

@mallenexpensify
Copy link
Contributor

Actually... since this issue is still open and because @aman-atg has contributed to the issue, I think they should be paid. @aman-atg can you apply for the job here https://www.upwork.com/jobs/~0186891d4078a90470
@dylanexpensify when you pay @Santhosh-Sellavel for the job can you also pay @aman-atg $250 for reporting the issue, and confirm with a post in this issue that both have been paid? Thx

@arielgreen
Copy link
Contributor

@Santhosh-Sellavel this is paid, thanks :)

@aman-atg once you accept the offer in Upwork, I'll issue the bonus payment.

@arielgreen
Copy link
Contributor

Paid Aman, closing this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

10 participants