Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.5k stars 2.85k forks source link

[$250] Search - Select all check box is not checked with tick mark in shared, drafts & finish tab #47494

Closed izarutskaya closed 1 month ago

izarutskaya commented 2 months ago

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.0.20 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4861073 Logs: https://stackoverflow.com/c/expensify/questions/4856 Issue reported by: Applause-Internal team

Action Performed:

Pre-condition:Login to account with few expenses

  1. Go to https://staging.new.expensify.com/home
  2. Tap search -- select shared, draft or finish
  3. Long press an expense, and select " Select all " options

Expected Result:

Select all check box must be checked with tick mark in shared, drafts & finish tab

Actual Result:

Select all check box is not checked with tick mark in shared, drafts & finish tab.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

Screenshots/Videos

https://github.com/user-attachments/assets/ecb40073-a967-442d-8cf3-19dd8586f238

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~010cf70262c4767dc9
  • Upwork Job ID: 1824243866353954297
  • Last Price Increase: 2024-08-30
Issue OwnerCurrent Issue Owner: @getusha
melvin-bot[bot] commented 2 months ago

Triggered auto assignment to @VictoriaExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

izarutskaya commented 2 months ago

We think this issue might be related to the #vip-vsb

Krishna2323 commented 2 months ago

Edited by proposal-police: This proposal was edited at 2024-08-15 14:15:22 UTC.

Proposal

Please re-state the problem that we are trying to solve in this issue.

Search - Select all check box is not checked with tick mark in shared, drafts & finish tab

What is the root cause of that problem?

The condition report type of items is not correct. searchResults?.search.type is always expense, so areItemsOfReportType will be always false even if the status is not ALL. https://github.com/Expensify/App/blob/6a9a97690cd97f7f608ff9dd125ac1a7d7da3137/src/components/Search/index.tsx#L284

What changes do you think we should make in order to solve the problem?

We should updated it to const areItemsOfReportType = status !== CONST.SEARCH.STATUS.EXPENSE.ALL;.

OR:

const areItemsOfReportType = status && status !== CONST.SEARCH.STATUS.EXPENSE.ALL;

Similar logic is used here: https://github.com/Expensify/App/blob/6a9a97690cd97f7f608ff9dd125ac1a7d7da3137/src/libs/SearchUtils.ts#L294

If needed we can also check if the condition is one of the CONST.SEARCH.DATA_TYPES types.

const areItemsOfReportType = Object.keys(CONST.SEARCH.DATA_TYPES).includes(type) && status !== CONST.SEARCH.STATUS.EXPENSE.ALL;

What alternative solutions did you explore? (Optional)

Krishna2323 commented 2 months ago

Proposal Updated

daledah commented 2 months ago

Edited by proposal-police: This proposal was edited at 2024-08-16 00:47:01 UTC.

Proposal

Please re-state the problem that we are trying to solve in this issue.

What is the root cause of that problem?

VictoriaExpensify commented 2 months ago

I think @izarutskaya has uploaded the wrong screen-recording, but I've been able to reproduce the issue:

2024-08-16_10-34-57 (1)

I agree this is a problem and we should fix it.

melvin-bot[bot] commented 2 months ago

Job added to Upwork: https://www.upwork.com/jobs/~010cf70262c4767dc9

melvin-bot[bot] commented 2 months ago

Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha (External)

VictoriaExpensify commented 2 months ago

I think this is more suited to Wave-Collect

daledah commented 2 months ago

Proposal updated

melvin-bot[bot] commented 2 months ago

@VictoriaExpensify, @getusha Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

VictoriaExpensify commented 2 months ago

@getusha could you please review @daledah's proposal? https://github.com/Expensify/App/issues/47494#issuecomment-2292522017

getusha commented 2 months ago

I am no longer able to reproduce it, i think layout is not same as it was when this issue was created.

https://github.com/user-attachments/assets/2add79a6-519f-4082-9d66-dd92be12df83

melvin-bot[bot] commented 2 months ago

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

melvin-bot[bot] commented 2 months ago

@VictoriaExpensify, @getusha Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

VictoriaExpensify commented 2 months ago

Hmm I can still recreate this @getusha

On the desktop app:

2024-08-26_10-43-32 (1)

And on Staging:

2024-08-26_10-47-47 (1)

Expenses seem to be ok, but "shared" "drafts" and "finished" are not

getusha commented 2 months ago

@VictoriaExpensify I don't know why the changes aren't deployed to staging yet but i am seeing a different layout in DEV environment 😄 Screenshot 2024-08-27 at 3 28 41 in the afternoon

melvin-bot[bot] commented 1 month ago

@VictoriaExpensify @getusha 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!

trjExpensify commented 1 month ago

We've now deployed the new search tabs if you want to re-test this one, @VictoriaExpensify.

melvin-bot[bot] commented 1 month ago

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

melvin-bot[bot] commented 1 month ago

@VictoriaExpensify, @getusha Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

melvin-bot[bot] commented 1 month ago

@VictoriaExpensify, @getusha 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

melvin-bot[bot] commented 1 month ago

@VictoriaExpensify, @getusha Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!

VictoriaExpensify commented 1 month ago

Oh nice! The search tabs look great at this issue is resolved - closing!