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 2025-02-04] [$125] iOS - Extra spacing before field label #54971

Closed
2 of 8 tasks
IuliiaHerets opened this issue Jan 8, 2025 · 32 comments
Closed
2 of 8 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Jan 8, 2025

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: 9.0.82-1
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: iPhone 15 Pro Max / iOS 18.2
App Component: Money Requests

Action Performed:

  1. Launch ND or hybrid app.
  2. Go to workspace chat.
  3. Create an expense with merchant and description.
  4. Go to transaction thread.
  5. Tap Description or Manual or Date.
  6. Note that there is spacing before field label.
  7. Go to workspace settings > Workspace profile.
  8. Tap Workspace name.
  9. Note that there is spacing before field label.

Expected Result:

There should be no spacing before field label.

Actual Result:

There is spacing before field label.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6709222_1736352878571.ScreenRecording_01-09-2025_00-13-56_1.mp4

Bug6709222_1736355059420!Screenshot_2025-01-09_005047

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021877309187559460244
  • Upwork Job ID: 1877309187559460244
  • Last Price Increase: 2025-01-09
  • Automatic offers:
    • shubham1206agra | Contributor | 105665977
Issue OwnerCurrent Issue Owner: @jliexpensify
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Jan 8, 2025
Copy link

melvin-bot bot commented Jan 8, 2025

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.

Copy link

melvin-bot bot commented Jan 8, 2025

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Jan 8, 2025
Copy link

melvin-bot bot commented Jan 8, 2025

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Jan 8, 2025
Copy link
Contributor

github-actions bot commented Jan 8, 2025

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

@jliexpensify
Copy link
Contributor

This looks like a UI issue, not an actual deploy blocker. Will defer to Puneet though.

@mountiny mountiny added Daily KSv2 External Added to denote the issue can be worked on by a contributor and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Jan 9, 2025
@melvin-bot melvin-bot bot changed the title iOS - Extra spacing before field label [$250] iOS - Extra spacing before field label Jan 9, 2025
Copy link

melvin-bot bot commented Jan 9, 2025

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 9, 2025
Copy link

melvin-bot bot commented Jan 9, 2025

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

@mountiny
Copy link
Contributor

mountiny commented Jan 9, 2025

I agree this seems like an issue that we should not block on but definitely need to fix it

Gonna make it $125

If you can identify the offending PR (and its not the RN upgrade 😅) you will get $50 and the authors will fix this

@mountiny mountiny changed the title [$250] iOS - Extra spacing before field label [$125] iOS - Extra spacing before field label Jan 9, 2025
Copy link

melvin-bot bot commented Jan 9, 2025

Upwork job price has been updated to $125

@linhvovan29546
Copy link
Contributor

Proposal

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

iOS - Extra spacing before field label

What is the root cause of that problem?

The issue occurs because the Input label uses an animation scale, which scales to the center instead of aligning to the left. This causes extra spacing when the input has a value. That worked as expected before upgrading rn 0.76.5, I’m not sure why upgrading to 0.76.5 caused this issue.

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

We can replace the scale to fontSize.
from

const animatedStyle = useAnimatedStyle(() => styles.textInputLabelTransformation(labelTranslateY, labelScale));

to

    const animatedStyle = useAnimatedStyle(() => {
        return {
            transform: [{ translateY: labelTranslateY.get() }],
            fontSize: interpolate(labelScale.value, [0, styleConst.INACTIVE_LABEL_SCALE], [0, variables.fontSizeNormal])
        }
    });
POC
Before After
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-01-09.at.15.11.36.mp4
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-01-09.at.15.10.41.mp4

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

No, UI bug

What alternative solutions did you explore? (Optional)

N/A

@shubham1206agra
Copy link
Contributor

@blazejkustra @sumo-slonik This looks related to Reanimated. Can you please look into this?

@blazejkustra
Copy link
Contributor

blazejkustra commented Jan 9, 2025

Sure, we'll have a look tomorrow

edit: looking now

@blazejkustra
Copy link
Contributor

I reverted the code from this PR and the same thing happens when using react-native's Animated. Meaning the migration wasn't the cause.

image

@jliexpensify
Copy link
Contributor

Done @shubham1206agra - is this part of an existing project?

@shubham1206agra
Copy link
Contributor

This should be part of RN upgrade. Otherwise, we are handling Reanimated changes in animation migration

@jliexpensify
Copy link
Contributor

Cool, ty! Will assign this to #quality based on the 2nd link

@blazejkustra
Copy link
Contributor

Update: I'll start working on it tomorrow morning.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jan 16, 2025
@blazejkustra
Copy link
Contributor

Sorry for delay, I experienced iOS issues yesterday and got distracted by other tasks in the process 🙇 Here is a PR ready!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jan 28, 2025
@melvin-bot melvin-bot bot changed the title [$125] iOS - Extra spacing before field label [HOLD for payment 2025-02-04] [$125] iOS - Extra spacing before field label Jan 28, 2025
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jan 28, 2025
Copy link

melvin-bot bot commented Jan 28, 2025

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

Copy link

melvin-bot bot commented Jan 28, 2025

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

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

Copy link

melvin-bot bot commented Jan 28, 2025

@shubham1206agra @jliexpensify @shubham1206agra The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 3, 2025
@jliexpensify
Copy link
Contributor

@shubham1206agra I'm guessing there's no need for a checklist here?

Payment Summary

@shubham1206agra
Copy link
Contributor

@jliexpensify Offer accepted

@jliexpensify
Copy link
Contributor

@shubham1206agra any checklist needed here?

@shubham1206agra
Copy link
Contributor

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other:

Where bug was reported:

  • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
  • 2b. Reported on staging (eg. found during regression or PR testing)
  • 2d. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other:
  • [Contributor] 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: Upgrade to React Native 0.76 #51475 (comment)

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: Not Required

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

  • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

    Link to issue:

Regression Test Proposal

Test:

No Test is required here as this was a deploy blocker

Do we agree 👍 or 👎

@jliexpensify
Copy link
Contributor

Thanks! Paid and job closed.

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. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
Status: Done
Development

No branches or pull requests

8 participants