From b1d09eaebdb547c3d43295c7223cefe2cf88537b Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Wed, 8 Jan 2025 14:19:15 -0300 Subject: [PATCH] feat: Add DataFrame color mapping and rose variables (#5587) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 📝 (index.css): add new color variables for datatype rose and its foreground to improve design consistency 📝 (styleUtils.ts): add DataFrame color to nodeColorsName object for better visualization of dataframes in the frontend --- src/frontend/src/style/index.css | 6 ++++++ src/frontend/src/utils/styleUtils.ts | 1 + 2 files changed, 7 insertions(+) diff --git a/src/frontend/src/style/index.css b/src/frontend/src/style/index.css index 156a39add..8d1824a9f 100644 --- a/src/frontend/src/style/index.css +++ b/src/frontend/src/style/index.css @@ -114,6 +114,9 @@ --datatype-pink: 327.3 73.3% 97.1%; --datatype-pink-foreground: 333.3 71.4% 50.6%; + --datatype-rose: 346.8 77.2% 49.8%; + --datatype-rose-foreground: 355.6 100% 94.7%; + --datatype-yellow: 40.6 96.1% 40.4%; --datatype-yellow-foreground: 54.9 96.7% 88%; @@ -278,6 +281,9 @@ --datatype-pink: 327.4 87.1% 81.8%; --datatype-pink-foreground: 333.3 71.4% 50.6%; + --datatype-rose: 352.6 95.7% 81.8%; + --datatype-rose-foreground: 346.8 77.2% 49.8%; + --datatype-yellow: 50.4 97.8% 63.5%; --datatype-yellow-foreground: 40.6 96.1% 40.4%; diff --git a/src/frontend/src/utils/styleUtils.ts b/src/frontend/src/utils/styleUtils.ts index d8d11b344..a85c9a571 100644 --- a/src/frontend/src/utils/styleUtils.ts +++ b/src/frontend/src/utils/styleUtils.ts @@ -478,6 +478,7 @@ export const nodeColorsName: { [char: string]: string } = { BaseChatMemory: "cyan", BaseChatMessageHistory: "orange", Memory: "orange", + DataFrame: "rose", }; export const SIDEBAR_CATEGORIES = [