fix(techniques): remove broken validate/reject buttons from associated tests
Some checks failed
Aegis CI / lint-and-test (push) Has been cancelled

The tick/cross buttons navigated to /tests/:id/validate and /tests/:id/reject
which are non-existent routes (catch-all redirected to dashboard).
Removed both buttons; the View (FileText) icon is the correct entry point
to the test detail page where the full workflow lives.
This commit is contained in:
kitos
2026-05-29 08:54:31 +02:00
parent de093778f6
commit 4881825fea

View File

@@ -12,8 +12,6 @@ import {
FileText,
ExternalLink,
Plus,
Check,
X,
AlertTriangle,
BookOpen,
FlaskConical,
@@ -300,33 +298,13 @@ export default function TechniqueDetailPage() {
<span className="text-gray-400">{formatDate(test.created_at)}</span>
</td>
<td className="py-3 pl-4">
<div className="flex items-center gap-2">
<button
onClick={() => navigate(`/tests/${test.id}`)}
className="rounded p-1 text-gray-400 hover:bg-gray-800 hover:text-cyan-400"
title="View Details"
>
<FileText className="h-4 w-4" />
</button>
{canReview && test.state === "draft" && (
<>
<button
onClick={() => navigate(`/tests/${test.id}/validate`)}
className="rounded p-1 text-gray-400 hover:bg-green-900/50 hover:text-green-400"
title="Validate"
>
<Check className="h-4 w-4" />
</button>
<button
onClick={() => navigate(`/tests/${test.id}/reject`)}
className="rounded p-1 text-gray-400 hover:bg-red-900/50 hover:text-red-400"
title="Reject"
>
<X className="h-4 w-4" />
</button>
</>
)}
</div>
<button
onClick={() => navigate(`/tests/${test.id}`)}
className="rounded p-1 text-gray-400 hover:bg-gray-800 hover:text-cyan-400"
title="View Details"
>
<FileText className="h-4 w-4" />
</button>
</td>
</tr>
))}