Skip to content

feat(AddTask): Add wait date field to Add Task dialog#292

Merged
its-me-abhishek merged 1 commit intoCCExtractor:mainfrom
ShivaGupta-14:feat/188-add-wait-to-addTask
Dec 23, 2025
Merged

feat(AddTask): Add wait date field to Add Task dialog#292
its-me-abhishek merged 1 commit intoCCExtractor:mainfrom
ShivaGupta-14:feat/188-add-wait-to-addTask

Conversation

@ShivaGupta-14
Copy link
Copy Markdown
Contributor

Add Wait Date Field to Add Task Dialog

Description

Implemented the wait date field in the Add Task dialog, allowing users to specify the wait date when creating a new task.

Previously, the wait field could only be set via the CLI tool. This change makes it accessible directly from the UI while keeping it completely optional.

  • Added wait date field to backend request body
  • Implement wait date picker in AddTaskDialog frontend component
  • Update type definitions and hooks to support wait field
  • Add comprehensive frontend and backend tests for the new field

Updates: #188

Checklist

  • Ran npx prettier --write . (for formatting)
  • Ran gofmt -w . (for Go backend)
  • Ran npm test (for JS/TS testing)
  • Added unit tests, if applicable
  • Verified all tests pass
  • Updated documentation, if needed

Additional Notes

Video:

Screen.Recording.2025-12-22.at.1.23.00.AM.mov

@github-actions
Copy link
Copy Markdown

Thank you for opening this PR!

Before a maintainer takes a look, it would be really helpful if you could walk through your changes using GitHub's review tools.

Please take a moment to:

  • Check the "Files changed" tab
  • Leave comments on any lines for functions, comments, etc. that are important, non-obvious, or may need attention
  • Clarify decisions you made or areas you might be unsure about and/or any future updates being considered.
  • Finally, submit all the comments!

More information on how to conduct a self review:
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request

This helps make the review process smoother and gives us a clearer understanding of your thought process.

Once you've added your self-review, we'll continue from our side. Thank you!

@ShivaGupta-14 ShivaGupta-14 changed the title Feat/188 add wait to add task feat(AddTask): Add wait date field to Add Task dialog Dec 21, 2025
Copy link
Copy Markdown
Contributor Author

@ShivaGupta-14 ShivaGupta-14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self review complete! Please take a look when you get a chance. Happy to address any feedback or suggestions

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added wait field to this struct to accept it from frontend

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update the function call to accept this new parameter.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update the function to accept new parameter and only append the wait field is non-empty which ensures it remains optional.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated existing tests to include new waitDate parameter and added two new tests to check that it works correctly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added new wait field to newTask state intialization and passed it to addTaskToBackend when submitting, and after submission, reset it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added wait field to the addTaskToBackend function that will be sent to the backend's /add-task endpoint.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added wait-date picker ui

Copy link
Copy Markdown
Contributor Author

@ShivaGupta-14 ShivaGupta-14 Dec 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added new test cases for new wait field

Copy link
Copy Markdown
Contributor Author

@ShivaGupta-14 ShivaGupta-14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self review complete! Please take a look when you get a chance. Happy to address any feedback or suggestions

Comment thread frontend/src/components/HomeComponents/Tasks/__tests__/AddTaskDialog.test.tsx Outdated
- Add wait date field to backend request body and Taskwarrior CLI
- Implement wait date picker in AddTaskDialog frontend component
- Update type definitions and hooks to support wait field
- Add comprehensive frontend and backend tests for the new field

Issue: CCExtractor#188
@ShivaGupta-14 ShivaGupta-14 force-pushed the feat/188-add-wait-to-addTask branch from 14080a1 to b082671 Compare December 23, 2025 17:19
@ShivaGupta-14
Copy link
Copy Markdown
Contributor Author

Hi @its-me-abhishek! Whenever you get time, could you please review it?

@its-me-abhishek its-me-abhishek merged commit 3c74540 into CCExtractor:main Dec 23, 2025
4 checks passed
@ShivaGupta-14 ShivaGupta-14 deleted the feat/188-add-wait-to-addTask branch December 23, 2025 18:47
ShivaGupta-14 added a commit to ShivaGupta-14/ccsync that referenced this pull request Dec 25, 2025
- Add wait date field to backend request body and Taskwarrior CLI
- Implement wait date picker in AddTaskDialog frontend component
- Update type definitions and hooks to support wait field
- Add comprehensive frontend and backend tests for the new field

Issue: CCExtractor#188
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants