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-06-20] [HOLD for payment 2024-06-18] [REGRESSION] Android & iOS - Track tax - "Track tax" message does not scale according to device font size #43202

Closed
2 of 6 tasks
lanitochka17 opened this issue Jun 6, 2024 · 33 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

@lanitochka17
Copy link

lanitochka17 commented Jun 6, 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.80-4
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
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 #42141

Action Performed:

Precondition:

  • Device font size is minimum (or smaller than the standard size)
  • Workspace has not enabled taxes
  1. Launch New Expensify app
  2. Go to workspace settings
  3. Go to Distance rates
  4. Tap Settings

Expected Result:

"Track tax" message will scale according to device font size

Actual Result:

"Track tax" message does not scale according to device font size.
It appears large when the rest of the font is small

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

Bug6504145_1717692057007.RPReplay_Final1717691715.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~016209fd348bb29320
  • Upwork Job ID: 1798774655174697872
  • Last Price Increase: 2024-06-06
  • Automatic offers:
    • nkdengineer | Contributor | 102637502
Issue OwnerCurrent Issue Owner: @jliexpensify
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Jun 6, 2024
Copy link

melvin-bot bot commented Jun 6, 2024

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

Copy link
Contributor

github-actions bot commented Jun 6, 2024

👋 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.

@lanitochka17
Copy link
Author

@AndrewGable 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

@AndrewGable AndrewGable added Daily KSv2 External Added to denote the issue can be worked on by a contributor Bug Something is broken. Auto assigns a BugZero manager. and removed Hourly KSv2 DeployBlockerCash This issue or pull request should block deployment Daily KSv2 DeployBlocker Indicates it should block deploying the API labels Jun 6, 2024
@melvin-bot melvin-bot bot changed the title Android & iOS - Track tax - "Track tax" message does not scale according to device font size [$250] Android & iOS - Track tax - "Track tax" message does not scale according to device font size Jun 6, 2024
Copy link

melvin-bot bot commented Jun 6, 2024

Job added to Upwork: https://www.upwork.com/jobs/~016209fd348bb29320

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

melvin-bot bot commented Jun 6, 2024

Triggered auto assignment to @jliexpensify (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.

@melvin-bot melvin-bot bot added the Daily KSv2 label Jun 6, 2024
@AndrewGable
Copy link
Contributor

Not a deploy blocker, seems like it can be external for sure

Copy link

melvin-bot bot commented Jun 6, 2024

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

@neonbhai
Copy link
Contributor

neonbhai commented Jun 6, 2024

Proposal

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

Track tax - "Track tax" message does not scale according to device font size

What is the root cause of that problem?

We have extra text styles causing this behavior:

<Text style={[styles.textNormal, styles.colorMuted]}>{translate('workspace.distanceRates.trackTax')}</Text>

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

We will remove the styles from the Text element here:

<Text style={[styles.textNormal, styles.colorMuted]}>{translate('workspace.distanceRates.trackTax')}</Text>

This would also align the style with the Figma mockups, since colorMuted is also not needed here

@ShridharGoel
Copy link
Contributor

ShridharGoel commented Jun 6, 2024

Proposal

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

Android & iOS - Track tax - "Track tax" message does not scale according to device font size.

What is the root cause of that problem?

Font size is fixed to 14.

Hence, scaling font doesn't have any effect.

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

Font size needs to be removed:

{!isPolicyTrackTaxEnabled && (
    <View style={[styles.mh4]}>
        <Text
            style={styles.colorMuted}
        >
            {translate('workspace.distanceRates.taxFeatureNotEnabledMessage')}
            <TextLink
                onPress={() => {
                    Navigation.dismissModal();
                    Navigation.navigate(ROUTES.WORKSPACE_MORE_FEATURES.getRoute(policyID));
                }}
            >
                {translate('workspace.common.moreFeatures')}
            </TextLink>
            {translate('workspace.distanceRates.changePromptMessage')}
        </Text>
    </View>
)}

What alternate solution did you consider?

We might want to use something like variables.fontSizeLabel instead of setting to 14. Can be discussed with design team.

@ShridharGoel
Copy link
Contributor

Proposal

Updated

Copy link

melvin-bot bot commented Jun 6, 2024

📣 @CharlsSH! 📣
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>

@Chavas950906
Copy link

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

@Chavas950906
Copy link

How can i help you?

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jun 7, 2024
@rojiphil rojiphil removed their assignment Jun 7, 2024
@rojiphil
Copy link
Contributor

rojiphil commented Jun 7, 2024

Unassigned as this is regression and will be fixed by the original authors. Please feel free to add me if needed.

@Chavas950906
Copy link

So How do I do?

@jliexpensify
Copy link
Contributor

Thanks for your help here @rojiphil!

@CharlsSH @ShridharGoel - this issue was created due to a regression so it is the responsibility of the original PR's Contributor and C+ to handle this regression. It looks like the External label was applied before I got online, so I apologise for the confusion.

Copy link

melvin-bot bot commented Jun 7, 2024

📣 @nkdengineer 🎉 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 📖

@jliexpensify jliexpensify changed the title [$250] Android & iOS - Track tax - "Track tax" message does not scale according to device font size [REGRESSION] Android & iOS - Track tax - "Track tax" message does not scale according to device font size Jun 7, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jun 7, 2024
@kavimuru
Copy link

kavimuru commented Jun 7, 2024

Issue fixed

RPReplay_Final1717786049.MP4

@jliexpensify
Copy link
Contributor

Awesome, thank you! Closing this one out.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jun 11, 2024
@melvin-bot melvin-bot bot changed the title [REGRESSION] Android & iOS - Track tax - "Track tax" message does not scale according to device font size [HOLD for payment 2024-06-18] [REGRESSION] Android & iOS - Track tax - "Track tax" message does not scale according to device font size Jun 11, 2024
Copy link

melvin-bot bot commented Jun 11, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 11, 2024
Copy link

melvin-bot bot commented Jun 11, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.81-11 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-06-18. 🎊

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

Copy link

melvin-bot bot commented Jun 11, 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:

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

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jun 13, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-06-18] [REGRESSION] Android & iOS - Track tax - "Track tax" message does not scale according to device font size [HOLD for payment 2024-06-20] [HOLD for payment 2024-06-18] [REGRESSION] Android & iOS - Track tax - "Track tax" message does not scale according to device font size Jun 13, 2024
Copy link

melvin-bot bot commented Jun 13, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.82-4 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-06-20. 🎊

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

Copy link

melvin-bot bot commented Jun 13, 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:

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

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
None yet
Development

No branches or pull requests

10 participants