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-04-09] Distance rates - App shows the same icon for Enable rate and Disable rate #39085

Closed
6 tasks done
lanitochka17 opened this issue Mar 27, 2024 · 14 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Design Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Mar 27, 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.57-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:

Issue found when executing PR #38799

Action Performed:

Precondition:

  • User is admin of Collect workspace
  • The Collect workspace has at least one enabled and one disabled distance rate
  1. Go to staging.new.expensify.com
  2. Go to Profile > Workspaces > Collect workspace
  3. Go to Distance rates
  4. Select the enabled and disabled distance rate
  5. Click on the dropdown menu

Expected Result:

App will show the correct icon for Enable rate

Actual Result:

App shows the same icon for Enable rate and Disable rate

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

Bug6428888_1711555624615!Screenshot_2024-03-28_at_00 03 10

View all open jobs on GitHub

@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 27, 2024
Copy link

melvin-bot bot commented Mar 27, 2024

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

@lanitochka17
Copy link
Author

@lschurr 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 #wave-control

@Krishna2323
Copy link
Contributor

Proposal

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

Distance rates - App shows the same icon for Enable rate and Disable rate

What is the root cause of that problem?

We are using DocumentSlash instead of Document as icon.

icon: Expensicons.DocumentSlash,

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

Use Document.

Result

@ShridharGoel
Copy link
Contributor

ShridharGoel commented Mar 27, 2024

Proposal

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

Distance rates - App shows the same icon for Enable rate and Disable rate

What is the root cause of that problem?

options.push({
    text: translate('workspace.distanceRates.enableRates', {count: disabledRates.length}),
    value: CONST.POLICY.DISTANCE_RATES_BULK_ACTION_TYPES.ENABLE,
    icon: Expensicons.DocumentSlash,
    onSelected: enableRates,
});

DocumentSlash icon is used here.

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

Document icon should be used

options.push({
                text: translate('workspace.distanceRates.enableRates', {count: disabledRates.length}),
                value: CONST.POLICY.DISTANCE_RATES_BULK_ACTION_TYPES.ENABLE,
                icon: Expensicons.Document,
                onSelected: enableRates,
            });

Copy link

melvin-bot bot commented Mar 27, 2024

Triggered auto assignment to @dubielzyk-expensify (Design), see these Stack Overflow questions for more details.

@mountiny
Copy link
Contributor

@dubielzyk-expensify Just want to confirm the Expensicons.Document and Expensicons.DocumentSlash is what we want to use here?

@allgandalf
Copy link
Contributor

It seems to be consistent with other pages:

image

But i was thinking about something more fancy like the DocumentPlus:

import DocumentPlus from '@assets/images/document-plus.svg';

Any thoughts @dubielzyk-expensify , or should we go with the original Document icon 🤔

@mountiny
Copy link
Contributor

yeah seems straightforward but not going to hurt to get Design eyes on this. I will handle this change internally.

@dubielzyk-expensify
Copy link
Contributor

Yeah stick with that for now as that's what's in the intended design. I'll bring it to Slack for further discussion though

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 Weekly KSv2 labels Mar 28, 2024
@melvin-bot melvin-bot bot changed the title Distance rates - App shows the same icon for Enable rate and Disable rate [HOLD for payment 2024-04-09] Distance rates - App shows the same icon for Enable rate and Disable rate Apr 2, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 2, 2024
Copy link

melvin-bot bot commented Apr 2, 2024

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

Copy link

melvin-bot bot commented Apr 2, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.58-8 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-04-09. 🎊

Copy link

melvin-bot bot commented Apr 2, 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:

  • [@mountiny] The PR that introduced the bug has been identified. Link to the PR:
  • [@mountiny] 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:
  • [@mountiny] 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:
  • [@mountiny] Determine if we should create a regression test for this bug.
  • [@mountiny] 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.
  • [@lschurr] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@mountiny
Copy link
Contributor

mountiny commented Apr 2, 2024

Nothing to do here now I think

@mountiny mountiny closed this as completed Apr 2, 2024
@github-project-automation github-project-automation bot moved this from Polish to Done in [#whatsnext] #wave-collect Apr 2, 2024
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. Design Weekly KSv2
Projects
No open projects
Archived in project
Development

No branches or pull requests

7 participants