Commit graph

2,057 commits

Author SHA1 Message Date
Cristhian Zanforlin Lousa
df3ce5a3d8 🐛 fix(parameterComponent): add support for 'int' type in conditional rendering to display a component
 feat(parameterComponent): add support for 'dict' and 'NestedDict' types in conditional rendering to display a component
🐛 fix(codeTabsComponent): import missing functions from reactflowUtils to fix build error
 feat(codeTabsComponent): add support for 'dict' and 'NestedDict' types in conditional rendering to display a component
 feat(codeTabsComponent): add DictComponent and KeypairListComponent to handle 'dict' and 'NestedDict' types
🐛 fix(ApiModal): import missing function from reactflowUtils to fix build error
 feat(ApiModal): add support for 'dict' and 'NestedDict' types in conditional rendering to display a component
🐛 fix(types): add Object type to buildTweakObject function in codeTabsPropsType
🐛 fix(reactflowUtils): add missing convertArrayToObj function to convert array of objects to object
 feat(reactflowUtils): add convertArrayToObj function to convert array of objects to object

🐛 fix(utils.ts): fix indentation and formatting issues in groupByFamily function
🐛 fix(utils.ts): fix indentation and formatting issues in buildTweakObject function
🐛 fix(utils.ts): fix indentation and formatting issues in getPythonApiCode function
🐛 fix(utils.ts): fix indentation and formatting issues in getCurlCode function
🐛 fix(utils.ts): fix indentation and formatting issues in getPythonCode function
🐛 fix(utils.ts): fix indentation and formatting issues in getChatComponentCode function
2023-09-26 12:07:31 -03:00
Cristhian Zanforlin Lousa
0e6b38c427 🔥 refactor(dictAreaModal/index.tsx): remove unnecessary console.log statement
The console.log statement was not providing any useful information and was removed to improve code cleanliness and performance.
2023-09-26 11:21:49 -03:00
Cristhian Zanforlin Lousa
f56dcc03b0 Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev 2023-09-26 11:21:38 -03:00
Cristhian Zanforlin Lousa
6803cd1d8c 🐛 fix(dictComponent): fix useEffect dependency to onChange instead of value to prevent unnecessary re-rendering
🐛 fix(keypairListComponent): add rows prop to Textarea components to fix rendering issue

🐛 fix(EditNodeModal): remove unused state variables and fix rendering issue with dict and NestedDict types

🐛 fix(dictAreaModal): fix useEffect dependency to dictObj instead of value to prevent unnecessary re-rendering
2023-09-26 11:21:30 -03:00
anovazzi1
41d18edc97 update package lock json 2023-09-26 10:46:55 -03:00
anovazzi1
b833d45fd1
Adds async processing, session management and a starter cloud setup (#921)
This PR adds the ability to use Redis as cache, Celery for task
execution, Session management, async tasks for the API and some other
improvements.

Run the following command after setting up the .env file in `./deploy`
folder:
```bash
docker compose up --exit-code-from tests tests result_backend broker celeryworker db --build
```
2023-09-26 10:34:38 -03:00
Cristhian Zanforlin Lousa
cc9f834178 🐛 fix(authContext.tsx): update cookie names for access token and refresh token to improve clarity and consistency
🐛 fix(api.tsx): update cookie names for access token and refresh token to match changes in authContext.tsx
2023-09-26 10:21:04 -03:00
Cristhian Zanforlin Lousa
5c57e62f55 🔄 refactor(keypairListComponent): replace Input component with Textarea component for key and value inputs
🐛 fix(keypairListComponent): fix incorrect prop name in Textarea component for value input
2023-09-26 08:19:31 -03:00
anovazzi1
c3df875f1a fix(AdminPage/index.tsx): fix off-by-one error in getUsersPage function call to correctly pass the index parameter
The getUsersPage function was being called with the incorrect index parameter. It was off by one, causing the wrong page of users to be fetched. This has been fixed by subtracting 1 from the index parameter before calling the function.
2023-09-25 18:09:14 -03:00
Gabriel Luiz Freitas Almeida
8bbf25ee14 🐛 fix(frontend): update format script in package.json to include all files in subdirectories for consistent code formatting 2023-09-22 18:16:57 -03:00
Gabriel Luiz Freitas Almeida
b3febf25dd Merge remote-tracking branch 'origin/dev' into celery 2023-09-22 14:50:19 -03:00
anovazzi1
758d5ac9d3 fix(EditFlowSettingsComponent): fix issue with invalidName state not updating correctly when input value is changed 2023-09-22 14:09:44 -03:00
Gabriel Luiz Freitas Almeida
05b1f3658e 🔧 chore(frontend): add newline at the end of package-lock.json file to adhere to coding conventions 2023-09-22 14:05:46 -03:00
Gabriel Luiz Freitas Almeida
78ecb4c341 Merge remote-tracking branch 'origin/dev' into celery 2023-09-22 12:53:05 -03:00
anovazzi1
795bf73752
Filter Menu Components on Click Edge (#932)
This branch implements the edge filtering feature.
2023-09-21 21:08:47 -03:00
anovazzi1
8275a9c2c1 chore(parameterComponent): remove unnecessary ts-ignore comments
fix(extraSidebarComponent): remove unnecessary if condition in handleBlur function
2023-09-21 21:00:17 -03:00
anovazzi1
a12a7fd1cc
New "more" nodeToolbar button (#952)
This PR introduces a new feature to enhance the editing capabilities of
nodes in our application. We've added a "More" button to the
nodeToolbar, which, when clicked, reveals additional options for editing
nodes.
2023-09-21 20:05:41 -03:00
anovazzi1
1796e349c2 fix(nodeToolbarComponent): fix indentation and formatting issues in the code
feat(nodeToolbarComponent): add support for minimal mode in the toolbar
feat(nodeToolbarComponent): add functionality to show/hide advanced options in the toolbar
2023-09-21 20:03:47 -03:00
anovazzi1
b18a91deb0 code format 2023-09-21 19:23:53 -03:00
anovazzi1
187724342f update message format to put api-key as header 2023-09-21 19:23:53 -03:00
igorrCarvalho
ac67fff000 Refactor: Make changes to api_key only show up in codetabs when authenticated 2023-09-21 19:23:53 -03:00
igorrCarvalho
b1ef10e79b Refactor: update Code Tabs PopUp with api_key 2023-09-21 19:23:53 -03:00
igorrCarvalho
7cead25c8b Remove console.log 2023-09-21 19:07:50 -03:00
igorrCarvalho
2c2197ecad Refactor: Make minimize button show up in the More button popup 2023-09-21 19:06:30 -03:00
igorrCarvalho
b7b7a93cdd formated code 2023-09-21 15:20:36 -03:00
igorrCarvalho
e4ba7364bb merge dev into feat-more 2023-09-21 15:17:08 -03:00
Cristhian Zanforlin Lousa
610e94759a 🐛 fix(api.tsx): update Authorization header to use access_token from cookies instead of accessToken variable to fix authentication issue 2023-09-21 11:50:01 -03:00
anovazzi1
8f01f5c838 chore(example.spec.ts): remove example.spec.ts test file
The example.spec.ts test file was removed as it is no longer needed.
2023-09-21 11:02:37 -03:00
igorrCarvalho
3cbe046e08 Refactor: Disable signUp button when form is invalid 2023-09-21 10:54:20 -03:00
anovazzi1
8a416c235b
Expand floatComponent Input Range (#889)
As detailed in OpenAI's documentation and GitHub issue #884, two float
fields in OpenAI have a range of -2 to 2.
For reference, visit:

Presence Penalty:
https://platform.openai.com/docs/api-reference/chat/create#presence_penalty
Frequency Penalty:
https://platform.openai.com/docs/api-reference/chat/create#frequency_penalty
Currently, FloatComponent only accepts values within [0-1]. This pull
request expands its range to [-2 to 2].
2023-09-20 23:14:30 -03:00
anovazzi1
55b71605ea login tests finished 2023-09-20 22:57:37 -03:00
anovazzi1
21605d09ba test(login.spec.ts): add test case to check if clicking on "Community Examples" button displays the community pages flows panel 2023-09-20 20:49:07 -03:00
anovazzi1
c6f6d69164 fix(login.spec.ts): update test description to be more specific and descriptive
feat(login.spec.ts): add test case for successful login with mocked API response
2023-09-20 20:48:14 -03:00
anovazzi1
b2f14793e3 migrate progress and install playwrite 2023-09-20 19:53:25 -03:00
anovazzi1
2459833b87
Feat: Introducing Node Minimization Feature (#906)
This pull request introduces a new feature that enhances the usability
and organization of our application's flow. We've added a convenient
"Minimize Node" button, empowering users to declutter their workspace
with a single click. This feature allows users to focus on the most
relevant nodes, resulting in a more efficient and visually pleasing
workflow.
2023-09-20 18:21:37 -03:00
anovazzi1
238dbf1b5f format code 2023-09-20 18:20:43 -03:00
Cristhian Zanforlin Lousa
e8524ea090 🐛 fix(extraSidebarComponent): update condition in useEffect to include search variable to properly reset filter data and edge when search is empty 2023-09-19 16:27:50 -03:00
Gabriel Luiz Freitas Almeida
f081a0079c Merge remote-tracking branch 'origin/main' into dev 2023-09-19 16:07:39 -03:00
Gabriel Luiz Freitas Almeida
2b454dc645 Formatting 2023-09-19 15:27:12 -03:00
igorrCarvalho
9163aee3ef Refactor: Change minimize icons 2023-09-19 15:24:39 -03:00
Cristhian Zanforlin Lousa
2f63d29ce4 🎨 style(App.css): add padding to the .jv-card class to improve spacing and readability
🔥 refactor(parameterComponent/index.tsx): remove unnecessary code block in the value prop to improve code clarity and maintainability
2023-09-19 15:03:12 -03:00
Cristhian Zanforlin Lousa
c9126fdb62 🔀 refactor(parameterComponent): remove unused properties from default parameter value object to improve code readability and maintainability 2023-09-19 14:51:01 -03:00
Cristhian Zanforlin Lousa
fe92ce85f9 🐛 fix(parameterComponent): change default key-value pair in case of empty value to improve clarity
🐛 fix(keypairListComponent): update placeholder text to improve user guidance
2023-09-19 14:42:49 -03:00
Gabriel Luiz Freitas Almeida
e528b1363e 🐛 fix(parameterComponent): add condition to prevent setting state if tabId does not exist in previous state 2023-09-19 14:33:57 -03:00
Cristhian Zanforlin Lousa
08c83fa555 🔧 fix(parameterComponent): remove unnecessary span element to improve code readability
🔧 fix(GenericNode): remove onClick event handler that resets filterEdge state to improve code simplicity
🔧 fix(PageComponent): add onPaneClick callback function to reset filterEdge state when clicking on the pane
2023-09-18 23:34:12 -03:00
Cristhian Zanforlin Lousa
83271fa0e8 🐛 fix(reactflowUtils.ts): remove unnecessary condition for template[t].type to improve code readability and maintainability 2023-09-18 22:59:40 -03:00
Cristhian Zanforlin Lousa
a6c80a8780 🐛 fix(reactflowUtils.ts): improve error message for empty key in validateNode function 2023-09-18 22:32:11 -03:00
Cristhian Zanforlin Lousa
52a8e6eeb5 🐛 fix(reactflowUtils.ts): fix validation logic for nested dictionaries in validateNode function
 feat(reactflowUtils.ts): add hasEmptyKey function to check for empty keys in dictionaries in validateNode function
2023-09-18 22:27:08 -03:00
Cristhian Zanforlin Lousa
b30f9ddf7f 🐛 fix(parameterComponent): convert parameter values to numbers before assigning them to improve data consistency
🔧 chore(reactflowUtils): add utility function to convert values to numbers in an array of objects
2023-09-18 21:51:22 -03:00
Cristhian Zanforlin Lousa
7d3f2377a5 🔧 fix(dictAreaModal/index.tsx): add useEffect hook to update dictObj state when value prop changes
🔧 fix(dictAreaModal/index.tsx): initialize dictObj state with value prop on component mount
2023-09-18 21:16:10 -03:00