feat: add restriction to prevent deletion of system tasks and rewards
All checks were successful
Gitea Actions Demo / build-and-push (push) Successful in 23s

- Implemented logic to hide delete button for system tasks and rewards in ItemList.vue, TaskView.vue, and RewardView.vue.
- Added backend checks in task_api.py and reward_api.py to return 403 for delete requests on system items.
- Ensured that items without a user_id are treated as system items across frontend and backend.
- Updated acceptance criteria to include UI and backend tests for the new functionality.
This commit is contained in:
2026-02-03 14:54:38 -05:00
parent 99d3aeb068
commit fd70eca0c9
6 changed files with 66 additions and 0 deletions

View File

@@ -119,5 +119,6 @@ const showBack = computed(
height: 0;
overflow: hidden;
overflow-y: visible;
padding: 1rem;
}
</style>

View File

@@ -118,5 +118,6 @@ const showBack = computed(() => route.path !== '/child')
height: 0;
overflow: hidden;
overflow-y: visible;
padding: 1rem;
}
</style>

View File

@@ -292,6 +292,7 @@ onMounted(async () => {
height: 0;
overflow: hidden;
overflow-y: visible;
padding: 1rem;
}
.app-version {