Skip to content

feat: Added separate due date and due time on TaskFormModal#1183

Merged
aryandas2911 merged 5 commits into
aryandas2911:mainfrom
Ayontikapal:feature/due-date-time
May 28, 2026
Merged

feat: Added separate due date and due time on TaskFormModal#1183
aryandas2911 merged 5 commits into
aryandas2911:mainfrom
Ayontikapal:feature/due-date-time

Conversation

@Ayontikapal
Copy link
Copy Markdown
Contributor

@Ayontikapal Ayontikapal commented May 26, 2026

📌 Description

This PR improves the task creation/editing UX by splitting the combined datetime-local input into two separate fields: Due Date and Due Time.

It also introduces proper validation to ensure users cannot select past dates or times by combining both fields into a single Date object before validation.

🔗 Related Issue

Closes #1104

🛠 Changes Made

  • Split dueDate state into:
  • dueDate (YYYY-MM-DD)
  • dueTime (HH:MM)
  • Updated task edit prefill logic to correctly parse and populate:
  • date part
  • time part
  • Replaced single datetime-local input with separate date and time input fields
  • Added strict validation to prevent selecting past date + time combination and to prevent invalid submission when either field is empty
  • Updated submission payload to combine values.

📸 Screenshots (if applicable)

Add screenshots or GIFs to explain UI changes.
Screenshot 2026-05-26 161236

✅ Checklist

  • Code runs locally
  • Followed project structure
  • No console errors
  • Properly tested changes
  • Linked the issue

🚀 Notes for Reviewers

@aryandas2911 Please review this PR and merge it under gssoc'26.

@aryandas2911
Copy link
Copy Markdown
Owner

@Ayontikapal attach proper screenshots and review the PR to check if all new features are intact

@Ayontikapal
Copy link
Copy Markdown
Contributor Author

Ayontikapal commented May 28, 2026

Screenshot 2026-05-28 221229 Screenshot 2026-05-28 221249 Hey @aryandas2911 Here are the attached screenshots for the edit task and new task modals. Hope it's okay to merge.

Comment thread frontend/src/components/Task/TaskFormModal.jsx
@aryandas2911 aryandas2911 merged commit c89fc94 into aryandas2911:main May 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Split Due Date and Time Inputs for Better UX

2 participants