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

[HOLD for payment 2024-03-29] [$500] [MEDIUM] Categories: "Parent" that does not have individual category is not grayed out #37241

Closed
6 tasks done
kbecciv opened this issue Feb 26, 2024 · 42 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Feb 26, 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: v1.4.44-0
Reproducible in staging?: y
Reproducible in production?: n
Issue reported by: applause - Internal Team

Action Performed:

Precondition:

  • User is an employee of Collect workspace.
  • The Collect workspace has Parent: Child category where the Parent does not have individual category.
  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Go to + > Request money > Manual.
  4. Enter amount > Next.
  5. Click Show more > Category.

Expected Result:

The "Parent" that does not have individual category will appear grayed out.

Actual Result:

The "Parent" that does not have individual category is not grayed out.

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

Bug6393424_1708989041463.bandicam_2024-02-27_05-49-09-515.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014760c37372e21c4f
  • Upwork Job ID: 1762259713696296960
  • Last Price Increase: 2024-03-04
@kbecciv kbecciv added DeployBlockerCash This issue or pull request should block deployment External Added to denote the issue can be worked on by a contributor labels Feb 26, 2024
@melvin-bot melvin-bot bot changed the title Category - "Parent" that does not have individual category is not grayed out [$500] Category - "Parent" that does not have individual category is not grayed out Feb 26, 2024
Copy link

melvin-bot bot commented Feb 26, 2024

Job added to Upwork: https://www.upwork.com/jobs/~014760c37372e21c4f

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 26, 2024
Copy link

melvin-bot bot commented Feb 26, 2024

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Feb 26, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Feb 26, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Feb 26, 2024

Triggered auto assignment to @cead22 (Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@kbecciv
Copy link
Author

kbecciv commented Feb 26, 2024

We think that this bug might be related to #wave6-collect-submitters
CC @greg-schroeder

@cead22
Copy link
Contributor

cead22 commented Feb 26, 2024

Since this is a minor aesthetic bug, I don't think it should be a blocker, and we can put this through the regular bug process

@cead22 cead22 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. and removed Hourly KSv2 DeployBlockerCash This issue or pull request should block deployment labels Feb 26, 2024
Copy link

melvin-bot bot commented Feb 26, 2024

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

@neonbhai
Copy link
Contributor

Proposal

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

Category - "Parent" that does not have individual category is not grayed out

What is the root cause of that problem?

We don't pass the disabled styles for the item here:

textStyles={[
styles.optionDisplayName,
isFocused ? styles.sidebarLinkActiveText : styles.sidebarLinkText,
styles.sidebarLinkTextBold,
styles.pre,
item.alternateText ? styles.mb1 : null,
]}

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

We should add styles.colorMuted to the text when the item is disabled.

textStyles={[
  ...
  
  isDisabled && styles.colorMuted,
]}

@dukenv0307
Copy link
Contributor

dukenv0307 commented Feb 27, 2024

Proposal

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

  • Category - "Parent" that does not have individual category is not grayed out

What is the root cause of that problem?

  • In here we do not have a text style in case the item is disabled

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

  • We should fix the text color issue in here by using gray text style (for example styles.colorMuted) if the option is disabled.

  • Then, we need to fix the hover over color in here by updating it to hoverStyle={!isDisabled && styles.hoveredComponentBG}

  • We can create a prop to just apply the above change in this case for backward-compatible

  • We also need to consider the case: category A is the selected category in ND. Then disable it in OD. In this case, selected category A is displayed as the selectable item. And when we click on it, the selected category is gone. It seem to be a bug so I think we also need to fix it by allow user to deselect the selected item

What alternative solutions did you explore? (Optional)

  • NA

Result

Screencast.from.27-02-2024.11.42.47.webm

@greg-schroeder greg-schroeder changed the title [$500] Category - "Parent" that does not have individual category is not grayed out [$500] [MEDIUM] Categories: "Parent" that does not have individual category is not grayed out Feb 28, 2024
@melvin-bot melvin-bot bot added the Overdue label Feb 29, 2024
Copy link

melvin-bot bot commented Mar 1, 2024

@cead22, @muttmuure, @shubham1206agra Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Mar 12, 2024
@dukenv0307
Copy link
Contributor

@shubham1206agra PR #38030 is ready to review

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Mar 22, 2024
@melvin-bot melvin-bot bot changed the title [$500] [MEDIUM] Categories: "Parent" that does not have individual category is not grayed out [HOLD for payment 2024-03-29] [$500] [MEDIUM] Categories: "Parent" that does not have individual category is not grayed out Mar 22, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 22, 2024
Copy link

melvin-bot bot commented Mar 22, 2024

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

Copy link

melvin-bot bot commented Mar 22, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.55-3 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 2024-03-29. 🎊

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

Copy link

melvin-bot bot commented Mar 22, 2024

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

  • [@shubham1206agra / @dukenv0307] The PR that introduced the bug has been identified. Link to the PR:
  • [@shubham1206agra / @dukenv0307] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@shubham1206agra / @dukenv0307] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@shubham1206agra / @dukenv0307] Determine if we should create a regression test for this bug.
  • [@shubham1206agra / @dukenv0307] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@muttmuure] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added the Overdue label Apr 1, 2024
@cead22
Copy link
Contributor

cead22 commented Apr 1, 2024

On payment stage so not overdue

@melvin-bot melvin-bot bot removed the Overdue label Apr 1, 2024
@melvin-bot melvin-bot bot added the Overdue label Apr 10, 2024
@muttmuure
Copy link
Contributor

Handling

@melvin-bot melvin-bot bot removed the Overdue label Apr 16, 2024
@muttmuure
Copy link
Contributor

Original job failed and expired

@muttmuure
Copy link
Contributor

@muttmuure
Copy link
Contributor

I've invited you both to a payment issue above

@muttmuure
Copy link
Contributor

@dukenv0307
Copy link
Contributor

I've invited you both to a payment issue above

@muttmuure I've submitted a proposal to the job, thank you!

@shubham1206agra
Copy link
Contributor

@muttmuure Accepted the interview.

@muttmuure
Copy link
Contributor

offers sent

@shubham1206agra
Copy link
Contributor

@muttmuure Bump on the payment here.

@muttmuure
Copy link
Contributor

Paying

@muttmuure
Copy link
Contributor

Done

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 Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
No open projects
Development

No branches or pull requests

6 participants