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-05-02] [$500] Incorrect styles in transfer balance> choose account page #38643

Closed
1 of 6 tasks
m-natarajan opened this issue Mar 19, 2024 · 40 comments
Closed
1 of 6 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 External Added to denote the issue can be worked on by a contributor

Comments

@m-natarajan
Copy link

m-natarajan commented Mar 19, 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.54-0
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: @shawnborton
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1710857164874919

Action Performed:

  1. Open app
  2. Go to profile
  3. Click wallet > transfer balance
  4. Observe the space between "which account" and bank account row
  5. Click on the bank account and go to "choose account" page

Expected Result:

There shouldn't much space between the bank account and "which account" label in step 4
No overflowicon should be present in "choose account" page

Actual Result:

  • the "Which account?" label on the Transfer balance page seems too far above the bank account row below it
  • on the Choose account page, we shouldn't be showing the overflow icons. We also need to use our :active BG color for the currently selected bank account row. And there shouldn't be two option rows below for adding a bank account. The first of the two doesn't even work!

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

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
Snip - New Expensify - Google Chrome (3)
Untitled

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01678d0c2e92d5a68c
  • Upwork Job ID: 1775846772674859008
  • Last Price Increase: 2024-04-04
  • Automatic offers:
    • hoangzinh | Reviewer | 0
Issue OwnerCurrent Issue Owner: @miljakljajic
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 19, 2024
Copy link

melvin-bot bot commented Mar 19, 2024

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

@Krishna2323
Copy link
Contributor

Krishna2323 commented Mar 19, 2024

Proposal

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

Incorrect styles in transfer balance> choose account page

What is the root cause of that problem?

Extra padding.

<Text style={[styles.p5, styles.textLabelSupporting, styles.justifyContentStart]}>{translate('transferAmountPage.whichAccount')}</Text>

No styles(padding) for PaymentMethodList. It can be added using listItemStyle or style prop.

<PaymentMethodList
onPress={selectAccountAndNavigateBack}
shouldShowSelectedState
filterType={walletTransfer?.filterPaymentMethodType}
selectedMethodID={walletTransfer?.selectedAccountID}
shouldShowAddPaymentMethodButton={false}

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

Decrease the padding for bottom only or vertically and for PaymentMethodList add padding.

If we want to disable the options also then we need to pass shouldShowAddBankAccount & shouldShowAddPaymentMethodButton as false.

Result

@allgandalf
Copy link
Contributor

Proposal

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

Incorrect styles in transfer balance> choose account page

What is the root cause of that problem?

  1. We have defined a padding of 5:
    <Text style={[styles.p5, styles.textLabelSupporting, styles.justifyContentStart]}>{translate('transferAmountPage.whichAccount')}</Text>
  2. We only set to false `shouldShowAddPaymentMethodButton1 :
    <View style={[styles.mt3, styles.flexShrink1, styles.flexBasisAuto]}>
    <PaymentMethodList
    onPress={selectAccountAndNavigateBack}
    shouldShowSelectedState
    filterType={walletTransfer?.filterPaymentMethodType}
    selectedMethodID={walletTransfer?.selectedAccountID}
    shouldShowAddPaymentMethodButton={false}
    />

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

  1. set pb0 as bottom padding.

  2. We should set shouldShowAddBankAccount to false too

What alternative solutions did you explore? (Optional)

N/A

@Krishna2323
Copy link
Contributor

Proposal Updated

Added fix for PaymentMethodList .

@Krishna2323
Copy link
Contributor

Proposal Updated

Added:

If we want to disable the options also then we need to pass shouldShowAddBankAccount & shouldShowAddPaymentMethodButton as false.

@dragnoir
Copy link
Contributor

dragnoir commented Mar 20, 2024

Proposal

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

Elements not well styled on Transfer balance steps

What is the root cause of that problem?

For the "Wish account" the padding is wrong.

for the Choose account page, we shouldn't be showing the overflow icons.

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

For the "Wish account":

we need to keep the horizontal padding, increase top padding to pt8 and decrease the padding bottom to pt1 here

styles.pt8, styles.ph5, styles.pb1

image

For the Choose account page:

1- remove overflow icons

Set false to shouldShowRightIcon

shouldShowRightIcon={item.shouldShowRightIcon}

2- remove two option rows below for adding a bank account

add shouldShowAddBankAccount={false} to PaymentMethodList to hide the non working option

3- use our :active BG color for the currently selected bank account row

We don't support background color for the selected MenuItem on our component.
We need to implement this feature, add background color to the item when isSelected.

image

image

What alternative solutions did you explore? (Optional)

@dragnoir
Copy link
Contributor

@shawnborton you asked about:

We also need to use our :active BG color for the currently selected bank account row.

The component used to display those bank accounts is ActiveItem and it doesn't support a background for the active/selected item.
The background is used when the item is hovered or clicked.
Also, we are using the checkbox active state with the green check to show that the element is selected.

Just wanted to ask if you want to add this feature? bg for selected item.

screenshot on how it's currently without adding background for selected item.
image

this is how it will look if we add the feature:
image

@shawnborton
Copy link
Contributor

Just wanted to ask if you want to add this feature? bg for selected item.

Ah, thanks for explaining that. On second thought, maybe we should not add that because it will look strange when we have multiple users being selected in various flows that also share this component (like starting a chat or splitting something)

@melvin-bot melvin-bot bot added the Overdue label Mar 25, 2024
@miljakljajic
Copy link
Contributor

Are we keeping this page the way it is? Or still removing the overflow icon?

@melvin-bot melvin-bot bot removed the Overdue label Mar 27, 2024
@dragnoir
Copy link
Contributor

@miljakljajic we need to:
1- remove overflow icons
2- remove two option rows below for adding a bank account
3- adjust the style for the "Wish account"
4- BG color for the currently selected bank account row (Canceled)

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

Thank you!

@melvin-bot melvin-bot bot removed the Overdue label Apr 3, 2024
@miljakljajic
Copy link
Contributor

@shawnborton can this be worked on externally or would we need to put the design label on here?

@shawnborton
Copy link
Contributor

I think someone can work on it externally, and then the Design team will help review the PR.

@miljakljajic miljakljajic added the External Added to denote the issue can be worked on by a contributor label Apr 4, 2024
@melvin-bot melvin-bot bot changed the title Incorrect styles in transfer balance> choose account page [$500] Incorrect styles in transfer balance> choose account page Apr 4, 2024
Copy link

melvin-bot bot commented Apr 4, 2024

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

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

thank you!

Copy link

melvin-bot bot commented Apr 4, 2024

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

@hoangzinh
Copy link
Contributor

Hi @shawnborton what is the overflow icons you mentioned in the issue description? Is it the overflow scrollbar on the right or the three-dot icon?

Screenshot 2024-04-06 at 09 46 09

@shawnborton
Copy link
Contributor

The overflow icon is the three dots icon.

@melvin-bot melvin-bot bot added the Overdue label Apr 8, 2024
@mvtglobally
Copy link

QA team is not able to confirm if this issue is still reproducible during KI retests as it requires production KYC passed for Wallet accounts. This issue will need to be retested internally

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 12, 2024
Copy link

melvin-bot bot commented Apr 12, 2024

📣 @hoangzinh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Apr 12, 2024

📣 @dragnoir You have been assigned to this job!
Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs!
Keep in mind: Code of Conduct | Contributing 📖

@roryabraham
Copy link
Contributor

thanks, let's proceed with #39944

@mvtglobally
Copy link

QA team is not able to confirm if this issue is still reproducible during KI retests as it requires production KYC passed for Wallet accounts. This issue will need to be retested internally

@roryabraham
Copy link
Contributor

PR in review: #39944

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 25, 2024
@melvin-bot melvin-bot bot changed the title [$500] Incorrect styles in transfer balance> choose account page [HOLD for payment 2024-05-02] [$500] Incorrect styles in transfer balance> choose account page Apr 25, 2024
Copy link

melvin-bot bot commented Apr 25, 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 Apr 25, 2024
Copy link

melvin-bot bot commented Apr 25, 2024

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

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

Copy link

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

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

@dragnoir
Copy link
Contributor

dragnoir commented May 1, 2024

@hoangzinh any idea why payment not proceeded here?

@hoangzinh
Copy link
Contributor

@miljakljajic would help to process payment for you here on the due date

@hoangzinh
Copy link
Contributor

BugZero Checklist:

  • The PR that introduced the bug has been identified. Link to the PR: Feature/add assigned card tile and display expensify cards #26862
  • 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: https://github.com/Expensify/App/pull/26862/files#r1586932515
  • 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: N/A
  • Determine if we should create a regression test for this bug: No, it's a UI improvement.

@melvin-bot melvin-bot bot added the Overdue label May 6, 2024
@roryabraham
Copy link
Contributor

ready to pay this out

Copy link

melvin-bot bot commented May 7, 2024

@hoangzinh, @dragnoir, @miljakljajic, @roryabraham Huh... This is 4 days overdue. Who can take care of this?

@miljakljajic
Copy link
Contributor

@hoangzinh paid - waiting for @dragnoir to accept the offer.

@melvin-bot melvin-bot bot removed the Overdue label May 7, 2024
@dragnoir
Copy link
Contributor

dragnoir commented May 7, 2024

@miljakljajic accepted. Thank you

@miljakljajic
Copy link
Contributor

Paid!

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 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

9 participants