ccsync icon indicating copy to clipboard operation
ccsync copied to clipboard

Add frontend test suites/cases for src/components/HomeComponents/Tasks

Open its-me-abhishek opened this issue 11 months ago • 16 comments

some frontend components currently have less than 100% or fairly low test coverage, as visible in the coverage report (see screenshot below). this issue tracks the work required to identify and improve coverage for those components.

notes

  • focus should be on meaningful tests rather than coverage-only tests
  • avoid snapshot-only tests unless justified
  • no functional changes are expected as part of this issue
  • if interested, feel free to mention the file you are working on as a comment, and submit a PR
  • please create a separate PR for each file

tracker for this folder

  • [x] AddTaskDialog
  • [ ] TaskDialog
  • [ ] Tasks
  • [x] Hooks
Image

its-me-abhishek avatar Dec 24 '25 18:12 its-me-abhishek

Hi @its-me-abhishek!, I would like to work on AddTaskDialog and will open a PR shortly.

ShivaGupta-14 avatar Dec 25 '25 04:12 ShivaGupta-14

I’ve completed the AddTaskDialog tests (#305). I’d like to take up Tasks next and will open a PR soon.

ShivaGupta-14 avatar Dec 25 '25 08:12 ShivaGupta-14

"Hi @its-me-abhishek , I'm a beginner looking to make my first contribution. I noticed this issue was reopened—is the work for the Tasks component test suite still available? If so, I'd love to work on it!"

AaineeSinha avatar Dec 29 '25 09:12 AaineeSinha

sure @AaineeSinha tests for both TaskDialog and Task.tsx are pending, feel free to work on these.

its-me-abhishek avatar Dec 29 '25 11:12 its-me-abhishek

@its-me-abhishek should I work on the test for the TaskDialog ???

Rustix69 avatar Jan 09 '26 11:01 Rustix69

hey! @its-me-abhishek, I’m working on adding tests for Tasks.tsx and will open a PR for it shortly

bhavikcodes avatar Jan 17 '26 15:01 bhavikcodes

sure

its-me-abhishek avatar Jan 17 '26 16:01 its-me-abhishek

Hey @its-me-abhishek, I’ve opened PR #395 addressing this issue. Would appreciate your review whenever you get a chance. Thanks!

bhavikcodes avatar Jan 17 '26 19:01 bhavikcodes

hey! @its-me-abhishek, I’m working on adding tests for TaskDialog.tsx and will open a PR for it shortly

bhavikcodes avatar Jan 18 '26 15:01 bhavikcodes

Hi maintainers, I understand the issue and can work on a fix. Please assign this issue to me

Sayan-01 avatar Jan 22 '26 08:01 Sayan-01

@Sayan-01 feel free to add test suites for TaskDialog since those are yet to be added

its-me-abhishek avatar Jan 24 '26 10:01 its-me-abhishek

Added tests for multi-select-utils.ts (PR #466)

adiprathapa avatar Mar 19 '26 13:03 adiprathapa

Hi maintainers, I’d like to contribute here.

I can take one uncovered file under src/components/HomeComponents/Tasks and submit a focused test PR, following the “one file per PR” guideline.

Please let me know which specific file is currently unclaimed so I can avoid overlap and start immediately.

Aadigarg111 avatar Mar 22 '26 13:03 Aadigarg111

Hi @its-me-abhishek ,I'd like to take TaskDialog for this. I checked #397 and #395 — existing tests cover row/dialog, description, priority, tags, project, depends, due date, complete/delete, UUID, pin, and shortcuts, so I'll focus on the remaining gaps (wait/start/entry/end fields, annotations, recur) rather than duplicating what's already there.

NaitikVerma6776 avatar Sep 09 '26 18:09 NaitikVerma6776

Hi, I'd like to take this issue for the remaining Tasks tests (Task.tsx and TaskDialog.tsx) that the maintainer noted are still pending, one file per PR. Could you assign it to me?

Anurag-S1ngh avatar Oct 26 '26 15:10 Anurag-S1ngh

sure, feel free to write tests and submit a patch for anything that you may think requires coverage

its-me-abhishek avatar Nov 09 '26 06:11 its-me-abhishek