Commit graph

10,619 commits

Author SHA1 Message Date
anovazzi1
729f12d02e fix(recordsOutputComponent): set default value for columnMode prop to "union" to
prevent potential issues with missing prop
fix(utils.ts): set default value for mode parameter in extractColumnsFromRows
function to "union" to ensure consistent behavior and prevent errors
2024-06-04 15:18:34 -03:00
anovazzi1
885712ac06 refactor: improve displayOutputPreview logic in ParameterComponent 2024-06-04 15:14:32 -03:00
anovazzi1
9307b867c9 update title and description 2024-06-04 14:03:07 -03:00
cristhianzl
aed7d2eeca ♻️ (reactflowUtils.ts): reorder imports for better readability
♻️ (reactflowUtils.ts): remove unnecessary console.log statements
♻️ (reactflowUtils.ts): fix formatting issues and improve code consistency

💡 (reactflowUtils.ts): remove trailing commas to improve code consistency and readability

♻️ (utils.ts): use toTitleCase function for headerName to improve readability
2024-06-04 11:10:30 -03:00
cristhianzl
3925d15eaa (index.tsx): add data-testid attribute to save button for better testability
 (flowSettings.spec.ts): update test to use data-testid for save button click
2024-06-03 18:47:57 -03:00
cristhianzl
1940b8947d 🔧 (settings/base.py): increase max_overflow from 10 to 20 to allow more connections beyond the pool size 2024-06-03 18:24:19 -03:00
italojohnny
f1b5abd704 fix bug: flow_id 2024-06-03 18:18:10 -03:00
cristhianzl
9d033c9e34 merge 2024-06-03 15:49:51 -03:00
cristhianzl
999ce405c4 ♻️ (playwright.config.ts): increase workers to 10 for faster parallel tests
♻️ (playwright.config.ts): set headless to false for better debugging

♻️ (addNewVariableButton.tsx): add data-testid to save button for testing
🐛 (addNewVariableButton.tsx): fix optional chaining in error handling

♻️ (sideBarFolderButtons/index.tsx): add data-testid to input for testing
♻️ (sideBarFolderButtons/index.tsx): remove unnecessary commas

🐛 (api.tsx): fix duplicate request check to include method "get"
♻️ (api.tsx): remove unnecessary commas in function calls

♻️ (index.tsx): reorder import statements for better readability
💡 (index.tsx): remove trailing commas to adhere to coding standards
 (chatInputOutput.spec.ts): update file path for ChatTest.json for consistency
🐛 (darkStore.ts): add null check for GitHub stars to prevent potential errors

 (tests): update chatInputOutputUser.spec.ts to add new test for output inspection
🔧 (tests): fix path for collection.json in dragAndDrop.spec.ts

 (filterEdge.spec.ts): fix locator strings and remove redundant code
 (floatComponent.spec.ts): correct checkbox state expectations and remove redundant tests

 (folders.spec.ts): update folder creation and editing flow for consistency
 (globalVariables.spec.ts): remove redundant 'Save Variable' click action
 (inputComponent.spec.ts): fix incorrect locator for server port and improve readability

 (intComponent.spec.ts): add additional test steps for more options modal
 (saveComponents.spec.ts): update file path for flow_group_test.json
2024-06-03 14:52:03 -03:00
anovazzi1
f1555c41d5 refactor: remove console.log statement and update condition for displaying "NO OUTPUT" message 2024-05-31 17:44:29 -03:00
anovazzi1
300be557c2 feat(frontend): add ErrorOutput component to display error messages in output modal
feat(frontend): update SwitchOutputView to render ErrorOutput component for 'ValueError'
fix(frontend): update BaseModal header text in OutputModal component
fix(frontend): update displayOutputPreview logic in ParameterComponent to check for specific log type
2024-05-31 17:42:47 -03:00
cristhianzl
34677b6d3f 🐛 (index.tsx): handle 'valueError' resultType in SwitchOutputView component to display 'NO OUTPUT' for error cases 2024-05-31 16:33:09 -03:00
cristhianzl
87323adaa8 ♻️ (index.tsx): remove console.log statement and update condition for displaying "NO OUTPUT" message 2024-05-31 16:31:03 -03:00
cristhianzl
5bdf80da65 (RecordsOutputComponent): add support for dynamic column modes and rows
♻️ (TableComponent): remove unused useCallback import and add autoHeight
 (convert-to-table-rows): add helper function to convert objects to table rows
♻️ (SwitchOutputView): refactor to use new convertToTableRows helper and improve type checks
♻️ (OutputModal): change modal size to medium-log for better visualization
♻️ (IOFieldView): refactor to use new rows and columnMode props in RecordsOutputComponent

♻️ (baseModal): remove unnecessary comma in ReactElement type array
 (baseModal): add new size option "medium-log" for modal component
♻️ (textOutputView): simplify TextOutputView component props
♻️ (api): add params and messages to VertexBuildTypeAPI
♻️ (api): add type to logs in VertexDataTypeAPI
♻️ (api): make artifacts optional in VertexDataTypeAPI
♻️ (chat): make artifacts optional in FlowPoolObjectType
 (components): add playgroundDisabled to InputListComponentType
♻️ (components): fix formatting in various component types

♻️ (utils.ts): remove unused imports to clean up the code
 (utils.ts): add 'all' mode to extractColumnsFromRows for more flexibility
2024-05-30 14:34:32 -03:00
cristhianzl
4c927517b2 Merge branch 'cz/inspection' of https://github.com/langflow-ai/langflow into cz/inspection 2024-05-30 11:00:10 -03:00
cristhianzl
395fbad81a (index.tsx): add value prop to TextOutputView component to display text output value
🐛 (index.tsx): fix typo in TextOutputView component usage
2024-05-30 11:00:03 -03:00
anovazzi1
86b6672bbd refactor name props 2024-05-29 21:03:54 -03:00
anovazzi1
0ae9d8db6a chore: Refactor ParameterComponent handle button rendering
This commit refactors the rendering of the handle button in the ParameterComponent. It improves the readability and maintainability of the code by simplifying the logic and removing unnecessary ternary operators.
2024-05-29 20:36:37 -03:00
cristhianzl
6bbb3688ee merge fix 2024-05-29 20:15:29 -03:00
cristhianzl
312a959ae1 Merge branch 'cz/inspection' of https://github.com/langflow-ai/langflow into cz/inspection 2024-05-29 20:15:23 -03:00
cristhianzl
e6f466188c merge fix 2024-05-29 20:15:13 -03:00
anovazzi1
0d6547991f feat: Add OutputModal component for displaying output preview
This commit adds the OutputModal component to the ParameterComponent. The OutputModal component is responsible for displaying the output preview when the user clicks on the "Inspect Output" button. It improves the user experience by allowing them to easily view the output without leaving the current page.
2024-05-29 20:06:45 -03:00
italojohnny
d05e7c12f4 add new type to Log 2024-05-29 16:12:53 -03:00
italojohnny
b091c237b6 add variable to store unformatted data 2024-05-29 16:12:14 -03:00
italojohnny
c1cf8fe564 change return to dict for token cases 2024-05-29 16:01:54 -03:00
italojohnny
d575c97d15 Merge branch 'ij/chatimg' into cz/inspection 2024-05-28 15:59:18 -03:00
Ítalo Johnny
67442774cf
Merge branch 'dev' into ij/chatimg 2024-05-28 15:57:31 -03:00
italojohnny
440f2a9a86 add load_dotenv to tests 2024-05-28 15:55:29 -03:00
italojohnny
0bb19d8933 update json formatting 2024-05-28 15:55:09 -03:00
ogabrielluiz
5dce2cddef chore: Update Python API code to use optional typing and fix formatting 2024-05-28 15:45:16 -03:00
italojohnny
9c9a7f4aa1 return artifact type to front 2024-05-28 15:30:40 -03:00
italojohnny
0f195b59e1 retrieve and store artifact type 2024-05-28 15:30:35 -03:00
italojohnny
0dcfc21e05 add function to determine artifact type 2024-05-28 15:30:08 -03:00
italojohnny
7f6385a609 update branch with changes from dev 2024-05-28 14:59:56 -03:00
Mendon Kissling
273df44963
[Docs] - Leftnav and syntax items (#1993)
Some docs syntax items @rodrigosnader requested - 
1. Merge canvas and flows/components/projects doc into 1 doc
2. Move HF Spaces to install, remove page and nav item
3. Remove install from starter projects and link to install page
4. All title case nav
2024-05-28 13:01:45 -04:00
Mendon Kissling
43bea36155 remove-install-from-starter-projects 2024-05-28 11:48:31 -04:00
Mendon Kissling
8a6dfae8d7 title-case 2024-05-28 11:26:43 -04:00
ogabrielluiz
701d6e6995 chore: Update package versions in pyproject.toml files 2024-05-28 12:24:43 -03:00
Mendon Kissling
e38123c951 combine-flows-doc-into-canvas 2024-05-28 11:22:49 -04:00
yamonbt
72f09d65b6
A better implementation of the Ollama component (#1701)
* Update OllamaModel.py

A draft to synchronize the model using the latest Langflow architecture and to improve it according to the latest Langchain specifications.

* Update OllamaModel.py

Checkout Models from api

* Update OllamaModel.py

* Update OllamaModel.py

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-05-28 08:20:58 -07:00
Lucas Oliveira
7d67f36000
Fix Building timeout and macbook shortcuts (#1964)
* Fixed shortcuts not working on mac

* fixed top level vertices and added timeout

* revert flowStore changes

* chore: Update worker timeout setting

* feat: Add endpoint to retrieve config settings

The commit adds a new endpoint `/config` to retrieve the configuration settings. This endpoint returns the `ConfigResponse` model, which includes the `timeout` value. The implementation handles any exceptions and logs them appropriately.

* feat: Add fetchConfig function to retrieve configuration settings

This commit adds a new function fetchConfig to the API utils module. The function makes an HTTP GET request to the /config endpoint and returns the configuration data. Any errors that occur during the request are logged and rethrown. This function will be used to initialize the application with the fetched configuration.

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>

* revert changes

* feat: Add setupAxiosDefaults function to initialize Axios configurations

This commit adds a new function setupAxiosDefaults to the API utils module. The function fetches the configuration data using the fetchConfig function and sets up default configurations for Axios. It sets the base URL and timeout for Axios requests based on the fetched configuration. This function will be used to initialize Axios with the correct configurations.

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>

* fix(langflow): rename 'timeout' setting to 'worker_timeout' for clarity and consistency
feat(langflow): add 'frontend_timeout' setting to control frontend API call timeout
chore(langflow): reorganize imports and constants in settings module for better readability

* Set frontend_timeout to 0

---------

Co-authored-by: ogabrielluiz <gabriel@langflow.org>
2024-05-28 08:18:36 -07:00
cristhianzl
f1d90110ae feat: Add TextOutputView component for displaying text output
This commit adds a new component called TextOutputView to the shared/components directory. The TextOutputView component is responsible for displaying text output in a textarea. It receives the necessary data from the flowPool and renders the appropriate text. This component improves the code organization and reusability of the text output display logic.
2024-05-28 12:16:47 -03:00
cristhianzl
24ef4034b6 Refactor: Revamp utils Folder Structure 2024-05-28 12:16:38 -03:00
Gabriel Luiz Freitas Almeida
56fc11a99c
feat: Update ChromaSearch and ChromaComponent to use chromadb library (#1992)
The code changes in `ChromaSearch.py` and `Chroma.py` import the `chromadb` library and use it to create a `HttpClient` object. This change enables the components to interact with a Chroma server for vector search functionality.

This commit message follows the established convention of starting with a type (feat for feature) and providing a concise summary of the changes.
2024-05-28 08:16:37 -07:00
cristhianzl
62d7385d65 feat: Add useCheckCodeValidity and useIconNodeRender hooks
This commit adds two new hooks, useCheckCodeValidity and useIconNodeRender, to the customNodes/hooks directory.

The useCheckCodeValidity hook is responsible for checking the validity of the code in a node template and setting the "isOutdated" state accordingly. It improves the code organization and ensures that the code is only checked once.

The useIconNodeRender hook is responsible for rendering the appropriate icon for a node based on its data and type. It improves code reusability and simplifies the rendering logic.
2024-05-28 12:16:28 -03:00
cristhianzl
599e45af9f feat: Add useIconStatus hook for rendering icon status
This commit adds a new hook called useIconStatus to the customNodes/hooks directory. The useIconStatus hook is responsible for rendering the appropriate icon status based on the build status and validation status. It returns the rendered icon status component. This hook improves the code organization and reusability of the icon status logic.

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
2024-05-28 12:16:16 -03:00
cristhianzl
9edf4c84e4 Refactor: Revamp utils Folder Structure 2024-05-28 12:15:22 -03:00
cristhianzl
391ed6a001 feat: Add OutputModal component for displaying output visualization
The new OutputModal component is added to the genericNode module. It provides a modal window for displaying the output visualization. The component includes a header, content, and footer sections. The content section includes the SwitchOutputView component, which renders different output views based on the type of results. The footer section includes an "Ok" button for closing the modal.
2024-05-28 12:15:11 -03:00
Mendon Kissling
b916ef0ebc remove-hf-space-page 2024-05-28 11:12:11 -04:00
Mendon Kissling
2d9719946a hf-spaces-and-subfolder 2024-05-28 11:11:11 -04:00