@ammarkhalidfarooq/dashboard-package 0.6.87 → 0.6.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/RenderChartCard.cjs.js +1 -1
- package/dist/RenderChartCard.cjs.js.map +1 -1
- package/dist/RenderChartCard.es.js +1 -1
- package/dist/RenderChartCard.es.js.map +1 -1
- package/dist/index.cjs.js +48 -48
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +48 -48
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -733,7 +733,7 @@ var RenderChartCard = function RenderChartCard(_ref) {
|
|
|
733
733
|
display: "block",
|
|
734
734
|
mb: 1.5
|
|
735
735
|
},
|
|
736
|
-
children: item.subtitle || "Last ".concat(daysLabel, "
|
|
736
|
+
children: item.subtitle || "Last ".concat(daysLabel, " - daily aggregation")
|
|
737
737
|
}), /*#__PURE__*/jsxs(Box, {
|
|
738
738
|
sx: {
|
|
739
739
|
display: "flex",
|
|
@@ -1505,7 +1505,7 @@ var parseAvgDonationDetail = function parseAvgDonationDetail() {
|
|
|
1505
1505
|
return {
|
|
1506
1506
|
median: median,
|
|
1507
1507
|
topDecile: topDecile
|
|
1508
|
-
// detail: `Median $${formatNumber(median)}
|
|
1508
|
+
// detail: `Median $${formatNumber(median)} - top decile $${formatNumber(topDecile)}`,
|
|
1509
1509
|
};
|
|
1510
1510
|
};
|
|
1511
1511
|
|
|
@@ -1571,7 +1571,7 @@ var buildReportData = function buildReportData() {
|
|
|
1571
1571
|
var hero = {
|
|
1572
1572
|
value: "$".concat(formatNumber(totalRaised)),
|
|
1573
1573
|
trend: "".concat(formatTrend((_growth$totalRevenue = growth === null || growth === void 0 ? void 0 : growth.totalRevenue) !== null && _growth$totalRevenue !== void 0 ? _growth$totalRevenue : 18), " vs pp"),
|
|
1574
|
-
detail: "".concat(passThrough, "
|
|
1574
|
+
detail: "".concat(passThrough, " - ").concat(formatNumber(totalDonors), " donors - $").concat(formatNumber(Number(avgDonation).toFixed(2)), " avg - ").concat(formatNumber(totalVisits), " visits")
|
|
1575
1575
|
};
|
|
1576
1576
|
var metrics = [{
|
|
1577
1577
|
title: "Net Raised",
|
|
@@ -1582,7 +1582,7 @@ var buildReportData = function buildReportData() {
|
|
|
1582
1582
|
title: "Total Donors",
|
|
1583
1583
|
value: formatNumber(totalDonors),
|
|
1584
1584
|
trend: formatTrend((_growth$totalDonation = growth === null || growth === void 0 ? void 0 : growth.totalDonations) !== null && _growth$totalDonation !== void 0 ? _growth$totalDonation : 16.8),
|
|
1585
|
-
detail: "".concat(formatNumber(newDonors), " new
|
|
1585
|
+
detail: "".concat(formatNumber(newDonors), " new - ").concat(formatNumber(returningDonors), " returning")
|
|
1586
1586
|
}, {
|
|
1587
1587
|
title: "Avg Donation",
|
|
1588
1588
|
value: "$".concat(formatNumber(avgDonation)),
|
|
@@ -1592,7 +1592,7 @@ var buildReportData = function buildReportData() {
|
|
|
1592
1592
|
title: "ROAS",
|
|
1593
1593
|
value: "".concat(formatNumber((_apiData$roasCard = apiData === null || apiData === void 0 ? void 0 : apiData.roasCard) !== null && _apiData$roasCard !== void 0 ? _apiData$roasCard : 0), "x"),
|
|
1594
1594
|
trend: formatTrend((_apiData$roasCardPrev = apiData === null || apiData === void 0 ? void 0 : apiData.roasCardPrev) !== null && _apiData$roasCardPrev !== void 0 ? _apiData$roasCardPrev : 0, "x"),
|
|
1595
|
-
detail: "$".concat(formatNumber((_apiData$adSpend = apiData === null || apiData === void 0 ? void 0 : apiData.adSpend) !== null && _apiData$adSpend !== void 0 ? _apiData$adSpend : 0), " spend
|
|
1595
|
+
detail: "$".concat(formatNumber((_apiData$adSpend = apiData === null || apiData === void 0 ? void 0 : apiData.adSpend) !== null && _apiData$adSpend !== void 0 ? _apiData$adSpend : 0), " spend - $").concat(formatNumber((_apiData$attributedRe = apiData === null || apiData === void 0 ? void 0 : apiData.attributedRevenue) !== null && _apiData$attributedRe !== void 0 ? _apiData$attributedRe : 0), " attrib.")
|
|
1596
1596
|
}, {
|
|
1597
1597
|
title: "Conversion",
|
|
1598
1598
|
value: "".concat(formatNumber(convRate), "%"),
|
|
@@ -1609,7 +1609,7 @@ var buildReportData = function buildReportData() {
|
|
|
1609
1609
|
var hasStackedData = (stackedTR === null || stackedTR === void 0 ? void 0 : stackedTR.paidAds) || (stackedTR === null || stackedTR === void 0 ? void 0 : stackedTR.email) || (stackedTR === null || stackedTR === void 0 ? void 0 : stackedTR.organic);
|
|
1610
1610
|
var mainChart = {
|
|
1611
1611
|
label: "Total revenue trend",
|
|
1612
|
-
subtitle: "Last 30 days
|
|
1612
|
+
subtitle: "Last 30 days - daily aggregation",
|
|
1613
1613
|
value: "$".concat(formatNumber(totalRaised)),
|
|
1614
1614
|
trend: "".concat(formatTrend((_growth$totalRevenue2 = growth === null || growth === void 0 ? void 0 : growth.totalRevenue) !== null && _growth$totalRevenue2 !== void 0 ? _growth$totalRevenue2 : 18), " vs pp"),
|
|
1615
1615
|
hideControls: true,
|
|
@@ -2166,7 +2166,7 @@ var DonorGeographyPanel = function DonorGeographyPanel(_ref9) {
|
|
|
2166
2166
|
barColor = _ref9$barColor === void 0 ? "#6366F1" : _ref9$barColor;
|
|
2167
2167
|
return /*#__PURE__*/jsx(Panel, {
|
|
2168
2168
|
title: "Donor geography",
|
|
2169
|
-
subtitle: "Top countries
|
|
2169
|
+
subtitle: "Top countries - ".concat(formatNumber(totalDonors), " total"),
|
|
2170
2170
|
children: (geoList.length ? geoList.slice(0, 6) : []).map(function (g, i) {
|
|
2171
2171
|
var _g$percentage;
|
|
2172
2172
|
return /*#__PURE__*/jsxs("div", {
|
|
@@ -2200,7 +2200,7 @@ var DonorGeographyPanel = function DonorGeographyPanel(_ref9) {
|
|
|
2200
2200
|
color: "#111827",
|
|
2201
2201
|
flexShrink: 0
|
|
2202
2202
|
},
|
|
2203
|
-
children: [formatNumber(g.value), "
|
|
2203
|
+
children: [formatNumber(g.value), " - ", formatNumber(g.percentage), "%"]
|
|
2204
2204
|
})]
|
|
2205
2205
|
}), /*#__PURE__*/jsx("div", {
|
|
2206
2206
|
style: {
|
|
@@ -2396,7 +2396,7 @@ var DonationTypePanel = function DonationTypePanel(_ref1) {
|
|
|
2396
2396
|
oneTimeTotal = _parseDonationTypeCha.oneTimeTotal;
|
|
2397
2397
|
return /*#__PURE__*/jsxs(Panel, {
|
|
2398
2398
|
title: "Recurring vs one-time",
|
|
2399
|
-
subtitle: "Donation type
|
|
2399
|
+
subtitle: "Donation type - weekly",
|
|
2400
2400
|
children: [/*#__PURE__*/jsx("div", {
|
|
2401
2401
|
style: {
|
|
2402
2402
|
display: "flex",
|
|
@@ -2721,7 +2721,7 @@ var PageHeader = function PageHeader(_ref12) {
|
|
|
2721
2721
|
color: THEME.muted,
|
|
2722
2722
|
marginTop: 1
|
|
2723
2723
|
},
|
|
2724
|
-
children: [windowLabel, "
|
|
2724
|
+
children: [windowLabel, " - Generated ", generatedLabel]
|
|
2725
2725
|
})]
|
|
2726
2726
|
}), /*#__PURE__*/jsxs("div", {
|
|
2727
2727
|
style: {
|
|
@@ -2777,7 +2777,7 @@ var PageFooter = function PageFooter(_ref13) {
|
|
|
2777
2777
|
fontSize: 8,
|
|
2778
2778
|
color: THEME.muted
|
|
2779
2779
|
},
|
|
2780
|
-
children: ["Confidential
|
|
2780
|
+
children: ["Confidential - Generated by Dashboard - ", generatedLabel, " \xA0\xA0 Page ", page, " of 2 - madinah.com"]
|
|
2781
2781
|
})
|
|
2782
2782
|
});
|
|
2783
2783
|
};
|
|
@@ -2803,7 +2803,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
2803
2803
|
month: "short",
|
|
2804
2804
|
day: "numeric",
|
|
2805
2805
|
year: "numeric"
|
|
2806
|
-
}, estOptions)) + "
|
|
2806
|
+
}, estOptions)) + " - " + now.toLocaleTimeString("en-US", _objectSpread2({
|
|
2807
2807
|
hour: "2-digit",
|
|
2808
2808
|
minute: "2-digit"
|
|
2809
2809
|
}, estOptions)) + " EST";
|
|
@@ -3016,7 +3016,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3016
3016
|
title: "Total Donors",
|
|
3017
3017
|
value: ((_metricByTitle$Total = metricByTitle["Total Donors"]) === null || _metricByTitle$Total === void 0 ? void 0 : _metricByTitle$Total.value) || "".concat(formatNumber(totalDonors)),
|
|
3018
3018
|
trend: ((_metricByTitle$Total2 = metricByTitle["Total Donors"]) === null || _metricByTitle$Total2 === void 0 ? void 0 : _metricByTitle$Total2.trend) || signed((growth === null || growth === void 0 ? void 0 : growth.totalDonations) || 16.8),
|
|
3019
|
-
detail: ((_metricByTitle$Total3 = metricByTitle["Total Donors"]) === null || _metricByTitle$Total3 === void 0 ? void 0 : _metricByTitle$Total3.detail) || "".concat(formatNumber(newDonors), " new
|
|
3019
|
+
detail: ((_metricByTitle$Total3 = metricByTitle["Total Donors"]) === null || _metricByTitle$Total3 === void 0 ? void 0 : _metricByTitle$Total3.detail) || "".concat(formatNumber(newDonors), " new - ").concat(formatNumber(returningDonors), " returning")
|
|
3020
3020
|
}), /*#__PURE__*/jsx(KpiCard, {
|
|
3021
3021
|
title: "Avg Donation",
|
|
3022
3022
|
value: kpi$(avgDonation),
|
|
@@ -3033,7 +3033,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3033
3033
|
title: "ROAS",
|
|
3034
3034
|
value: kpiRoas((_apiData$roasCard = apiData === null || apiData === void 0 ? void 0 : apiData.roasCard) !== null && _apiData$roasCard !== void 0 ? _apiData$roasCard : 0),
|
|
3035
3035
|
trend: ((_metricByTitle$ROAS = metricByTitle.ROAS) === null || _metricByTitle$ROAS === void 0 ? void 0 : _metricByTitle$ROAS.trend) || signed((_apiData$roasCardPrev = apiData === null || apiData === void 0 ? void 0 : apiData.roasCardPrev) !== null && _apiData$roasCardPrev !== void 0 ? _apiData$roasCardPrev : 0, "×"),
|
|
3036
|
-
detail: ((_metricByTitle$ROAS2 = metricByTitle.ROAS) === null || _metricByTitle$ROAS2 === void 0 ? void 0 : _metricByTitle$ROAS2.detail) || "".concat(d$((_apiData$adSpend = apiData === null || apiData === void 0 ? void 0 : apiData.adSpend) !== null && _apiData$adSpend !== void 0 ? _apiData$adSpend : 0), " spend
|
|
3036
|
+
detail: ((_metricByTitle$ROAS2 = metricByTitle.ROAS) === null || _metricByTitle$ROAS2 === void 0 ? void 0 : _metricByTitle$ROAS2.detail) || "".concat(d$((_apiData$adSpend = apiData === null || apiData === void 0 ? void 0 : apiData.adSpend) !== null && _apiData$adSpend !== void 0 ? _apiData$adSpend : 0), " spend - ").concat(d$((_apiData$attributedRe = apiData === null || apiData === void 0 ? void 0 : apiData.attributedRevenue) !== null && _apiData$attributedRe !== void 0 ? _apiData$attributedRe : 0), " attrib.")
|
|
3037
3037
|
}), /*#__PURE__*/jsx(KpiCard, {
|
|
3038
3038
|
title: "Conversion",
|
|
3039
3039
|
value: kpiPct(convRate),
|
|
@@ -3077,7 +3077,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3077
3077
|
marginTop: 2,
|
|
3078
3078
|
lineHeight: 1.15
|
|
3079
3079
|
},
|
|
3080
|
-
children: ["Last ", daysLabel, "
|
|
3080
|
+
children: ["Last ", daysLabel, " - daily aggregation"]
|
|
3081
3081
|
}), /*#__PURE__*/jsxs("div", {
|
|
3082
3082
|
style: {
|
|
3083
3083
|
display: "flex",
|
|
@@ -3263,7 +3263,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3263
3263
|
fontWeight: 700,
|
|
3264
3264
|
color: "#111827"
|
|
3265
3265
|
},
|
|
3266
|
-
children: [formatNumber(newDonors), "
|
|
3266
|
+
children: [formatNumber(newDonors), " - ", newPct, "%"]
|
|
3267
3267
|
})]
|
|
3268
3268
|
}), /*#__PURE__*/jsxs("div", {
|
|
3269
3269
|
style: {
|
|
@@ -3299,7 +3299,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3299
3299
|
fontWeight: 700,
|
|
3300
3300
|
color: "#111827"
|
|
3301
3301
|
},
|
|
3302
|
-
children: [formatNumber(returningDonors), "
|
|
3302
|
+
children: [formatNumber(returningDonors), " - ", retPct, "%"]
|
|
3303
3303
|
})]
|
|
3304
3304
|
}), /*#__PURE__*/jsx(Divider, {
|
|
3305
3305
|
mb: 6
|
|
@@ -3350,7 +3350,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3350
3350
|
barColor: C.indigo
|
|
3351
3351
|
}), /*#__PURE__*/jsxs(Panel, {
|
|
3352
3352
|
title: "Refunds & chargebacks",
|
|
3353
|
-
subtitle: "Trust health
|
|
3353
|
+
subtitle: "Trust health - ".concat(numberOfDays, "-day window"),
|
|
3354
3354
|
children: [/*#__PURE__*/jsxs("div", {
|
|
3355
3355
|
style: {
|
|
3356
3356
|
display: "flex",
|
|
@@ -3426,11 +3426,11 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3426
3426
|
color: "#6B7280",
|
|
3427
3427
|
lineHeight: 1.45
|
|
3428
3428
|
},
|
|
3429
|
-
children: [d$(totalRefundedAmount), " refunded
|
|
3429
|
+
children: [d$(totalRefundedAmount), " refunded - ", formatNumber(totalChargebacks), " chargebacks - ", formatNumber(lostChargebacks), " cases lost"]
|
|
3430
3430
|
})]
|
|
3431
3431
|
}), /*#__PURE__*/jsx(Panel, {
|
|
3432
3432
|
title: "Traffic source",
|
|
3433
|
-
subtitle: "Revenue by channel
|
|
3433
|
+
subtitle: "Revenue by channel - ".concat(daysLabel),
|
|
3434
3434
|
children: /*#__PURE__*/jsx(MiniTable, {
|
|
3435
3435
|
head: ["Source", "Revenue", "Share"],
|
|
3436
3436
|
rows: [].concat(_toConsumableArray(trafficItems.map(function (t) {
|
|
@@ -3446,7 +3446,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3446
3446
|
},
|
|
3447
3447
|
children: [/*#__PURE__*/jsxs(Panel, {
|
|
3448
3448
|
title: "Order Bump",
|
|
3449
|
-
subtitle: "Revenue trend
|
|
3449
|
+
subtitle: "Revenue trend - last ".concat(daysLabel),
|
|
3450
3450
|
children: [/*#__PURE__*/jsx("div", {
|
|
3451
3451
|
style: {
|
|
3452
3452
|
fontSize: 17,
|
|
@@ -3522,7 +3522,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3522
3522
|
primaryColor: C.cyan
|
|
3523
3523
|
}), /*#__PURE__*/jsxs(Panel, {
|
|
3524
3524
|
title: "Referrals",
|
|
3525
|
-
subtitle: "Revenue trend
|
|
3525
|
+
subtitle: "Revenue trend - last ".concat(daysLabel),
|
|
3526
3526
|
children: [/*#__PURE__*/jsx("div", {
|
|
3527
3527
|
style: {
|
|
3528
3528
|
fontSize: 17,
|
|
@@ -4061,7 +4061,7 @@ var ReportHeader = function ReportHeader(_ref) {
|
|
|
4061
4061
|
month: "short",
|
|
4062
4062
|
day: "numeric",
|
|
4063
4063
|
year: "numeric"
|
|
4064
|
-
}) + "
|
|
4064
|
+
}) + " - " + now.toLocaleTimeString("en-US", {
|
|
4065
4065
|
hour: "2-digit",
|
|
4066
4066
|
minute: "2-digit"
|
|
4067
4067
|
}) + " GMT";
|
|
@@ -4132,7 +4132,7 @@ var ReportHeader = function ReportHeader(_ref) {
|
|
|
4132
4132
|
fontSize: exportMode ? 10 : 12,
|
|
4133
4133
|
color: "#9CA3AF"
|
|
4134
4134
|
},
|
|
4135
|
-
children: ["30-day window
|
|
4135
|
+
children: ["30-day window - Generated ", generatedLabel]
|
|
4136
4136
|
})]
|
|
4137
4137
|
})]
|
|
4138
4138
|
}), /*#__PURE__*/jsxs(Box, {
|
|
@@ -4336,11 +4336,11 @@ var DonorMixCard = function DonorMixCard(_ref) {
|
|
|
4336
4336
|
_ref$items = _ref.items,
|
|
4337
4337
|
items = _ref$items === void 0 ? [{
|
|
4338
4338
|
label: "New donors",
|
|
4339
|
-
val: "146
|
|
4339
|
+
val: "146 - 68%",
|
|
4340
4340
|
color: "rgb(99, 99, 230)"
|
|
4341
4341
|
}, {
|
|
4342
4342
|
label: "Returning",
|
|
4343
|
-
val: "69
|
|
4343
|
+
val: "69 - 32%",
|
|
4344
4344
|
color: "#10B981"
|
|
4345
4345
|
}] : _ref$items,
|
|
4346
4346
|
_ref$showBottomSummar = _ref.showBottomSummary,
|
|
@@ -4557,7 +4557,7 @@ var TrafficSourceCard = function TrafficSourceCard(_ref) {
|
|
|
4557
4557
|
_ref$numberOfDays = _ref.numberOfDays,
|
|
4558
4558
|
numberOfDays = _ref$numberOfDays === void 0 ? 30 : _ref$numberOfDays;
|
|
4559
4559
|
var daysLabel = "".concat(numberOfDays, " day").concat(numberOfDays === 1 ? "" : "s");
|
|
4560
|
-
var resolvedSubtitle = subtitle || "Revenue by channel
|
|
4560
|
+
var resolvedSubtitle = subtitle || "Revenue by channel - ".concat(daysLabel);
|
|
4561
4561
|
var paidAdsColor = "rgb(99, 99, 230)";
|
|
4562
4562
|
var organicColor = "#10B981";
|
|
4563
4563
|
var emailColor = "#0EA5E9";
|
|
@@ -5715,7 +5715,7 @@ var KeywordsCard = function KeywordsCard(_ref3) {
|
|
|
5715
5715
|
var daysLabel = "".concat(numberOfDays, " day").concat(numberOfDays === 1 ? "" : "s");
|
|
5716
5716
|
return /*#__PURE__*/jsx(CardWrapper, {
|
|
5717
5717
|
title: "Top organic keywords",
|
|
5718
|
-
subtitle: "Search terms ranked by clicks
|
|
5718
|
+
subtitle: "Search terms ranked by clicks - last ".concat(daysLabel),
|
|
5719
5719
|
children: !available || data.length === 0 ? /*#__PURE__*/jsx(Typography, {
|
|
5720
5720
|
sx: {
|
|
5721
5721
|
fontSize: "13px",
|
|
@@ -5861,27 +5861,27 @@ var GeographyCard = function GeographyCard(_ref4) {
|
|
|
5861
5861
|
dataProp = _ref4.data;
|
|
5862
5862
|
var data = dataProp !== null && dataProp !== void 0 ? dataProp : [{
|
|
5863
5863
|
country: "United States",
|
|
5864
|
-
stats: "3,120
|
|
5864
|
+
stats: "3,120 - 37%",
|
|
5865
5865
|
percentage: 37
|
|
5866
5866
|
}, {
|
|
5867
5867
|
country: "United Kingdom",
|
|
5868
|
-
stats: "1,840
|
|
5868
|
+
stats: "1,840 - 22%",
|
|
5869
5869
|
percentage: 22
|
|
5870
5870
|
}, {
|
|
5871
5871
|
country: "Canada",
|
|
5872
|
-
stats: "920
|
|
5872
|
+
stats: "920 - 11%",
|
|
5873
5873
|
percentage: 11
|
|
5874
5874
|
}, {
|
|
5875
5875
|
country: "Australia",
|
|
5876
|
-
stats: "650
|
|
5876
|
+
stats: "650 - 8%",
|
|
5877
5877
|
percentage: 8
|
|
5878
5878
|
}, {
|
|
5879
5879
|
country: "UAE",
|
|
5880
|
-
stats: "580
|
|
5880
|
+
stats: "580 - 7%",
|
|
5881
5881
|
percentage: 7
|
|
5882
5882
|
}, {
|
|
5883
5883
|
country: "Other",
|
|
5884
|
-
stats: "1,310
|
|
5884
|
+
stats: "1,310 - 16%",
|
|
5885
5885
|
percentage: 16
|
|
5886
5886
|
}];
|
|
5887
5887
|
return /*#__PURE__*/jsx(CardWrapper, {
|
|
@@ -6500,7 +6500,7 @@ var PaidDonorGeographyCard = function PaidDonorGeographyCard(_ref9) {
|
|
|
6500
6500
|
minWidth: "60px",
|
|
6501
6501
|
textAlign: "right"
|
|
6502
6502
|
},
|
|
6503
|
-
children: [item.value, "
|
|
6503
|
+
children: [item.value, " - ", item.percentage, "%"]
|
|
6504
6504
|
})]
|
|
6505
6505
|
}, index);
|
|
6506
6506
|
})]
|
|
@@ -6736,7 +6736,7 @@ var RefundsChargebacksCard = function RefundsChargebacksCard(_ref) {
|
|
|
6736
6736
|
textAlign: "left",
|
|
6737
6737
|
lineHeight: 1.15
|
|
6738
6738
|
},
|
|
6739
|
-
children: ["Trust health
|
|
6739
|
+
children: ["Trust health - ", windowLabel]
|
|
6740
6740
|
})]
|
|
6741
6741
|
}), /*#__PURE__*/jsxs(Box, {
|
|
6742
6742
|
sx: {
|
|
@@ -6854,7 +6854,7 @@ var RefundsChargebacksCard = function RefundsChargebacksCard(_ref) {
|
|
|
6854
6854
|
fontWeight: 500,
|
|
6855
6855
|
textAlign: "left"
|
|
6856
6856
|
},
|
|
6857
|
-
children: ["$", fmt(totalRefundedAmount), " refunded
|
|
6857
|
+
children: ["$", fmt(totalRefundedAmount), " refunded - ", totalChargebacks, " chargebacks - ", totalRefunds, " refunds"]
|
|
6858
6858
|
})
|
|
6859
6859
|
}), /*#__PURE__*/jsxs(Box, {
|
|
6860
6860
|
sx: {
|
|
@@ -6977,11 +6977,11 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
|
|
|
6977
6977
|
centerValue: String(totalMix),
|
|
6978
6978
|
items: [{
|
|
6979
6979
|
label: "New donors",
|
|
6980
|
-
val: "".concat(newDonors, "
|
|
6980
|
+
val: "".concat(newDonors, " - ").concat(newPct, "%"),
|
|
6981
6981
|
color: "rgb(99, 99, 230)"
|
|
6982
6982
|
}, {
|
|
6983
6983
|
label: "Returning",
|
|
6984
|
-
val: "".concat(returningDonors, "
|
|
6984
|
+
val: "".concat(returningDonors, " - ").concat(retPct, "%"),
|
|
6985
6985
|
color: "#10B981"
|
|
6986
6986
|
}],
|
|
6987
6987
|
bottomSummaryValue: "$".concat(formatNumber(avgGift)),
|
|
@@ -7031,11 +7031,11 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
|
|
|
7031
7031
|
centerValue: String(totalMix),
|
|
7032
7032
|
items: [{
|
|
7033
7033
|
label: "New donors",
|
|
7034
|
-
val: "".concat(newDonors, "
|
|
7034
|
+
val: "".concat(newDonors, " - ").concat(newPct, "%"),
|
|
7035
7035
|
color: "rgb(99, 99, 230)"
|
|
7036
7036
|
}, {
|
|
7037
7037
|
label: "Returning",
|
|
7038
|
-
val: "".concat(returningDonors, "
|
|
7038
|
+
val: "".concat(returningDonors, " - ").concat(retPct, "%"),
|
|
7039
7039
|
color: "#10B981"
|
|
7040
7040
|
}],
|
|
7041
7041
|
bottomSummaryValue: "$".concat(formatNumber(avgGift)),
|
|
@@ -7067,7 +7067,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
|
|
|
7067
7067
|
var bottomCards = /*#__PURE__*/jsxs(Fragment, {
|
|
7068
7068
|
children: [/*#__PURE__*/jsx(MetricSparklineCard, {
|
|
7069
7069
|
title: "Order Bump",
|
|
7070
|
-
subtitle: "Revenue trend
|
|
7070
|
+
subtitle: "Revenue trend - last ".concat(daysLabel),
|
|
7071
7071
|
value: "$".concat(formatNumber((orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.totalRevenue) || 0)),
|
|
7072
7072
|
trend: "".concat((orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.growthPercentage) >= 0 ? "▲" : "▼", " ").concat(Math.abs((orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.growthPercentage) || 0).toFixed(1), "% vs pp"),
|
|
7073
7073
|
chartData: (orderBumpData === null || orderBumpData === void 0 || (_orderBumpData$chart = orderBumpData.chart) === null || _orderBumpData$chart === void 0 ? void 0 : _orderBumpData$chart.map(function (item) {
|
|
@@ -7110,7 +7110,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
|
|
|
7110
7110
|
sx: CARD_SX
|
|
7111
7111
|
}), /*#__PURE__*/jsx(MetricSparklineCard, {
|
|
7112
7112
|
title: "Referrals",
|
|
7113
|
-
subtitle: "Revenue trend
|
|
7113
|
+
subtitle: "Revenue trend - last ".concat(daysLabel),
|
|
7114
7114
|
value: "$".concat(formatNumber((referralData === null || referralData === void 0 ? void 0 : referralData.totalRevenue) || 0)),
|
|
7115
7115
|
trend: "".concat((referralData === null || referralData === void 0 ? void 0 : referralData.growthPercentage) >= 0 ? "▲" : "▼", " ").concat(Math.abs((referralData === null || referralData === void 0 ? void 0 : referralData.growthPercentage) || 0).toFixed(1), "% vs pp"),
|
|
7116
7116
|
chartData: (referralData === null || referralData === void 0 || (_referralData$chartDa = referralData.chartData) === null || _referralData$chartDa === void 0 ? void 0 : _referralData$chartDa.map(function (item) {
|
|
@@ -7612,7 +7612,7 @@ var RecurringDonationAmounts = function RecurringDonationAmounts() {
|
|
|
7612
7612
|
minWidth: "60px",
|
|
7613
7613
|
textAlign: "right"
|
|
7614
7614
|
},
|
|
7615
|
-
children: "".concat(item.plans, "
|
|
7615
|
+
children: "".concat(item.plans, " - ").concat(item.share, "%")
|
|
7616
7616
|
})]
|
|
7617
7617
|
}, index);
|
|
7618
7618
|
})
|
|
@@ -18795,7 +18795,7 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
18795
18795
|
var _item$visitors2, _item$percentage, _item$percentage2;
|
|
18796
18796
|
return {
|
|
18797
18797
|
country: item.country || "Unknown",
|
|
18798
|
-
stats: "".concat(formatNumber((_item$visitors2 = item.visitors) !== null && _item$visitors2 !== void 0 ? _item$visitors2 : 0), "
|
|
18798
|
+
stats: "".concat(formatNumber((_item$visitors2 = item.visitors) !== null && _item$visitors2 !== void 0 ? _item$visitors2 : 0), " - ").concat(Number((_item$percentage = item.percentage) !== null && _item$percentage !== void 0 ? _item$percentage : 0).toFixed(0), "%"),
|
|
18799
18799
|
percentage: Number((_item$percentage2 = item.percentage) !== null && _item$percentage2 !== void 0 ? _item$percentage2 : 0)
|
|
18800
18800
|
};
|
|
18801
18801
|
});
|
|
@@ -19788,7 +19788,7 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19788
19788
|
},
|
|
19789
19789
|
children: /*#__PURE__*/jsx(EmailTrendCard, {
|
|
19790
19790
|
title: "Open rate trend",
|
|
19791
|
-
subtitle: "Daily
|
|
19791
|
+
subtitle: "Daily - ".concat(daysLabel),
|
|
19792
19792
|
value: hasEmailOverview ? "".concat(Number((_deliverability$openR2 = deliverability.openRate) !== null && _deliverability$openR2 !== void 0 ? _deliverability$openR2 : 0).toFixed(2), "%") : "42.3%",
|
|
19793
19793
|
trend: hasEmailOverview ? formatTrendBadge(deliverabilityGrowth.openRate, true) : "2.1pp",
|
|
19794
19794
|
trendData: hasEmailOverview ? apiData === null || apiData === void 0 ? void 0 : apiData.openRateTrend : undefined,
|
|
@@ -19818,7 +19818,7 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19818
19818
|
},
|
|
19819
19819
|
children: /*#__PURE__*/jsx(EmailTrendCard, {
|
|
19820
19820
|
title: "Clicks trend",
|
|
19821
|
-
subtitle: "Total + unique
|
|
19821
|
+
subtitle: "Total + unique - ".concat(daysLabel),
|
|
19822
19822
|
value: hasEmailOverview ? formatNumber((_deliverability$total2 = deliverability.totalClicks) !== null && _deliverability$total2 !== void 0 ? _deliverability$total2 : 0) : "1,612",
|
|
19823
19823
|
trend: hasEmailOverview ? formatTrendBadge(deliverabilityGrowth.totalClicks) : "14%",
|
|
19824
19824
|
trendSeries: hasEmailOverview ? [{
|
|
@@ -19862,7 +19862,7 @@ var EmailSection = function EmailSection(_ref) {
|
|
|
19862
19862
|
},
|
|
19863
19863
|
children: /*#__PURE__*/jsx(EmailTrendCard, {
|
|
19864
19864
|
title: "Bounce rate trend",
|
|
19865
|
-
subtitle: "Daily
|
|
19865
|
+
subtitle: "Daily - lower is better",
|
|
19866
19866
|
value: hasEmailOverview ? "".concat(Number((_deliverability$bounc2 = deliverability.bounceRate) !== null && _deliverability$bounc2 !== void 0 ? _deliverability$bounc2 : 0).toFixed(2), "%") : "1.8%",
|
|
19867
19867
|
trend: hasEmailOverview ? formatTrendBadge(deliverabilityGrowth.bounceRate, true) : "0.3pp",
|
|
19868
19868
|
trendData: hasEmailOverview ? apiData === null || apiData === void 0 ? void 0 : apiData.bounceRateTrend : undefined,
|