From a620e646f01388746a744a08c272b92873956411 Mon Sep 17 00:00:00 2001 From: OlgunR Date: Thu, 11 Dec 2025 16:20:58 +0100 Subject: [PATCH] feat(overview): update envelope statistics and localization in AnalyticsWidgetSummary --- .../overview/view/overview-analytics-view.tsx | 32 ++++++++++++++++--- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/src/client/dd-hub-react/src/sections/overview/view/overview-analytics-view.tsx b/src/client/dd-hub-react/src/sections/overview/view/overview-analytics-view.tsx index 550c292..2c3bd77 100644 --- a/src/client/dd-hub-react/src/sections/overview/view/overview-analytics-view.tsx +++ b/src/client/dd-hub-react/src/sections/overview/view/overview-analytics-view.tsx @@ -51,6 +51,14 @@ export function OverviewAnalyticsView() { }, ]; + const envelopeStats = { + fullySigned: 140, + partiallySigned: 68, + declined: 26, + }; + + const envelopeTotal = envelopeStats.fullySigned + envelopeStats.partiallySigned + envelopeStats.declined; + useEffect(() => { let active = true; @@ -123,15 +131,29 @@ export function OverviewAnalyticsView() { } + icon={Envelopes versendet} chart={{ - categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug'], - series: [56, 30, 23, 54, 47, 40, 62, 73], + categories: ['Vollständig signiert', 'Teilsigniert', 'Abgelehnt'], + series: [envelopeStats.fullySigned, envelopeStats.partiallySigned, envelopeStats.declined], }} + details={[ + { + label: 'Vollständig signiert', + value: envelopeStats.fullySigned, + }, + { + label: 'Teilsigniert', + value: envelopeStats.partiallySigned, + }, + { + label: 'Abgelehnt', + value: envelopeStats.declined, + }, + ]} />