Commit graph

2,526 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
e4af874534 🔨 refactor(menuBar): remove unused imports and code, add missing semicolon
🔨 refactor(vite.config): remove unused routes and commented code, remove rewrite function
The menuBar component had some unused imports and code that was removed. A missing semicolon was added to the code. The vite.config file had some unused routes and commented code that was removed. The rewrite function was also removed as it was not needed.
2023-06-14 09:28:50 -03:00
Gabriel Luiz Freitas Almeida
7fc7cd0957 🔨 refactor(App.tsx): remove unused imports and components
 feat(App.tsx): simplify getVersion() function call
The imports and components that are no longer used have been removed to improve the code's readability and maintainability. The getVersion() function call has been simplified to make the code more concise and easier to read.
2023-06-14 09:28:30 -03:00
Gabriel Luiz Freitas Almeida
83bd59dedb 🚀 feat(API): add /api/v1 prefix to all API endpoints
All API endpoints now have the /api/v1 prefix to improve the semantics of the API and to make it easier to distinguish between the frontend and backend routes.
2023-06-14 09:28:01 -03:00
Gabriel Luiz Freitas Almeida
d78f2a81c5 🎨 style(cardComponent): format code with Prettier
This commit only formats the code with Prettier to improve code readability and consistency. No functional changes were made.
2023-06-14 09:27:51 -03:00
Gabriel Luiz Freitas Almeida
23d56efda7 🔥 chore(MainPage): remove unused imports and variables
The import statements for unused components and contexts have been removed to improve code readability and maintainability. The unused variables have also been removed to reduce clutter and improve code quality.
2023-06-14 09:27:33 -03:00
Gabriel Luiz Freitas Almeida
676c92dd92 🎨 style(flows.py): add status codes to API endpoints
The status codes have been added to the API endpoints to improve the readability of the code and to make it more explicit what the expected response codes are. The status codes have been added to the following endpoints: create_flow, read_flows, read_flow, update_flow, delete_flow, create_flows, upload_file, and download_file.
2023-06-14 09:27:02 -03:00
Cristhian Zanforlin Lousa
6f366ad0ea constant style input, open prompt icon hover color 2023-06-14 09:25:28 -03:00
Gabriel Luiz Freitas Almeida
07c5a41f60 Merge remote-tracking branch 'origin/mainPage' into db 2023-06-14 08:57:35 -03:00
Lucas Oliveira
466cb17302 Removed user stub 2023-06-14 08:40:04 -03:00
Gabriel Luiz Freitas Almeida
bcf0b88a7c 🧪 test(process.py): add tests for process_tweaks function
This commit adds tests for the process_tweaks function in the langflow.processing.process module. The tests cover the following scenarios:
- No tweaks are applied to the graph data
- A single tweak is applied to the graph data
- Multiple tweaks are applied to the graph data
- A tweak is applied to a non-existent parameter in the graph data
The tests ensure that the function processes the tweaks correctly and returns the expected result.
2023-06-14 07:21:49 -03:00
Gabriel Luiz Freitas Almeida
7817c64591 🐛 fix(endpoints.py): change predict_flow function signature to include flow_id and session dependencies
 feat(endpoints.py): add flow_id parameter to predict_flow function to allow for running a flow by ID
The predict_flow function now includes a flow_id parameter and a session dependency to allow for running a flow by ID. The flow object is retrieved from the session using the flow_id parameter. If the flow is not found, a ValueError is raised.

🔨 refactor(constants.tsx): change API_URL constant to BASE_API_URL and add flow_id parameter to run_flow function
The API_URL constant has been renamed to BASE_API_URL to better reflect its purpose. The run_flow function now includes a flow_id parameter to allow for running a flow by ID. The flow_id parameter is used to construct the API URL.
2023-06-14 07:21:25 -03:00
Lucas Oliveira
b2598165a6 Fixed saving issue and implemented saved message 2023-06-14 06:52:10 -03:00
Lucas Oliveira
4a89470cee Overflow fixed at sidebar 2023-06-14 06:48:06 -03:00
Cristhian Zanforlin Lousa
72c60ded54 input components format 2023-06-14 01:33:35 -03:00
Cristhian Zanforlin Lousa
278abdfee8 UI improvements (colors) 2023-06-14 01:16:15 -03:00
Cristhian Zanforlin Lousa
ac46287258 adjust border on table 2023-06-14 00:06:26 -03:00
Cristhian Zanforlin Lousa
72e290c8b7 UI adjusts 2023-06-14 00:01:55 -03:00
anovazzi1
4d9ebb78d5 new badge style 2023-06-13 23:24:59 -03:00
anovazzi1
4ef210753e added node id on edit node modal 2023-06-13 23:15:54 -03:00
anovazzi1
8be988ef27 using 5 digits ids 2023-06-13 22:40:20 -03:00
anovazzi1
1628323548 flows using 4 digits id too 2023-06-13 22:38:51 -03:00
anovazzi1
499ebad8d9 using new uid 2023-06-13 21:45:47 -03:00
Cristhian Zanforlin Lousa
fdaffc5734 changing python code heigth 2023-06-13 21:08:00 -03:00
Cristhian Zanforlin Lousa
9ccd7e4fb3 adding background muted and subtitle texts changes 2023-06-13 21:03:25 -03:00
anovazzi1
8affac1f53 Merge branch 'validation_fix' of personal:logspace-ai/langflow into validation_fix 2023-06-13 20:43:22 -03:00
Gabriel Luiz Freitas Almeida
9f5591639e 🐛 fix(chat.py): handle exceptions while building the flow and add a final response to the event stream
The code now handles exceptions that may occur while building the flow. A final response is added to the event stream to indicate the end of the stream.
2023-06-13 20:41:58 -03:00
anovazzi1
b55d24101d Merge branch 'validation_fix' of personal:logspace-ai/langflow into validation_fix 2023-06-13 20:32:37 -03:00
Gabriel Luiz Freitas Almeida
8aac63b830 🐛 fix(chat.py): add try-except block to handle exceptions in init_build function
The try-except block was added to handle exceptions that may occur in the init_build function. If an exception occurs, it is logged and an HTTPException with a status code of 500 is returned. This ensures that the server does not crash and provides a more informative error message to the client.
2023-06-13 20:32:05 -03:00
anovazzi1
0b4925bddf Merge branch 'validation_fix' of personal:logspace-ai/langflow into validation_fix 2023-06-13 20:24:38 -03:00
Gabriel Luiz Freitas Almeida
044b01e6ad 🎨 style(chat.py): add status code 201 to init_build endpoint
The init_build endpoint now returns a status code of 201 to indicate that a new resource has been created. This improves the consistency of the API and makes it easier for clients to understand the response.
2023-06-13 20:23:44 -03:00
Lucas Oliveira
2def9b2e5e Merge branch 'db' into mainPage 2023-06-13 20:07:44 -03:00
Lucas Oliveira
bc254a8aee Added importing flow to the same flow 2023-06-13 20:07:08 -03:00
anovazzi1
78faae8372 Merge branch 'validation_fix' of personal:logspace-ai/langflow into validation_fix 2023-06-13 20:01:02 -03:00
Lucas Oliveira
97645884ab Added project settings modal 2023-06-13 20:00:46 -03:00
Gabriel Luiz Freitas Almeida
0259bf4acc 🎨 style(endpoints.py): rename get_load function to predict_flow for better semantics
The function name was changed to predict_flow to better reflect the functionality of the endpoint.
2023-06-13 19:53:00 -03:00
Lucas Oliveira
f1f36024e9 Added description to pages 2023-06-13 19:45:50 -03:00
Gabriel Luiz Freitas Almeida
8689c39c06 Merge remote-tracking branch 'origin/mainPage' into db 2023-06-13 19:43:56 -03:00
Gabriel Luiz Freitas Almeida
af8afea421 🚀 feat(chatComponent): update API endpoint for build stream
🚀 feat(vite.config.ts): add new API route for build stream
The API endpoint for the build stream has been updated to `/api/v1/build/stream/${flowId}` to improve consistency with the naming conventions. The `vite.config.ts` file has been updated to include the new API route for the build stream.
2023-06-13 19:42:30 -03:00
Lucas Oliveira
ddd0b05947 Added default description and redirected to new flow as soon as its created 2023-06-13 19:16:27 -03:00
Lucas Oliveira
b6757d3ac1 Removed unused functions 2023-06-13 19:10:26 -03:00
Lucas Oliveira
1a92ceca7e Added community page, fixed styling of buttons, added promise at AddFlow 2023-06-13 19:09:24 -03:00
anovazzi1
1a6406e394 Merge branch 'validation_fix' of personal:logspace-ai/langflow into validation_fix 2023-06-13 18:45:57 -03:00
anovazzi1
86751e0daf added try catch block on streamNodeData 2023-06-13 18:45:42 -03:00
Gabriel Luiz Freitas Almeida
ebf5568db0 🐛 fix(App.tsx): change fetch URL to match backend API endpoint
The fetch URL was changed to match the backend API endpoint. The previous URL was incorrect and caused the fetch request to fail.
2023-06-13 18:08:01 -03:00
Gabriel Luiz Freitas Almeida
52baae64e6 🔨 refactor(chatComponent): remove unused imports and variables, and extract postBuildInit function to API controller
 feat(API): add postBuildInit function to handle POST requests to /api/v1/build/init
The chatComponent file had unused imports and variables that were removed to improve code readability. The postBuildInit function was extracted to the API controller to improve code organization and maintainability. The function handles POST requests to /api/v1/build/init.
2023-06-13 18:05:11 -03:00
Gabriel Luiz Freitas Almeida
e07b7f546d
Update base.py 2023-06-13 17:31:53 -03:00
Gabriel Luiz Freitas Almeida
41f6aecda4 🔀 refactor(chat.py): import InitResponse and BuiltResponse from schemas module
🚀 feat(chat.py): add response models to /build/init and /build/{flow_id}/status endpoints
The InitResponse and BuiltResponse models are now imported from the schemas module to improve code organization. The /build/init and /build/{flow_id}/status endpoints now have response models to provide a clear understanding of the expected response.
2023-06-13 17:21:45 -03:00
Gabriel Luiz Freitas Almeida
cfbcedcf5f 🔖 chore(pyproject.toml): bump up version to 0.0.89
The version number in the pyproject.toml file has been updated from 0.0.87 to 0.0.89. This is a chore commit as it does not introduce any new features or fix any bugs, but rather updates the version number to reflect the changes made in the package.
2023-06-13 15:04:41 -03:00
Gabriel Luiz Freitas Almeida
188fd4ad0a 🐛 fix(custom.py): remove unnecessary type ignore comments
The type ignore comments are unnecessary as the code is already type annotated. Removing them improves code readability and maintainability.
2023-06-13 15:04:23 -03:00
gustavoschaedler
14757ca402 Rename agent - initialize_agent to AgentInitializer 2023-06-13 18:51:33 +01:00