Closed matous-volf closed 2 months ago
The changes in this pull request involve multiple modifications across several files. Notably, a new task deletion feature has been introduced in the TaskForm
component, allowing tasks to be deleted or moved to a "Trash" category. Additionally, the NewTask
constructor's parameter order has been adjusted for clarity, and formatting improvements have been made to function signatures in the projects
module for better readability. An unused import has been removed from the category_input
file, and a new asynchronous function for deleting tasks has been added to the tasks
server module.
Files | Change Summary |
---|---|
src/components/category_input.rs |
Removed unused import: use chrono::NaiveDate; |
src/components/task_form.rs |
Added task deletion functionality, including delete_task import and button for task deletion or categorization. |
src/models/task.rs |
Reordered parameters in NewTask::new constructor for improved clarity. |
src/server/projects.rs |
Aligned return types in edit_project and delete_project function signatures for better readability. |
src/server/tasks.rs |
Added new asynchronous function delete_task for deleting tasks from the database. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
NewTask
constructor for improved clarity.