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

[$2000] IOS - Chat - The Pay button in the money request is cut off if the request comes in an open chat #10283

Closed
kbecciv opened this issue Aug 5, 2022 · 111 comments
Assignees
Labels
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 Reviewing Has a PR in review

Comments

@kbecciv
Copy link

kbecciv commented Aug 5, 2022

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


Action Performed:

  1. Open chat 1:1 with Account A and Account B
  2. From any device (Account A) send money request to Account B in open chat (then you can send one or two more) - tester was using IOS device.
  3. Settle Payment So You Paid Component Appears.
  4. Again request money on the same account (Account B) from (Account A).

Expected Result:

The money request is fully visible, including the Pay button

Actual Result:

The 'Pay' button is cut off and you need to scroll up to see it

Workaround:

Unknown

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.1.88.1

Reproducible in staging?: Yes

Reproducible in production?: Yes

Email or phone of affected tester (no customers): fischer9966+060122@gmail.com/Qwerty123

Logs: https://stackoverflow.com/c/expensify/questions/4856

Bug5677361_pay-cut-iPhone-XS.mp4
Bug5677361_pay-cut-off-iPhone-13-Pro.mp4
Bug5677361_pay-cutoff-iPad.mp4

Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

@melvin-bot
Copy link

melvin-bot bot commented Aug 5, 2022

Triggered auto assignment to @francoisl (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@melvin-bot melvin-bot bot added the Overdue label Aug 8, 2022
@francoisl francoisl removed their assignment Aug 8, 2022
@melvin-bot melvin-bot bot removed the Overdue label Aug 8, 2022
@francoisl francoisl added External Added to denote the issue can be worked on by a contributor Overdue labels Aug 8, 2022
@melvin-bot
Copy link

melvin-bot bot commented Aug 8, 2022

Triggered auto assignment to @stephanieelliott (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@stephanieelliott
Copy link
Contributor

stephanieelliott commented Aug 9, 2022

Posted to Upwork: https://www.upwork.com/jobs/~01a2b7049d03140226

@melvin-bot melvin-bot bot removed the Overdue label Aug 9, 2022
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Aug 9, 2022
@melvin-bot
Copy link

melvin-bot bot commented Aug 9, 2022

Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel (Exported)

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

melvin-bot bot commented Aug 9, 2022

Triggered auto assignment to @neil-marcellini (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot changed the title IOS - Chat - The Pay button in the money request is cut off if the request comes in an open chat [$250] IOS - Chat - The Pay button in the money request is cut off if the request comes in an open chat Aug 9, 2022
@Satishpethani92
Copy link

Screen.Recording.2022-08-09.at.11.37.00.AM.mov

I have setup code in my pc and created two different users as per the instruction. and try to transfer amount but didn't find second user.

So let me know if i have missed any step in setup process.

Thank you @stephanieelliott

@syedsaroshfarrukhdot
Copy link
Contributor

Proposal

maintainVisibleContentPosition={{minIndexForVisible: 0, autoscrollToTopThreshold: 0}}

The issue caused here is due to maintainVisibleContentPosition props which is causing issue of maintaining scroll when IOUPreview Component is rendered because when set maintainVisibleContentPosition, the scroll view will adjust the scroll position so that the first child that is currently visible and at or beyond minIndexForVisible will not change position. As there are multiple childrens passed to the ReportActionItem.js when you backtrack so i guess that's why the sroll view doesn't adjust itself properly.

Solution :

The issue is fixed when you remove line

maintainVisibleContentPosition={{minIndexForVisible: 0, autoscrollToTopThreshold: 0}}

Flat List Compent becomes

<FlatList

            // eslint-disable-next-line react/jsx-props-no-spreading
            {...this.props}
            ref={this.props.innerRef}
            inverted
            renderItem={this.renderItem}

            // Native platforms do not need to measure items and work fine without this.
            // Web requires that items be measured or else crazy things happen when scrolling.
            getItemLayout={this.props.shouldMeasureItems ? this.getItemLayout : undefined}

            // We keep this property very low so that chat switching remains fast
            maxToRenderPerBatch={1}
            windowSize={15}
            removeClippedSubviews={this.props.shouldRemoveClippedSubviews}

/>

Before Fixing:-

Screen Shot 2022-08-09 at 1 24 38 PM

After Fixing :-

Simulator.Screen.Recording.-.iPhone.13.Pro.-.2022-08-09.at.12.58.29.mp4

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Aug 9, 2022
@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Aug 9, 2022

Screen.Recording.2022-08-09.at.11.37.00.AM.mov
I have setup code in my pc and created two different users as per the instruction. and try to transfer amount but didn't find second user.

So let me know if i have missed any step in setup process.

Thank you @stephanieelliott

@Satishpethani92
Enter full user email in search for the first time, to initiate chat with any new user.

@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Aug 9, 2022

@kbecciv is this still reproducible for you, unable to reproduce at my end.

@syedsaroshfarrukhdot
Copy link
Contributor

@Santhosh-Sellavel it is reproducible on IOS only for me too. I wasn't able to reproduce it on desktop, web or android.

@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Aug 9, 2022

I checked only on iOS only first but was unable to reproduce it.

@johncschuster
Copy link
Contributor

Thanks for confirming that! Sorry for the flub on my part!

@mvtglobally
Copy link

Issue not reproducible during KI retests. (Fifth week) Lets close this one guys

@syedsaroshfarrukhdot
Copy link
Contributor

Screenshot_2022-11-18-17-38-41-10_320a9a695de7cdce83ed5281148d6f19.jpg @johncschuster Am i eligible for 50% bonus here as my PR was merged within 3 business days.

@Santhosh-Sellavel
Copy link
Collaborator

Santhosh-Sellavel commented Nov 18, 2022

@syedsaroshfarrukhdot No, this PR is not eligible for the bonus. Issues that got assigned on or after Nov 4 and respective PRs that are created after that are only eligible!

cc: @johncschuster

@syedsaroshfarrukhdot
Copy link
Contributor

@syedsaroshfarrukhdot No, this PR is not eligible for the bonus. Issues that got assigned on or after Nov 4 and respective PRs that are created after that are only eligible!

cc: @johncschuster

Thanks for clarifying.

@neil-marcellini
Copy link
Contributor

@johncschuster I updated some of the steps in the checklist. Could you please create a regression test issue and start a discussion in Slack?

@neil-marcellini neil-marcellini added Daily KSv2 and removed Weekly KSv2 labels Nov 18, 2022
@melvin-bot melvin-bot bot added the Overdue label Nov 21, 2022
@Santhosh-Sellavel
Copy link
Collaborator

not overdue

@melvin-bot melvin-bot bot removed the Overdue label Nov 21, 2022
@mvtglobally
Copy link

Issue not reproducible during KI retests. (6th week) Can I remove this from our checklist. It is no longer repro as per steps

@tjferriss
Copy link
Contributor

@johncschuster I'm going through the weekly review of bugs. What remains to close this out?

@melvin-bot melvin-bot bot added the Overdue label Nov 23, 2022
@johncschuster
Copy link
Contributor

@tjferriss As far as I can tell, the only remaining step here is the regression test conversation in Slack. I'm following the SO here to do that.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Nov 23, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 29, 2022

@johncschuster, @neil-marcellini, @syedsaroshfarrukhdot, @Santhosh-Sellavel Huh... This is 4 days overdue. Who can take care of this?

@neil-marcellini
Copy link
Contributor

How's the regression test coming along @johncschuster?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Nov 29, 2022
@melvin-bot
Copy link

melvin-bot bot commented Dec 5, 2022

@johncschuster, @neil-marcellini, @syedsaroshfarrukhdot, @Santhosh-Sellavel Eep! 4 days overdue now. Issues have feelings too...

@neil-marcellini
Copy link
Contributor

Bump @johncschuster

@melvin-bot melvin-bot bot removed the Overdue label Dec 5, 2022
@trjExpensify
Copy link
Contributor

👋 Adding the Reviewing label as this should have been added once the associated PR went into review initially.

@trjExpensify trjExpensify added the Reviewing Has a PR in review label Dec 5, 2022
@johncschuster
Copy link
Contributor

Sorry for the delay! The ^GH for regression steps is up

@melvin-bot
Copy link

melvin-bot bot commented Dec 14, 2022

@johncschuster, @neil-marcellini, @syedsaroshfarrukhdot, @Santhosh-Sellavel Whoops! This issue is 2 days overdue. Let's get this updated quick!

@neil-marcellini
Copy link
Contributor

The regressions steps were added 2 days ago so I think we're all set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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 Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests