From f64311689b311ac90ca35bd3744244e44a2b6061 Mon Sep 17 00:00:00 2001 From: Ryan Kegel Date: Tue, 24 Mar 2026 17:10:51 -0400 Subject: [PATCH] feat: add completed chores to the display order in ChildView and update sorting priority --- .github/specs/bugs-1.0.6-01/bugs-1.0.6-set01.md | 1 + frontend/vue-app/src/components/child/ChildView.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/specs/bugs-1.0.6-01/bugs-1.0.6-set01.md b/.github/specs/bugs-1.0.6-01/bugs-1.0.6-set01.md index 4549d7b..d04c59b 100644 --- a/.github/specs/bugs-1.0.6-01/bugs-1.0.6-set01.md +++ b/.github/specs/bugs-1.0.6-01/bugs-1.0.6-set01.md @@ -65,6 +65,7 @@ When viewing the child's chores, kindnesses, penalties, rewards. The items shoul 1. Scheduled for today chores (with earliest deadline first when it applies) 2. General Chores 3. Pending chores +4. Completed Chores - Rewards diff --git a/frontend/vue-app/src/components/child/ChildView.vue b/frontend/vue-app/src/components/child/ChildView.vue index addcc82..2dfe29f 100644 --- a/frontend/vue-app/src/components/child/ChildView.vue +++ b/frontend/vue-app/src/components/child/ChildView.vue @@ -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