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

[Awaiting checklist completion] [$1000] Composer top padding collapsed in room after scroll up #22389

Closed
1 of 6 tasks
kavimuru opened this issue Jul 7, 2023 · 92 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff

Comments

@kavimuru
Copy link

kavimuru commented Jul 7, 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!


Action Performed:

  1. Go to a room
  2. add some chats until we can scroll up the screen
  3. Scroll to the bottom and scroll upp

Expected Result:

There should be some padding at the top of the composer

Actual Result:

No padding at the top of the composer, it will be notes when hovering over the message which is closer to compose box

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 / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.37-2
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
Notes/Photos/Videos: Any additional supporting documentation

Recording.27.mp4
Untitled

Expensify/Expensify Issue URL:
Issue reported by: @wildan-m
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688604509171109

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~016810fbd90ab7373e
  • Upwork Job ID: 1677363585491148800
  • 2023-07-21
  • Automatic offers:
    • situchan | Contributor | 25763008
    • mkarkachov | Contributor | 25865850
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 7, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 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

@jeet-dhandha
Copy link
Contributor

Proposal

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

  • Composer top padding is not visible.

What is the root cause of that problem?

  • The root cause is that the Participant's Local Time is not visible when in the room thread. But is visible when in Chat thread. Thus showing inconsistency in padding over the composer.
Chat Thread Screenshot 2023-07-07 at 8 26 35 AM
Room Thread Screenshot 2023-07-07 at 8 26 47 AM

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

  • Solution 1: Add a top padding to the composer by default.
  • Solution 2: Render a different component similar to the Participant's Local Time.

What alternative solutions did you explore? (Optional)

  • N/A

@twisterdotcom twisterdotcom added the External Added to denote the issue can be worked on by a contributor label Jul 7, 2023
@melvin-bot melvin-bot bot changed the title Composer top padding collapsed in room after scroll up [$1000] Composer top padding collapsed in room after scroll up Jul 7, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 2023

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

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

melvin-bot bot commented Jul 7, 2023

Current assignee @twisterdotcom is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 2023

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

@sarious
Copy link
Contributor

sarious commented Jul 7, 2023

Proposal

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

Composer top padding collapsed in room after scroll up.

What is the root cause of that problem?

The root cause of the problem is that there is paddings for scrollable container (chat content). When the user scrolls up the paddings is invisible.

Invisible paddings of chat content Screenshot 2023-07-07 at 22 42 17

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

So to solve this issue we can get rid of bottom padding of chat content and add top padding to View with action buttons and Input.

1. We need to get rid of bottom padding of chat content. See screenshot below:

Bottom padding before changes image
Bottom padding before changes (when scrolling) image

To achieve this we need replace paddingVertical: 16 with paddingBottom: 16 in chatContentScrollView in styles.js file.
NOTE! You may notice that we remove top padding from style and leave bottom padding, but need to remove bottom padding. This is because parent component has transform: scaleY(-1); style:

transform: scaleY(-1) style of parent image

2.

After that we need to add 16px top padding to ReportActionCompose container:

Container layout before changes image

But we need to add padding only in case if we don't need to show Participant Local Time. So for that we need to change style of the top View in ReportActionCompose component:
!(shouldShowReportRecipientLocalTime && hasReportRecipient) && styles.pt4,

pt4 is style for adding paddingTop: 16

3.

Also we need to add paddingTop: 16 to container with ArchivedReportFooter to fix the problem when composer is hidden. We can do it by adding styles.pt4 to wrapper View in ReportFooter.js:
image

Container layout after changes image
The result in Room without Participant Local Time image
The result in Chat with Participant Local Time image

What alternative solutions did you explore? (Optional)

N/A

@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 2023

📣 @sarious! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  2. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  3. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@sarious
Copy link
Contributor

sarious commented Jul 7, 2023

Contributor details
Your Expensify account email: sarious.w@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~012449b41f0680e59b

@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 2023

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@uafrontender
Copy link
Contributor

uafrontender commented Jul 7, 2023

Proposal

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

Margin top is missed at the top of ReportActionCompose component

What is the root cause of that problem?

If it's multi-user chatroom or concierge room ReportRecipientLocalTime is not appeared and in this case top margin should be added

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

hasExceededMaxCommentLength && styles.borderColorDanger,

after this line we should add top margin (padding will be displayed incorrect) with

!shouldShowReportRecipientLocalTime && styles.mt4

contentContainerStyle={[styles.chatContentScrollView, shouldShowReportRecipientLocalTime && styles.pt0]}

here to remove bottom padding in scroll area, we should remove this code

shouldShowReportRecipientLocalTime && styles.pt0

and in styles.js replace this code

paddingVertical: 16,

with paddingBottom: 16,

What alternative solutions did you explore? (Optional)

N/A

@melvin-bot melvin-bot bot added the Overdue label Jul 10, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 10, 2023

@twisterdotcom, @0xmiroslav Whoops! This issue is 2 days overdue. Let's get this updated quick!

@twisterdotcom
Copy link
Contributor

How are these proposals looking @0xmiroslav?

@melvin-bot melvin-bot bot removed the Overdue label Jul 10, 2023
@ghost
Copy link

ghost commented Jul 13, 2023

Can post proposal @twisterdotcom ?

@melvin-bot melvin-bot bot added the Overdue label Jul 13, 2023
@twisterdotcom
Copy link
Contributor

You can!

@melvin-bot melvin-bot bot removed the Overdue label Jul 13, 2023
@ghost
Copy link

ghost commented Jul 13, 2023

Sure Ted! Thanks!

@jeet-dhandha
Copy link
Contributor

Any thoughts on my proposal #22389 (comment) ?

@nebiyuelias1
Copy link

paddingTop: shouldShowReportRecipientLocalTime && hasReportRecipient ? 0 : 16

But did you check out the style guide? It says inline styles are not allowed: https://github.com/Expensify/App/blob/main/contributingGuides/STYLING.md#inline-styles

@melvin-bot
Copy link

melvin-bot bot commented Jul 14, 2023

📣 @nebiyuelias1! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  2. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  3. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production labels Aug 9, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Composer top padding collapsed in room after scroll up [HOLD for payment 2023-08-16] [$1000] Composer top padding collapsed in room after scroll up Aug 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 9, 2023

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

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:

  • @mkarkachov requires payment offer (Contributor)
  • @situchan requires payment offer (Contributor)

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Aug 9, 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:

  • [@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.
  • [@twisterdotcom] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@twisterdotcom
Copy link
Contributor

twisterdotcom commented Aug 16, 2023

Payment summary:

@mkarkachov paid $1500 here: https://www.upwork.com/nx/wm/offer/25865850 (Contributor)
@mkhutornyi will be paid $150 here: https://www.upwork.com/nx/wm/offer/26194971
@situchan paid $1500 here: https://www.upwork.com/nx/wm/offer/25763008) (Contributor+)
@wildan-m never applied: #22389 (comment). Due $250 if they do.

@situchan please complete the checklist.

@twisterdotcom twisterdotcom changed the title [HOLD for payment 2023-08-16] [$1000] Composer top padding collapsed in room after scroll up [Awaiting checklist completion] [$1000] Composer top padding collapsed in room after scroll up Aug 16, 2023
@twisterdotcom twisterdotcom removed the Awaiting Payment Auto-added when associated PR is deployed to production label Aug 16, 2023
@mkhutornyi
Copy link
Contributor

mkhutornyi commented Aug 16, 2023

@twisterdotcom we worked together on PR based on #22389 (comment). And actually my proposal was completely used to fix any regressions.

@situchan
Copy link
Contributor

  • The PR that introduced the bug has been identified. Link to the PR: N/A
  • 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
  • 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.
  • 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.

Regression Test Proposal:
There are many test cases to consider as stated in PR description
So in summary, this can be simplified test step:

  1. Go to any chat room with enough messages history
  2. While scrolling messages, verify that there's always some padding above composer

@wildan-m
Copy link
Contributor

@twisterdotcom I thought Melvin stored my UW account. Just applied

@twisterdotcom
Copy link
Contributor

Ahh yes. @mkhutornyi could you apply for the job as well? Upwork job

@mkhutornyi
Copy link
Contributor

@twisterdotcom applied, thanks

@twisterdotcom
Copy link
Contributor

@wildan-m you've been paid.
@mkarkachov please accept the offer here: https://www.upwork.com/nx/wm/offer/26194971

@twisterdotcom twisterdotcom added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Aug 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 18, 2023

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Aug 18, 2023
@Expensify Expensify deleted a comment from melvin-bot bot Aug 18, 2023
@twisterdotcom
Copy link
Contributor

@CortneyOfstad I'm out for Parental Leave. Please:

  1. Ask @situchan to complete the checklist.
  2. Pay @mkarkachov $1000 + $500 bonus here: https://www.upwork.com/nx/wm/offer/26194971

@mkhutornyi
Copy link
Contributor

@twisterdotcom accepted offer

@melvin-bot melvin-bot bot added the Overdue label Aug 21, 2023
@CortneyOfstad
Copy link
Contributor

@situchan We need you to complete the check list here and link the appropriate details. Thank you!

@melvin-bot melvin-bot bot removed the Overdue label Aug 21, 2023
@situchan
Copy link
Contributor

@situchan We need you to complete the check list here and link the appropriate details. Thank you!

Here: #22389 (comment)

@CortneyOfstad
Copy link
Contributor

Sorry for the confusion! We ask that you work in the original checklist, otherwise the GH cannot be closed. Thank you!

@CortneyOfstad
Copy link
Contributor

Did some digging and it shows that @mkarkachov was already paid, but @mkhutornyi was still awaiting payment. That has been issued, so this can be closed. Thanks all!

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 Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests