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

[Feature ✨] - Create Password #459

Merged
merged 15 commits into from
Feb 7, 2019
Merged

[Feature ✨] - Create Password #459

merged 15 commits into from
Feb 7, 2019

Conversation

Rcureton
Copy link
Contributor

@Rcureton Rcureton commented Feb 4, 2019

What ❓

  • Implemented the Create Password feature for KSR users that have signed up through Facebook.
  • If you're on the AccountActivity and you don't have a password you will see the Create Account row. If you do have a password you will see the Change Email and Change Password rows.

Story 📖

Create Password
Create Password Event

See 👀

  • I was going to add a gif but my email and password would be there 🙃

How to QA

Please refer to Trello description for testing instructions.

Copy link
Contributor

@eoji eoji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job on this ٩( ᐛ )و !! Some small stuff and a few questions.

But the big one is I ran into that error again 🤔We can pair again tomorrow to figure out why it doesn't work for me.

<meta-data
android:name="com.google.android.gms.wallet.api.enabled"
android:value="true" />

<activity android:name=".ui.activities.CreatePasswordActivity">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's alphabetize this and use the settings transitions

@@ -74,6 +74,11 @@ class LoginActivity : BaseActivity<LoginViewModel.ViewModel>() {
.compose(observeForUI())
.subscribe { showConfirmationSnackbar(login_toolbar, R.string.Got_it_your_changes_have_been_saved) }

this.viewModel.outputs.showCreatedPasswordSnackback()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

snackbar* heh

fun newPassword(newPassword: String)

/** Call when the user clicks the submit password button. */
fun submitPasswordClicked()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's rename this createPasswordClicked for consistency.

import rx.subjects.BehaviorSubject
import rx.subjects.PublishSubject

const val CREATE_PASSWORD_MINIMUM_LENGTH = 6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have this value now in 2 places. (The other is ChangePasswordViewModel) Should we just have one constant that lives in StringUtils?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I agree we should I'll add it to the StringUtils Class.

@@ -54,6 +54,9 @@ interface LoginViewModel {
/** Emits when a user has successfully changed their password and needs to login again. */
fun showChangedPasswordSnackbar(): Observable<Void>

/** Emits when a user has successfully created their psssword and needs to login again. */
fun showCreatedPasswordSnackback(): Observable<Void>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

snackbar :3

@@ -54,6 +54,9 @@ interface LoginViewModel {
/** Emits when a user has successfully changed their password and needs to login again. */
fun showChangedPasswordSnackbar(): Observable<Void>

/** Emits when a user has successfully created their psssword and needs to login again. */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo in "password"


<TextView
android:id="@+id/create_password_text_view"
style="@style/TextInputPasswordLayout"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is the right style.

# Conflicts:
#	app/src/main/AndroidManifest.xml
#	app/src/main/java/com/kickstarter/mock/services/MockApolloClient.kt
#	app/src/main/java/com/kickstarter/services/ApolloClientType.kt
#	app/src/main/java/com/kickstarter/services/KSApolloClient.kt
#	app/src/main/java/com/kickstarter/ui/activities/AccountActivity.kt
Copy link
Contributor

@eoji eoji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job!! Successfully tested on my account ٩( ᐛ )و

@Rcureton Rcureton merged commit b9e5b92 into master Feb 7, 2019
@Rcureton Rcureton deleted the rc/create-password branch February 7, 2019 18:28
@Rcureton
Copy link
Contributor Author

Rcureton commented Feb 7, 2019

Create password

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants