Commit graph

4,940 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
13d53a8533 refactor: Update GenericNode and related hooks to handle component type
This commit updates the GenericNode component and its related hooks to handle the component type. The code changes in the index.tsx file of the GenericNode directory include modifying the updateNodeCode function to accept an additional "type" parameter. The handleNodeClass function in the use-handle-node-class.tsx file has also been updated to handle the "type" parameter. These changes ensure that the GenericNode component can correctly handle different types of components and update the node code accordingly.
2024-06-23 15:25:13 -07:00
lucaseduoli
d07c2a6128 Apply Prettier formatting 2024-06-23 15:24:25 -07:00
Lucas Oliveira
b42d340787 Changed naming of some projects 2024-06-23 15:24:25 -07:00
lucaseduoli
1e1652280c Apply Prettier formatting 2024-06-23 15:24:25 -07:00
Lucas Oliveira
a8c474588c Removed markdown to not cause problems 2024-06-23 15:24:25 -07:00
cristhianzl
d4080b81f9 💄 (paginatorComponent): update button styles to include fixed height and width
 (paginatorComponent): add size prop to buttons for consistent styling
2024-06-23 15:21:26 -07:00
cristhianzl
4dd64e486b 💄 (paginatorComponent): remove fixed height and width from paginator buttons for better responsiveness 2024-06-23 15:21:26 -07:00
Gabriel Luiz Freitas Almeida
c06227e7d0 refactor: Simplify getJsApiCode utility function
Simplify the getJsApiCode utility function in the get-js-api-code.tsx file. The unnecessary replacement of JavaScript boolean literals has been removed, improving code readability and maintainability.
2024-06-23 12:00:48 -07:00
Gabriel Luiz Freitas Almeida
590ab5135e refactor: Update CodeTabsComponent to handle additional tabs
This commit updates the CodeTabsComponent to handle an additional tab in the code tabs display. The previous implementation had a condition that checked if the active tab index was less than 4, but it has been updated to check if the active tab index is less than 5. This change ensures that the component can handle the new tab and display the corresponding content correctly. The code has been modified in the index.tsx file of the CodeTabsComponent directory.
2024-06-23 12:00:48 -07:00
Gabriel Luiz Freitas Almeida
cdbf1a62df refactor: Add getJsApiCode utility function for generating JavaScript code
This commit adds a new utility function called getJsApiCode to the apiModal/utils/get-js-api-code.tsx file. The function generates JavaScript code for interfacing with an API using the LangflowClient class. It takes several parameters including the flowId, isAuth, tweaksBuildedObject, and endpointName. The function constructs a LangflowClient instance and defines methods for making API requests, handling streams, and running flows. It also includes a main function that demonstrates how to use the LangflowClient to initiate a session and handle stream updates. This utility function improves code organization and reusability.
2024-06-23 12:00:48 -07:00
ogabrielluiz
86f8b3e945 Apply Prettier formatting 2024-06-22 17:39:37 -07:00
Gabriel Luiz Freitas Almeida
8f2232575d refactor: Handle error updating Component code in GenericNode
When updating the Component code in GenericNode, handle any errors that occur. If an error occurs, display an error message with instructions to report the issue on Discord or GitHub. This improves the error handling and user experience when updating the Component code.
2024-06-22 17:39:37 -07:00
Gabriel Luiz Freitas Almeida
f4517b250e refactor: remove Prompt from ignored components list 2024-06-22 17:39:37 -07:00
ogabrielluiz
0f615e0b32 Apply Prettier formatting 2024-06-22 12:25:28 -07:00
anovazzi1
8e0b6cdf68 Apply Prettier formatting 2024-06-22 12:25:28 -07:00
anovazzi1
73c43ee529 refactor: Update editable prop in MessagesPage component 2024-06-22 12:25:28 -07:00
anovazzi1
cd02755f7d refactor: Update TextModal to use TextEditorArea for text input 2024-06-22 12:25:28 -07:00
anovazzi1
370f2dff6b refactor: Update TextModal to use TextEditorArea for text input 2024-06-22 12:25:28 -07:00
anovazzi1
eebaea3788 fix refresh on App 2024-06-22 12:25:28 -07:00
anovazzi1
7cf74e733b make onChange updatable 2024-06-22 12:25:28 -07:00
anovazzi1
6f0957aeac updating inside text modal but with bugs 2024-06-22 12:25:28 -07:00
Fendi
45c5e39661 fix: sidebar search input auto fill value when first loading 2024-06-22 11:44:52 -07:00
joaoguilhermeS
1def0fa9bc chore: Updating poetry lock file 2024-06-22 08:56:54 -07:00
italojohnny
0687f95d3d Apply Prettier formatting 2024-06-22 08:23:30 -07:00
anovazzi1
131062125f update display of stop button 2024-06-22 08:23:30 -07:00
anovazzi1
53bf1ce015 add window.stop() to stop current requests 2024-06-22 08:23:30 -07:00
anovazzi1
34333e1d50 add stop button on building 2024-06-22 08:23:30 -07:00
anovazzi1
ca3e8de432 feat: Add lockChat functionality to FlowStore
This commit adds the lockChat functionality to the FlowStore in order to control the chat lock state. The  method is implemented to update the  state variable. This feature enhances the user experience by allowing the chat to be locked or unlocked as needed.
2024-06-22 08:23:30 -07:00
Gabriel Luiz Freitas Almeida
716d2567bd refactor: Update Vite configuration to use port 3000 as default 2024-06-21 20:04:20 -07:00
Gabriel Luiz Freitas Almeida
e19d9c90ea refactor: Update logs to outputs in relevant classes and methods 2024-06-21 20:04:20 -07:00
Cristhian Zanforlin Lousa
74b8b98cb2
Two edges (#2249)
* fix error on port frontend variable .env

*  (constants.ts, vite.config.mts): add support for configurable LANGFLOW_HOST environment variable to allow dynamic backend URL configuration

* 🔧 (constants.ts, vite.config.mts): consolidate backend URL configuration into a single environment variable
2024-06-21 17:26:58 -03:00
cristhianzl
324b76d2d1 🐛 (index.tsx): remove unused parameter folderId from handleFolderChange function to fix potential bug 2024-06-21 14:45:20 -03:00
anovazzi1
d80df8e3c5 Apply Prettier formatting 2024-06-21 15:28:25 +00:00
anovazzi1
64eb2e0f99 refactor: Improve InputGlobalComponent behavior and data handling 2024-06-21 12:26:57 -03:00
ogabrielluiz
d092211375 Apply Prettier formatting 2024-06-21 00:28:53 +00:00
Gabriel Luiz Freitas Almeida
6b30238f61 refactor: Remove extraneous property from is-unicode-supported dependency 2024-06-20 21:27:38 -03:00
Gabriel Luiz Freitas Almeida
4e705b8af1 refactor: Update parameterComponent to disable editing when disabled prop is true 2024-06-20 21:27:37 -03:00
cristhianzl
fac5c75fe6 (tests): update locators in end-to-end tests for chat, dropdown, and file upload components
 (tests): update locators and tooltips in end-to-end tests for filterEdge
 (tests): add random name generation in store.spec.ts for unique flow names
 (tests): update locators in textInputOutput.spec.ts for consistency

 (twoEdges.spec.ts): update test to click correct icon-Eye element and remove redundant checks
2024-06-20 18:30:11 -03:00
cristhianzl
1297d3b892 💄 (sideBarFolderButtons): adjust spacing and icon button size for better UI consistency 2024-06-20 16:29:56 -03:00
ogabrielluiz
68e609fe34 Apply Prettier formatting 2024-06-20 16:42:14 +00:00
anovazzi1
000d44ffe0 refactor: Remove unused code and comments in OutputComponent/index.tsx 2024-06-20 12:22:28 -03:00
Gabriel Luiz Freitas Almeida
e7043443ce refactor: Migrate from BaseLanguageModel to field_typing.LanguageModel 2024-06-20 11:10:52 -03:00
Gabriel Luiz Freitas Almeida
d3731edb69 🐛 (Langflow Blog Writer.json): change return type of fetch_content method from Data to list[Data] to match the actual return value and improve code consistency. 2024-06-19 20:23:35 -03:00
anovazzi1
bcafa2e5eb remove freeze from group 2024-06-19 20:03:21 -03:00
anovazzi1
c2382b97db add output preview for grouped components 2024-06-19 19:46:19 -03:00
Lucas Oliveira
acd2e4daed Fixed content not being colored on genericModal 2024-06-19 17:37:49 -03:00
anovazzi1
036f77fde2 Fix issue with file validation in Message class 2024-06-19 17:32:52 -03:00
anovazzi1
5ef3b70385 update cleanEdges 2024-06-19 16:31:05 -03:00
Lucas Oliveira
c31cf6fd1e Fixed handle tooltip being on the wrong place 2024-06-19 15:46:17 -03:00
Lucas Oliveira
20b7b6acd6 Fixed buttons on nodes being draggable 2024-06-19 15:37:46 -03:00