Manual task reordering feature #6

Merged
javier merged 5 commits from app/reorder-tasks into main 2026-02-11 15:28:23 +00:00
Showing only changes of commit 91edf100d4 - Show all commits
+7 -1
View File
@@ -16,6 +16,9 @@ final class Todo {
/// An optional note providing additional details about the todo task. /// An optional note providing additional details about the todo task.
var note: String? var note: String?
/// The display order of the todo task.
var order: Int
/// The title of the todo task. /// The title of the todo task.
var title: String var title: String
@@ -27,15 +30,18 @@ final class Todo {
/// - note: An optional note providing additional details. /// - note: An optional note providing additional details.
/// - due: The date by which the todo should be completed. /// - due: The date by which the todo should be completed.
/// - completed: The date when the todo was completed, if applicable. /// - completed: The date when the todo was completed, if applicable.
/// - order: The display order of the todo task.
init( init(
title: String, title: String,
note: String? = nil, note: String? = nil,
due: Date, due: Date,
completed: Date? = nil completed: Date? = nil,
order: Int = 0
) { ) {
self.completed = completed self.completed = completed
self.due = due self.due = due
self.note = note self.note = note
self.order = order
self.title = title self.title = title
} }