Whitespace-only todos can be added

Open Beginner friendly
#1 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
frontend

Research direction

Start in apps/web by locating the new-todo input and Add handling, then reproduce the spaces-only case described in the issue. Ensure the whitespace-only submission adds no row and leaves the input focused. Run pnpm --filter @software-factory/web test and pnpm --filter @software-factory/web lint from the repository root.

Written by the indexing model from the issue text.

Description

factory

If I type only spaces into the new todo box and hit Add, it still adds an item to the list. Steps: open the app, type " " (spaces only) into the input, click Add. Expected: nothing is added, and the input stays focused so I can type a real todo. Instead I get a blank-looking row in my list.

The app is the Vite todo app in apps/web. Run its checks from the repository root with pnpm --filter @software-factory/web test and pnpm --filter @software-factory/web lint.

Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/software-factory

All issues in getsentry/software-factory

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.