mirror of
https://github.com/Dvorinka/Primora.git
synced 2026-10-28 07:41:23 +00:00
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:
1 parent
e25eb92339
commit
23186e38b8
8 files changed
+71
-2
No files matched your search
@@ -6,6 +6,7 @@ import {
|
||||
IconMembers,
|
||||
IconAudit,
|
||||
IconCollections,
|
||||
IconIntegrations,
|
||||
IconChevronRight,
|
||||
} from "./Icons";
|
||||
|
||||
@@ -110,6 +111,12 @@ export function ProjectDashboard(props: ProjectDashboardProps) {
|
||||
icon: IconMembers,
|
||||
view: "members",
|
||||
},
|
||||
{
|
||||
title: "Integrations",
|
||||
sub: `${overview()?.integration_count ?? 0} connectors · ${overview()?.webhook_count ?? 0} webhooks`,
|
||||
icon: IconIntegrations,
|
||||
view: "integrations",
|
||||
},
|
||||
];
|
||||
|
||||
const audit = () => (props.recentAudit ?? []).slice(0, 6);
|
||||
|
||||
@@ -511,6 +511,8 @@ class DemoService {
|
||||
pending_invitation_count: invitations.filter((i) => i.status === OrganizationInvitation.status.PENDING).length,
|
||||
audit_events_24h: auditLogs.length,
|
||||
last_audit_at: auditLogs[0]?.created_at ?? null,
|
||||
integration_count: demoIntegrations.length,
|
||||
webhook_count: demoWebhooks.filter((w) => w.enabled).length,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user