Commit graph

14,304 commits

Author SHA1 Message Date
Deon Sanchez
2b00041e4d
refactor: Minor style fixes (#4578)
* refactor: Update AccountMenu and Select components

- Refactor AccountMenu component to improve readability and simplify logic
- Update Select component to add support for direction prop and display ChevronUp icon when direction is set to "up"

Related work items: #4569, #4565

* refactor: Update header component UI

This commit refactors the header component in the MainPage to update its UI. It adds a sliding indicator for the view type (list or grid) and adjusts the styling of the buttons accordingly. It also removes commented out code related to the store button. Additionally, the commit updates the emptyFolder component by simplifying the text for the "New Flow" button.

Refactor the header component UI and update emptyFolder component

* refactor: Update HeaderMenu component UI

* Updated colors to use shadcn variables

---------

Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>
2024-11-13 20:07:49 +00:00
Gabriel Luiz Freitas Almeida
313f197c88
ci: Update CI path filters for frontend tests (#4571)
* Update changes-filter.yaml to include new component and starter project paths

* Update CI path filters and conditions for frontend and component changes
2024-11-13 19:37:20 +00:00
Lucas Oliveira
da0399373a
fix: improve js api code and fix tooltip z-index (#4577)
* Updated JS API code to simplify request

* Fixed tooltip z index

* Fix sidebar not working some buttons in collapsed state
2024-11-13 19:35:42 +00:00
anovazzi1
34b107b98e
fix: process.py to use validate_and_repair_json from utils.py (#4576)
Refactor process.py to use validate_and_repair_json from utils.py for nested dict tweaks
2024-11-13 10:58:40 -08:00
Gabriel Luiz Freitas Almeida
f78d3f40a5
chore: Bump version to 1.1.0 and 0.1.0 for langflow and langflow-base (#4574)
Bump version to 1.1.0 in pyproject.toml files
2024-11-13 10:45:08 -08:00
Cristhian Zanforlin Lousa
4e2ee25da8
test: Enhance test stability (#4566)
* 🐛 (genericIconComponent/index.tsx): fix optional chaining for split and map functions to prevent errors
🐛 (actionsMainPage-shard-1.spec.ts): remove redundant zoom_out click
🐛 (auto-login-off.spec.ts): reduce wait time from 2000ms to 1000ms
🐛 (freeze-path.spec.ts): change click target from "openai" to "OpenAI" for consistency
🐛 (freeze.spec.ts): change click target from "Split Text" to "Split Text" for consistency
🐛 (Dynamic Agent.spec.ts): skip test execution
🐛 (Hierarchical Agent.spec.ts): skip test execution
🐛 (Sequential Task Agent.spec.ts): skip test execution
🐛 (Simple Agent.spec.ts): skip test execution
🐛 (decisionFlow.spec.ts): change search input from "conditional router" to "if else"
🐛 (similarity.spec.ts): change search input from "openai" to "openai embedding"
🐛 (fileUploadComponent.spec.ts): enable test for file upload functionality

📝 (deleteComponents.spec.ts): Remove commented out code and enable test for deleting a component
📝 (deleteFlows.spec.ts): Enable test for deleting a flow
📝 (starter-projects.spec.ts): Enable test for interacting with starter projects
📝 (store-shard-3.spec.ts): Enable tests for ordering visualization and filtering by type
📝 (generalBugs-shard-13.spec.ts): Enable test for sharing a component on the store

* ⬆️ (typescript_test.yml): update matrix configuration to run tests on multiple shards for better parallelization
🔧 (typescript_test.yml): enable playwright test execution with shard index and total for parallel test execution

* 🐛 (genericIconComponent/index.tsx): fix optional chaining for split and map functions to prevent errors
🐛 (actionsMainPage-shard-1.spec.ts): remove redundant zoom_out click
🐛 (auto-login-off.spec.ts): reduce wait time from 2000ms to 1000ms
🐛 (freeze-path.spec.ts): change click target from "openai" to "OpenAI" for consistency
🐛 (freeze.spec.ts): change click target from "Split Text" to "Split Text" for consistency
🐛 (Dynamic Agent.spec.ts): skip test execution
🐛 (Hierarchical Agent.spec.ts): skip test execution
🐛 (Sequential Task Agent.spec.ts): skip test execution
🐛 (Simple Agent.spec.ts): skip test execution
🐛 (decisionFlow.spec.ts): change search input from "conditional router" to "if else"
🐛 (similarity.spec.ts): change search input from "openai" to "openai embedding"
🐛 (fileUploadComponent.spec.ts): enable test for file upload functionality

📝 (deleteComponents.spec.ts): Remove commented out code and enable test for deleting a component
📝 (deleteFlows.spec.ts): Enable test for deleting a flow
📝 (starter-projects.spec.ts): Enable test for interacting with starter projects
📝 (store-shard-3.spec.ts): Enable tests for ordering visualization and filtering by type
📝 (generalBugs-shard-13.spec.ts): Enable test for sharing a component on the store

* ⬆️ (typescript_test.yml): update matrix configuration to run tests on multiple shards for better parallelization
🔧 (typescript_test.yml): enable playwright test execution with shard index and total for parallel test execution

* 🐛 (Travel Planning Agent.spec.ts): Fix issue with setting API keys for OpenAI models and Search API
🐛 (Travel Planning Agent.spec.ts): Fix issue with clicking the wrong button for running chat output
🐛 (Travel Planning Agent.spec.ts): Fix issue with checking rate limit and skipping test logic
🐛 (Travel Planning Agent.spec.ts): Fix issue with checking output text for lowercase city names
🐛 (Vector Store.spec.ts): Fix issue with clicking the wrong button for creating a new flow
🐛 (Vector Store.spec.ts): Fix issue with filling the wrong input field for collection name in Vector Store RAG test

* 🔧 (generalBugs-shard-4.spec.ts): skip test case temporarily due to functionality not working with uplift designs

* Update test to use 'message history' instead of 'chat memory' in sidebar search input

* Update test selectors and expected values in dropdownComponent.spec.ts

* 📝 (Simple Agent.spec.ts): Remove unnecessary test.skip and commented out code
📝 (dropdownComponent.spec.ts): Update dropdown selection to match new text
📝 (starter-projects.spec.ts): Remove unused template IDs
📝 (store-shard-1.spec.ts): Update test.skip to test.skip for consistency
📝 (generalBugs-shard-10.spec.ts): Refactor test cases for promptText and newPromptText
📝 (generalBugs-shard-6.spec.ts): Add delay before interacting with elements to ensure stability

* Refactor tests to use `ControlOrMeta` for cross-platform keyboard shortcuts

*  (Simple Agent.spec.ts): update timeout value for waitForSelector to improve test reliability and prevent false negatives

* Handle undefined stars in GithubStarComponent to prevent errors

* Add waitForSelector to ensure sidebar search input is visible before interaction in chatInputOutput test

*  (Simple Agent.spec.ts): update timeout value to 5 minutes for "built successfully" message to allow for longer build times
 (Simple Agent.spec.ts): add additional test cases to check for the presence of "apple" in chat messages and ensure the total length of chat messages is greater than 100 characters

* 🐛 (Simple Agent.spec.ts): reduce timeout for "built successfully" text to improve test efficiency

*  (auto-login-off.spec.ts): add delay before checking visibility of elements to ensure proper rendering and improve test reliability

* Fix indentation in TypeScript test workflow file

* Update test IDs and expected values in dropdownComponent.spec.ts

* 📝 (playground.spec.ts): remove redundant code related to zooming out and dragging elements in the playground test
📝 (deleteComponents.spec.ts): update selectors for clicking buttons and elements in the deleteComponents test
📝 (deleteFlows.spec.ts): update selectors for clicking buttons and elements in the deleteFlows test
📝 (starter-projects.spec.ts): update selectors for starter projects in the extended features test to match changes in the application's UI.

*  (playground.spec.ts): remove skip from the test case to enable it to run during testing.

* Refactor timeout in playground test for better stability

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-11-13 18:11:51 +00:00
Lucas Oliveira
563b90ef28
fix: changes get started templates image, adds set color index to every starter template (#4569)
* Updated image to show entire grid

* Changed swatch index to use id

* Updated swatch index to not have negative numbers

* Updated starter examples to have the gradients already defined

* Make forked flow have the same color as the template
2024-11-13 14:59:02 +00:00
Eric Hare
3a73e01032
fix: Astra DB Graph Vector Store langchain 0.3.x (#4568) 2024-11-13 14:37:02 +00:00
Gabriel Luiz Freitas Almeida
f91a700893
ci: Limit workflows to Python files and optimize environment setup (#4567)
* Limit style check workflow to Python files only

* refactor: update autofix workflow to target Python files and optimize environment setup
2024-11-13 05:49:08 -08:00
Gabriel Luiz Freitas Almeida
151c369c6b
refactor: update starter projects to newest version of Components (#4565)
* refactor: update MemoryComponent display name and improve description

* Refactor `update_build_config` method to enhance provider-specific configuration handling in `Instagram Copywriter.json`

* Refactor `update_build_config` method to support provider-specific updates in `Market Research.json`

* Update `MemoryComponent` display name to "Message History" in starter template JSON

* Refactor `update_build_config` method to support component-specific updates in `Research Agent.json`

* Refactor `update_build_config` method to enhance provider-specific configuration handling in `SaaS Pricing.json`

* Refactor import path for MemoryComponent in starter project JSON files

* Update starter templates with enhanced build config logic and improved Yahoo Finance tool description

* Update import path for MemoryComponent in Travel Planning Agents template

* Update `update_build_config` method to call provider-specific `update_build_config` methods if available
2024-11-13 05:35:05 -08:00
Edwin Jose
5bb588c5cb
fix: aws components and model lists (#4560)
* models updated

removed image models,
It was removed earlier but some PR Messed up the list again.

* Update aws_constants.py

image embedd removed
2024-11-13 13:07:22 +00:00
Cristhian Zanforlin Lousa
9d98fbaa11
refactor(NodeToolbar): Remove open prop from Select component (#4563)
🔧 (nodeToolbarComponent/index.tsx): remove unnecessary 'open' prop from Select component to fix a UI issue
2024-11-13 12:23:18 +00:00
Cristhian Zanforlin Lousa
654d4815dc
refactor: standardize toolbar select item widths and improve alignment (#4539)
* 📝 (select-custom.tsx): Update styling in SelectItem component to improve consistency and readability
📝 (nodeToolbarComponent/index.tsx): Refactor SelectItem components to include consistent width styling for better alignment and visual appeal

*  (nodeToolbarComponent/index.tsx): Center align select items by adding 'm-auto' class to improve visual presentation.

*  (GenericNode/index.tsx): Add functionality to toggle show more options in GenericNode component
🔧 (nodeToolbarComponent/index.tsx): Pass setOpenShowMoreOptions function to toggle show more options in NodeToolbarComponent
📝 (components/index.ts): Update nodeToolbarPropsType to include setOpenShowMoreOptions function for better type checking

*  (nodeToolbarComponent/index.tsx): Update styles and dimensions for better UI consistency and alignment in the Node Toolbar Component.

* 🔧 (nodeToolbarComponent/index.tsx): Remove unnecessary 'm-auto' class from SelectItem components to improve code readability and reduce redundancy.

* 📝 (select-custom.tsx): Update styling in SelectItem component to improve consistency and readability
📝 (nodeToolbarComponent/index.tsx): Refactor SelectItem components to include consistent width styling for better alignment and visual appeal

*  (nodeToolbarComponent/index.tsx): Center align select items by adding 'm-auto' class to improve visual presentation.

*  (GenericNode/index.tsx): Add functionality to toggle show more options in GenericNode component
🔧 (nodeToolbarComponent/index.tsx): Pass setOpenShowMoreOptions function to toggle show more options in NodeToolbarComponent
📝 (components/index.ts): Update nodeToolbarPropsType to include setOpenShowMoreOptions function for better type checking

*  (nodeToolbarComponent/index.tsx): Update styles and dimensions for better UI consistency and alignment in the Node Toolbar Component.

* 🔧 (nodeToolbarComponent/index.tsx): Remove unnecessary 'm-auto' class from SelectItem components to improve code readability and reduce redundancy.

*  (actionsMainPage-shard-1.spec.ts): Update test descriptions to use "Document Q&A" instead of "Document QA" for consistency
📝 (Basic Prompting.spec.ts, Blog Writer.spec.ts, Document QA.spec.ts, Dynamic Agent.spec.ts, Hierarchical Agent.spec.ts, Memory Chatbot.spec.ts, Sequential Task Agent.spec.ts, Simple Agent.spec.ts, Travel Planning Agent.spec.ts, Vector Store.spec.ts): Remove 'skip' from test descriptions to enable running the tests.

* 🔧 (typescript_test.yml): Update shardIndex and shardTotal values to run tests on a single shard for simplicity
📝 (typescript_test.yml): Comment out unused test commands to improve readability and reduce confusion
 (starter-projects.spec.ts): Remove skip from test case to ensure it is executed as intended
2024-11-13 09:03:48 -03:00
Cristhian Zanforlin Lousa
8d89bf4ff4
refactor: reorganize memory components and enhance model inputs with improved documentation (#4529)
* new components improvements

*  (create_data.py): introduce a new 'legacy' attribute to mark the component as legacy code

* [autofix.ci] apply automated fixes

* chaing langchain hub name

* 📝 (run_flow.py): remove beta flag from RunFlowComponent to indicate it is no longer in beta
📝 (extract_key.py): remove beta flag from ExtractDataKeyComponent to indicate it is no longer in beta

* Updated generic icon component to load icons if already not lazy imported

* [autofix.ci] apply automated fixes

* merge fix

* 📝 (store_message.py): add 'advanced' parameter to the 'Session ID' field to indicate it is an advanced setting

* [autofix.ci] apply automated fixes

* new components sweep

* [autofix.ci] apply automated fixes

* fix tests

* [autofix.ci] apply automated fixes

*  (filterSidebar.spec.ts): Update test descriptions to reflect the correct component names for better clarity and maintainability
♻️ (freeze.spec.ts): Refactor test to use the correct component name for consistency and readability
♻️ (stop-building.spec.ts): Refactor test to use the correct component name for consistency and readability
♻️ (generalBugs-shard-9.spec.ts): Refactor test to use the correct component name for consistency and readability
♻️ (filterEdge-shard-1.spec.ts): Refactor test to use the correct component name for consistency and readability

* style: Improve YahooFinanceToolComponent description and code readability

Enhance clarity in the component's purpose and refine inline formatting to boost maintainability.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-11-12 20:19:24 -08:00
Gabriel Luiz Freitas Almeida
f978223744
fix: Add session_id and graph parameters to flow execution functions and update graph init in Flow as Tool (#4558)
* Add session_id and graph parameters to flow function and update graph initialization logic

* Enhance `FlowTool` with user and session context in graph creation

* Add session_id and graph parameters to flow execution functions
2024-11-12 19:45:38 -08:00
anovazzi1
1cd21e56d3
fix: Update setup of templates to consider component type (#4523)
* update setup of templates to update components considering it's type instead of the display name

* Add Amazon Bedrock as a model provider and update agent component logic

- Added "Amazon Bedrock" to the list of model provider options in multiple JSON files.
- Updated the `AgentComponent` class to include `get_model_name` for retrieving the model name.
- Changed the `tools` field requirement to optional in several JSON files.
- Added a `legacy` field to the Blog Writer JSON configuration.

* update main descriptions

* Skip tests for Basic Prompting, Blog Writer, Document QA, Dynamic Agent, Hierarchical Tasks Agent, Memory Chatbot, Sequential Task Agent, Simple Agent, Travel Planning Agent, and Vector Store RAG

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-11-12 19:45:15 -08:00
Edwin Jose
7b78a169d0
fix: Agent Component update_build_config, Nvidia and other model dynamic parameter loading (#4556)
* update in update_build_config

added support for dynamic models.

* [autofix.ci] apply automated fixes

* Add type checks for 'field_name' and 'prefix' in agent config update

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Nadir J <31660040+NadirJ@users.noreply.github.com>
2024-11-12 19:43:31 -08:00
anovazzi1
0abc51d75a
fix: AccountMenu component to conditionally render logout button based on autoLogin status (#4535)
Refactor AccountMenu component to conditionally render logout button based on autoLogin status
2024-11-12 19:31:43 -08:00
anovazzi1
f1fd5becc8
feat: add new starter projects and replace old ones (#4557)
* update templates

* fix ghost edges bug

* update templates

* [autofix.ci] apply automated fixes

* update naming and category

* remove unit tests for starter projects API in v1

* add starter projects back in

* Add unit test for GET /api/v1/starter-projects/ endpoint in FastAPI

* add rodrigo's updates

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-11-12 18:46:11 -08:00
Gabriel Luiz Freitas Almeida
7c0c881488
feat: Add option to deactivate tracing in service settings (#4527)
* Add option to deactivate tracing in service settings

* Add fixture to automatically deactivate tracing in tests using monkeypatch
2024-11-12 18:41:07 -08:00
Lucas Oliveira
e68c21a7af
fix: refactor settings page to use new sidebar and fix old bugs (#4545)
* Updated settings page sidebar to new sidebar

* Updated old home page to still work

* Fix padding on collapsed sidebar

* Fix able to drag on input component

* Fixed pagination position on big screens

---------

Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
2024-11-12 18:28:12 -08:00
Cristhian Zanforlin Lousa
9c004e7646
refactor: increase search sensitivity and simplify metadata filtering in FlowSidebarComponent (#4546)
🔧 (traditional-search-metadata.ts): Simplify filtering logic to only consider item metadata for search
🔧 (index.tsx): Adjust search threshold value to improve search accuracy
2024-11-12 18:09:33 -08:00
anovazzi1
8e0d6d55de
fix: Refactor DataFilterComponent inputs (#4524)
* refactor: Update DataFilterComponent inputs to use StrInput instead of MessageInput

* refactor: Update DataFilterComponent inputs to use MessageTextInput instead of StrInput

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-11-12 18:05:09 -08:00
anovazzi1
ac540a0940
fix: update tool mode toggle behavior in NodeToolbarComponent (#4554)
fix wrong behaviour in toogle

Co-authored-by: Nadir J <31660040+NadirJ@users.noreply.github.com>
2024-11-12 17:29:50 -08:00
Edwin Jose
da833a566a
fix: added model utils to get the model name (#4532)
* added model utils

model utils to find model name

* adding deafult

updated the logic

* Refactor get_model_name function to simplify logic

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
2024-11-12 17:27:28 -08:00
Sebastián Estévez
168c716c58
fix: update error handling in request for litellm models (#4536)
handle request exception for litellm models
2024-11-12 17:23:24 -08:00
Gabriel Luiz Freitas Almeida
f8f9b7cace
feat: add SIGTERM handling and update typer dependency (#4548)
* Update `typer` dependency to version 0.13.0 in `pyproject.toml`

* refactor: Simplify exception handling in the CLI

* Enhance lifespan function with clean shutdown and logging improvements

* Add graceful shutdown handling for SIGTERM and SIGINT signals

- Introduce signal handlers to manage SIGTERM and SIGINT for graceful server shutdown.
- Update exception handling to ensure processes terminate properly and log shutdown events.
- Modify server run logic to support signal-based shutdowns, improving reliability.

---------

Co-authored-by: Nadir J <31660040+NadirJ@users.noreply.github.com>
2024-11-12 19:42:18 -05:00
Eric Hare
335b649093
fix: Pass the OpenAI API Key to Crew() (#4555) 2024-11-12 16:05:27 -08:00
Cristhian Zanforlin Lousa
1199690a76
feat(input): Add drag prevention to popover and improve icon fallback handling (#4544) 2024-11-12 20:28:23 -03:00
anovazzi1
e2bdaf5fa7
fix: ContentBlockDisplay styling for block titles (#4550) 2024-11-12 20:27:15 -03:00
Edwin Jose
01431ee369
fix: aws bedrock load db credentials issue (#4537) 2024-11-12 20:25:55 -03:00
Deon Sanchez
f05decb7fc
refactor: Update AccountMenu and HeaderMenu components (#4534) 2024-11-12 23:19:04 +00:00
Mike Fortman
824f39ef36
fix: Fix header z-index issues (#4549)
fix header z index issues
2024-11-12 23:05:54 +00:00
Mike Fortman
8e42bafd6c
feat: update favicon (#4553)
update favicon
2024-11-12 16:55:07 -06:00
Eric Hare
70ebfc44f1
fix: Ensure ordering of astradb inputs (#4552) 2024-11-12 22:45:04 +00:00
Mendon Kissling
9e64ae80c9
Docs: New Getting Started (#4547)
* remove-and-redirect-1.0

* remove-and-redirect-installation-page

* remove-emojis-in-titles

* more-emoji

* welcome-cleanup-initial

* new-intro

* more-redirect

* better-title

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* code-review

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2024-11-12 22:31:09 +00:00
Edwin Jose
aca2b4be73
fix: tools as requried=False in Agents (#4525)
Update agent.py

tools as not required by default.
2024-11-12 22:20:33 +00:00
Edwin Jose
145d67f5a5
feat: add aws bedrock to AgentComponent (#4515)
* update model list as constants

update model list as constants
Add default value to Secret string variables

* Update amazon_bedrock.py

load_from_db false for session_token

* Update model_input_constants.py

aws bedrock added
2024-11-12 21:59:40 +00:00
Gabriel Luiz Freitas Almeida
3d65de4c79
ci: Add concurrency control to Run benchmarks workflow (#4551)
Add concurrency control to GitHub Actions workflow to cancel in-progress runs
2024-11-12 13:03:20 -08:00
Ítalo Johnny
4f905526ac
feature: update firecrawl components (#4458)
* chore: update Firecrawl components

* chore: update version firecrawl-py dependency
2024-11-12 13:01:43 -08:00
Eric Hare
be44183345
fix: KeyError in Langchain Hub component (#4530)
* fix: KeyError in Langchain Hub component

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-12 20:55:28 +00:00
Eric Hare
1dfa160385
fix: issue with dynamic inputs when selecting model (#4538) 2024-11-12 19:58:41 +00:00
Gabriel Luiz Freitas Almeida
0dc6cce8dc
tests: Enhance component testing and error handling with dynamic retrieval (#4526)
* Add module parameter to build_component_instance_for_tests function for dynamic component retrieval

* Enhance component test base with detailed version mapping and error handling

- Introduced `VersionComponentMapping` TypedDict for structured version mapping.
- Updated `FILE_NAMES_MAPPING` to use a list of `VersionComponentMapping`.
- Added comprehensive error messages for missing or invalid mappings in `test_all_versions_have_a_file_name_defined`.
- Improved `test_component_versions` with detailed exception handling and error reporting.
- Ensured `component_class` is defined before running tests.

* Refactor FILE_NAMES_MAPPING to use a list of dictionaries for better structure and readability in test_prompt_component.py

* refactor: Enhance ComponentTestBase with fixture validation and improved version handling

* Refactor test setup in `test_prompt_component.py` to use fixtures for improved modularity and readability

* fix: Add PlaceholderGraph NamedTuple and handle 'graph' attribute in Component class

* Add attribute checks for 'graph' and 'vertex' to prevent errors

* Handle missing 'graph' attribute in 'store_message' method to prevent errors.

* Handle missing 'graph' attribute in Message creation to prevent errors

* Handle missing 'graph' attribute in chat message flow ID assignment

* Add component code to test instance creation and error logging

* Update SUPPORTED_VERSIONS to remove older versions

* test: add unit tests for ChatInput and TextInputComponent

Implement comprehensive tests for both ChatInput and TextInputComponent to ensure proper functionality, including message responses and handling of various input scenarios. This enhances reliability and aids in future development.

* test: add unit tests for ChatOutput and TextOutputComponent

Implement comprehensive tests for ChatOutput and TextOutputComponent, validating message responses, source properties, and behavior with various input types to ensure reliability and consistency across output components.

* Update JSON files to improve code readability and add missing info fields

- Added missing `info` fields to various input components to provide better context and descriptions.
- Improved code readability by ensuring consistent formatting and structure across JSON files.
- Updated `message_response` method to handle cases where `graph` attribute might not be present.
- Enhanced `build_vectorize_options` method to set `authentication` and `parameters` to `None` if no values are provided.
- Refined `AgentComponent` to include `info` for `agent_llm` and other fields, improving clarity on their purpose.

* Refactor: update attribute access to use private `_vertex` attribute

* test: enhance TextInputComponent tests and update properties assertions

* Remove redundant unit tests for output components in test_output_components.py

* feat: add PlaceholderGraph for backwards compatibility and enhance Component attributes

* fix: improve run_id assignment and ensure user_id is a string in PlaceholderGraph

* Add check for non-empty incoming_edges in get_properties_from_source_component
2024-11-12 10:50:56 -08:00
Lucas Oliveira
ae966ab588
fix: added new image to get started templates, fixed sidebar overlapping bug (#4533)
* Fixed flow on top of sidebar

* Fixed get started templates design and bg image

* Fixed build button overflowing

* Changed truncation of list

* Fixed colors on collapse buttons

* Fixed is mobile hook and fixed sidebar not reappearing after hiding it in small screens

* Changed to max char 110
2024-11-12 18:34:45 +00:00
Mike Fortman
94561426a2
feat: Implement new Langflow Logo throughout the application (#4509)
* Logo changes

* favicons

* [autofix.ci] apply automated fixes

* pr comment: use tailing height/width

* tiny feature flag wrapping fix

* update favicon

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-12 11:37:55 -06:00
Mendon Kissling
bcd7617e48
Docs: Contributing folder (#4415)
* issues

* contributing

* telemetry-cleanup

* name

* name

* pr-guidance

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* code-review

* move-discussions

* have-written

* why-to-run-locally

* clarify-how-to-contribute

* add-custom-component-page

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* update-join-the-community-age

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2024-11-12 17:05:08 +00:00
Lucas Oliveira
ab71e2fa15
fix: upgraded agent tool mode switch ux, fixed icon color on main page, fixed pagination ui on main page (#4501)
* Added bg background for icon on Agent

* Changed system prompt description

* Added toggle to node toolbar for tool mode

* Removed copy from node toolbar

* Fixed node last output border

* Removed beta tag from agent

* remove text foreground from grid

* updated paginator style

* Fixed pagination element disposition on main page

* Fixed node icon

* Removed storeComponent from pagination

* removed storeComponent from paginator type

* Fixed canvas dots color

* Changed pagination design

* fixed gap

* Fix minimized state on components that have a custom icon

* Fixed exibition of flow running state to not make the header jump

* Fixed starter flows
2024-11-12 16:31:36 +00:00
Mendon Kissling
692af0eef4
Docs: Settings pages (#4425)
* settings-content

* my-collection-location-and-slug

* my-collection

* redirects

* more-cleanup

* docs:: fixed-components-menu-item

* move-settings-content-and-redirect

* title-case

* case

* code-review

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
2024-11-12 10:34:11 -05:00
Cristhian Zanforlin Lousa
2ddd773512
refactor: rename CSV component and update Google OAuth imports (#4521)
* change csv to data name, change googleauth folder

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-12 15:22:15 +00:00
Eric Hare
8cd87210ad
feat: Add a WikiData API Tool Component (#4512)
* feat: Add a WikiData API Tool Component

* [autofix.ci] apply automated fixes

* Update wikidata_api.py

* Fix casing and import in init

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-12 15:03:01 +00:00