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

[$250] WS Categories - A space gap is displayed for a moment on the list after category deletion #39324

Closed
2 of 6 tasks
lanitochka17 opened this issue Mar 30, 2024 · 20 comments
Closed
2 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@lanitochka17
Copy link

lanitochka17 commented Mar 30, 2024

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.58-4
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/4466254
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team

Action Performed:

Pre-requisite: the user must be logged in and have created a collect workspace

  1. Go to Workspace > Categories
  2. Select a category (check the box)
  3. Delete the category
  4. Verify that after deletion, there is a space gap displayed for a moment where the category was

Expected Result:

There should be no space gap displayed after category deletion

Actual Result:

A space gap is displayed for a moment after category deletion

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6432735_1711816591842.bandicam_2024-03-30_12-29-46-459.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0140f5a4dbf368b480
  • Upwork Job ID: 1778050729524305920
  • Last Price Increase: 2024-04-17
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 30, 2024
Copy link

melvin-bot bot commented Mar 30, 2024

Triggered auto assignment to @JmillsExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@lanitochka17
Copy link
Author

@JmillsExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp

@ZhenjaHorbach
Copy link
Contributor

Dupe #39083

@melvin-bot melvin-bot bot added the Overdue label Apr 5, 2024
Copy link

melvin-bot bot commented Apr 8, 2024

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

@JmillsExpensify
Copy link

Visual but worth fixing. Adding to #wave-collect

@melvin-bot melvin-bot bot removed the Overdue label Apr 10, 2024
@JmillsExpensify JmillsExpensify added the External Added to denote the issue can be worked on by a contributor label Apr 10, 2024
Copy link

melvin-bot bot commented Apr 10, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0140f5a4dbf368b480

@melvin-bot melvin-bot bot changed the title WS Categories - A space gap is displayed for a moment on the list after category deletion [$250] WS Categories - A space gap is displayed for a moment on the list after category deletion Apr 10, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 10, 2024
Copy link

melvin-bot bot commented Apr 10, 2024

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

@ghost
Copy link

ghost commented Apr 10, 2024

Proposal

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

WS Categories - A space gap is displayed for a moment on the list after category deletion

What is the root cause of that problem?

In the file, WorkspaceCategoriesPage.tsx, I think when we delete a category list then it takes time to get updated.

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

I think we can add this code,

const updatedList = categoryList.filter(c => c.name !== deletedCategoryName)
setCategoryList(updatedList)

what it will do is - When deleting a category, immediately update the categoryList state by filtering out the deleted category. This will remove it from the list optimistically before the API request finishes.

What alternative solutions did you explore? (Optional)

N/A

@solar-dev23
Copy link

Proposal

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

WS Categories - A space gap is displayed for a moment on the list after category deletion

What is the root cause of that problem?

In TableListItem.tsx, containerStyle of BaseListItem has been added with styles.mb3 3 weeks ago.
It's happening this bug that shows a gap space of mb3 while deleting a category.

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

We can move this mb3 style to pressableStyle instead of containerStyle

What alternative solutions did you explore? (Optional)

n/a

Copy link

melvin-bot bot commented Apr 10, 2024

📣 @solar-dev23! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@solar-dev23
Copy link

Contributor details
Your Expensify account email: [email protected]
Upwork Profile Link: https://www.upwork.com/freelancers/~018b3dcfc2c45fda08

Copy link

melvin-bot bot commented Apr 10, 2024

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@alitoshmatov
Copy link
Contributor

Not reproducible, probably fixed by #39226

Screen.Recording.2024-04-12.at.11.01.36.PM.mov

@ZhenjaHorbach
Copy link
Contributor

Not reproducible, probably fixed by #39226

Screen.Recording.2024-04-12.at.11.01.36.PM.mov

This is the correct PR )

Copy link

melvin-bot bot commented Apr 13, 2024

@JmillsExpensify @alitoshmatov 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!

@alitoshmatov
Copy link
Contributor

We can close this issue

@melvin-bot melvin-bot bot added the Overdue label Apr 15, 2024
Copy link

melvin-bot bot commented Apr 16, 2024

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

Copy link

melvin-bot bot commented Apr 17, 2024

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

@JmillsExpensify
Copy link

Thanks, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
No open projects
Archived in project
Development

No branches or pull requests

5 participants