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-06-21] [$1000] Chat - Height of edit field is different for mWeb and native app @thesahindia #11694

Closed
kbecciv opened this issue Oct 10, 2022 · 118 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering Improvement Item broken or needs improvement. Internal Requires API changes or must be handled by Expensify staff Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Oct 10, 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. Launch the app
  2. Navigate to any chat
  3. Send a message
  4. Long press on it > Edit
  5. Keep pressing enter and check the max height

Expected Result:

The height should be consistent

Actual Result:

The height isn't consistent

Workaround:

Unknown

Platform:

Where is this issue occurring?

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

Version Number: 1.2.12.2

Reproducible in staging?: Yes

Reproducible in production?: Yes

Email or phone of affected tester (no customers): any

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

Notes/Photos/Videos: Any additional supporting documentation
Screenshot_20220926_182516
Screenshot_20220926_182452

Expensify/Expensify Issue URL:

Issue reported by: @thesahindia

Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1664197609260269

View all open jobs on GitHub

@kbecciv kbecciv added the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Oct 10, 2022
@melvin-bot
Copy link

melvin-bot bot commented Oct 10, 2022

Triggered auto assignment to @strepanier03 (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

@melvin-bot melvin-bot bot added Daily KSv2 and removed AutoAssignerTriage Auto assign issues for triage to an available triage team member labels Oct 10, 2022
@Puneet-here
Copy link
Contributor

Puneet-here commented Oct 10, 2022

Proposal

We need to keep the max lines 6 for isSmallScreenWidth and 16 when it's false

maxLines={16} // This is the same that slack has

maxLines={this.props.isSmallScreenWidth ? 6 : 16}

we can keep add them in CONST.js

I think we should also check if it's a touch screen by canUseTouchScreen() we should also check the same here

maxLines: props.isSmallScreenWidth ? CONST.COMPOSER.MAX_LINES_SMALL_SCREEN : CONST.COMPOSER.MAX_LINES,

@strepanier03
Copy link
Contributor

Triage notes:

This issue is repeatable.

Tested this on my Android using the new.expensify mobile app.

I was able to have a height much greater than 6 or 16, it seemed near infinite and I could keep increasing the height repeatedly.

2022-10-10_13-22-47

@strepanier03
Copy link
Contributor

I think even with a proposal, this should go to Eng according ot the linked SO. There's multiple moving parts to our transition to BZ and I think this Triage process will go away in it's current form soon, a DD was just released for reviews regarding it.

Based on this thread in Slack, I think I should still triage as normal for now, with this going to eng who can put the external label on it as needed??

@melvin-bot
Copy link

melvin-bot bot commented Oct 10, 2022

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

@strepanier03 strepanier03 added the Improvement Item broken or needs improvement. label Oct 10, 2022
@roryabraham roryabraham added the External Added to denote the issue can be worked on by a contributor label Oct 12, 2022
@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 2022

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 12, 2022

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

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

melvin-bot bot commented Oct 12, 2022

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

@melvin-bot melvin-bot bot changed the title Chat - Height of edit field is different for mWeb and native app @thesahindia [$250] Chat - Height of edit field is different for mWeb and native app @thesahindia Oct 12, 2022
@roryabraham
Copy link
Contributor

@Puneet-here's proposal looks good to me, but I'll let @rushatgabhane buddy-check it. I'm not sure if we need to check canUseTouchScreen or if just screen width is sufficient here.

@melvin-bot melvin-bot bot added the Overdue label Oct 17, 2022
@rushatgabhane
Copy link
Member

rushatgabhane commented Oct 17, 2022

@Puneet-here
question: In message edit, why is the max line height 6 for native? Shouldn't it be 16 because we're setting it over here?

maxLines={16} // This is the same that slack has

Also, I'm curious why we should use canUseTouchScreen(), is it because it's mWeb only?

@melvin-bot melvin-bot bot removed the Overdue label Oct 17, 2022
@Puneet-here
Copy link
Contributor

@Puneet-here question: In message edit, why is the max line height 6 for native? Shouldn't it be 16 because we're setting it over here?

It's probably because of the styling

Also, I'm curious why we should use canUseTouchScreen(), is it because it's mWeb only?

I think it's good to use canUseTouchScreen() and isSmallScreenWidth because this way the height of composer won't change for desktop when we decrease the screen size

@rushatgabhane
Copy link
Member

rushatgabhane commented Oct 18, 2022

It's probably because of the styling

@Puneet-here I think we need to dive deeper then. Like which specific style is changing maxLine behavior for native only?

I think it's good to use canUseTouchScreen() and isSmallScreenWidth because this way the height of composer won't change for desktop when we decrease the screen size

Oh, I get you.
Desktop app is rarely resized to small width. And I think it's okay to change the height on desktop when the screen size is reduced to simplify the code a bit.

@puneetlath puneetlath added the Bug Something is broken. Auto assigns a BugZero manager. label Oct 19, 2022
@melvin-bot melvin-bot bot added the Overdue label Oct 20, 2022
@sonialiap
Copy link
Contributor

sonialiap commented Oct 20, 2022

Job is posted to Upwork

@melvin-bot
Copy link

melvin-bot bot commented Jun 14, 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.
  • [@sonialiap] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@rushatgabhane
Copy link
Member

won't be able to update the checklist until friday. please change this to a weekly

@rushatgabhane
Copy link
Member

rushatgabhane commented Jun 26, 2023

  1. The PR that introduced the bug has been identified. Link to the PR: This is a new feature that wasn't possible in react native before. So, not applicable.

  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: This is a new feature that wasn't possible in react native before. So, not applicable.

  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: This is a new feature that wasn't possible in react native before. So, not applicable.

  4. Determine if we should create a regression test for this bug. I think yes?

  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. Launch the app
    2. Navigate to any chat
    3. Send a message
    4. Long press on it > Edit
    5. Keep pressing "Enter", until the compose box doesn't increase in size anymore
    6. Ensure that it has 6 (full) lines in total on both native and mWeb

@melvin-bot melvin-bot bot added the Overdue label Jul 4, 2023
@sonialiap
Copy link
Contributor

Whoops, this didn't automatically change to Daily. I'm clocking off now but I'll get the payments set up tomorrow morning!

@melvin-bot melvin-bot bot removed the Overdue label Jul 4, 2023
@sonialiap sonialiap added Daily KSv2 and removed Weekly KSv2 labels Jul 4, 2023
@rushatgabhane
Copy link
Member

rushatgabhane commented Jul 5, 2023

This is paid on new dot by Anu (Because only Anu and Jason can settle manual requests for now).
$500 because regression

@sonialiap
Copy link
Contributor

Regression test request submitted.

@rushatgabhane feel free to close once this has been payed out

@melvin-bot melvin-bot bot added the Overdue label Jul 7, 2023
@roryabraham
Copy link
Contributor

@rushatgabhane does not have triage or write access, so @rushatgabhane @JmillsExpensify @anmurali once payment is done here please close this issue. Going to make this weekly in the meantime.

@melvin-bot melvin-bot bot removed the Overdue label Jul 7, 2023
@roryabraham roryabraham added Weekly KSv2 and removed Daily KSv2 labels Jul 7, 2023
@rushatgabhane
Copy link
Member

rushatgabhane commented Jul 7, 2023

pay ment is done. we can close this

@melvin-bot melvin-bot bot added the Overdue label Jul 17, 2023
@sonialiap
Copy link
Contributor

Thanks for the confirmation, closing out

@melvin-bot melvin-bot bot removed the Overdue label Jul 17, 2023
@thesahindia
Copy link
Member

Actually the reporting compensation is due but no action is needed here. I will request the money on new dot.

@melvin-bot
Copy link

melvin-bot bot commented Jul 18, 2023

📣 @naveensingh! 📣
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
Copy link

melvin-bot bot commented Jul 18, 2023

⚠️ Missing/invalid email or upwork profile link. Please make sure you add both your Expensify email and Upwork profile link in the format specified.

@melvin-bot
Copy link

melvin-bot bot commented Jul 18, 2023

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

@thesahindia
Copy link
Member

Hey @sonialiap, can you please confirm that I am eligible for the reporting compensation on this one? I just requested the payment on new dot for this.

Also it looks like @naveensingh had reported a regression above (according to #11694 (comment))

@JmillsExpensify
Copy link

Awaiting payment summary for issue reporting.

@thesahindia
Copy link
Member

Bump @sonialiap

@JmillsExpensify
Copy link

Reached out to @sonialiap via NewDot.

@sonialiap
Copy link
Contributor

Confirming that thesahindia is eligible for the reporter bonus:

@JmillsExpensify
Copy link

$250 payment approved for @thesahindia based on summary above.

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. Engineering Improvement Item broken or needs improvement. Internal Requires API changes or must be handled by Expensify staff Weekly KSv2
Projects
None yet
Development

No branches or pull requests