"Clear completed" deletes everything except completed todos

Open Beginner friendly
#4 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
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript, vite
Domain
frontend

Research direction

Start in apps/web by reproducing the issue with one completed and one active todo, then trace the handler used by “Clear completed” to see how it selects todos. Confirm that only completed todos are removed, then 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

Clicking "Clear completed" is supposed to remove the todos I've finished, but instead it removes all my unfinished ones and leaves the completed ones behind. Steps: add two todos, complete one, click "Clear completed". Expected: the completed todo disappears and the active one stays.

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.