feat: integration/webhook counts in project overview

ProjectOverview gains integration_count + webhook_count (enabled only);
dashboard Resources list gets an Integrations row linking to the new
view. Covers the "dashboard widget if cheap" Phase 4 item.

Authored By: TDvorak <[email protected]>
This commit is contained in:
Tomas Dvorak committed 2026-09-16 19:18:15 +02:00
1 parent e25eb92339
commit 23186e38b8
8 files changed
+71 -2

No files matched your search

@@ -179,6 +179,8 @@ type ProjectOverview struct {
PendingInvitationCount int64 `json:"pending_invitation_count"`
AuditEvents24h int64 `json:"audit_events_24h"`
LastAuditAt *time.Time `json:"last_audit_at,omitempty"`
IntegrationCount int64 `json:"integration_count"`
WebhookCount int64 `json:"webhook_count"`
}
type OrganizationMemberSummary struct {
@@ -586,6 +588,8 @@ func (s *PlatformService) GetProjectOverview(ctx context.Context, actor *models.
PendingInvitationCount: row.PendingInvitationCount,
AuditEvents24h: row.AuditEvents24h,
LastAuditAt: projectOverviewLastAuditAt(row.LastAuditAt),
IntegrationCount: row.IntegrationCount,
WebhookCount: row.WebhookCount,
}, nil
}