feat(05-03): policy-level BudgetSummary, incident-based BudgetAlertBanner, AgentEditor policy wiring
- BudgetSummary shows policy-level utilization bars when companyId provided, falls back to agent-level - BudgetAlertBanner loads open incidents for policy-based alerts (warn_threshold/hard_stop), falls back to agent thresholds - AgentEditor reads budget from budget_policies and writes budget as policy on save (D-11) - Dashboard passes companyId through to BudgetAlertBanner
This commit is contained in:
1 parent
3a8e4c40ad
commit
1c462d571c
5 files changed
+217
-46
No files matched your search
@@ -794,6 +794,7 @@ export function App() {
|
||||
{section === "overview" ? (
|
||||
<Dashboard
|
||||
companyName={currentCompany?.name}
|
||||
companyId={currentCompany?.id}
|
||||
agents={companyAgents}
|
||||
tasks={tasks}
|
||||
runs={runs}
|
||||
@@ -1142,7 +1143,7 @@ export function App() {
|
||||
}
|
||||
secondary={
|
||||
<Panel title="Budget posture">
|
||||
<BudgetSummary agents={companyAgents} costs={companyCosts} />
|
||||
<BudgetSummary agents={companyAgents} costs={companyCosts} companyId={currentCompany?.id} />
|
||||
</Panel>
|
||||
}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user