-
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
[$500] Search - No loading animation when pasting text for first time #34516
Comments
Job added to Upwork: https://www.upwork.com/jobs/~019fb5965c49371271 |
Triggered auto assignment to @sophiepintoraetz ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The app should display a loading animation on pasting text in the search What is the root cause of that problem?We use search as the state when passing it here: Lines 135 to 137 in a4e3ae2
But initially, the value is empty so when pasted, App/src/libs/actions/Report.ts Lines 2563 to 2567 in a4e3ae2
What changes do you think we should make in order to solve the problem?We should pass in using Lines 135 to 136 in a4e3ae2
What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.Search - No loading animation when pasting text for first time What is the root cause of that problem?This happens as the order of statements is wrong here: Lines 135 to 138 in a4e3ae2
What changes do you think we should make in orderWe should move up setting the state, before calling the backend function with the searchValue state: We will change: Lines 135 to 138 in a4e3ae2
To: const onChangeText = (value = '') => {
setSearchValue(value);
Report.searchInServer(searchValue);
}; |
ProposalPlease re-state the problem that we are trying to solve in this issue.On first text change the search loader isn't displayed What is the root cause of that problem?In this PR commit while merging it seems the conflict isn't resolved correctly. Due to that instead of Lines 135 to 138 in a4e3ae2
cc: @TMisiukiewicz What changes do you think we should make in order to solve the problem?Correct the passed variable with |
@namhihi237's proposal looks good to me. 🎀 👀 🎀 C+ Reviewed |
Triggered auto assignment to @Gonals, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The app should display a loading animation on pasting text in the search What is the root cause of that problem?It is sending the value of the search before it get save in the state What changes do you think we should make in order to solve the problem?I will change to: in this way when the state is properly updated the search is made What alternative solutions did you explore? (Optional)N/A |
📣 @miguelesco! 📣
|
ProposalPlease re-state the problem that we are trying to solve in this issue.No loading animation when pasting text for first time What is the root cause of that problem?PR #27924 created this bug as we don't pass value to the search What changes do you think we should make in order to solve the problem?Adding to the above proposals i also propose that const onChangeText = (value = '') => {
const trimmedValue = value.trim();
setSearchValue(trimmedValue);
Report.searchInServer(trimmedValue);
};
What alternative solutions did you explore? (Optional)N/A |
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Hi @Gonals - can you take a look at the C+ approved proposal? |
📣 @namhihi237 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Sounds good! |
@shubham1206agra PR is already for review but I am not sure why the reviewer is incorrect. Can you re-assign C+ for this PR @Gonals . Thanks |
Triggered auto assignment to @CortneyOfstad ( |
@CortneyOfstad, @Gonals, @namhihi237, @shubham1206agra Huh... This is 4 days overdue. Who can take care of this? |
@Gonals, I think we need to talk about #34846 (comment) here. |
True. @CortneyOfstad, @namhihi237 worked on a fix for this issue for a while, and it was almost ready. However, the refactor of |
I approved the PR, but it has some performance issues, which were disabled in a separate PR. |
Reaching out to @Gonals to discuss 👍 |
@shubham1206agra @namhihi237 — after a discussion with the team, it was decided to offer a 50% payment ($250) to both of you for the work put in. If that is okay with you both, I'll get the Upwork proposals sent over ASAP. Thanks for your patience! |
@CortneyOfstad Its ok for me. |
Thanks i am ok with this |
Thanks! @namhihi237 — you've been paid in Upwork, so you're all set! @shubham1206agra — I sent you a proposal in Upwork, let me know once you accept! |
Done |
Awesome — thanks! Payments have been completed and sharing the payment summary below! |
Payment Summary@namhihi237 (contributor) — paid $250 via Upwork |
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: 1.4.25-1
Reproducible in staging?: Y
Reproducible in production?: Y
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: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
App should display loading animation on pasting text in search
Actual Result:
App does not display loading animation on pasting text in search when search box is empty
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6343155_1705336591944.34493_-_search_loading_mWeb.mp4
Bug6343155_1705336591949.34493_-_search_loading_iOS.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @GonalsThe text was updated successfully, but these errors were encountered: