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-10-24] [$250] NetSuite–RHP is not scrollable if click on "Next" without filling ID in Custom Segments/record #50065

Closed
2 of 6 tasks
IuliiaHerets opened this issue Oct 2, 2024 · 34 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 External Added to denote the issue can be worked on by a contributor

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Oct 2, 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: 9.0.43-1
Reproducible in staging?: Y
Reproducible in production?: Y
Issue was found when executing this PR: #49828
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Log in with a new Gmail account
  3. Click on FAB - New workspace
  4. Enable "Accounting" in the "More features" page.
  5. Navigate to "Accounting"
  6. Connect to NetSuite and upgrade the workspace to Control when asked
  7. Wait for the sync to finish
  8. Navigate to Accounting - Import - Custom Segments/records
  9. Click on the "Add custom segments/record
  10. Choose segment or record and click on the "Next" button
  11. Type in any custom record name and click on the "Next" button
  12. Click on the "Next" button without filling the ID

Expected Result:

RHP is scrollable, "Next" button is visible

Actual Result:

RHP is not scrollable, "Next" button is not visible

Workaround:

Unknown

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6622113_1727874887801.RHP_is_not_scrollable.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021842305508364550611
  • Upwork Job ID: 1842305508364550611
  • Last Price Increase: 2024-10-04
  • Automatic offers:
    • hoangzinh | Reviewer | 104360308
    • allgandalf | Contributor | 104360309
Issue OwnerCurrent Issue Owner: @johncschuster
@IuliiaHerets IuliiaHerets added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 2, 2024
Copy link

melvin-bot bot commented Oct 2, 2024

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

@IuliiaHerets
Copy link
Author

We think that this bug might be related to #wave-control

@IuliiaHerets
Copy link
Author

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

@Krishna2323
Copy link
Contributor

Krishna2323 commented Oct 2, 2024

Edited by proposal-police: This proposal was edited at 2024-10-02 16:22:58 UTC.

Proposal


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

NetSuite–RHP is not scrollable if click on "Next" without filling ID in Custom Segments/record

What is the root cause of that problem?

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


  • We should remove shouldUseScrollView={false}.
  • We should also check similar flows and fix those as well, probably we will be looking at the component which uses substeps or ConnectionLayout with shouldUseScrollView={false}

What alternative solutions did you explore? (Optional)

Result

@truph01
Copy link
Contributor

truph01 commented Oct 3, 2024

Edited by proposal-police: This proposal was edited at 2024-10-03 12:06:00 UTC.

Proposal

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

RHP is not scrollable, "Next" button is not visible

What is the root cause of that problem?

but because of this View styles:

the View is not scrollable.

  • A ScrollView must have a bounded height to define the area in which scrolling can happen. flexGrow: 1 alone doesn't necessarily give the ScrollView a starting size or ensure it takes up the entire available space of the parent.

  • It only makes the ScrollView grow if there is extra space, but without initial size constraints, the ScrollView may not fill the parent container as expected, leaving its size undefined.

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

  • We should change that style to:
            <View style={[styles.flexGrow1, styles.mt3, styles.flex1]}>
  • Result:
Screen.Recording.2024-10-03.at.19.04.54.mov
  • Note: There is another place we can set shouldUseScrollView={true} is in:

but as we can see, all places use shouldUseScrollView={false} instead. It is because, if we use shouldUseScrollView={true}in ConnectionLayout, the InteractiveStepSubHeader can be scrolled, I think it is unexpected.

What alternative solutions did you explore? (Optional)

@melvin-bot melvin-bot bot added the Overdue label Oct 4, 2024
@johncschuster johncschuster added the External Added to denote the issue can be worked on by a contributor label Oct 4, 2024
@melvin-bot melvin-bot bot changed the title NetSuite–RHP is not scrollable if click on "Next" without filling ID in Custom Segments/record [$250] NetSuite–RHP is not scrollable if click on "Next" without filling ID in Custom Segments/record Oct 4, 2024
Copy link

melvin-bot bot commented Oct 4, 2024

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

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

melvin-bot bot commented Oct 4, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Oct 4, 2024
@allgandalf
Copy link
Contributor

Proposal

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

RHP is not scrollable if click on "Next" without filling ID in Custom Segments/record

This is only reproducible for Desktop MacOS and web. We are able to scroll on native devices.

What is the root cause of that problem?

We use flexGrow1 this disables the ability of a RHP to scroll if the content doesn't fit the screen.

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

We should replace flexGrow1 with flex1, this solves the issue of scrolling while removing redundant flexGrow1 update the code here:

 <View style={[styles.flex1, styles.mt3]}>

If same bug exists for the lists page, we need to fix that too

What alternative solutions did you explore? (Optional)

@hoangzinh
Copy link
Contributor

Thanks for proposals, everyone. @truph01 and @allgandalf have almost a same approach, but @truph01 hasn't explained why current styling here doesn't work, while @allgandalf did. And @allgandalf's solution looks better than. Therefore I think we can go with @allgandalf's proposal.

Link to proposal #50065 (comment)

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Oct 6, 2024

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

@truph01
Copy link
Contributor

truph01 commented Oct 6, 2024

@hoangzinh Apologies for not providing a clearer explanation earlier—I thought it was fairly straightforward why flexGrow: 1 wasn't working, since it is mentioned in ScrollView docs that we should we flex: 1 instead. But I just updated it.

Both proposals are essentially the same, and mine was submitted first. I don’t believe the core reason my solution wasn’t chosen is because of the above. Also, based on contributor guidelines:

Note: Before submitting a proposal on an issue, be sure to read any other existing proposals. ALL NEW PROPOSALS MUST BE DIFFERENT FROM EXISTING PROPOSALS. The difference should be important, meaningful or considerable.

cc @marcochavezf

@hoangzinh
Copy link
Contributor

Yep, it's not only the RCA but also the solution

  • In your solution, you add a new style flex1 into existing styles
  • @allgandalf's solution, he replaces flexGrow1 by flex1

It's one of the reasons that made me consider proposals. Let's wait for @marcochavezf to make a decision

@allgandalf
Copy link
Contributor

allgandalf commented Oct 7, 2024

yeah and also @truph01 in such cases for future reference, please don't update the proposal before the internal engineer reviews it, you changed your RCA after the selection of another proposal, which might confuse the internal engineer.

The initial RCA of @truph01 was as follows:
Screenshot 2024-10-07 at 4 22 29 PM

Also, the integration related issues are supposed to be handles by the C+ according to out docs

@truph01
Copy link
Contributor

truph01 commented Oct 7, 2024

yeah and also @truph01 in such cases for future reference, please don't update the proposal before the internal engineer reviews it, you changed your RCA after the selection of another proposal, which might confuse the internal engineer.

Apologies for not providing a clearer explanation earlier—I thought it was fairly straightforward why flexGrow: 1 wasn't working, since it is mentioned in ScrollView docs that we should we flex: 1 instead. But I just updated it.

  • Ah, I mentioned in the comment above that I updated RCA. I think Internal team can see it.

Yep, it's not only the RCA but also the solution
In your solution, you add a new style flex1 into existing styles
@allgandalf's solution, he replaces flexGrow1 by flex1

  • When you set both flexGrow: 1 and flex: 1 on the same component, flex: 1 will override the behavior of flexGrow: 1, that is why I don't mention that we need to remove flexGrow: 1, it is just a refactor and can be done later.

@allgandalf
Copy link
Contributor

bump for assignment @marcochavezf

@melvin-bot melvin-bot bot added the Overdue label Oct 9, 2024
@johncschuster
Copy link
Contributor

Bump for assignment and for Melv

@melvin-bot melvin-bot bot removed the Overdue label Oct 9, 2024
@marcochavezf
Copy link
Contributor

Thanks for your patience, everyone. I agree with @hoangzinh's decision to assign @allgandalf because of the reasons mentioned, but that doesn't diminish @truph01's contribution. We appreciate your effort, and you can apply what you’ve learned to other bugs (we’re all learning). Onward and upward! 🚀

@allgandalf
Copy link
Contributor

sorry for the delay, weekend kept me occupied, The PR is ready for review @hoangzinh

@allgandalf
Copy link
Contributor

♻️ PR merged 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 17, 2024
@melvin-bot melvin-bot bot changed the title [$250] NetSuite–RHP is not scrollable if click on "Next" without filling ID in Custom Segments/record [HOLD for payment 2024-10-24] [$250] NetSuite–RHP is not scrollable if click on "Next" without filling ID in Custom Segments/record Oct 17, 2024
Copy link

melvin-bot bot commented Oct 17, 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 Oct 17, 2024
Copy link

melvin-bot bot commented Oct 17, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.49-2 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-10-24. 🎊

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

Copy link

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

@allgandalf
Copy link
Contributor

regarding ^, I was Contributor for the PR, so C+ Checklist would be from @hoangzinh

@hoangzinh
Copy link
Contributor

BugZero Checklist:

@melvin-bot melvin-bot bot added the Overdue label Oct 25, 2024
@allgandalf
Copy link
Contributor

@johncschuster can you please pay this :))

@johncschuster
Copy link
Contributor

Sure thing! I'll take care of it now!

@melvin-bot melvin-bot bot removed the Overdue label Oct 25, 2024
@johncschuster
Copy link
Contributor

johncschuster commented Oct 25, 2024

Payment Summary:

Contributor: @allgandalf paid $250 via Upwork - PAID! 🎉
Contributor+: @hoangzinh due $250 via NewDot

@johncschuster
Copy link
Contributor

@hoangzinh, I noticed you were just recently added to the list of contributors that can receive payment via NewDot. Based on the date you were added, I expect you should be able to receive payment on NewDot, but if you're not able to receive this one, please let me know and I will issue funds via Upwork instead!

@github-project-automation github-project-automation bot moved this from Hold for Payment to Done in [#whatsnext] #expense Oct 25, 2024
Copy link

melvin-bot bot commented Oct 25, 2024

@johncschuster @marcochavezf Be sure to fill out the Contact List!

@hoangzinh
Copy link
Contributor

Yes, @johncschuster. I submitted expense in ND

@garrettmknight
Copy link
Contributor

$250 approved fro @hoangzinh

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
Archived in project
Development

No branches or pull requests

8 participants