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 2022-04-12] Workspace Invite page - TexInput doesn't scroll up on pressing arrow keys - reported by @rushatgabhane #7729

Closed
mvtglobally opened this issue Feb 14, 2022 · 33 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@mvtglobally
Copy link

mvtglobally commented Feb 14, 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. Go to any workspace -> manage members -> invite page.
  2. Have more than 5 lines in personal message, and put the cursor at end.
  3. Use up arrows and go to the first line.

Expected Result:

TextInput scrolls up and first line isn't hidden by the label.

Actual Result:

First line of personal message is hidden by the label.

Workaround:

unknown

Platform:

Where is this issue occurring?

  • Web
  • Desktop App

Version Number: 1.1.38-0
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

151804315-7942c372-cb8e-4e18-b71a-4b97e526ac4e.mov

Expensify/Expensify Issue URL:
Issue reported by: @rushatgabhane
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1643722266000989

Job Post: https://www.upwork.com/jobs/~01a944fb11e102568c

View all open jobs on GitHub

@mvtglobally mvtglobally added AutoAssignerTriage Auto assign issues for triage to an available triage team member Daily KSv2 labels Feb 14, 2022
@MelvinBot
Copy link

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

@MelvinBot MelvinBot removed the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Feb 14, 2022
@Tushu17
Copy link
Contributor

Tushu17 commented Feb 14, 2022

Proposal (If gets external)

we need to change pv3 to mv3 below -

<View style={[styles.ph5, styles.pv3]}>
<TextInput
label={this.props.translate('workspace.invite.personalMessagePrompt')}
autoCompleteType="off"
autoCorrect={false}

or we can add margin in container styles of input and remove vertical padding from the view.

@sobitneupane
Copy link
Contributor

PROPOSAL
This issue exists not only in Workspace Invite page but in all multiline TextInputs with label.
Reason:
PaddingTop is being used inside the <TextInput /> component. So, while moving the cursor up with the keyboard, we cannot reach to the top as there is padding at the top.
Solution:
We can solve this issue by removing paddingTop from the <TextInput /> and adding the padding to its parent component. For this, some changes should be made in styles of BaseTextInput.
Changes To be made in src/styles/styles.js

    baseTextInput: {
        fontFamily: fontFamily.GTA,
        fontSize: variables.fontSizeNormal,
        lineHeight: variables.fontSizeNormalHeight,
        color: themeColors.text,
-        paddingTop: 23,
        paddingBottom: 8,
        paddingHorizontal: 11,
        borderWidth: 0,
        borderRadius: variables.componentBorderRadiusNormal,
    },
    
    textInputAndIconContainer: {
+        paddingTop: 23,
        flex: 1,
        height: '100%',
        zIndex: -1,
        flexDirection: 'row',
    },

    secureInput: {
+        paddingTop: 23,
        borderTopRightRadius: 0,
        borderBottomRightRadius: 0,
    },

Changes to be made in src/components/TextInput/BaseTextInput.js

<View style={[styles.textInputAndIconContainer]}>
<RNTextInput
ref={(ref) => {
if (typeof this.props.innerRef === 'function') { this.props.innerRef(ref); }
this.input = ref;
}}

<View style={[
                                styles.textInputAndIconContainer,
+                                (!hasLabel || this.props.secureTextEntry) && styles.pv0,
                            ]}>

@MelvinBot
Copy link

@greg-schroeder Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@MelvinBot
Copy link

@greg-schroeder Still overdue 6 days?! Let's take care of this!

@MelvinBot
Copy link

@greg-schroeder Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!

@MelvinBot
Copy link

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

@greg-schroeder greg-schroeder added the Weekly KSv2 label Feb 24, 2022
@MelvinBot MelvinBot removed the Overdue label Feb 24, 2022
@greg-schroeder greg-schroeder added Overdue and removed Daily KSv2 labels Feb 24, 2022
@PauloGasparSv PauloGasparSv removed their assignment Feb 24, 2022
@MelvinBot MelvinBot removed the Overdue label Feb 24, 2022
@PauloGasparSv PauloGasparSv added External Added to denote the issue can be worked on by a contributor Overdue labels Feb 24, 2022
@MelvinBot
Copy link

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

@Julesssss
Copy link
Contributor

Thanks both. I agree this seems like a reasonable solution, the filtered view on canIUse only shows IE as unsupported 👍

@MelvinBot MelvinBot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 14, 2022
@MelvinBot
Copy link

📣 @mollfpr You have been assigned to this job by @Julesssss!
Please apply to this job in Upwork 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 📖

@mollfpr
Copy link
Contributor

mollfpr commented Mar 14, 2022

@Julesssss applied to Upwork, thank you!

@parasharrajat
Copy link
Member

@rushatgabhane What about the native platforms? Do you think native also needs fixing?

@rushatgabhane
Copy link
Member

rushatgabhane commented Mar 14, 2022

@parasharrajat no, native doesn't have this issue.

@Julesssss
Copy link
Contributor

Not overdue. PR is in review 👍

@kevinksullivan
Copy link
Contributor

Same ^

@MelvinBot MelvinBot removed the Overdue label Mar 30, 2022
@botify botify added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 5, 2022
@botify botify changed the title Workspace Invite page - TexInput doesn't scroll up on pressing arrow keys - reported by @rushatgabhane [HOLD for payment 2022-04-12] Workspace Invite page - TexInput doesn't scroll up on pressing arrow keys - reported by @rushatgabhane Apr 5, 2022
@botify
Copy link

botify commented Apr 5, 2022

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.49-1 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 2022-04-12. 🎊

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Apr 11, 2022
@kevinksullivan
Copy link
Contributor

@mollfpr paid! @rushatgabhane @parasharrajat I have offers out to you both for reporting/C+. Can you accept so I can finalize payment ?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Apr 13, 2022
@Julesssss
Copy link
Contributor

@mollfpr paid! @rushatgabhane @parasharrajat I have offers out to you both for reporting/C+. Can you accept so I can finalize payment ?

Bumping this. Were the offers accepted?

@melvin-bot melvin-bot bot removed the Overdue label Apr 19, 2022
@rushatgabhane
Copy link
Member

rushatgabhane commented Apr 19, 2022

Yes, offer accepted on April 13
cc: @kevinksullivan

@kevinksullivan
Copy link
Contributor

Paid @rushatgabhane and @parasharrajat , thanks for your patience and working on this.

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 Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests