From 60e4a3bbdbe237ce646f089a37fc2c24e7f55ac2 Mon Sep 17 00:00:00 2001 From: Bee Date: Thu, 16 Jan 2025 15:37:28 +0100 Subject: [PATCH 1/6] chore: update the langflow icon with the kendra labs --- src/frontend/.gitignore | 3 + src/frontend/favicon-old.ico | Bin 5768 -> 0 bytes src/frontend/replace_langflow.py | 81 ++++++++++ src/frontend/replace_langflow.sh | 35 +++++ .../src/assets/KendraLabsLogo200x200.png | Bin 0 -> 6498 bytes .../common/kendraLabsLogo/index.tsx | 26 ++++ .../core/appHeaderComponent/index.tsx | 16 +- .../src/customization/feature-flags.ts | 2 +- src/frontend/src/logo.svg | 1 - .../IOModal/components/chatView/chat-view.tsx | 19 +-- .../chatMessage/components/chat-logo-icon.tsx | 19 +-- .../src/pages/AdminPage/LoginPage/index.tsx | 16 +- .../src/pages/DeleteAccountPage/index.tsx | 13 +- src/frontend/src/pages/LoginPage/index.tsx | 16 +- .../pages/MainPage/pages/emptyPage/index.tsx | 9 +- src/frontend/src/pages/SignUpPage/index.tsx | 15 +- src/frontend/src/style/applies.css | 144 ------------------ 17 files changed, 181 insertions(+), 234 deletions(-) delete mode 100644 src/frontend/favicon-old.ico create mode 100644 src/frontend/replace_langflow.py create mode 100755 src/frontend/replace_langflow.sh create mode 100644 src/frontend/src/assets/KendraLabsLogo200x200.png create mode 100644 src/frontend/src/components/common/kendraLabsLogo/index.tsx delete mode 100644 src/frontend/src/logo.svg diff --git a/src/frontend/.gitignore b/src/frontend/.gitignore index 285b976e3caa..e9059678fb6a 100644 --- a/src/frontend/.gitignore +++ b/src/frontend/.gitignore @@ -11,6 +11,9 @@ # production /build +# ide +.vscode + # misc .DS_Store .env.local diff --git a/src/frontend/favicon-old.ico b/src/frontend/favicon-old.ico deleted file mode 100644 index 0eee3936800bf498a1f7d9426dde0f7d294de50d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5768 zcmXw72|Sct`+gY4Xa+;}B}Rx>WewRwk|d=VQT8p8$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6}JLrIa_AszeaJKQB_qf%M*%gbMx}@Z~LP^C~E>l7cA+b z=ti2bC;QrLdbCtD^4INC_;txav4Ibou-R*rr^L$(mteL&C>X8cMJ?cEtXFh{VvVuD=ekQ?i=~Q+)N0QA6jD6j4;K}e};qDE#{8O~J4RO324Zcn;Vaw+k zuV{eH!ncc+k2vmxdkpmJq8d!OX;bOgItsuJDNYkbY4))YlRX58%yx+zr}4!>vfzPN z5x}X2_jD&CbLVdv{|L=x5WXA{t{0fD1FYGS0QK;P=t#Xtf37i zRa*pLr!n^KHL|7g_YL=~CP7`Lbz9viA8EYo5|H~-T_Y^QcAbI1j49GQF>8!@F|_`Z zYwszCksS})D>%1Io?hKE^%>5YNnHex&+5T4X!9ht66uvMguX1dy^Rmv4KKzi5N|J7 zz&bW{h=TcN?m-72bkK-N;#*ZBvA@^pj+iIEyrV*-iHQY#l>$$l6H z&Da`?Vp}{k5F$bhA;!Ox6f;l>(vm#%h3qDo33|PSjI$tEJ`51^ky#Qkqd&3F8R#3u z!vJxa{rB}4EcB%~xA@5?4)NO+MR{R|CISE&5Wki_lZF!q4?Xz- zbYJRM^g^qbVb8NjBbKNt3);it#7+7)6`X8nbj`{4NRMZ_^{~ia8dJm)w8ws;(;VY# z#CN)LsbjR@Eh)3opE3p&?>i_%`^t@z<3E%kfCt~~%^49fMiani%QKQ@qmCn27SXl` z;?6aCq4?^AJi04cRwfxD_3STmte^Mhu%ahdJN7rh>NwEP?$}90BM;l`YErPzFLaV~ z`r;Am={vA)ef{yfA!40D!K?%Hc*Ik_mhx0WMdO0`vEE%|Z+0>w1&+h5}0bb7dhX4Qo diff --git a/src/frontend/replace_langflow.py b/src/frontend/replace_langflow.py new file mode 100644 index 000000000000..0d101716b6f9 --- /dev/null +++ b/src/frontend/replace_langflow.py @@ -0,0 +1,81 @@ +import os +import re + +def find_langflow_occurrences(directory): + """ + Finds all occurrences of "langflow" in React files within a directory. + + Args: + directory: The directory to search within. + + Returns: + A list of tuples, where each tuple contains: + - The file path where "langflow" was found. (important addition) + - The line number where "langflow" was found (important addition). - The line content containing "langflow". + + Raises: + TypeError if input is not a string or if it's not a directory + FileNotFoundError if the input doesn't exist + + """ + + if not isinstance(directory, str): + raise TypeError("Directory must be a string.") + if not os.path.isdir(directory): + raise FileNotFoundError(f"Directory '"+directory+"' not found.") + + occurrences = [] + for root, _, files in os.walk(directory): + for file in files: + if file.endswith(('.tsx', '.jsx', '.js', '.jsx.ts', '.ts')): # Check for React file extensions (important addition) + try: + filepath = os.path.join(root, file) + + # More robustly read the whole file to prevent issues with partial matches caused by line breaks or other patterns + + with open(filepath, 'r', errors='ignore') as f: # Handle possible encoding issues if necessary with error handling and opening mode 'r' for reading + + for lineno, line in enumerate(f): + + matches = re.finditer(r'"Langflow"', line) #More specific regex to prevent matching within strings like "langflowtext" + + for match in matches: + occurrences.append((filepath, lineno + 1, line.strip())) #line numbers start at 1 and we need the original line (added strip) + + except UnicodeDecodeError: + print(f"Skipping file {filepath} due to UnicodeDecodeError.") + + return occurrences + +# Example usage (replace with your directory): +if __name__ == "__main__": + directory_to_search = "src/pages/AdminPage/LoginPage" # Replace with the actual path + + try: + + found_occurrences = find_langflow_occurrences(directory_to_search) + + for file, lineno ,originalLine in found_occurrences : #Corrected parameter names for clarity + + print(f"\nFound 'langflow' in file: {file} , Line number: {lineno}") + print(f"Line content: {originalLine}") + #prompt user for input in loop + confirmation = input(f"Replace 'langflow' with 'Kendra Labs' in this line [y/n]?: ") + + if confirmation.lower() == "y": # more robust case matching + with open(file, 'r') as originalFile: + + file_content = originalFile.read() + + updated_content = file_content.replace(originalLine,'"' + "Kendra Labs" + '"') #use the correct string to replace + + with open(file, 'w') as updatedFile: + updatedFile.write(updated_content) + + print("Replacement successful.") + + if not found_occurrences: + print("No occurrences of 'langflow' found.") + + except FileNotFoundError as e: + print(f"Error: {e}") diff --git a/src/frontend/replace_langflow.sh b/src/frontend/replace_langflow.sh new file mode 100755 index 000000000000..d5f86ea60b16 --- /dev/null +++ b/src/frontend/replace_langflow.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +# Search for 'langflow' in React files excluding unwanted files +search_results=$(grep -rni --include=\*.{tsx,jsx,html} 'langflow' . | grep -vE '\.py$|test|key names|variable names|\.css') + +# Check if we found any results +if [ -z "$search_results" ]; then + echo "No occurrences of 'langflow' found in React files." + exit 0 +fi + +echo "Found occurrences of 'langflow':" +echo "$search_results" + +# Read each line of search results +while IFS= read -r line; do + # Extract the file name and line number + file_name=$(echo "$line" | cut -d':' -f1) + line_number=$(echo "$line" | cut -d':' -f2) + + # Display the line with context + echo "In $file_name (line $line_number):" + echo " $line" + + # Prompt the user for replacement + read -p "Replace 'langflow' with 'Kendra Labs'? (y/n): " response + + if [[ "$response" == "y" ]]; then + # Make the replacement in the file + sed -i.bak "s/langflow/Kendra Labs/g" "$file_name" + echo "'langflow' replaced with 'Kendra Labs' in $file_name." + fi +done <<< "$search_results" + +echo "Finished processing replacements." \ No newline at end of file diff --git a/src/frontend/src/assets/KendraLabsLogo200x200.png b/src/frontend/src/assets/KendraLabsLogo200x200.png new file mode 100644 index 0000000000000000000000000000000000000000..409ea12963f04950fc3db3a18d38afe615b230d6 GIT binary patch literal 6498 zcmb_>XH=8h)@~94gdU0%5qK#g(t<)Lp(UY65rI&pgB0lqK@dbBp^6kKiWEfw0qI=? zM0&FTf}k{|NH3v_fH&;D?>Xmw<9z?_o3S$IJJ<8fGS*rdW6i`GT)VVnb3fIyXrbVv4-$)EZM8|qM zz@UsQP7ny<=4xz?H`lw0y5a39Y47Om;3OI7>2t~gDFvd)s;3j)9tiaG@bW_iDhvFD zK#}!RGeQ9P3xao77BJT{0MxvFod8)$DM={-6Cj(1q4n5{p62% zYoL?Ib#+%yCojL#NHVfW870Jjo%*j-^Z%XtA5;I6s^;zC?Q7&?f5Yjtw7;VLhv^@* z65@0<{$q9iUi!bR zHc6%Z2?KEkFzZOyOao#*wN0&SZR zQ^5}(KCzhmCauGcLBrEy(K3GJt87pxI4%sXPLF|`h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l&z! z>xM6)f3h#$PG020z2ZK0YaPsDgbc!w#Mb|4cy=)ge=6EuQJczfj!#PD~=j0b6qE60kjYA;%ierf0A$9^c~iuXa%^}fv^u+^97 zXn@JuyI^*wbvE$>Kj-kp)xk0F6Uf=|+gVRf&J*V8(G^BSlV4>`f>L`j+S*ReKAMB#zWocp; z-t?oO7b%1aBVzC6Y;6^^RJdAC&L6^=(;06IDu}Cnsp|2E;fNe!RVtS5lzlIO0V;_5 zLkcmV*PZ(V-~^3B>+;Ucd}y>AWa&gjhXp2mL^g;_keiWOtTl5JANc|3l2uAvn;yBT oDTC4dxOR?wIRAe_!lx-hugfj?ncXrz{TD%7 = ({ + title = "Kendra Labs Logo", + className = "absolute h-[18px] w-[18px]", + chainClassName = "absolute h-[18px] w-[18px]", + alt = "Kendra Labs Logo" +}) => { + return ENABLE_NEW_LOGO ? ( + {alt} + ) : ( + + ); +}; + +export default Logo; diff --git a/src/frontend/src/components/core/appHeaderComponent/index.tsx b/src/frontend/src/components/core/appHeaderComponent/index.tsx index 7529302ebdc9..d6d2a83828f8 100644 --- a/src/frontend/src/components/core/appHeaderComponent/index.tsx +++ b/src/frontend/src/components/core/appHeaderComponent/index.tsx @@ -1,16 +1,12 @@ import AlertDropdown from "@/alerts/alertDropDown"; -import DataStaxLogo from "@/assets/DataStaxLogo.svg?react"; -import LangflowLogo from "@/assets/LangflowLogo.svg?react"; import ForwardedIconComponent from "@/components/common/genericIconComponent"; +import Logo from "@/components/common/kendraLabsLogo"; import ShadTooltip from "@/components/common/shadTooltipComponent"; import { Button } from "@/components/ui/button"; import { Separator } from "@/components/ui/separator"; import { CustomOrgSelector } from "@/customization/components/custom-org-selector"; import { CustomProductSelector } from "@/customization/components/custom-product-selector"; -import { - ENABLE_DATASTAX_LANGFLOW, - ENABLE_NEW_LOGO, -} from "@/customization/feature-flags"; +import { ENABLE_DATASTAX_LANGFLOW } from "@/customization/feature-flags"; import { useCustomNavigate } from "@/customization/hooks/use-custom-navigate"; import useTheme from "@/customization/hooks/use-custom-theme"; import useAlertStore from "@/stores/alertStore"; @@ -56,13 +52,7 @@ export default function AppHeader(): JSX.Element { className="mr-1 flex h-8 w-8 items-center" data-testid="icon-ChevronLeft" > - {ENABLE_DATASTAX_LANGFLOW ? ( - - ) : ENABLE_NEW_LOGO ? ( - - ) : ( - ⛓️ - )} + {ENABLE_DATASTAX_LANGFLOW && ( <> diff --git a/src/frontend/src/customization/feature-flags.ts b/src/frontend/src/customization/feature-flags.ts index d2665549b7b8..9068c35d9d4c 100644 --- a/src/frontend/src/customization/feature-flags.ts +++ b/src/frontend/src/customization/feature-flags.ts @@ -8,5 +8,5 @@ export const ENABLE_MVPS = false; export const ENABLE_CUSTOM_PARAM = false; export const ENABLE_INTEGRATIONS = false; export const ENABLE_NEW_LOGO = true; -export const ENABLE_DATASTAX_LANGFLOW = false; +export const ENABLE_DATASTAX_LANGFLOW = true; export const ENABLE_HOMEPAGE = true; diff --git a/src/frontend/src/logo.svg b/src/frontend/src/logo.svg deleted file mode 100644 index 9dfc1c058ceb..000000000000 --- a/src/frontend/src/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/frontend/src/modals/IOModal/components/chatView/chat-view.tsx b/src/frontend/src/modals/IOModal/components/chatView/chat-view.tsx index 49d9be25938b..6a0af13c1cf9 100644 --- a/src/frontend/src/modals/IOModal/components/chatView/chat-view.tsx +++ b/src/frontend/src/modals/IOModal/components/chatView/chat-view.tsx @@ -1,7 +1,5 @@ -import LangflowLogo from "@/assets/LangflowLogo.svg?react"; -import ChainLogo from "@/assets/logo.svg?react"; import { TextEffectPerChar } from "@/components/ui/textAnimation"; -import { ENABLE_NEW_LOGO } from "@/customization/feature-flags"; +import Logo from "@/components/common/kendraLabsLogo"; import { track } from "@/customization/utils/analytics"; import { useMessagesStore } from "@/stores/messagesStore"; import { useUtilityStore } from "@/stores/utilityStore"; @@ -180,17 +178,10 @@ export default function ChatView({ ) : (
- {ENABLE_NEW_LOGO ? ( - - ) : ( - - )} +

New chat diff --git a/src/frontend/src/modals/IOModal/components/chatView/chatMessage/components/chat-logo-icon.tsx b/src/frontend/src/modals/IOModal/components/chatView/chatMessage/components/chat-logo-icon.tsx index 19c264d85602..2d94c33d9f0b 100644 --- a/src/frontend/src/modals/IOModal/components/chatView/chatMessage/components/chat-logo-icon.tsx +++ b/src/frontend/src/modals/IOModal/components/chatView/chatMessage/components/chat-logo-icon.tsx @@ -1,22 +1,13 @@ -import LangflowLogo from "@/assets/LangflowLogo.svg?react"; -import ChainLogo from "@/assets/logo.svg?react"; -import { ENABLE_NEW_LOGO } from "@/customization/feature-flags"; +import Logo from "@/components/common/kendraLabsLogo"; export default function LogoIcon() { return (
- {ENABLE_NEW_LOGO ? ( - - ) : ( - - )} +
); diff --git a/src/frontend/src/pages/AdminPage/LoginPage/index.tsx b/src/frontend/src/pages/AdminPage/LoginPage/index.tsx index 7fba6f15edc5..3ea6621a36df 100644 --- a/src/frontend/src/pages/AdminPage/LoginPage/index.tsx +++ b/src/frontend/src/pages/AdminPage/LoginPage/index.tsx @@ -1,6 +1,5 @@ -import LangflowLogo from "@/assets/LangflowLogo.svg?react"; import { useLoginUser } from "@/controllers/API/queries/auth"; -import { ENABLE_NEW_LOGO } from "@/customization/feature-flags"; + import { useContext, useState } from "react"; import { Button } from "../../../components/ui/button"; import { Input } from "../../../components/ui/input"; @@ -13,6 +12,8 @@ import { inputHandlerEventType, loginInputStateType, } from "../../../types/components"; +import Logo from "@/components/common/kendraLabsLogo"; + export default function LoginAdminPage() { const [inputState, setInputState] = @@ -51,14 +52,9 @@ export default function LoginAdminPage() { return (
- {ENABLE_NEW_LOGO ? ( - - ) : ( - ⛓️ - )} + + + Admin { diff --git a/src/frontend/src/pages/DeleteAccountPage/index.tsx b/src/frontend/src/pages/DeleteAccountPage/index.tsx index 56edc5949255..10f34aae204e 100644 --- a/src/frontend/src/pages/DeleteAccountPage/index.tsx +++ b/src/frontend/src/pages/DeleteAccountPage/index.tsx @@ -1,9 +1,8 @@ -import LangflowLogo from "@/assets/LangflowLogo.svg?react"; -import { ENABLE_NEW_LOGO } from "@/customization/feature-flags"; import { useState } from "react"; import { Button } from "../../components/ui/button"; import { Input } from "../../components/ui/input"; import BaseModal from "../../modals/baseModal"; +import Logo from "@/components/common/kendraLabsLogo"; export default function DeleteAccountPage() { const [showConfirmation, setShowConfirmation] = useState(false); @@ -19,14 +18,8 @@ export default function DeleteAccountPage() { return (
- {ENABLE_NEW_LOGO ? ( - - ) : ( - ⛓️ - )} + + Delete your account diff --git a/src/frontend/src/pages/LoginPage/index.tsx b/src/frontend/src/pages/LoginPage/index.tsx index ba4c3592c477..90226b77551a 100644 --- a/src/frontend/src/pages/LoginPage/index.tsx +++ b/src/frontend/src/pages/LoginPage/index.tsx @@ -1,7 +1,6 @@ -import LangflowLogo from "@/assets/LangflowLogo.svg?react"; +import Logo from "@/components/common/kendraLabsLogo"; import { useLoginUser } from "@/controllers/API/queries/auth"; import { CustomLink } from "@/customization/components/custom-link"; -import { ENABLE_NEW_LOGO } from "@/customization/feature-flags"; import * as Form from "@radix-ui/react-form"; import { useContext, useState } from "react"; import InputComponent from "../../components/core/parameterRenderComponent/components/inputComponent"; @@ -67,14 +66,11 @@ export default function LoginPage(): JSX.Element { >
- {ENABLE_NEW_LOGO ? ( - - ) : ( - ⛓️ - )} + + Sign in to Langflow diff --git a/src/frontend/src/pages/MainPage/pages/emptyPage/index.tsx b/src/frontend/src/pages/MainPage/pages/emptyPage/index.tsx index 7ed74d3d4b88..a2ebd7f05fc8 100644 --- a/src/frontend/src/pages/MainPage/pages/emptyPage/index.tsx +++ b/src/frontend/src/pages/MainPage/pages/emptyPage/index.tsx @@ -1,7 +1,6 @@ -import LangflowLogo from "@/assets/LangflowLogo.svg?react"; import ForwardedIconComponent from "@/components/common/genericIconComponent"; +import Logo from "@/components/common/kendraLabsLogo"; import { Button } from "@/components/ui/button"; -import { ENABLE_NEW_LOGO } from "@/customization/feature-flags"; import { useFolderStore } from "@/stores/foldersStore"; type EmptyPageProps = { @@ -15,11 +14,7 @@ export const EmptyPage = ({ setOpenModal }: EmptyPageProps) => {
- {ENABLE_NEW_LOGO ? ( - - ) : ( - ⛓️ - )} +

- {ENABLE_NEW_LOGO ? ( - - ) : ( - ⛓️ - )} + Sign up for Langflow diff --git a/src/frontend/src/style/applies.css b/src/frontend/src/style/applies.css index 9106edfaf4b3..652e5bc236d7 100644 --- a/src/frontend/src/style/applies.css +++ b/src/frontend/src/style/applies.css @@ -1325,147 +1325,3 @@ transform: rotate(360deg); } } - -.gradient-bg { - width: 100%; - height: 100%; - position: absolute; - overflow: hidden; - background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN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aJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==), - var(--color-bg1); - top: 0; - left: 0; - background-blend-mode: overlay; - - svg { - display: none; - } - - .gradients-container { - filter: url(#lf-balls) blur(40px); - width: 100%; - height: 100%; - } - - .g1 { - position: absolute; - background: radial-gradient( - circle at center, - rgba(var(--color1), 0.8) 0, - rgba(var(--color1), 0) 50% - ) - no-repeat; - mix-blend-mode: var(--blending); - width: var(--circle-size); - height: var(--circle-size); - top: 10%; - right: 20%; - transform-origin: 50% 100%; - animation: moveInCircle 10s linear infinite; - opacity: 1; - } - - .g2 { - position: absolute; - background: radial-gradient( - circle at center, - rgba(var(--color2), 0.8) 0, - rgba(var(--color2), 0) 50% - ) - no-repeat; - mix-blend-mode: var(--blending); - - width: var(--circle-size); - height: var(--circle-size); - top: 10%; - left: 10%; - - transform-origin: 50% 100%; - animation: moveInCircle 12s linear infinite; - - opacity: 1; - } - - .g3 { - position: absolute; - background: radial-gradient( - circle at center, - rgba(var(--color3), 0.8) 0, - rgba(var(--color3), 0) 50% - ) - no-repeat; - mix-blend-mode: var(--blending); - - width: var(--circle-size); - height: var(--circle-size); - top: 10%; - right: 30%; - - transform-origin: 50% 100%; - animation: moveInCircle 11s linear infinite; - - opacity: 1; - } - - .g4 { - position: absolute; - background: radial-gradient( - circle at center, - rgba(var(--color1), 0.8) 0, - rgba(var(--color1), 0) 50% - ) - no-repeat; - mix-blend-mode: var(--blending); - - width: var(--circle-size); - height: var(--circle-size); - top: 5%; - right: 50%; - - transform-origin: 50% 20%; - animation: moveInCircle 12s reverse linear infinite; - - opacity: 0.7; - } - - .g5 { - position: absolute; - background: radial-gradient( - circle at center, - rgba(var(--color2), 0.8) 0, - rgba(var(--color2), 0) 50% - ) - no-repeat; - mix-blend-mode: var(--blending); - - width: var(--circle-size); - height: var(--circle-size); - top: 10%; - left: 30%; - - transform-origin: 50% 20%; - animation: moveInCircle 11s reverse linear infinite; - opacity: 1; - } - - .g6 { - position: absolute; - background: radial-gradient( - circle at center, - rgba(var(--color3), 0.8) 0, - rgba(var(--color3), 0) 50% - ) - no-repeat; - mix-blend-mode: var(--blending); - - width: var(--circle-size); - height: var(--circle-size); - top: 10%; - right: 10%; - - transform-origin: 50% 20%; - animation: moveInCircle 10s reverse linear infinite; - - opacity: 1; - } -} From 76b786ba2a3481f5a3ea44e129cf9bd210256ba2 Mon Sep 17 00:00:00 2001 From: Bee Date: Sat, 18 Jan 2025 16:32:44 +0100 Subject: [PATCH 2/6] chore: delete disused files --- src/frontend/replace_langflow.py | 81 -------------------------------- src/frontend/replace_langflow.sh | 35 -------------- 2 files changed, 116 deletions(-) delete mode 100644 src/frontend/replace_langflow.py delete mode 100755 src/frontend/replace_langflow.sh diff --git a/src/frontend/replace_langflow.py b/src/frontend/replace_langflow.py deleted file mode 100644 index 0d101716b6f9..000000000000 --- a/src/frontend/replace_langflow.py +++ /dev/null @@ -1,81 +0,0 @@ -import os -import re - -def find_langflow_occurrences(directory): - """ - Finds all occurrences of "langflow" in React files within a directory. - - Args: - directory: The directory to search within. - - Returns: - A list of tuples, where each tuple contains: - - The file path where "langflow" was found. (important addition) - - The line number where "langflow" was found (important addition). - The line content containing "langflow". - - Raises: - TypeError if input is not a string or if it's not a directory - FileNotFoundError if the input doesn't exist - - """ - - if not isinstance(directory, str): - raise TypeError("Directory must be a string.") - if not os.path.isdir(directory): - raise FileNotFoundError(f"Directory '"+directory+"' not found.") - - occurrences = [] - for root, _, files in os.walk(directory): - for file in files: - if file.endswith(('.tsx', '.jsx', '.js', '.jsx.ts', '.ts')): # Check for React file extensions (important addition) - try: - filepath = os.path.join(root, file) - - # More robustly read the whole file to prevent issues with partial matches caused by line breaks or other patterns - - with open(filepath, 'r', errors='ignore') as f: # Handle possible encoding issues if necessary with error handling and opening mode 'r' for reading - - for lineno, line in enumerate(f): - - matches = re.finditer(r'"Langflow"', line) #More specific regex to prevent matching within strings like "langflowtext" - - for match in matches: - occurrences.append((filepath, lineno + 1, line.strip())) #line numbers start at 1 and we need the original line (added strip) - - except UnicodeDecodeError: - print(f"Skipping file {filepath} due to UnicodeDecodeError.") - - return occurrences - -# Example usage (replace with your directory): -if __name__ == "__main__": - directory_to_search = "src/pages/AdminPage/LoginPage" # Replace with the actual path - - try: - - found_occurrences = find_langflow_occurrences(directory_to_search) - - for file, lineno ,originalLine in found_occurrences : #Corrected parameter names for clarity - - print(f"\nFound 'langflow' in file: {file} , Line number: {lineno}") - print(f"Line content: {originalLine}") - #prompt user for input in loop - confirmation = input(f"Replace 'langflow' with 'Kendra Labs' in this line [y/n]?: ") - - if confirmation.lower() == "y": # more robust case matching - with open(file, 'r') as originalFile: - - file_content = originalFile.read() - - updated_content = file_content.replace(originalLine,'"' + "Kendra Labs" + '"') #use the correct string to replace - - with open(file, 'w') as updatedFile: - updatedFile.write(updated_content) - - print("Replacement successful.") - - if not found_occurrences: - print("No occurrences of 'langflow' found.") - - except FileNotFoundError as e: - print(f"Error: {e}") diff --git a/src/frontend/replace_langflow.sh b/src/frontend/replace_langflow.sh deleted file mode 100755 index d5f86ea60b16..000000000000 --- a/src/frontend/replace_langflow.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash - -# Search for 'langflow' in React files excluding unwanted files -search_results=$(grep -rni --include=\*.{tsx,jsx,html} 'langflow' . | grep -vE '\.py$|test|key names|variable names|\.css') - -# Check if we found any results -if [ -z "$search_results" ]; then - echo "No occurrences of 'langflow' found in React files." - exit 0 -fi - -echo "Found occurrences of 'langflow':" -echo "$search_results" - -# Read each line of search results -while IFS= read -r line; do - # Extract the file name and line number - file_name=$(echo "$line" | cut -d':' -f1) - line_number=$(echo "$line" | cut -d':' -f2) - - # Display the line with context - echo "In $file_name (line $line_number):" - echo " $line" - - # Prompt the user for replacement - read -p "Replace 'langflow' with 'Kendra Labs'? (y/n): " response - - if [[ "$response" == "y" ]]; then - # Make the replacement in the file - sed -i.bak "s/langflow/Kendra Labs/g" "$file_name" - echo "'langflow' replaced with 'Kendra Labs' in $file_name." - fi -done <<< "$search_results" - -echo "Finished processing replacements." \ No newline at end of file From b09341f0c56c7ffcd7889b4a4c5181d6d7db4817 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 18 Jan 2025 15:34:56 +0000 Subject: [PATCH 3/6] [autofix.ci] apply automated fixes --- .../src/components/common/kendraLabsLogo/index.tsx | 6 +++--- .../src/modals/IOModal/components/chatView/chat-view.tsx | 2 +- src/frontend/src/pages/AdminPage/LoginPage/index.tsx | 9 +++++---- src/frontend/src/pages/DeleteAccountPage/index.tsx | 8 +++++--- 4 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/frontend/src/components/common/kendraLabsLogo/index.tsx b/src/frontend/src/components/common/kendraLabsLogo/index.tsx index f62d5a78f582..df0326a71c6e 100644 --- a/src/frontend/src/components/common/kendraLabsLogo/index.tsx +++ b/src/frontend/src/components/common/kendraLabsLogo/index.tsx @@ -1,7 +1,7 @@ -import { ENABLE_NEW_LOGO } from "@/customization/feature-flags"; -import React from "react"; import KendraLabsLogo from "@/assets/KendraLabsLogo200x200.png"; import ChainLogo from "@/assets/logo.svg?react"; +import { ENABLE_NEW_LOGO } from "@/customization/feature-flags"; +import React from "react"; interface LogoProps { title?: string; @@ -14,7 +14,7 @@ const Logo: React.FC = ({ title = "Kendra Labs Logo", className = "absolute h-[18px] w-[18px]", chainClassName = "absolute h-[18px] w-[18px]", - alt = "Kendra Labs Logo" + alt = "Kendra Labs Logo", }) => { return ENABLE_NEW_LOGO ? ( {alt} diff --git a/src/frontend/src/modals/IOModal/components/chatView/chat-view.tsx b/src/frontend/src/modals/IOModal/components/chatView/chat-view.tsx index 6a0af13c1cf9..fee3ea50a394 100644 --- a/src/frontend/src/modals/IOModal/components/chatView/chat-view.tsx +++ b/src/frontend/src/modals/IOModal/components/chatView/chat-view.tsx @@ -1,5 +1,5 @@ -import { TextEffectPerChar } from "@/components/ui/textAnimation"; import Logo from "@/components/common/kendraLabsLogo"; +import { TextEffectPerChar } from "@/components/ui/textAnimation"; import { track } from "@/customization/utils/analytics"; import { useMessagesStore } from "@/stores/messagesStore"; import { useUtilityStore } from "@/stores/utilityStore"; diff --git a/src/frontend/src/pages/AdminPage/LoginPage/index.tsx b/src/frontend/src/pages/AdminPage/LoginPage/index.tsx index 3ea6621a36df..8e852d27a439 100644 --- a/src/frontend/src/pages/AdminPage/LoginPage/index.tsx +++ b/src/frontend/src/pages/AdminPage/LoginPage/index.tsx @@ -1,5 +1,6 @@ import { useLoginUser } from "@/controllers/API/queries/auth"; +import Logo from "@/components/common/kendraLabsLogo"; import { useContext, useState } from "react"; import { Button } from "../../../components/ui/button"; import { Input } from "../../../components/ui/input"; @@ -12,8 +13,6 @@ import { inputHandlerEventType, loginInputStateType, } from "../../../types/components"; -import Logo from "@/components/common/kendraLabsLogo"; - export default function LoginAdminPage() { const [inputState, setInputState] = @@ -52,8 +51,10 @@ export default function LoginAdminPage() { return (
- - + Admin
- - + Delete your account From 7dc45740ecdcd39683aea565828278bcbd50c536 Mon Sep 17 00:00:00 2001 From: Bee Date: Sat, 18 Jan 2025 17:43:19 +0100 Subject: [PATCH 4/6] chore: update some UI related Langflows --- .../src/components/common/crashErrorComponent/index.tsx | 2 +- .../appHeaderComponent/components/AccountMenu/index.tsx | 8 ++++---- .../src/components/core/appHeaderComponent/index.tsx | 2 +- src/frontend/src/constants/constants.ts | 2 +- src/frontend/src/flow_constants.tsx | 6 +++--- src/frontend/src/modals/shareModal/index.tsx | 2 +- .../components/GetStartedComponent/index.tsx | 2 +- src/frontend/src/pages/FlowPage/index.tsx | 2 +- src/frontend/src/pages/LoginPage/index.tsx | 2 +- .../GeneralPage/components/GeneralPageHeader/index.tsx | 2 +- .../pages/SettingsPage/pages/StoreApiKeyPage/index.tsx | 4 ++-- src/frontend/src/pages/SignUpPage/index.tsx | 2 +- 12 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/frontend/src/components/common/crashErrorComponent/index.tsx b/src/frontend/src/components/common/crashErrorComponent/index.tsx index 75ee8cefea6f..9174bf5b4afd 100644 --- a/src/frontend/src/components/common/crashErrorComponent/index.tsx +++ b/src/frontend/src/components/common/crashErrorComponent/index.tsx @@ -44,7 +44,7 @@ export default function CrashErrorComponent({
- + { )} - {ENABLE_DATASTAX_LANGFLOW ? ( + {/* {ENABLE_DATASTAX_LANGFLOW ? ( { > Share Feedback on Github - )} - + )} */} + {/* Follow Langflow on X Join the Langflow Discord - + */} {ENABLE_DATASTAX_LANGFLOW ? ( diff --git a/src/frontend/src/components/core/appHeaderComponent/index.tsx b/src/frontend/src/components/core/appHeaderComponent/index.tsx index d6d2a83828f8..5005445cfdb2 100644 --- a/src/frontend/src/components/core/appHeaderComponent/index.tsx +++ b/src/frontend/src/components/core/appHeaderComponent/index.tsx @@ -124,7 +124,7 @@ export default function AppHeader(): JSX.Element { {!ENABLE_DATASTAX_LANGFLOW && ( <> diff --git a/src/frontend/src/constants/constants.ts b/src/frontend/src/constants/constants.ts index fccce3ccb4d6..ad1a65192333 100644 --- a/src/frontend/src/constants/constants.ts +++ b/src/frontend/src/constants/constants.ts @@ -241,7 +241,7 @@ export const DESCRIPTIONS: string[] = [ "Generate, Innovate, Communicate.", "Conversation Catalyst Engine.", "Language Chainlink Master.", - "Design Dialogues with Langflow.", + "Design Dialogues with Workbench.", "Nurture NLP Nodes Here.", "Conversational Cartography Unlocked.", "Design, Develop, Dialogize.", diff --git a/src/frontend/src/flow_constants.tsx b/src/frontend/src/flow_constants.tsx index 1e2280ab9f1a..16ffeb158dd9 100644 --- a/src/frontend/src/flow_constants.tsx +++ b/src/frontend/src/flow_constants.tsx @@ -20,7 +20,7 @@ export const DESCRIPTIONS: string[] = [ "Generate, Innovate, Communicate.", "Conversation Catalyst Engine.", "Language Chainlink Master.", - "Design Dialogues with Langflow.", + "Design Dialogues with Workbench.", "Nurture NLP Nodes Here.", "Conversational Cartography Unlocked.", "Design, Develop, Dialogize.", @@ -31,7 +31,7 @@ export const DESCRIPTIONS: string[] = [ "Where Language Meets Logic.", "Building Intelligent Interactions.", "Your Passport to Linguistic Landscapes.", - "Create, Curate, Communicate with Langflow.", + "Create, Curate, Communicate with Workbench.", "Flow into the Future of Language.", "Mapping Meaningful Conversations.", "Unravel the Art of Articulation.", @@ -41,7 +41,7 @@ export const DESCRIPTIONS: string[] = [ "The Pinnacle of Prompt Generation.", "Language Models, Mapped and Mastered.", "Powerful Prompts, Perfectly Positioned.", - "Innovation in Interaction with Langflow.", + "Innovation in Interaction with Workbench.", "Your Toolkit for Text Generation.", "Unfolding Linguistic Possibilities.", "Building Powerful Solutions with Language Models.", diff --git a/src/frontend/src/modals/shareModal/index.tsx b/src/frontend/src/modals/shareModal/index.tsx index 49b5f476403d..ea000973480a 100644 --- a/src/frontend/src/modals/shareModal/index.tsx +++ b/src/frontend/src/modals/shareModal/index.tsx @@ -211,7 +211,7 @@ export default function ShareModal({ Share - + Get started
diff --git a/src/frontend/src/pages/FlowPage/index.tsx b/src/frontend/src/pages/FlowPage/index.tsx index fe491cd756a6..0f926a3a8a7d 100644 --- a/src/frontend/src/pages/FlowPage/index.tsx +++ b/src/frontend/src/pages/FlowPage/index.tsx @@ -169,7 +169,7 @@ export default function FlowPage({ view }: { view?: boolean }): JSX.Element { href="https://medium.com/logspace/langflow-datastax-better-together-1b7462cebc4d" className="langflow-page-icon" > -
Langflow 🤝 DataStax
+
Workbench 🤝 DataStax
⛓️ v{version}
diff --git a/src/frontend/src/pages/LoginPage/index.tsx b/src/frontend/src/pages/LoginPage/index.tsx index 90226b77551a..2bce00273ae8 100644 --- a/src/frontend/src/pages/LoginPage/index.tsx +++ b/src/frontend/src/pages/LoginPage/index.tsx @@ -72,7 +72,7 @@ export default function LoginPage(): JSX.Element { /> - Sign in to Langflow + Sign in to Workbench
diff --git a/src/frontend/src/pages/SettingsPage/pages/GeneralPage/components/GeneralPageHeader/index.tsx b/src/frontend/src/pages/SettingsPage/pages/GeneralPage/components/GeneralPageHeader/index.tsx index 13e5161acacb..0df5147809ea 100644 --- a/src/frontend/src/pages/SettingsPage/pages/GeneralPage/components/GeneralPageHeader/index.tsx +++ b/src/frontend/src/pages/SettingsPage/pages/GeneralPage/components/GeneralPageHeader/index.tsx @@ -13,7 +13,7 @@ const GeneralPageHeaderComponent = () => { />

- Manage settings related to Langflow and your account. + Manage settings related to Workbench and your account.

diff --git a/src/frontend/src/pages/SettingsPage/pages/StoreApiKeyPage/index.tsx b/src/frontend/src/pages/SettingsPage/pages/StoreApiKeyPage/index.tsx index 4d164d384ee8..3ee25f7a4703 100644 --- a/src/frontend/src/pages/SettingsPage/pages/StoreApiKeyPage/index.tsx +++ b/src/frontend/src/pages/SettingsPage/pages/StoreApiKeyPage/index.tsx @@ -62,14 +62,14 @@ const StoreApiKeyPage = () => {

- Langflow Store + Workbench Store

- Manage access to the Langflow Store. + Manage access to the Workbench Store.

diff --git a/src/frontend/src/pages/SignUpPage/index.tsx b/src/frontend/src/pages/SignUpPage/index.tsx index 4cbffe02d17f..1d47033fecd2 100644 --- a/src/frontend/src/pages/SignUpPage/index.tsx +++ b/src/frontend/src/pages/SignUpPage/index.tsx @@ -95,7 +95,7 @@ export default function SignUp(): JSX.Element { chainClassName="mb-4 text-5xl" /> - Sign up for Langflow + Sign up for Workbench
From 011ec587bbf41c35d7c30e2d78bf5d6349c4a48e Mon Sep 17 00:00:00 2001 From: Bee Date: Sat, 18 Jan 2025 17:48:56 +0100 Subject: [PATCH 5/6] fix: merge conflict --- .../components/AccountMenu/index.tsx | 54 ++++++++++++++----- 1 file changed, 41 insertions(+), 13 deletions(-) diff --git a/src/frontend/src/components/core/appHeaderComponent/components/AccountMenu/index.tsx b/src/frontend/src/components/core/appHeaderComponent/components/AccountMenu/index.tsx index 957d5cd5a090..3abb0a153604 100644 --- a/src/frontend/src/components/core/appHeaderComponent/components/AccountMenu/index.tsx +++ b/src/frontend/src/components/core/appHeaderComponent/components/AccountMenu/index.tsx @@ -57,7 +57,12 @@ export const AccountMenu = () => {
- Version {version} + + Version {version} +
{!ENABLE_DATASTAX_LANGFLOW && }
@@ -72,30 +77,47 @@ export const AccountMenu = () => { navigate("/settings"); }} > - Settings + + Settings + )} {!ENABLE_DATASTAX_LANGFLOW && ( <> {isAdmin && !autoLogin && ( navigate("/admin")}> - Admin Page + + Admin Page + )} )} {ENABLE_DATASTAX_LANGFLOW ? ( setIsFeedbackOpen(true)}> - Feedback + + Feedback + ) : ( - Docs + + Docs + )}
- {/* {ENABLE_DATASTAX_LANGFLOW ? ( + {ENABLE_DATASTAX_LANGFLOW ? ( { newPage href="https://github.com/langflow-ai/langflow/discussions" > - Share Feedback on Github + + Share Feedback on Github + - )} */} - {/* - Follow Langflow on X + )} + + + Follow Langflow on X + - Join the Langflow Discord - */} + + Join the Langflow Discord + + {ENABLE_DATASTAX_LANGFLOW ? ( @@ -143,4 +171,4 @@ export const AccountMenu = () => { /> ); -}; +}; \ No newline at end of file From f0a19291f4b98f4fe0f890763dd04c718458dbfd Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 18 Jan 2025 16:50:37 +0000 Subject: [PATCH 6/6] [autofix.ci] apply automated fixes --- .../core/appHeaderComponent/components/AccountMenu/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/components/core/appHeaderComponent/components/AccountMenu/index.tsx b/src/frontend/src/components/core/appHeaderComponent/components/AccountMenu/index.tsx index 3abb0a153604..28063e3a1db8 100644 --- a/src/frontend/src/components/core/appHeaderComponent/components/AccountMenu/index.tsx +++ b/src/frontend/src/components/core/appHeaderComponent/components/AccountMenu/index.tsx @@ -171,4 +171,4 @@ export const AccountMenu = () => { /> ); -}; \ No newline at end of file +};