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-02-22] Android - Close account text box pointer doesn't start on top - Reported by @Tushu17 #7380

Closed
mvtglobally opened this issue Jan 25, 2022 · 26 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Weekly KSv2

Comments

@mvtglobally
Copy link

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. Open app
  2. Navigate to Settings>Security>Close Account
  3. Star typing in the Text box

Expected Result:

Text pointer should start on top

Actual Result:

Close account text box pointer doesn't start on top

Workaround:

unknown

Platform:

Where is this issue occurring?

  • Android

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

f0c2b18c-f8a7-4c65-abc4-3aa6e5c53780.mp4

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

View all open jobs on GitHub

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

Triggered auto assignment to @JmillsExpensify (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 Jan 25, 2022
@mateusbra
Copy link
Contributor

mateusbra commented Jan 25, 2022

PROPOSAL (if considered external)

we need to add:
textAlignVertical="top" prop to CloseAccountPage.js here:

<TextInput
multiline
numberOfLines={6}
value={this.state.reasonForLeaving}
onChangeText={reasonForLeaving => this.setState({reasonForLeaving})}
label={this.props.translate('closeAccountPage.enterMessageHere')}
containerStyles={[styles.mt5]}
/>

Screenshot

WhatsApp Image 2022-01-25 at 03 26 12

@JmillsExpensify
Copy link

Upwork job is posted here: https://www.upwork.com/jobs/~019e4050a252db42da

@botify botify removed the Daily KSv2 label Jan 26, 2022
@MelvinBot MelvinBot added the Weekly KSv2 label Jan 26, 2022
@MelvinBot
Copy link

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

@MelvinBot MelvinBot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 26, 2022
@MelvinBot
Copy link

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

@mateusbra
Copy link
Contributor

thanks, proposal posted on upwork @JmillsExpensify

@parasharrajat
Copy link
Member

parasharrajat commented Jan 26, 2022

@mateusbra Your proposal looks good to me. Can't we pass the same via styles?

cc: @iwiznia

🎀 👀 🎀 C+ reviewed

@mateusbra
Copy link
Contributor

@parasharrajat sure we can!

@parasharrajat
Copy link
Member

Alright, lets do that instead.

@mateusbra
Copy link
Contributor

@parasharrajat I tried passing it by style props and I think we are unable to do it. I think we would have to make changes within BaseTextInput.js to spread thoses passed styles here:

<TextInputWithName
ref={(ref) => {
if (typeof this.props.innerRef === 'function') { this.props.innerRef(ref); }
this.input = ref;
}}
// eslint-disable-next-line
{...inputProps}
value={this.value}
placeholder={(this.state.isFocused || !this.props.label) ? this.props.placeholder : null}
placeholderTextColor={themeColors.placeholderText}
underlineColorAndroid="transparent"
style={[
this.props.inputStyle,
styles.flex1,
styles.w100,
!hasLabel && styles.pv0,
this.props.secureTextEntry && styles.secureInput,
]}
multiline={this.props.multiline}
onFocus={this.onFocus}
onBlur={this.onBlur}
onChangeText={this.setValue}
secureTextEntry={this.state.passwordHidden}
onPressOut={this.props.onPress}
name={this.props.name}
/>

or if we don't want to do that we could just use textAlignVertical="top" (how I proposed before) like we use here in another component:

<TextInput
label={this.props.translate('workspace.invite.personalMessagePrompt')}
autoCompleteType="off"
autoCorrect={false}
numberOfLines={4}
textAlignVertical="top"
multiline
containerStyles={[styles.workspaceInviteWelcome]}
value={this.state.welcomeNote}
placeholder={this.getWelcomeNotePlaceholder()}
onChangeText={text => this.setState({welcomeNote: text})}
/>

@parasharrajat
Copy link
Member

inputStyle prop is used for passing styles to input but if that does not work direct prop works for me. Only issue with the later is that it is deprecated.

@mateusbra
Copy link
Contributor

mateusbra commented Jan 26, 2022

inputStyle, didn't worked I think this prop is being overwritten when we call BaseTextInput:

const TextInput = forwardRef((props, ref) => (
<BaseTextInput
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
// Setting autoCompleteType to new-password throws an error on Android/iOS, so fall back to password in that case
// eslint-disable-next-line react/jsx-props-no-multi-spaces
autoCompleteType={props.autoCompleteType === 'new-password' ? 'password' : props.autoCompleteType}
innerRef={ref}
inputStyle={[styles.baseTextInput]}
/>
));

So, we should follow with my first proposed fix (passing it direcly)?

@mateusbra
Copy link
Contributor

@parasharrajat do you think I could raise a new issue fixing this on slack?

inputStyle, didn't worked I think this prop is being overwritten when we call BaseTextInput

as in the future we are going to want it to work as expected.

@parasharrajat
Copy link
Member

Already fixed it here #7318. We can wait for that to merge.

@mateusbra
Copy link
Contributor

Ok, so, once I be hired on upwork I'll rise a PR

@mateusbra
Copy link
Contributor

@JmillsExpensify did you received my proposal in upwork?

@JmillsExpensify
Copy link

Yes! Thanks, I received and hired you for your proposal in Upwork. Please continue with the PR.

@mateusbra
Copy link
Contributor

Thank you @JmillsExpensify !

@mateusbra
Copy link
Contributor

PR ready for review!

@JmillsExpensify
Copy link

Thanks for the quick turnaround!

@JmillsExpensify
Copy link

PR deployed to staging yesterday. We're moving forward MelvinBot.

@MelvinBot MelvinBot removed the Overdue label Feb 10, 2022
@botify botify added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Feb 15, 2022
@botify botify changed the title Android - Close account text box pointer doesn't start on top - Reported by @Tushu17 [HOLD for payment 2022-02-22] Android - Close account text box pointer doesn't start on top - Reported by @Tushu17 Feb 15, 2022
@botify
Copy link

botify commented Feb 15, 2022

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.38-3 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-02-22. 🎊

@JmillsExpensify
Copy link

Woo! Now it's just a question of time. I'll circle back for payment following the regression period.

@JmillsExpensify
Copy link

Jumping in to processes contributor payments. I'll close the issue when that step is complete for all contributors.

@MelvinBot
Copy link

📣 @mateusbra You have been assigned to this job by @JmillsExpensify!
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 📖

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

All contributors, let me know if you have any issues with payments. Thank you!

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 Weekly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants