From f545b9cf9b803d12968fd0a6196abb0ee33a65e7 Mon Sep 17 00:00:00 2001 From: Igor Carvalho Date: Tue, 4 Jul 2023 20:04:01 -0300 Subject: [PATCH 1/6] feat: add round buttons constants classes --- .../chatComponent/buildTrigger/index.tsx | 10 ++++----- .../chatComponent/chatTrigger/index.tsx | 9 ++++---- src/frontend/src/index.css | 22 ++++++++++++++++++- 3 files changed, 30 insertions(+), 11 deletions(-) diff --git a/src/frontend/src/components/chatComponent/buildTrigger/index.tsx b/src/frontend/src/components/chatComponent/buildTrigger/index.tsx index 41a9f4164..e31303a68 100644 --- a/src/frontend/src/components/chatComponent/buildTrigger/index.tsx +++ b/src/frontend/src/components/chatComponent/buildTrigger/index.tsx @@ -156,9 +156,9 @@ export default function BuildTrigger({ leaveFrom="translate-y-0" leaveTo="translate-y-96" > -
+
{ handleBuild(flow); }} @@ -166,7 +166,7 @@ export default function BuildTrigger({ onMouseLeave={handleMouseLeave} > diff --git a/src/frontend/src/components/chatComponent/chatTrigger/index.tsx b/src/frontend/src/components/chatComponent/chatTrigger/index.tsx index 67ec52b99..8d1d3f42b 100644 --- a/src/frontend/src/components/chatComponent/chatTrigger/index.tsx +++ b/src/frontend/src/components/chatComponent/chatTrigger/index.tsx @@ -30,16 +30,15 @@ export default function ChatTrigger({ open, setOpen, isBuilt }) { leaveFrom="translate-y-0" leaveTo="translate-y-96" > -
+
- + {children} From 04c3cb2d4ecfca8a621e4be73e13f0af81a163c5 Mon Sep 17 00:00:00 2001 From: Igor Carvalho Date: Tue, 4 Jul 2023 20:30:03 -0300 Subject: [PATCH 3/6] feat: add flowpage constants classes --- src/frontend/src/index.css | 14 ++++++++++++++ src/frontend/src/pages/FlowPage/index.tsx | 6 +++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/index.css b/src/frontend/src/index.css index c80ff50ec..2c8b1c893 100644 --- a/src/frontend/src/index.css +++ b/src/frontend/src/index.css @@ -239,4 +239,18 @@ The cursor: default; property value restores the browser's default cursor style .components-disclosure-div { @apply flex gap-2 } + .flow-page-positioning { + @apply h-full w-full overflow-hidden + } + .logspace-page-icon { + @apply absolute bottom-2 left-7 flex h-6 cursor-pointer flex-col items-center justify-start overflow-hidden rounded-lg bg-foreground px-2 text-center font-sans text-xs tracking-wide text-secondary transition-all duration-500 ease-in-out + } + + .logspace-page-icon:hover { + @apply hover:h-12 + } + + .logspace-icon-text { + @apply mt-1 + } } \ No newline at end of file diff --git a/src/frontend/src/pages/FlowPage/index.tsx b/src/frontend/src/pages/FlowPage/index.tsx index 27846f794..8ff6c708a 100644 --- a/src/frontend/src/pages/FlowPage/index.tsx +++ b/src/frontend/src/pages/FlowPage/index.tsx @@ -20,7 +20,7 @@ export default function FlowPage() { }, []); return ( -
+
{flows.length > 0 && tabId !== "" && flows.findIndex((flow) => flow.id === tabId) !== -1 && ( @@ -29,9 +29,9 @@ export default function FlowPage() { - {version &&
⛓️ LangFlow v{version}
} + {version &&
⛓️ LangFlow v{version}
}
Created by Logspace
From fdad5e7da3e4c9e98d94526c9e4514e58024f25f Mon Sep 17 00:00:00 2001 From: Igor Carvalho Date: Tue, 4 Jul 2023 20:44:38 -0300 Subject: [PATCH 4/6] feat: add main page constants classes --- src/frontend/src/index.css | 28 +++++++++++++++++++++++ src/frontend/src/pages/MainPage/index.tsx | 18 +++++++-------- 2 files changed, 37 insertions(+), 9 deletions(-) diff --git a/src/frontend/src/index.css b/src/frontend/src/index.css index 2c8b1c893..9f6796447 100644 --- a/src/frontend/src/index.css +++ b/src/frontend/src/index.css @@ -253,4 +253,32 @@ The cursor: default; property value restores the browser's default cursor style .logspace-icon-text { @apply mt-1 } + + .flex-max-width { + @apply flex w-full + } + + .main-page-panel { + @apply flex-max-width h-full flex-col overflow-auto bg-muted px-16 + } + + .main-page-nav-arrangement { + @apply flex-max-width justify-between px-6 py-12 pb-2 + } + + .main-page-nav-title { + @apply flex items-center justify-center gap-2 text-2xl font-semibold + } + + .main-page-nav-button { + @apply mr-2 w-4 + } + + .main-page-description-text { + @apply flex w-[60%] px-6 pb-14 text-muted-foreground + } + + .main-page-flows-display { + @apply grid w-full gap-4 p-4 md:grid-cols-2 lg:grid-cols-4 + } } \ No newline at end of file diff --git a/src/frontend/src/pages/MainPage/index.tsx b/src/frontend/src/pages/MainPage/index.tsx index 0b45a94ae..99df6a8a8 100644 --- a/src/frontend/src/pages/MainPage/index.tsx +++ b/src/frontend/src/pages/MainPage/index.tsx @@ -13,9 +13,9 @@ export default function HomePage() { }, []); const navigate = useNavigate(); return ( -
-
- +
+
+ {USER_PROJECTS_HEADER} @@ -26,7 +26,7 @@ export default function HomePage() { downloadFlows(); }} > - + Download Collection
- + Manage your personal projects. Download or upload your collection. -
+
{flows.map((flow, idx) => ( - + Edit Flow From 84aa84cc08d4f168b48dd30ecee36e3ce3171969 Mon Sep 17 00:00:00 2001 From: Igor Carvalho Date: Tue, 4 Jul 2023 21:02:43 -0300 Subject: [PATCH 5/6] feat: Add community page constants classes --- src/frontend/src/index.css | 24 +++++++++++++++++++ .../src/pages/CommunityPage/index.tsx | 16 ++++++------- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/src/frontend/src/index.css b/src/frontend/src/index.css index 9f6796447..3018b40c0 100644 --- a/src/frontend/src/index.css +++ b/src/frontend/src/index.css @@ -281,4 +281,28 @@ The cursor: default; property value restores the browser's default cursor style .main-page-flows-display { @apply grid w-full gap-4 p-4 md:grid-cols-2 lg:grid-cols-4 } + + .community-page-arrangement { + @apply flex-max-width h-full flex-col overflow-auto bg-muted px-16 + } + + .community-page-nav-arrangement { + @apply flex-max-width justify-between px-6 py-12 pb-2 + } + + .community-page-nav-title { + @apply flex items-center justify-center gap-2 text-2xl font-semibold + } + + .community-page-nav-button { + @apply flex gap-2 + } + + .community-page-description-text { + @apply flex w-[70%] px-6 pb-8 text-muted-foreground + } + + .community-pages-flows-panel { + @apply grid w-full gap-4 p-4 md:grid-cols-2 lg:grid-cols-4 + } } \ No newline at end of file diff --git a/src/frontend/src/pages/CommunityPage/index.tsx b/src/frontend/src/pages/CommunityPage/index.tsx index 175198c79..fb39a42e8 100644 --- a/src/frontend/src/pages/CommunityPage/index.tsx +++ b/src/frontend/src/pages/CommunityPage/index.tsx @@ -37,31 +37,31 @@ export default function CommunityPage() { handleExamples(); }, []); return ( -
-
- +
+
+ Community Examples - - + Discover and learn from shared examples by the LangFlow community. We welcome new example contributions that can help our community explore new and powerful features. -
+
{!loadingExamples && examples.map((flow, idx) => ( - + Fork Example } From d93dbef31b3cd57716fe183e20063617b6f88846 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Wed, 5 Jul 2023 11:51:06 -0300 Subject: [PATCH 6/6] style(index.css): remove unused text-color class and update components-disclosure-title class to use text-primary class for consistent styling style(DisclosureComponent): update Icon class to use text-primary class for consistent styling style(FlowPage): remove logspace-icon-text class and update the structure of the icon and text elements for better alignment and spacing --- src/frontend/src/index.css | 11 ++--------- .../FlowPage/components/DisclosureComponent/index.tsx | 2 +- src/frontend/src/pages/FlowPage/index.tsx | 2 +- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/frontend/src/index.css b/src/frontend/src/index.css index 3018b40c0..a9dfc0c1a 100644 --- a/src/frontend/src/index.css +++ b/src/frontend/src/index.css @@ -230,11 +230,8 @@ The cursor: default; property value restores the browser's default cursor style .components-disclosure-arrangement { @apply -mt-px flex w-full select-none items-center justify-between border-y border-y-input bg-muted px-3 py-2 } - .text-color { - @apply text-primary - } .components-disclosure-title { - @apply flex items-center text-sm text-color + @apply flex items-center text-sm text-primary } .components-disclosure-div { @apply flex gap-2 @@ -249,11 +246,7 @@ The cursor: default; property value restores the browser's default cursor style .logspace-page-icon:hover { @apply hover:h-12 } - - .logspace-icon-text { - @apply mt-1 - } - + .flex-max-width { @apply flex w-full } diff --git a/src/frontend/src/pages/FlowPage/components/DisclosureComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/DisclosureComponent/index.tsx index aa6da9f96..a35b8163e 100644 --- a/src/frontend/src/pages/FlowPage/components/DisclosureComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/DisclosureComponent/index.tsx @@ -14,7 +14,7 @@ export default function DisclosureComponent({
- + {title} diff --git a/src/frontend/src/pages/FlowPage/index.tsx b/src/frontend/src/pages/FlowPage/index.tsx index 8ff6c708a..7f9f2a214 100644 --- a/src/frontend/src/pages/FlowPage/index.tsx +++ b/src/frontend/src/pages/FlowPage/index.tsx @@ -31,7 +31,7 @@ export default function FlowPage() { href="https://logspace.ai/" className="logspace-page-icon" > - {version &&
⛓️ LangFlow v{version}
} + {version &&
⛓️ LangFlow v{version}
}
Created by Logspace