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 2023-12-08] [$500] Chat - Page scrolls to the middle conversation when collapse expended compose box #31005

Closed
2 of 6 tasks
lanitochka17 opened this issue Nov 7, 2023 · 33 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

@lanitochka17
Copy link

lanitochka17 commented Nov 7, 2023

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.3.96-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: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Go to staging.new.expensify.com
  2. Navigate to any chat
  3. Enter 10 or more lines of text so the scroller is visible
  4. Click on double-arrow button to expand the text
  5. Click on double-arrow button to collapse the text

Expected Result:

Last bottom lines should be visible and vertical scroller should be down to the latest message

Actual Result:

Page scrolls to the middle conversation when collapse expended compose box

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

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

Screenshots/Videos

Add any screenshot/video evidence

Bug6267412_1699365938087.Recording__1332.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018067138b68673af0
  • Upwork Job ID: 1721908499530989568
  • Last Price Increase: 2023-11-07
  • Automatic offers:
    • tienifr | Contributor | 27651162
@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 Nov 7, 2023
@melvin-bot melvin-bot bot changed the title Chat - Page scrolls to the middle conversation when collapse expended compose box [$500] Chat - Page scrolls to the middle conversation when collapse expended compose box Nov 7, 2023
Copy link

melvin-bot bot commented Nov 7, 2023

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

Copy link

melvin-bot bot commented Nov 7, 2023

Triggered auto assignment to @Christinadobrzyn (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 Nov 7, 2023
Copy link

melvin-bot bot commented Nov 7, 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 Nov 7, 2023

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

@NisargDeveloper
Copy link

Proposal

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

Page scrolls in the middle of a conversation. It scroll should be in the end and shows the latest messages.

What is the root cause of that problem?

It seems we don't have the css property.

.your-text-box {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

Once we have overflow-y: scroll. It will stay in the end no matter how big the text-box is.

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

We have to add

 .your-text-box {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

in the css property.

What alternative solutions did you explore? (Optional)

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

@tienifr
Copy link
Contributor

tienifr commented Nov 7, 2023

Proposal

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

Page scrolls to the middle conversation when collapse expended compose box

What is the root cause of that problem?

In

style={[styles.textInputCompose, isComposerFullSize ? styles.textInputFullCompose : styles.flex4, styles.verticalAlignTop]}

We change the style of input based on isComposerFullSize (is expanded or not). It's the inconsistency because we just set maxHeight:100% when the input is expanded -> That make input scroll works unexpectedly

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

we should add maxHeight:100% along with styles.flex4 when isComposerFullSize is false

 style={[styles.textInputCompose, isComposerFullSize ? styles.textInputFullCompose : {
                        ...styles.flex4,
                        maxHeight:'100%'
                    }]}

Result

Screen.Recording.2023-11-07.at.23.24.53.mov

@Christinadobrzyn
Copy link
Contributor

I can reproduce - I think this can be external. I swear I've seen this issue reported already but I can't find it.

@Christinadobrzyn
Copy link
Contributor

Christinadobrzyn commented Nov 8, 2023

@rushatgabhane we have a few proposals, would you be able to give a review?

@Christinadobrzyn
Copy link
Contributor

DMing @rushatgabhane for a review of the proposals

@rushatgabhane
Copy link
Member

rushatgabhane commented Nov 13, 2023

I like @tienifr's proposal
It fixes the root cause, so it tests well even when cursor is at start / middle

C+ reviewed 🎀 👀 🎀

Copy link

melvin-bot bot commented Nov 13, 2023

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

@chiragsalian
Copy link
Contributor

Proposal LGTM, feel free to create the PR @tienifr.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 13, 2023
Copy link

melvin-bot bot commented Nov 13, 2023

📣 @rushatgabhane Please request via NewDot manual requests for the Reviewer role ($500)

Copy link

melvin-bot bot commented Nov 13, 2023

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

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@Christinadobrzyn
Copy link
Contributor

I'm going ooo until Monday Nov 27th so going to assign another BZ teammate to monitor this until I'm back. Thanks!

status: reviewing PR

@Christinadobrzyn Christinadobrzyn removed the Bug Something is broken. Auto assigns a BugZero manager. label Nov 20, 2023
@Christinadobrzyn Christinadobrzyn added Weekly KSv2 and removed Daily KSv2 labels Nov 27, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Dec 1, 2023
@melvin-bot melvin-bot bot changed the title [$500] Chat - Page scrolls to the middle conversation when collapse expended compose box [HOLD for payment 2023-12-08] [$500] Chat - Page scrolls to the middle conversation when collapse expended compose box Dec 1, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Dec 1, 2023
Copy link

melvin-bot bot commented Dec 1, 2023

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

Copy link

melvin-bot bot commented Dec 1, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.6-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 2023-12-08. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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

Copy link

melvin-bot bot commented Dec 1, 2023

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:

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

@Christinadobrzyn
Copy link
Contributor

Christinadobrzyn commented Dec 6, 2023

prepping for payment!

Payouts due:

Issue Reporter: NA
Contributor: $500 @tienifr (Paid in Upwork)
Contributor+: $500 @rushatgabhane (in NewExpensify)

Eligible for 50% #urgency bonus? N

Upwork job is here

@rushatgabhane do we need a regression test for this?

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Dec 8, 2023
@Christinadobrzyn
Copy link
Contributor

No regressions so paying this out @tienifr I paid you based on this payment summary.

@rushatgabhane can you let us know about any regression tests? Thanks!

@melvin-bot melvin-bot bot added the Overdue label Dec 12, 2023
@Christinadobrzyn
Copy link
Contributor

nudge - @rushatgabhane can you let us know about any regression tests?

@melvin-bot melvin-bot bot removed the Overdue label Dec 12, 2023
@Christinadobrzyn
Copy link
Contributor

nudge @rushatgabhane - do we need a regression test?

Copy link

melvin-bot bot commented Dec 18, 2023

@chiragsalian, @rushatgabhane, @Christinadobrzyn, @tienifr Whoops! This issue is 2 days overdue. Let's get this updated quick!

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

melvin-bot bot commented Dec 18, 2023

@chiragsalian, @rushatgabhane, @Christinadobrzyn, @tienifr Whoops! This issue is 2 days overdue. Let's get this updated quick!

@rushatgabhane
Copy link
Member

on this

@melvin-bot melvin-bot bot removed the Overdue label Dec 18, 2023
@rushatgabhane
Copy link
Member

rushatgabhane commented Dec 18, 2023

  1. The PR that introduced the bug has been identified. Link to the PR: It seems that this bug was always present. I can't point a specific PR that caused this

  2. 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: N.A.

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

  4. Determine if we should create a regression test for this bug. Sure!

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

    1. On web, go to any chat
    2. In the composer, write at least 20 lines of comment.
    3. Place the cursor at the end
    4. Expand the composer
    5. Verify that the cursor is at end of composer

@rushatgabhane
Copy link
Member

manual request here - https://staging.new.expensify.com/r/5195421093804697

@Christinadobrzyn
Copy link
Contributor

Awesome! thanks @rushatgabhane! I created the regression test GH - https://github.com/Expensify/Expensify/issues/352202

Closing this!

@JmillsExpensify
Copy link

$500 payment approved for @rushatgabhane based on this comment.

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

8 participants