From f5180d4cf0688228b9698876595712889065edff Mon Sep 17 00:00:00 2001 From: adithiyan Date: Mon, 12 Oct 2026 22:34:50 +0530 Subject: [PATCH] style(dashboard): unify all widgets to cyan and purple/plum color theme --- .../dealsDashboard/CipherBizzDashboard.tsx | 84 +++++++++++-------- 1 file changed, 50 insertions(+), 34 deletions(-) diff --git a/src/feature-module/mainMenu/dealsDashboard/CipherBizzDashboard.tsx b/src/feature-module/mainMenu/dealsDashboard/CipherBizzDashboard.tsx index 0535aec..c5c8a3e 100644 --- a/src/feature-module/mainMenu/dealsDashboard/CipherBizzDashboard.tsx +++ b/src/feature-module/mainMenu/dealsDashboard/CipherBizzDashboard.tsx @@ -172,7 +172,7 @@ export const CipherBizzDashboard: React.FC = ({ }, [productRevenueData]); const productChartColors = [ - "#22C55E", "#EF4444", "#F59E0B", "#D946EF", "#2563EB", "#9333EA", "#0EA5E9", "#14B8A6", + "#38BDF8", "#A855F7", "#69235B", "#0284C7", "#C084FC", "#0EA5E9", "#7C3AED", "#67E8F9", ]; const headcountChartOptions: ApexOptions = { @@ -228,12 +228,14 @@ export const CipherBizzDashboard: React.FC = ({ }; }, [dealSourceData]); + const sourceChartColors = ["#38BDF8", "#A855F7", "#69235B", "#0284C7", "#C084FC"]; + const diversityChartOptions: ApexOptions = { chart: { type: "donut", height: 220, }, - colors: ["#10B981", "#EC4899", "#69235B", "#F59E0B", "#38BDF8"], + colors: sourceChartColors, labels: sourceChartData.labels, dataLabels: { enabled: false }, stroke: { width: 3, colors: ["#FFFFFF"] }, @@ -306,7 +308,7 @@ export const CipherBizzDashboard: React.FC = ({ }, }, }, - colors: ["#10B981", "#F59E0B", "#EF4444"], + colors: ["#38BDF8", "#A855F7", "#69235B"], labels: ["Won Value"], stroke: { lineCap: "round" }, }; @@ -318,10 +320,10 @@ export const CipherBizzDashboard: React.FC = ({ if (stages && stages.length > 0) { const palette = [ { bg: "#F8EBF6", color: "#69235B", icon: "ti ti-phone-call" }, - { bg: "#E4F6FC", color: "#0284C7", icon: "ti ti-certificate" }, - { bg: "#FEF6E8", color: "#D97706", icon: "ti ti-file-text" }, - { bg: "#EAF7EE", color: "#16A34A", icon: "ti ti-circle-check" }, - { bg: "#FDEBEC", color: "#E11D48", icon: "ti ti-circle-x" }, + { bg: "#E0F2FE", color: "#0284C7", icon: "ti ti-certificate" }, + { bg: "#F3E8FF", color: "#7C3AED", icon: "ti ti-file-text" }, + { bg: "#E0F7FA", color: "#0891B2", icon: "ti ti-scale" }, + { bg: "#F8EBF6", color: "#A855F7", icon: "ti ti-trophy" }, ]; return stages.slice(0, 5).map((s, idx) => ({ label: s.stage_name || s.name || `Stage ${idx + 1}`, @@ -330,11 +332,11 @@ export const CipherBizzDashboard: React.FC = ({ })); } return [ - { label: "Contacted", count: contactedLeads || 42, bg: "#FEF6E8", color: "#D97706", icon: "ti ti-phone-call" }, - { label: "Qualified", count: 28, bg: "#E4F6FC", color: "#0284C7", icon: "ti ti-certificate" }, - { label: "Proposal Sent", count: 19, bg: "#F8EBF6", color: "#69235B", icon: "ti ti-file-text" }, - { label: "Negotiation", count: 12, bg: "#EAF7EE", color: "#16A34A", icon: "ti ti-scale" }, - { label: "Closed Won", count: effectiveWonDeals || 15, bg: "#EAF7EE", color: "#16A34A", icon: "ti ti-trophy" }, + { label: "Contacted", count: contactedLeads || 42, bg: "#E0F2FE", color: "#0284C7", icon: "ti ti-phone-call" }, + { label: "Qualified", count: 28, bg: "#F8EBF6", color: "#69235B", icon: "ti ti-certificate" }, + { label: "Proposal Sent", count: 19, bg: "#F3E8FF", color: "#7C3AED", icon: "ti ti-file-text" }, + { label: "Negotiation", count: 12, bg: "#E0F7FA", color: "#0891B2", icon: "ti ti-scale" }, + { label: "Closed Won", count: effectiveWonDeals || 15, bg: "#F8EBF6", color: "#A855F7", icon: "ti ti-trophy" }, ]; }, [stages, contactedLeads, effectiveWonDeals]); @@ -460,7 +462,7 @@ export const CipherBizzDashboard: React.FC = ({
@@ -482,7 +484,7 @@ export const CipherBizzDashboard: React.FC = ({
@@ -504,7 +506,7 @@ export const CipherBizzDashboard: React.FC = ({
@@ -526,7 +528,7 @@ export const CipherBizzDashboard: React.FC = ({
@@ -548,7 +550,7 @@ export const CipherBizzDashboard: React.FC = ({
@@ -570,7 +572,7 @@ export const CipherBizzDashboard: React.FC = ({
@@ -707,14 +709,14 @@ export const CipherBizzDashboard: React.FC = ({ />
- {sourceChartData.labels.slice(0, 3).map((label, idx) => ( + {sourceChartData.labels.slice(0, 4).map((label, idx) => ( {label.toUpperCase()} @@ -754,19 +756,19 @@ export const CipherBizzDashboard: React.FC = ({
Won - + {wonRatio}%
Open - + {openRatio}%
Lost - + {lostRatio}%
@@ -825,7 +827,7 @@ export const CipherBizzDashboard: React.FC = ({ {contactedLeads}/{effectiveTotalLeads}
-
+
@@ -842,7 +844,7 @@ export const CipherBizzDashboard: React.FC = ({ {effectiveWonDeals}/{effectiveTotalDeals}
-
+
@@ -859,7 +861,7 @@ export const CipherBizzDashboard: React.FC = ({ {completedTodosCount}/{totalTodosCount}
-
+
@@ -895,7 +897,15 @@ export const CipherBizzDashboard: React.FC = ({
- {ev.date} + + {ev.date} +
{ev.title}
@@ -927,8 +937,8 @@ export const CipherBizzDashboard: React.FC = ({ style={{ width: "38px", height: "38px", - backgroundColor: "#F8EBF6", - color: "#69235B", + backgroundColor: i % 2 === 0 ? "#F8EBF6" : "#E0F2FE", + color: i % 2 === 0 ? "#69235B" : "#0284C7", fontSize: "13px", }} > @@ -944,8 +954,8 @@ export const CipherBizzDashboard: React.FC = ({ {emp.status} @@ -976,8 +986,8 @@ export const CipherBizzDashboard: React.FC = ({ style={{ width: "38px", height: "38px", - backgroundColor: "#E4F6FC", - color: "#0284C7", + backgroundColor: i % 2 === 0 ? "#E0F2FE" : "#F8EBF6", + color: i % 2 === 0 ? "#0284C7" : "#69235B", fontSize: "13px", }} > @@ -990,7 +1000,13 @@ export const CipherBizzDashboard: React.FC = ({ {deal.client}
- + {deal.value}