feat: add completed chores to the display order in ChildView and update sorting priority
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m50s
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m50s
This commit is contained in:
@@ -468,6 +468,7 @@ function choreDueLabel(item: ChildTask): string | null {
|
||||
// ── Sorting ───────────────────────────────────────────────────────────────────
|
||||
|
||||
function childChoreSortPriority(item: ChildTask): number {
|
||||
if (isChoreCompletedToday(item)) return 3
|
||||
if (item.pending_status === 'pending') return 2
|
||||
if (!item.schedule) return 1 // general chore
|
||||
return 0 // scheduled for today
|
||||
|
||||
Reference in New Issue
Block a user