fix(techniques): remove broken validate/reject buttons from associated tests
Some checks failed
Aegis CI / lint-and-test (push) Has been cancelled
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:
@@ -12,8 +12,6 @@ import {
|
|||||||
FileText,
|
FileText,
|
||||||
ExternalLink,
|
ExternalLink,
|
||||||
Plus,
|
Plus,
|
||||||
Check,
|
|
||||||
X,
|
|
||||||
AlertTriangle,
|
AlertTriangle,
|
||||||
BookOpen,
|
BookOpen,
|
||||||
FlaskConical,
|
FlaskConical,
|
||||||
@@ -300,7 +298,6 @@ export default function TechniqueDetailPage() {
|
|||||||
<span className="text-gray-400">{formatDate(test.created_at)}</span>
|
<span className="text-gray-400">{formatDate(test.created_at)}</span>
|
||||||
</td>
|
</td>
|
||||||
<td className="py-3 pl-4">
|
<td className="py-3 pl-4">
|
||||||
<div className="flex items-center gap-2">
|
|
||||||
<button
|
<button
|
||||||
onClick={() => navigate(`/tests/${test.id}`)}
|
onClick={() => navigate(`/tests/${test.id}`)}
|
||||||
className="rounded p-1 text-gray-400 hover:bg-gray-800 hover:text-cyan-400"
|
className="rounded p-1 text-gray-400 hover:bg-gray-800 hover:text-cyan-400"
|
||||||
@@ -308,25 +305,6 @@ export default function TechniqueDetailPage() {
|
|||||||
>
|
>
|
||||||
<FileText className="h-4 w-4" />
|
<FileText className="h-4 w-4" />
|
||||||
</button>
|
</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>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user