Skip to content

fix: improve input validation and retry flow in Productivity Pet - #237

Merged
steam-bell-92 merged 1 commit into
steam-bell-92:mainfrom
jyotish6699:fix/productivity-pet-input-validation
May 16, 2026
Merged

fix: improve input validation and retry flow in Productivity Pet#237
steam-bell-92 merged 1 commit into
steam-bell-92:mainfrom
jyotish6699:fix/productivity-pet-input-validation

Conversation

@jyotish6699

Copy link
Copy Markdown
Contributor

Description

This PR improves the input validation and retry flow in the Productivity Pet CLI project.

Changes Made

  • Added retry loops for invalid numeric inputs instead of restarting the entire interaction flow
  • Rejected empty and whitespace-only task names
  • Improved interaction continuity for task count and completed task inputs
  • Preserved the original beginner-friendly procedural structure and emoji-based CLI style

Problem Fixed

Previously:

  • Invalid inputs restarted the whole interaction
  • Whitespace-only task names were accepted
  • Users had to repeatedly restart sections after mistakes

Now:

  • Users can retry immediately until valid input is entered
  • Empty task names are properly rejected
  • CLI interaction flow is smoother and more user-friendly

Closes #223

@vercel

vercel Bot commented May 16, 2026

Copy link
Copy Markdown

@jyotish6699 is attempting to deploy a commit to the Anuj's projects Team on Vercel.

A member of the Team first needs to authorize it.

@steam-bell-92 steam-bell-92 added type:bug Something isn't working level:beginner gssoc:approved GSSoC 2026 approving tag labels May 16, 2026
@steam-bell-92
steam-bell-92 merged commit 2c96062 into steam-bell-92:main May 16, 2026
3 of 4 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🎉 Thank you for your contribution!

Your Pull Request has been merged successfully.

We appreciate the time and effort you put into improving this project. Contributions like yours help the repository grow and stay useful for everyone.

If you'd like to contribute again, please check the open issues and make sure you are assigned before opening another Pull Request.

Thanks again for your support! 🙌

@github-actions

Copy link
Copy Markdown
Contributor

Thanks @jyotish6699! I've added you to the contributors list.

@jyotish6699
jyotish6699 deleted the fix/productivity-pet-input-validation branch May 16, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved GSSoC 2026 approving tag level:beginner type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve input validation and retry flow in Productivity-Pet

2 participants