fix(WP-0017/E3): Layer 3 error fixes — controllers and views
Fix compilation errors across 6 controllers and 29 views: import cleanup, ResponseException pattern for API auth, type fixes, unused import removal. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
58cad31042
commit
c40f11d657
35 changed files with 96 additions and 116 deletions
|
|
@ -24,10 +24,7 @@ instance View ShowView where
|
|||
{statusBadge agent.isActive}
|
||||
<a href={EditAgentRegistrationAction agent.id}
|
||||
class="px-3 py-1 text-sm bg-gray-100 hover:bg-gray-200 rounded">Edit</a>
|
||||
{when agent.isActive [hsx|
|
||||
<a href={DeactivateAgentAction agent.id}
|
||||
class="px-3 py-1 text-sm bg-red-50 text-red-700 hover:bg-red-100 rounded">Deactivate</a>
|
||||
|]}
|
||||
{when agent.isActive deactivateButton}
|
||||
<a href={ComputeAgentPerformanceAction agent.id}
|
||||
class="px-3 py-1 text-sm bg-blue-50 text-blue-700 hover:bg-blue-100 rounded">Compute Performance</a>
|
||||
</div>
|
||||
|
|
@ -62,6 +59,11 @@ instance View ShowView where
|
|||
</div>
|
||||
|]
|
||||
where
|
||||
deactivateButton = [hsx|
|
||||
<a href={DeactivateAgentAction agent.id}
|
||||
class="px-3 py-1 text-sm bg-red-50 text-red-700 hover:bg-red-100 rounded">Deactivate</a>
|
||||
|]
|
||||
|
||||
policiesTable = [hsx|
|
||||
<div class="bg-white shadow rounded-lg overflow-hidden">
|
||||
<table class="min-w-full divide-y divide-gray-200">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue