Skip to content
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

[Due for payment 2025-02-27] [$250] Update Search page to always show search input and type tabs at the top #52317

Closed
shawnborton opened this issue Nov 11, 2024 · 110 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item. Weekly KSv2

Comments

@shawnborton
Copy link
Contributor

shawnborton commented Nov 11, 2024

Right now we face some inconsistent behavior with the Search page depending on if you use a LHN nav item or if you search via the router. The LHN has default navigational items that don't use search input across the top of the page, but we do indeed show a search input if you search for something via the router. Furthermore, the default Search experience does not show a type selector across the top, however we are planning to show one across the top if you searched for something via the router.

In order to clean up these consistencies, we're proposing these incremental updates to the search page:

  • Always show a search input at the top of the page
  • Do not show expense types in the LHN. Instead, use the LHN for default suggested searches as well as saved searches
    • The two default searches will be "All expenses" and "Expenses waiting on you" to start
  • Move the status selector (All, drafts, outstanding, etc) to be within the RHP filters panel

That gives us something like this:
image

CleanShot.2024-11-11.at.16.52.54.mp4

On mobile, the idea is to use a UI like this where we use a full-page router experience that you can close in the top right corner after focusing:

CleanShot.2024-11-11.at.16.51.48.mp4

On the note of filters, the idea is to move Status into the list of filters in the RHP:
image

One small update though is we'd like to make it so you can select multiple statuses as once, which more closely matches OldDot's behavior for expense/report status selection:
image

cc @luacmartins @JmillsExpensify @trjExpensify @Expensify/design

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021864720653992598336
  • Upwork Job ID: 1864720653992598336
  • Last Price Increase: 2024-12-05
  • Automatic offers:
    • ikevin127 | Contributor | 106182826
Issue OwnerCurrent Issue Owner: @lschurr
@shawnborton shawnborton changed the title Update Search page to always show search input at the top and expense type tabs below Update Search page to always show search input and type tabs at the top Nov 11, 2024
@luacmartins luacmartins added the Daily KSv2 label Nov 13, 2024
@luacmartins
Copy link
Contributor

@Kicu anyone from SWM interested in working on this one?

@Kicu
Copy link
Member

Kicu commented Nov 14, 2024

@luacmartins hm, right now Im actually refactoring this code, so that the input has the autocomplete behavior similar to router, and so that the query always stays correct, if a user keeps editing it and resubmitting.

The change described here would be affecting the (react) components flow in the header of the Search Results page, and I think it would be better if someone doing this waits for my PR.
I can open a draft later today so you could add HOLD to this issue, and my PR should be done withing 1-2 days I think + review.

And yes, we would definitely like to work on this in SWM, I'll post this internally and someone will pick it up. For now perhaps assign me to this?

@Kicu
Copy link
Member

Kicu commented Nov 14, 2024

here is the aforementioned PR: #52568 still a draft, but now we can link it

@luacmartins luacmartins changed the title Update Search page to always show search input and type tabs at the top [HOLD App #52568] Update Search page to always show search input and type tabs at the top Nov 14, 2024
@luacmartins
Copy link
Contributor

I agree we should hold on your changes. Thanks for the linked PR and looking forward to getting someone from SWM assigned to the issue!

@shawnborton
Copy link
Contributor Author

Another thing I wanted to note for this issue - I think it makes way more sense to bring the multi-select button out of the router so it sits below it like this:
image

Curious what everyone thinks about that though.

@dannymcclain
Copy link
Contributor

I think it makes way more sense to bring the multi-select button out of the router so it sits below it like this

Where does it show up now? Inside the search input where the filters button is? Anyhoo, I agree and I think what you're showing in that mock looks good and makes sense. 👍

@shawnborton
Copy link
Contributor Author

Yeah it currently replaces the filter icon within the search bar, which feels a little strange.

@dannymcclain
Copy link
Contributor

Agree with that. Definitely like what you posted much better.

@melvin-bot melvin-bot bot added the Overdue label Nov 18, 2024
@shawnborton
Copy link
Contributor Author

Not overdue, still working through this one.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Nov 18, 2024
@luacmartins
Copy link
Contributor

Still holding

Copy link

melvin-bot bot commented Nov 25, 2024

@shawnborton, @luacmartins Eep! 4 days overdue now. Issues have feelings too...

@Kicu
Copy link
Member

Kicu commented Nov 25, 2024

Waiting on merge of: #52568
I remember about this PR and someone from SWM will pick it up once 52568 is close to merging. Currently scope is growing a bit for the PR.

@shawnborton
Copy link
Contributor Author

Not overdue, see comment above

@melvin-bot melvin-bot bot removed the Overdue label Nov 25, 2024
@trjExpensify
Copy link
Contributor

The linked PR has merged, so shall we take this issue off hold? I'm also going to move this now into #migrate, so we track it there as a key foundational issue to get in place for the rest of our recently discussed plans. Excited for it!

@luacmartins
Copy link
Contributor

We'll be working on a follow up to that PR to fully enable the features on the Search results page, so I don't think we should remove the hold quite yet

@trjExpensify
Copy link
Contributor

Alright, sounds good!

@Kicu
Copy link
Member

Kicu commented Nov 27, 2024

We can now update the HOLD to be on this issue: #53126

I estimate the PR should be ready in 1-2 days.

@luacmartins luacmartins assigned ikevin127 and unassigned rayane-d Feb 18, 2025
Copy link

melvin-bot bot commented Feb 18, 2025

📣 @ikevin127 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@shawnborton
Copy link
Contributor Author

Let's also make sure we close the router on desktop when the user presses the escape key, cc @luacmartins to add that to your follow up list.

@garrettmknight
Copy link
Contributor

@anmurali bump on the payment summary, plz.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Feb 20, 2025
@melvin-bot melvin-bot bot changed the title [$250] Update Search page to always show search input and type tabs at the top [Due for payment 2025-02-27] [$250] Update Search page to always show search input and type tabs at the top Feb 20, 2025
Copy link

melvin-bot bot commented Feb 20, 2025

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 20, 2025
Copy link

melvin-bot bot commented Feb 20, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.1-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2025-02-27. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Feb 20, 2025

BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@ikevin127] Please propose regression test steps to ensure the new feature will work correctly on production in further releases.
  • [] Link the GH issue for creating/updating the regression test once above steps have been agreed upon.

@ikevin127
Copy link
Contributor

  • [@ikevin127] Please propose regression test steps to ensure the new feature will work correctly on production in further releases.

Regarding ☝ BZ Checklist, I think no regression test is needed for #56326 as it's a UI refactor.

Copy link

melvin-bot bot commented Feb 27, 2025

Issue is ready for payment but no BZ is assigned. @lschurr you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks!

@rayane-d
Copy link
Contributor

Please assign me for #52317 (comment)

@lschurr
Copy link
Contributor

lschurr commented Feb 27, 2025

Looks like @anmurali is already assigned from BZ, so I'm going to remove my assignment.

@lschurr lschurr removed their assignment Feb 27, 2025
@garrettmknight
Copy link
Contributor

@lschurr Anu's no longer on BZ.

@lschurr
Copy link
Contributor

lschurr commented Feb 28, 2025

Payment summary:

@lschurr lschurr closed this as completed Feb 28, 2025
@github-project-automation github-project-automation bot moved this from Second Cohort - HIGH to Done in [#whatsnext] #migrate Feb 28, 2025
@lschurr
Copy link
Contributor

lschurr commented Mar 5, 2025

We discussed internally and realized there was an error in payment on this one.

The correct payment summary is as follows:

The explanation is here:

Due to the error, I've requested a refund of $125 in Upwork from @ikevin127

@ikevin127
Copy link
Contributor

@lschurr I think there's a misunderstanding here due to multiple PRs and different contributors being paid in the same issue.

Here's a summary of my work for this issue:

  1. Reviewed first PR:
    Redesign search to always show search input(mobile + desktop)
    as C+, which had a few regressions and was fully reverted - meaning no payment for me on this one.
  2. Reviewed the second PR: Add search input to mobile search page(with fixed performance) that was a rework of the first one, which did not cause any regressions as far as I know - we merged with 2 UI issues which CME agreed on having follow-up PRs for.

Since we started from scratch on the second PR rework, and I performed another complete review (including past regressions testing) - it was correct to get the full $250 payment.

cc @luacmartins for confirmation

If confirmed otherwise, I noted down the refund request and will send it as soon as I get some available balance.

@luacmartins
Copy link
Contributor

Reviewed first PR:
#55078 as C+, which had a few regressions and was fully #56053 - meaning no payment for me on this one.
Reviewed the second PR: #56326 that was a rework of the first one, which did not cause any regressions as far as I know - we merged with 2 UI issues which CME agreed on having follow-up PRs for.

@ikevin127 AFAIK this counts as a regression whether we fully revert the PR or work on a new fix for it.

@ikevin127
Copy link
Contributor

@lschurr Refund issued, please let me know if anything else is needed from my side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item. Weekly KSv2
Projects
Development

No branches or pull requests