diff --git a/Docs/Tasks.md b/Docs/Tasks.md index 32e7007..e3eb49e 100644 --- a/Docs/Tasks.md +++ b/Docs/Tasks.md @@ -331,3 +331,134 @@ The `deactivate_jail` endpoint in `backend/app/routers/config.py` is inconsisten 3. **Manual test with running server:** - Go to `/config`, find an active jail and click "Deactivate". - Immediately navigate to the Dashboard — "Active Jails" count should already reflect the reduced count without any delay. + +--- + +## Task 7 — Fix ActivateJailDialog not honouring backend rejection and mypy false positive + +**Status:** in progress + +### Problem description + +Two independent bugs were introduced during Tasks 5–6: + +**Bug 1 — "Activate" button is never disabled on validation errors (frontend)** + +In `frontend/src/components/config/ActivateJailDialog.tsx`, Task 5 Part B set: + +```tsx +const blockingIssues = validationIssues; // all issues block activation +``` + +but the "Activate" `