From edefbacefb391cb329564f9be4333c8569f75ffd Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 8 Apr 2024 13:10:54 -0300 Subject: [PATCH] Update flow names to use "Hello, World" instead of "Hello, world!" --- docs/docs/whats-new/a-new-chapter-langflow.mdx | 2 +- .../modals/NewFlowModal/components/undrawCards/index.tsx | 2 +- src/frontend/src/modals/NewFlowModal/index.tsx | 6 ++---- tests/conftest.py | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/docs/whats-new/a-new-chapter-langflow.mdx b/docs/docs/whats-new/a-new-chapter-langflow.mdx index 3e5572145..bc3e498ba 100644 --- a/docs/docs/whats-new/a-new-chapter-langflow.mdx +++ b/docs/docs/whats-new/a-new-chapter-langflow.mdx @@ -61,7 +61,7 @@ We wanted to create start projects that would help you learn about new features For now, we have: -- **[Basic Prompting (Hello, world!)](/guides/basic-prompting)**: A simple flow that shows you how to use the Prompt Component and how to talk like a pirate. +- **[Basic Prompting (Hello, World)](/guides/basic-prompting)**: A simple flow that shows you how to use the Prompt Component and how to talk like a pirate. - **[Vector Store RAG](/guides/rag-with-astradb)**: A flow that shows you how to ingest data into a Vector Store and then use it to run a RAG application. - **[Memory Chatbot](/guides/memory-chatbot)**: This one shows you how to create a simple chatbot that can remember things about the user. - **[Document QA](/guides/document-qa)**: This flow shows you how to build a simple flow that helps you get answers about a document. diff --git a/src/frontend/src/modals/NewFlowModal/components/undrawCards/index.tsx b/src/frontend/src/modals/NewFlowModal/components/undrawCards/index.tsx index e595eaaeb..169890994 100644 --- a/src/frontend/src/modals/NewFlowModal/components/undrawCards/index.tsx +++ b/src/frontend/src/modals/NewFlowModal/components/undrawCards/index.tsx @@ -43,7 +43,7 @@ export default function UndrawCardComponent({ }} /> ); - case "Basic Prompting (Hello, world!)": + case "Basic Prompting (Hello, World)": return ( { return ; })} */} - {examples.find( - (e) => e.name == "Basic Prompting (Hello, world!)" - ) && ( + {examples.find((e) => e.name == "Basic Prompting (Hello, World)") && ( e.name == "Basic Prompting (Hello, world!)" + (e) => e.name == "Basic Prompting (Hello, World)" )! } /> diff --git a/tests/conftest.py b/tests/conftest.py index 7f7252243..cfec4f7ef 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -381,7 +381,7 @@ def get_starter_project(active_user): # once the client is created, we can get the starter project with session_getter(get_db_service()) as session: flow = session.exec( - select(Flow).where(Flow.folder == STARTER_FOLDER_NAME).where(Flow.name == "Basic Prompting (Hello, world!)") + select(Flow).where(Flow.folder == STARTER_FOLDER_NAME).where(Flow.name == "Basic Prompting (Hello, World)") ).first() if not flow: raise ValueError("No starter project found")