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-02-07] [$500] IOU - App works with little delay when change the currency in Request money BNP #33465

Closed
2 of 6 tasks
lanitochka17 opened this issue Dec 21, 2023 · 38 comments
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 Internal Requires API changes or must be handled by Expensify staff

Comments

@lanitochka17
Copy link

lanitochka17 commented Dec 21, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 4.15-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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Log in
  3. Click the FAB menu in LHN
  4. Click on "Request money" Manual.
  5. Enter an amount into the BNP (11111)
  6. Tap on the currency and select another currency

Expected Result:

The change of currency was applied in the BNP

Actual Result:

App works with little delay when change the currency in Request money BNP. The amount is partly visible for a moment

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

Bug6323204_1703193283892.Screenrecorder-2023-12-21-20-31-19-422.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0198afa5465e45276e
  • Upwork Job ID: 1737948508527403008
  • Last Price Increase: 2024-01-04
  • Automatic offers:
    • situchan | Contributor | 28091823
Issue OwnerCurrent Issue Owner: @situchan
@lanitochka17 lanitochka17 added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Dec 21, 2023
@melvin-bot melvin-bot bot changed the title IOU - App works with little delay when change the currency in Request money BNP [$500] IOU - App works with little delay when change the currency in Request money BNP Dec 21, 2023
Copy link

melvin-bot bot commented Dec 21, 2023

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

Copy link

melvin-bot bot commented Dec 21, 2023

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Dec 21, 2023
Copy link

melvin-bot bot commented Dec 21, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

Copy link

melvin-bot bot commented Dec 21, 2023

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

@ZhenjaHorbach
Copy link
Contributor

ZhenjaHorbach commented Dec 21, 2023

I don't remember, but we had a ticket related to RequestStartPage performance
If it hasn't been merged yet
Maybe it will help fix the problem

@melvin-bot melvin-bot bot added the Overdue label Dec 25, 2023
Copy link

melvin-bot bot commented Dec 25, 2023

@anmurali, @narefyev91 Whoops! This issue is 2 days overdue. Let's get this updated quick!

Copy link

melvin-bot bot commented Dec 27, 2023

@anmurali, @narefyev91 Eep! 4 days overdue now. Issues have feelings too...

@bernhardoj
Copy link
Contributor

Proposal

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

The request money amount input field is shown partially after coming back from the currency selection page.

What is the root cause of that problem?

The amount input uses an autoGrow behavior. The autoGrow has an invisible input to calculate the width of the input on every layout change.

{(props.autoGrow || props.autoGrowHeight) && (
// Add +2 to width on Safari browsers so that text is not cut off due to the cursor or when changing the value
// https://github.com/Expensify/App/issues/8158
// https://github.com/Expensify/App/issues/26628
<Text
style={[...props.inputStyle, props.autoGrowHeight && styles.autoGrowHeightHiddenInput(width, maxHeight), styles.hiddenElementOutsideOfWindow, styles.visibilityHidden]}
onLayout={(e) => {
let additionalWidth = 0;
if (Browser.isMobileSafari() || Browser.isSafari()) {
additionalWidth = 2;
}
setTextInputWidth(e.nativeEvent.layout.width + additionalWidth);
setTextInputHeight(e.nativeEvent.layout.height);
}}
>
{/* \u200B added to solve the issue of not expanding the text input enough when the value ends with '\n' (https://github.com/Expensify/App/issues/21271) */}
{props.value ? `${props.value}${props.value.endsWith('\n') ? '\u200B' : ''}` : props.placeholder}
</Text>

When we go to the currency selection page, the amount page is hidden and the display style is set to none (rn-navigation behavior). If the display is changed to none, onLayout will be triggered again with a width and height of 0.

After we go back to the amount page, the amount page is visible again and the new width and height are set again, but because some platforms are lagging, we can see a while the text input has a very small width (8px).

Why 8 and not 0? Because we have a min-width of 8 (mnw2).

props.autoGrow && !textInputContainerStyles.minWidth && styles.mnw2,

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

Only update the width and height state if the layout width and height is greater than 0.

if (e.nativeEvent.layout.width > 0) {
    setTextInputWidth(e.nativeEvent.layout.width + additionalWidth);
}

Copy link

melvin-bot bot commented Dec 28, 2023

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

Copy link

melvin-bot bot commented Dec 29, 2023

@anmurali, @narefyev91 Still overdue 6 days?! Let's take care of this!

Copy link

melvin-bot bot commented Jan 2, 2024

@anmurali, @narefyev91 10 days overdue. Is anyone even seeing these? Hello?

@anmurali
Copy link

anmurali commented Jan 2, 2024

@narefyev91 can you review the proposals submitted for this?

@melvin-bot melvin-bot bot removed the Overdue label Jan 2, 2024
@situchan
Copy link
Contributor

situchan commented Jan 2, 2024

@narefyev91 is now not in C+ team.
@anmurali I can take over if needed

Copy link

melvin-bot bot commented Jan 4, 2024

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

Copy link

melvin-bot bot commented Jan 4, 2024

@anmurali @narefyev91 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!

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

melvin-bot bot commented Jan 8, 2024

@anmurali, @narefyev91 Eep! 4 days overdue now. Issues have feelings too...

@anmurali anmurali assigned situchan and unassigned narefyev91 Jan 10, 2024
@melvin-bot melvin-bot bot removed Overdue Help Wanted Apply this label when an issue is open to proposals by contributors labels Jan 10, 2024
Copy link

melvin-bot bot commented Jan 18, 2024

Triggered auto assignment to @marcochavezf, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@marcochavezf
Copy link
Contributor

Sounds good, thanks for the review @situchan, assigning @bernhardoj 🚀

@bernhardoj
Copy link
Contributor

PR is ready

cc: @situchan

@roryabraham
Copy link
Contributor

PR causes a minor regression: #34787 (comment)

@bernhardoj
Copy link
Contributor

@situchan I have opened a new PR

@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 29, 2024
@melvin-bot melvin-bot bot changed the title [$500] IOU - App works with little delay when change the currency in Request money BNP [HOLD for payment 2024-02-07] [$500] IOU - App works with little delay when change the currency in Request money BNP Jan 31, 2024
Copy link

melvin-bot bot commented Jan 31, 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 Jan 31, 2024
Copy link

melvin-bot bot commented Jan 31, 2024

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

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

Copy link

melvin-bot bot commented Jan 31, 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:

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

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Feb 6, 2024
@marcochavezf
Copy link
Contributor

Hi @situchan, could you complete the BZ checklist?

@melvin-bot melvin-bot bot removed the Overdue label Feb 6, 2024
@situchan
Copy link
Contributor

situchan commented Feb 6, 2024

BZ Checklist:
This is polish rather than bug. The root cause existed from the beginning so no offending PR.
As this was caught by QA team, we can skip regression test.

@anmurali
Copy link

anmurali commented Feb 6, 2024

@sitchan is paid
@bernhardoj your offer is here pending you accepting

@anmurali
Copy link

anmurali commented Feb 8, 2024

@bernhardoj is also paid now.

@anmurali anmurali closed this as completed Feb 8, 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. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests

8 participants