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

US 01.06.01 Habit input validation - 2 pts #6

Closed
cbebe opened this issue Oct 2, 2021 · 0 comments · Fixed by #42
Closed

US 01.06.01 Habit input validation - 2 pts #6

cbebe opened this issue Oct 2, 2021 · 0 comments · Fixed by #42
Milestone

Comments

@cbebe
Copy link
Contributor

cbebe commented Oct 2, 2021

As a doer, I want a habit title to be up to 20 characters, a habit reason to be up to 30 characters.

Rationale - Keeps the details short and sweet. Makes sure that they're always fully visible when viewing.

Story Points - 2

Risk Level - Low

Details - Input validation before confirming the creation. Should add error messages if the user enters an invalid value.

  • Add input validation in the function that saves a Habit.
if (input >= REQUIRED_LENGTH) {
	// invalid length
}
  • Call these methods on the EditText called view when its input is invalid:
view.setError(errorMessage);
view.requestFocus();

To be released at halfway checkpoint.

@cbebe cbebe added this to the Sprint 1 milestone Oct 16, 2021
@cbebe cbebe changed the title US 01.06.01 Habit input validation US 01.06.01 Habit input validation - 2 pts Oct 19, 2021
@cbebe cbebe assigned ghost Oct 19, 2021
@cbebe cbebe closed this as completed Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant