fix(ui+backend): sidebar active state + technique status after test deletion

- Sidebar: add `end` prop to child NavLinks so "All Tests" (/tests) is
  only highlighted when exactly on /tests, not on /tests/validated.
- Backend: recalculate technique status_global for all affected techniques
  when tests are deleted via delete_campaign(delete_tests=True), preventing
  stale coverage metrics on the dashboard.
This commit is contained in:
kitos
2026-05-28 17:55:04 +02:00
parent 7594a09b20
commit 366fc2170c
2 changed files with 12 additions and 0 deletions
+1
View File
@@ -82,6 +82,7 @@ function SidebarLink({ item }: { item: NavItem }) {
<NavLink
key={child.to + child.label}
to={child.to}
end
className={({ isActive }) =>
`flex items-center gap-3 rounded-lg px-3 py-2 text-sm transition-colors ${
isActive