Add additional time picker for time(and date) based fields in AddTaskDialog
Is your feature request related to a problem? Please describe. we already support adding dates while creating a task in taskwarrior, but the current ui does not allow users to explicitly select time for time-based fields. this makes it inconvenient or unclear when users want precise scheduling (for example, a due date at a specific hour rather than just a day).
Describe the solution you'd like
add additional date + time pickers in AddTaskDialog for taskwarrior time-based fields.
the supported fields should be:
- due
- start
- end
- entry
- wait
Expected ui / ux flow
- user clicks on a time-based field (e.g.,
due) - first, prompt the user to select a date
- once a date is selected, prompt the user to select a time
- combine both and store/send the final value in a taskwarrior-compatible datetime format
- ensure the value works seamlessly with the existing backend
Important notes
- date-only selection should not silently assume time; time selection must be explicit ( in case the user adds one)
- formatting must strictly follow taskwarrior expectations
- add and update tests for this on backend/frontend for each field respectively
- should integrate cleanly with existing add-task flow without breaking current behavior
Checklist (fields to be covered)
- [x] due
- [x] start
- [x] end
- [x] entry
- [x] wait
Additional context
Contribution notes
- this issue can be worked on via multiple prs
- the issue is intentionally unassigned
- please comment on the issue mentioning which field(s) you are working on, and we will keep an eye on it to avoid overlap
Seem to have found a workaround -> https://time.rdsx.dev/ The third Date&Time picker can be used to replace our existing DatePicker, and some backend/frontend tweaks would make this work!
@its-me-abhishek i will work on due date
@Vasist10 Please use the new datepicker as suggested and name it as date time picker instead; and place it in the same ui folder. Then we can migrate all fields iteratively to the new one
Hi @its-me-abhishek 👋 I’d like to work on introducing a reusable DateTimePicker component (using the suggested AM/PM-based picker or a similar implementation) and integrate it initially for the due field in AddTaskDialog.
I’ll place the new component in the existing UI folder as suggested, keeping it generic so other time-based fields (start, end, wait, etc.) can be migrated iteratively.
I’ll also ensure the selected date + time is combined and formatted according to Taskwarrior’s datetime expectations and add/update relevant frontend tests.
Please let me know if this scope works 👍
@themradul07 we have added a new date time picker in the ui directory via #333 recently, please do feel free to work on any other field as interested!
@its-me-abhishek Should I work on it ??
hey folks I'm working on start field ! PR is ready will push shortly . thanks .
Hi @Hell1213!
There is already a approved PR on start field
Hi @Rustix69!
Yes, you can work on these fields, but I’ve already opened a PR for them (start –> approved, entry, wait –> opened ,end –> pending discussion). If you’d like, you can contribute by reviewing that PR. You’re also free to work on this independently, but I’d suggest picking up the pin task issue #187 , since you’ve already done most of the work there and it’s currently in a stale state.
Totally up to you, happy to help and collaborate :)
Hi @its-me-abhishek!
I’m facing some issues with the end field. I’ve done some research on it and shared the details in the channel. I’d appreciate your help on this.
Hi @Rustix69!
Yes, you can work on these fields, but I’ve already opened a PR for them (start –> approved, entry, wait –> opened ,end –> pending discussion). If you’d like, you can contribute by reviewing that PR. You’re also free to work on this independently, but I’d suggest picking up the pin task issue #187 , since you’ve already done most of the work there and it’s currently in a stale state.
Totally up to you, happy to help and collaborate :)
Hey then by your Pr this issue is solved ryt ?
Hi @Rustix69! Yes, you can work on these fields, but I’ve already opened a PR for them (start –> approved, entry, wait –> opened ,end –> pending discussion). If you’d like, you can contribute by reviewing that PR. You’re also free to work on this independently, but I’d suggest picking up the pin task issue #187 , since you’ve already done most of the work there and it’s currently in a stale state. Totally up to you, happy to help and collaborate :)
Hey then by your Pr this issue is solved ryt ?
Mostly yes, once the pending discussion is resolved and the current PRs are merged, this issue should be completed.
@ShivaGupta-14, thanks for the quick PRs on those three fields. Since @Hell1213 and @Rustix69 are also very active here and ready to contribute, I want to make sure the work is distributed fairly especially since this was meant to be an unassigned issue for multiple contributors to find easy first tasks.
Reviewing, testing, and merging these requires a fair amount of back-and-forth (I've just added some requested changes to the start PR). To keep things moving efficiently without overwhelming the review process, I’d prefer to focus on your current open PRs for now.
@Rustix69 @Hell1213, if you are still interested you guys can implement it so we can get more eyes on the implementation! Also can add peer review comments on the currently open PRs if you'd like to suggest something new or contribute to the working.
This would prevent a monoculture in our implementation. By having different contributors tackle different fields, it helps in finding what could have been a flaw in some other implementation, and a quicker process overall.
thanks @its-me-abhishek, completely understood! I opened the two additional PRs (entry and wait fields) after the start PR was approved since the changes were similar and already prepared locally, but I’m aligned with keeping things balanced.
I'm absolutely fine with @Rustix69 and @Hell1213 working on these fields if they're interested (we already discussed the community goals on the community channel). fair distribution makes sense, and it's great to have multiple contributors working on this.
Also, I've addressed the requested changes you've added to the start PR. Happy to collaborate always- this is what open source collaboration is all about!
@its-me-abhishek if this task need any help I am ready to help on this