This commit is contained in:
CanbiZ (MickLesk)
2026-02-10 08:23:04 +01:00
parent 53cf705799
commit a0ba6fbbd1
3 changed files with 9 additions and 26 deletions

View File

@@ -99,9 +99,8 @@ type ToolCount struct {
}
type AddonCount struct {
Addon string `json:"addon"`
ParentCT string `json:"parent_ct"`
Count int `json:"count"`
Addon string `json:"addon"`
Count int `json:"count"`
}
// FetchDashboardData retrieves aggregated data from PocketBase
@@ -193,9 +192,9 @@ func (p *PBClient) FetchDashboardData(ctx context.Context, days int) (*Dashboard
// === Extended metrics tracking ===
// Track tool executions
if r.Type == "tool" && r.ToolName != "" {
toolCounts[r.ToolName]++
// Track tool executions (type="tool", tool name is in nsapp)
if r.Type == "tool" && r.NSAPP != "" {
toolCounts[r.NSAPP]++
data.TotalTools++
}