updateBadgeCounts() — astro Function Reference
Architecture documentation for the updateBadgeCounts() function in audit-list-window.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 32221baa_802a_ebe9_f857_0e416a1da4f4["updateBadgeCounts()"] 2820377c_6ad7_088f_76c0_f267b0ec96bf["DevToolbarAuditListWindow"] 32221baa_802a_ebe9_f857_0e416a1da4f4 -->|defined in| 2820377c_6ad7_088f_76c0_f267b0ec96bf b1f505f4_335a_1bb7_8c09_8beca849d12a["render()"] b1f505f4_335a_1bb7_8c09_8beca849d12a -->|calls| 32221baa_802a_ebe9_f857_0e416a1da4f4 style 32221baa_802a_ebe9_f857_0e416a1da4f4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/client/dev-toolbar/apps/audit/ui/audit-list-window.ts lines 399–406
updateBadgeCounts() {
for (const category of rulesCategories) {
const auditCount = this.audits.filter(
(audit) => getAuditCategory(audit.rule) === category.code,
).length;
this.badges[category.code].updateCount(auditCount);
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does updateBadgeCounts() do?
updateBadgeCounts() is a function in the astro codebase, defined in packages/astro/src/runtime/client/dev-toolbar/apps/audit/ui/audit-list-window.ts.
Where is updateBadgeCounts() defined?
updateBadgeCounts() is defined in packages/astro/src/runtime/client/dev-toolbar/apps/audit/ui/audit-list-window.ts at line 399.
What calls updateBadgeCounts()?
updateBadgeCounts() is called by 1 function(s): render.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free