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 #15310][$1000] Inconsistent default scrolling on the personal message section on Android that in turn hides the first line of texts, unlike mweb chrome #16930

Closed
2 of 6 tasks
kavimuru opened this issue Apr 4, 2023 · 27 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Weekly KSv2

Comments

@kavimuru
Copy link

kavimuru commented Apr 4, 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 staging dot on mweb chrome
  2. Go to any workspace and change the name to a longer name
  3. Go to invite members and notice that the personal message texts are shown from the top itself
  4. But now follow the same steps on android and notice that the first line of text is not shown properly since it's automatically scrolled to bottom

Expected Result:

Android and mweb chrome personal message in invite members should have consistent behavior and the first lines of texts should also be shown on android properly

Actual Result:

The First line of text in personal message on invite members page on android scrolls to bottom automatically and the first line of text is not shown properly. But behaves different in mweb chrome

Workaround:

unknown

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.2.94-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
Notes/Photos/Videos: Any additional supporting documentation

workspace.mp4

Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1680599826934579

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~010511c30c967553b5
  • Upwork Job ID: 1645879250401800192
  • Last Price Increase: 2023-04-18
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 4, 2023
@MelvinBot
Copy link

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

@MelvinBot
Copy link

MelvinBot commented Apr 4, 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

@melvin-bot melvin-bot bot added the Overdue label Apr 7, 2023
@MelvinBot
Copy link

@sonialiap Eep! 4 days overdue now. Issues have feelings too...

1 similar comment
@MelvinBot
Copy link

@sonialiap Eep! 4 days overdue now. Issues have feelings too...

@sonialiap
Copy link
Contributor

Reproducible

@MelvinBot
Copy link

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

@luacmartins luacmartins added the External Added to denote the issue can be worked on by a contributor label Apr 11, 2023
@melvin-bot melvin-bot bot changed the title Inconsistent default scrolling on the personal message section on Android that in turn hides the first line of texts, unlike mweb chrome [$1000] Inconsistent default scrolling on the personal message section on Android that in turn hides the first line of texts, unlike mweb chrome Apr 11, 2023
@luacmartins
Copy link
Contributor

Making it external

@MelvinBot
Copy link

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

@MelvinBot
Copy link

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

@MelvinBot
Copy link

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

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

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

@Ollyws
Copy link
Contributor

Ollyws commented Apr 11, 2023

Proposal

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

On Android, the personal message textInput is scrolled to the bottom when opened.

What is the root cause of that problem?

This is the default behaviour of the textInput on native Android, if you remove the selection prop from Composer (for example) you will also see similar behaviour there.

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

Implement the selection prop and use state for the textInput on the workspaceInvitePage and use the onSelectionChange callback to set the state.
This means we will need to add selection: {start:0, end: 0} to the state field in the constructor, a setSelection function:

setSelection(selection) {
        this.setState({selection});
}

and add the onSelectionChange callback to the textInput:

onSelectionChange={event => this.setSelection(event.nativeEvent.selection)}

What alternative solutions did you explore? (Optional)

None

@fedirjh
Copy link
Contributor

fedirjh commented Apr 13, 2023

Thanks @Ollyws for your proposal . Why native Android has a different behaviour ? is that expected ? Why adding selection fixes it ? For me It looks like a bug that should be fixed upstream.

@melvin-bot melvin-bot bot added the Overdue label Apr 17, 2023
@luacmartins
Copy link
Contributor

We got one proposal from @Ollyws, but we have these outstanding questions.

@melvin-bot melvin-bot bot removed the Overdue label Apr 17, 2023
@MelvinBot
Copy link

@sonialiap @luacmartins @fedirjh this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@Ollyws
Copy link
Contributor

Ollyws commented Apr 18, 2023

Just having a dig in the RN source code, will answer those questions soon.

@MelvinBot
Copy link

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Apr 20, 2023
@sonialiap
Copy link
Contributor

@Ollyws have you had a chance to take a look at the questions?

@melvin-bot melvin-bot bot removed the Overdue label Apr 20, 2023
@Ollyws
Copy link
Contributor

Ollyws commented Apr 23, 2023

@fedirjh Seems like we already opened a PR for this but it has been sitting there for ages now without approval.

@melvin-bot melvin-bot bot added the Overdue label Apr 23, 2023
@fedirjh
Copy link
Contributor

fedirjh commented Apr 23, 2023

@Ollyws Thanks for the update. The same PR Expensify/react-native#45 was merged on our RN fork and it’s being handled in #15310.

@sonialiap I think we should hold this issue in favour of #15310

@melvin-bot melvin-bot bot removed the Overdue label Apr 23, 2023
@luacmartins luacmartins changed the title [$1000] Inconsistent default scrolling on the personal message section on Android that in turn hides the first line of texts, unlike mweb chrome [HOLD #15310][$1000] Inconsistent default scrolling on the personal message section on Android that in turn hides the first line of texts, unlike mweb chrome Apr 24, 2023
@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@melvin-bot melvin-bot bot added the Overdue label Apr 26, 2023
@luacmartins
Copy link
Contributor

maybe we can close this one after the 2nd week?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Apr 26, 2023
@luacmartins
Copy link
Contributor

Waiting to see if we can still reproduce this during the next KI retest

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels May 1, 2023
@luacmartins
Copy link
Contributor

Still waiting on KI tests

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels May 4, 2023
@luacmartins
Copy link
Contributor

Waiting on KI

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels May 8, 2023
@luacmartins
Copy link
Contributor

Still waiting on KI

@melvin-bot melvin-bot bot removed the Overdue label May 10, 2023
@luacmartins luacmartins added Weekly KSv2 and removed Daily KSv2 labels May 10, 2023
@melvin-bot melvin-bot bot added the Overdue label May 19, 2023
@luacmartins
Copy link
Contributor

I couldn't reproduce this. Both platforms were consistent and had the cursor set to the end of the text field. Closing.

@melvin-bot melvin-bot bot removed the Overdue label May 19, 2023
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. Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Weekly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants