fix: prevent empty goal title submission in goal form modal
Open
Beginner friendly
Nobody has claimed this yet.
area:goals
beginner friendly
community
contributions-welcome
difficulty:beginner
difficulty:easy
enhancement
good first issue
help wanted
time:<15m
time:15-30m
type:bug
up-for-grabs
- Dominant language
- TypeScript
- Stars
- 5
- Forks
- 7
- Avg merge
- 39m
- Merged PRs (30d)
- 39
Description
🎯 What needs to be done
Ensure the goal title input in goal-form-modal.tsx trims leading and trailing whitespace, disabling the submit button if the resulting string is empty.
Why this matters
Prevents accidental creation of blank or whitespace-only goals.
📍 Where to work
src/features/goals/components/goal-form-modal.tsx
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open src/features/goals/components/goal-form-modal.tsx and trace the goal title input and submit-button state. Verify that leading and trailing whitespace is ignored for validation, and that submission stays disabled when the trimmed title is empty.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 92/100