feat(FN-5227): add bulk controls for project agents
- Add project-scoped Pause All Agents and Resume All Agents actions to the AgentsView controls menu - Load bulk-action eligibility on menu open and skip ephemeral or ineligible agents - Surface bulk action confirmations, success/error toasts, and refresh agent state after updates - Add dashboard tests and agent docs coverage for the new bulk controls Fusion-Task-Id: FN-5227
This commit is contained in:
committed by
gsxdsm
parent
46fb3f0ef7
commit
1237168b71
@@ -146,6 +146,53 @@
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.agent-controls-bulk-actions {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-lg);
|
||||
padding: var(--space-xs);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-xs);
|
||||
}
|
||||
|
||||
.agent-controls-bulk-actions__label {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.agent-detail-bulk-menu-item {
|
||||
width: 100%;
|
||||
border: 0;
|
||||
border-radius: var(--radius-sm);
|
||||
background: transparent;
|
||||
color: var(--text);
|
||||
text-align: left;
|
||||
padding: var(--space-sm);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: calc(var(--space-xs) * 0.5);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.agent-detail-bulk-menu-item:hover:not(:disabled),
|
||||
.agent-detail-bulk-menu-item:focus-visible {
|
||||
outline: none;
|
||||
background: var(--card-hover);
|
||||
}
|
||||
|
||||
.agent-detail-bulk-menu-item:disabled {
|
||||
color: var(--text-muted);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.agent-detail-bulk-menu-item-hint {
|
||||
font-size: calc(var(--space-sm) + var(--space-xs) * 0.5);
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.agents-org-full-view {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
@@ -1409,6 +1456,10 @@
|
||||
min-height: calc(var(--space-lg) * 2 + var(--space-xs));
|
||||
}
|
||||
|
||||
.agent-controls-bulk-actions {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.agents-org-full-view {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
Reference in New Issue
Block a user