Skip to content

feat: make due date optional in task creation#256

Merged
its-me-abhishek merged 2 commits intoCCExtractor:mainfrom
Vasist10:main
Dec 17, 2025
Merged

feat: make due date optional in task creation#256
its-me-abhishek merged 2 commits intoCCExtractor:mainfrom
Vasist10:main

Conversation

@Vasist10
Copy link
Copy Markdown
Contributor

@Vasist10 Vasist10 commented Dec 8, 2025

Description

Made the due date field optional when creating tasks.
Removed the validation that required a due date and updated backend logic to accept tasks with or without a due date.
Added backend tests to verify both cases.

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

task saved successfully without due date
image

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 8, 2025

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!

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!

@Vasist10
Copy link
Copy Markdown
Contributor Author

Vasist10 commented Dec 8, 2025

@its-me-abhishek now i have removed the switch/button from picture as it is an overkill and just made the due date optional.


async function handleAddTask(task: TaskFormData) {
if (handleDate(newTask.due)) {
if (!newTask.due || handleDate(newTask.due)) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

won't this whole if check be useless considering due date is just optional now?

@its-me-abhishek its-me-abhishek merged commit 786a6f6 into CCExtractor:main Dec 17, 2025
4 checks passed
ShivaGupta-14 pushed a commit to ShivaGupta-14/ccsync that referenced this pull request Dec 25, 2025
* feat: make due date optional in task creation

* fix: remove unnecessary due date validation in frontend
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.

Make Due Date field optional

2 participants