Commit graph

5,090 commits

Author SHA1 Message Date
anovazzi1
be69a216de fix(authContext.tsx): update useEffect dependencies to include setUserData, setLoading, autoLogin, and setIsAdmin to prevent unnecessary re-renders and ensure proper functionality
feat(authContext.tsx): add support for autoLogin and userData in the TypesProvider component to retrieve and save custom components based on user data

fix(typesContext.tsx): update useEffect dependencies to include autoLogin and userData to ensure proper functionality and prevent unnecessary re-renders

fix(typesContext.tsx): handle error when fetching types and log the error for debugging purposes

feat(typesContext.tsx): add saveComponent function to save custom components to localStorage and update the data state with the new component

fix(nodeToolbarComponent/index.tsx): import typesContext from typesContext file to use the saveComponent function

feat(nodeToolbarComponent/index.tsx): call saveComponent function from typesContext to save the current node data as a custom component

feat(utils.ts): add IncrementObjectKey function to increment the key of an object if it already exists, to avoid overwriting existing keys in localStorage
2023-09-25 22:04:50 -03:00
anovazzi1
00e25c9495 feat(typesContext.tsx): add support for saving components to local storage
- Added import statements for necessary types and utility functions
- Added `saveComponent` function to the `typesContextType` interface
- Implemented `saveComponent` function to save a component to local storage

fix(nodeToolbarComponent/index.tsx): fix typo in case statement
- Fixed typo in case statement for "Download" option

feat(nodeToolbarComponent/index.tsx): add logic to handle "SaveAll" option
- Added logic to handle the "SaveAll" option in the switch statement
- Added condition to check if user is authenticated
- Added condition to check if user is auto-logged in
- Added console logs for debugging purposes

feat(entities/index.ts): add type definition for local storage user data
- Added `localStorageUserType` type definition to represent the structure of user data stored in local storage

feat(typesContext/index.ts): add type definition for node data
- Added `NodeDataType` type definition to represent the structure of node data

feat(utils.ts): add utility function to check if local storage key exists
- Added `checkLocalStorageKey` function to check if a given key exists in local storage
2023-09-25 20:59:04 -03:00
anovazzi1
1a962d8cfc format code 2023-09-22 15:28:51 -03:00
anovazzi1
ba1902d7fb add TODO comment 2023-09-22 15:28:25 -03:00
anovazzi1
9f7f6c84aa feat(nodeToolbarComponent): add functionality to download node as JSON file
feat(reactflowUtils): add functions to create a flow component and download a node as a JSON file

The changes in `nodeToolbarComponent` include importing the `downloadNode` function from `reactflowUtils` and adding a case in the switch statement to call the `downloadNode` function when the action is "SaveAll". This allows the user to download the node as a JSON file.

In `reactflowUtils`, two new functions are added. The `createFlowComponent` function takes in node data and creates a flow component with the necessary structure. The `downloadNode` function takes a flow component and converts it into a JSON file that can be downloaded by the user.
2023-09-22 15:18:52 -03:00
anovazzi1
7f3d57bfaa fix(nodeToolbarComponent): refactor handleSelectChange function to use switch statement for better readability and maintainability
feat(nodeToolbarComponent): add "SaveAll" option to the select dropdown and log a message when selected
2023-09-22 14:46:01 -03:00
anovazzi1
742ebae878 feat(nodeToolbarComponent): add "Save" option to the select dropdown in the node toolbar component to allow saving changes made to the node
fix(styleUtils): import the "SaveAll" icon from lucide-react to be used in the nodeIconsLucide object
2023-09-22 14:32:43 -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
a64ee239de
Add env variables to set superuser on deploy (#943) 2023-09-22 12:48:33 -03:00
Gabriel Luiz Freitas Almeida
6151052b18
Merge branch 'dev' into add_cli_options_superuser 2023-09-22 12:48:26 -03:00
Gabriel Luiz Freitas Almeida
43df53363d Merge remote-tracking branch 'origin/main' into dev 2023-09-22 12:44:46 -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
Gabriel Luiz Freitas Almeida
c10b9927e1
Release 0.4.21 (#950) 2023-09-21 10:05:31 -03:00
Gabriel Luiz Freitas Almeida
1bb9b1c363
Bump version to 0.4.21 (#949) 2023-09-21 10:02:40 -03:00
Gabriel Luiz Freitas Almeida
f6ea541477 🔧 chore(Makefile): update mypy command to exclude .venv folder and only check files in ./src/backend/langflow directory 2023-09-21 10:01:37 -03:00
Gabriel Luiz Freitas Almeida
81e8a0dcc6 📦 chore(pyproject.toml): update langchain dependency to version 0.0.271 for improved functionality
🐛 fix(test_llms_template.py): update description of model["description"] to match the correct format
2023-09-21 09:59:53 -03:00
Gabriel Luiz Freitas Almeida
9920bfd7e0
🔧 chore(langfuse.py): add support for configurable Langfuse host to improve flexibility and maintainability (#948)
Closes #947
2023-09-21 06:42:50 -03:00
Gabriel Luiz Freitas Almeida
1ebf4e5b24 🔧 chore(langfuse.py): add support for configurable Langfuse host to improve flexibility and maintainability 2023-09-21 06:41:23 -03:00
Gabriel Luiz Freitas Almeida
4c6cd57a1f
fix(util.py): fix IndentationError while parsing from source code. (#944) 2023-09-21 06:28:49 -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
0fe70a8347
Front tests (#945)
finish tests for login
2023-09-20 22:59:00 -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
Gabriel Luiz Freitas Almeida
4aaeda8aa8 🔥 refactor(main.py): remove unused import and initialize_database function call to improve code cleanliness and remove unnecessary database initialization
🔥 refactor(main.py): remove initialize_database function call from app startup event to improve code cleanliness and remove unnecessary database initialization
🔥 refactor(base.py): remove unused teardown method and add set_ready method to improve code cleanliness and provide a way to set service readiness
2023-09-20 18:44:39 -03:00
Gabriel Luiz Freitas Almeida
f5c20ac166 🐛 fix(manager.py): call set_ready() method on the created service to indicate it is ready
🐛 fix(auth.py): validate superuser and superuser_password fields if AUTO_LOGIN is true
 feat(utils.py): add initialize_database() function to initialize the database connection
 feat(utils.py): call initialize_database() before setting up the superuser if the database manager is ready
2023-09-20 18:42:52 -03:00
Gabriel Luiz Freitas Almeida
4bfbb8d3aa 🔧 fix(conftest.py): remove unused imports and commented out code to improve code readability and maintainability
 feat(conftest.py): add support for LANGFLOW_AUTO_LOGIN environment variable to enable auto login during testing
2023-09-20 18:42:18 -03:00
Gabriel Luiz Freitas Almeida
2db9fa8ce8 🔧 chore(Makefile): add install_backend target to tests target to ensure backend dependencies are installed before running tests 2023-09-20 18:41:41 -03:00
Gabriel Luiz Freitas Almeida
20e14d49b4 🐛 fix(test_database.py): remove unused imports to improve code readability
 feat(test_database.py): add support for session management using session_getter to improve code organization and maintainability
🐛 fix(test_endpoints.py): remove unused imports to improve code readability
 feat(test_endpoints.py): add support for session management using session_getter to improve code organization and maintainability
🐛 fix(test_login.py): remove unused imports to improve code readability
 feat(test_login.py): add support for session management using session_getter to improve code organization and maintainability
2023-09-20 18:40:19 -03:00
Gabriel Luiz Freitas Almeida
b441d42559 🐛 fix(test_setup_superuser.py): fix test_setup_superuser to correctly assert the number of calls to mock_create_super_user
 feat(test_setup_superuser.py): add support for testing the creation of superuser with different credentials
2023-09-20 18:36:12 -03:00
Gabriel Luiz Freitas Almeida
b4f48f1ad9 🔧 fix(test_user.py): update imports to match changes in project structure
🔧 fix(test_user.py): update fixtures to use session_getter and get_db_manager functions for session management
 feat(test_user.py): add support for creating and managing database sessions using session_getter and get_db_manager functions
🔧 fix(test_user.py): update test_user_waiting_for_approval function to use session_getter and get_db_manager functions for session management
🔧 fix(test_user.py): update test_data_consistency_after_delete function to use session_getter and get_db_manager functions for session management
🔧 fix(test_user.py): update test_inactive_user function to use session_getter and get_db_manager functions for session management
2023-09-20 18:35:38 -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
anovazzi1
82a6ad8d87 set auto_login to false to keep develop with login 2023-09-20 18:20:22 -03:00
Gabriel Luiz Freitas Almeida
7733904378 Merge remote-tracking branch 'origin/dev' into add_cli_options_superuser 2023-09-20 16:16:52 -03:00