MCPcopy
hub / github.com/koala73/worldmonitor / getFeatureStatusCounts

Function getFeatureStatusCounts

src/settings-main.ts:91–97  ·  view source on GitHub ↗
(cat: SettingsCategory)

Source from the content-addressed store, hash-verified

89// ── Sidebar ──
90
91function getFeatureStatusCounts(cat: SettingsCategory): { ready: number; total: number } {
92 let ready = 0;
93 for (const fid of cat.features) {
94 if (isFeatureAvailable(fid)) ready++;
95 }
96 return { ready, total: cat.features.length };
97}
98
99function getTotalProgress(): { ready: number; total: number } {
100 let ready = 0;

Callers 2

renderSidebarFunction · 0.85
renderOverviewFunction · 0.85

Calls 1

isFeatureAvailableFunction · 0.90

Tested by

no test coverage detected