diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index 4347b88ca..7e5b8e315 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -97,7 +97,7 @@ export default function ParameterComponent({ > {React.createElement(nodeIconsLucide[item.family])} - + {nodeNames[item.family] ?? ""}{" "} {" "} @@ -123,12 +123,12 @@ export default function ParameterComponent({ return (
<>
{title} - {required ? " *" : ""} + {required ? " *" : ""}
{left && (type === "str" || @@ -155,7 +155,7 @@ export default function ParameterComponent({ } className={classNames( left ? "-ml-0.5 " : "-mr-0.5 ", - "w-3 h-3 rounded-full border-2 bg-white dark:bg-gray-800" + "w-3 h-3 rounded-full border-2 bg-background" )} style={{ borderColor: color, @@ -197,7 +197,7 @@ export default function ParameterComponent({ )}
) : left === true && type === "bool" ? ( -
+
+
) : left === true && type === "code" ? ( - +
+ +
) : left === true && type === "file" ? ( - { - data.node.template[name].file_path = t; - save(); - }} - > +
+ { + data.node.template[name].file_path = t; + save(); + }} + > +
) : left === true && type === "int" ? (
) : left === true && type === "prompt" ? ( - +
+ +
) : ( <> )} diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index 1668b1d4e..ba6f4ce2e 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -91,13 +91,14 @@ export default function GenericNode({
-
+
-
+
{data.node.display_name}
@@ -143,25 +144,25 @@ export default function GenericNode({
@@ -170,7 +171,7 @@ export default function GenericNode({
-
+
{data.node.description}
@@ -183,7 +184,7 @@ export default function GenericNode({ {/* {idx === 0 ? (
!key.startsWith("_") && @@ -234,7 +235,7 @@ export default function GenericNode({ > {" "}
- {/*
+ {/*
Output
*/} {type === "error" ? (
-
-

+

{dropItem.title}

{dropItem.list ? ( -
+
    {dropItem.list.map((item, idx) => (
  • @@ -62,34 +59,34 @@ export default function SingleAlert({ removeAlert(dropItem.id); }, 500); }} - className="inline-flex rounded-md bg-red-50 dark:bg-transparent p-1.5 text-red-500 dark:text-red-50" + className="inline-flex rounded-md p-1.5 text-status-red" > Dismiss -
) : type === "notice" ? (
-
-

+

{dropItem.title}

{dropItem.link ? ( Details @@ -108,27 +105,30 @@ export default function SingleAlert({ removeAlert(dropItem.id); }, 500); }} - className="inline-flex rounded-md bg-blue-50 dark:bg-transparent p-1.5 text-blue-500 dark:text-blue-50" + className="inline-flex rounded-md p-1.5 text-info-foreground" > Dismiss -

) : (
-

+

{dropItem.title}

@@ -142,10 +142,13 @@ export default function SingleAlert({ removeAlert(dropItem.id); }, 500); }} - className="inline-flex rounded-md bg-green-50 dark:bg-transparent p-1.5 text-green-500 dark:text-green-50" + className="inline-flex rounded-md p-1.5 text-status-green" > Dismiss -
diff --git a/src/frontend/src/alerts/alertDropDown/index.tsx b/src/frontend/src/alerts/alertDropDown/index.tsx index 78d9c8553..fe6845ff9 100644 --- a/src/frontend/src/alerts/alertDropDown/index.tsx +++ b/src/frontend/src/alerts/alertDropDown/index.tsx @@ -24,13 +24,13 @@ export default function AlertDropdown({}: AlertDropdownType) { return (
-
+
Notifications
-
+
{notificationList.length !== 0 ? ( notificationList.map((alertItem, index) => ( )) ) : ( -
+
No new notifications
)} diff --git a/src/frontend/src/alerts/error/index.tsx b/src/frontend/src/alerts/error/index.tsx index faa1088bd..872fa69bd 100644 --- a/src/frontend/src/alerts/error/index.tsx +++ b/src/frontend/src/alerts/error/index.tsx @@ -39,21 +39,18 @@ export default function ErrorAlert({ removeAlert(id); }, 500); }} - className="rounded-md w-96 mt-6 shadow-xl bg-red-50 dark:bg-red-900 p-4 cursor-pointer" + className="rounded-md w-96 mt-6 shadow-xl bg-error-background p-4 cursor-pointer" >
-
-

+

{title}

{list.length !== 0 ? ( -
+
    {list.map((item, index) => (
  • {item}
  • diff --git a/src/frontend/src/alerts/notice/index.tsx b/src/frontend/src/alerts/notice/index.tsx index a61b29822..4d0747919 100644 --- a/src/frontend/src/alerts/notice/index.tsx +++ b/src/frontend/src/alerts/notice/index.tsx @@ -36,22 +36,19 @@ export default function NoticeAlert({ setShow(false); removeAlert(id); }} - className="rounded-md w-96 mt-6 shadow-xl bg-blue-50 dark:bg-blue-900 p-4" + className="rounded-md w-96 mt-6 shadow-xl bg-info-background p-4" >
    -
    -

    {title}

    +

    {title}

    {link !== "" ? ( Details diff --git a/src/frontend/src/alerts/success/index.tsx b/src/frontend/src/alerts/success/index.tsx index 120644506..56ef8a2ad 100644 --- a/src/frontend/src/alerts/success/index.tsx +++ b/src/frontend/src/alerts/success/index.tsx @@ -34,17 +34,17 @@ export default function SuccessAlert({ setShow(false); removeAlert(id); }} - className="rounded-md w-96 mt-6 shadow-xl bg-green-50 dark:bg-green-900 p-4" + className="rounded-md w-96 mt-6 shadow-xl bg-success-background p-4" >

    -

    +

    {title}

    diff --git a/src/frontend/src/components/CrashErrorComponent/index.tsx b/src/frontend/src/components/CrashErrorComponent/index.tsx index adc8909a8..8bd32af92 100644 --- a/src/frontend/src/components/CrashErrorComponent/index.tsx +++ b/src/frontend/src/components/CrashErrorComponent/index.tsx @@ -1,11 +1,11 @@ export default function CrashErrorComponent({ error, resetErrorBoundary }) { return ( -
    -
    -

    +
    +
    +

    Oops! An unknown error has occurred.

    -

    +

    Please click the 'Reset Application' button to restore the application's state. If the error persists, please create an issue on our GitHub page. We apologize for any inconvenience this may have @@ -14,7 +14,7 @@ export default function CrashErrorComponent({ error, resetErrorBoundary }) {

    @@ -22,7 +22,7 @@ export default function CrashErrorComponent({ error, resetErrorBoundary }) { href="https://github.com/logspace-ai/langflow/issues/new" target="_blank" rel="noopener noreferrer" - className="bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded" + className="bg-status-red hover:bg-error-foreground text-background font-bold py-2 px-4 rounded" > Create Issue diff --git a/src/frontend/src/components/EditFlowSettingsComponent/index.tsx b/src/frontend/src/components/EditFlowSettingsComponent/index.tsx index 90e8f90a6..7aa225056 100644 --- a/src/frontend/src/components/EditFlowSettingsComponent/index.tsx +++ b/src/frontend/src/components/EditFlowSettingsComponent/index.tsx @@ -47,7 +47,7 @@ export const EditFlowSettings: React.FC = ({
    Name{" "} {isMaxLength && ( - + Character limit reached )} diff --git a/src/frontend/src/components/ExtraSidebarComponent/index.tsx b/src/frontend/src/components/ExtraSidebarComponent/index.tsx index b6fbf94b2..913b6b8eb 100644 --- a/src/frontend/src/components/ExtraSidebarComponent/index.tsx +++ b/src/frontend/src/components/ExtraSidebarComponent/index.tsx @@ -18,9 +18,9 @@ export default function ExtraSidebar() {