feat: add routine expiration check and update status display in ChildView
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m59s

This commit is contained in:
2026-05-21 13:30:07 -04:00
parent 08dda6c6b0
commit 63e92756fe

View File

@@ -243,6 +243,7 @@ const triggerTask = async (task: ChildTask) => {
}
const handleRoutineClick = (routine: ChildRoutine) => {
if (isRoutineExpired(routine) || routine.pending_status === 'approved') return
dialogRoutine.value = routine
setTimeout(() => {
showRoutineOverlay.value = true
@@ -733,6 +734,7 @@ onUnmounted(() => {
<span v-if="item.pending_status === 'pending'" class="chore-stamp pending-stamp"
>PENDING</span
>
<span v-else-if="isRoutineExpired(item)" class="chore-stamp">TOO LATE</span>
<span v-else-if="item.pending_status === 'approved'" class="chore-stamp completed-stamp"
>APPROVED</span
>