Commit graph

11,619 commits

Author SHA1 Message Date
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
igorrCarvalho
9c19d5cdf1 Refactor: Move util function to proper folder 2024-05-29 18:13:33 -03:00
igorrCarvalho
261d5d2af1 Refactor: Increase file preview width 2024-05-29 18:09:59 -03:00
igorrCarvalho
40eaa0903b Refactor: enhance upload file button UI and enhance File and Image preview UI 2024-05-29 17:48:38 -03:00
anovazzi1
a99d0c7eb0 refactor(tableComponent): update column definitions to include checkbox selection logic for first column
feat(API): add support for excluding specific columns in getMessagesTable function

fix(flowLogsModal): pass excludedFields parameter to getMessagesTable function

refactor(GlobalVariablesPage): remove unnecessary checkbox selection properties from column definitions

fix(messagesPage): pass excludedFields parameter to getMessagesTable function

refactor(utils): add support for excluding specific columns in extractColumnsFromRows function
2024-05-29 17:48:12 -03:00
anovazzi1
022ef7c028 feat: Add Messages page to SettingsPage
Refactor the SettingsPage component to include a new "Messages" page. This page will be accessible through the "/settings/messages" route and will display messages related to user settings. The necessary changes have been made to the index.tsx file of the SettingsPage component and the routes.tsx file.
2024-05-29 17:15:21 -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
cristhianzl
43ba306b34 (chatInput): add useHandleFileChange hook to handle file input changes 2024-05-29 16:01:28 -03:00
cristhianzl
0d17211177 (textAreaWrapper): refactor TextAreaWrapper to improve readability and maintainability
 (uploadFileButton): add UploadFileButton component for file uploads in chat input
2024-05-29 16:01:13 -03:00
cristhianzl
89943b2c3e (chatInput): add file upload functionality with drag-and-drop support 2024-05-29 16:00:57 -03:00
cristhianzl
a1d1ad22ce (chatInput): add helper function to generate class names for file preview
♻️ (chatInput): refactor file preview class name logic to use helper function
2024-05-29 12:39:44 -03:00
cristhianzl
826f9656d9 (chatInput): add focus state handling and dynamic styling for text area
♻️ (filePreviewChat): refactor file preview component for better UX and code clarity
2024-05-29 12:36:18 -03:00
igorrCarvalho
0eb6f6b212 Merge dev 2024-05-29 12:35:09 -03:00
ogabrielluiz
1f57845993 🔧 (frontend): Remove NATIVE_CATEGORIES constant and simplify logic for checking template code value in GenericNode component 2024-05-29 11:22:21 -03:00
ogabrielluiz
ebded206b3 format 2024-05-29 11:19:37 -03:00
cristhianzl
a98b86a991 🐛 (api.tsx): fix syntax errors in API interceptor to ensure proper error handling and request rejection
💡 (api.tsx): improve error message for duplicate requests to provide more context
2024-05-29 11:11:12 -03:00
ogabrielluiz
6e9b5661c8 feat: Update langflow-base to version 0.0.53 and langflow to 1.0.0a42 2024-05-29 11:07:10 -03:00
cristhianzl
56699384ab (frontend): add TextAreaWrapper component for chat input handling 2024-05-29 10:47:22 -03:00
cristhianzl
7473eea263 (chatInput): add ButtonSendWrapper component for better modularity
 (chatInput): add TextAreaWrapper component for better modularity
♻️ (chatInput): refactor chat input logic to use new wrapper components
♻️ (chatView): clean up imports and improve code readability
2024-05-29 10:47:05 -03:00
cristhianzl
5638e2909c (chatInput): add drag-and-drop file upload functionality
♻️ (chatInput): refactor file upload logic into a reusable hook
2024-05-29 10:46:51 -03:00
Gabriel Luiz Freitas Almeida
92a11b7ce4
Fixed Ollama base url handling and Qdrant component (#2007)
This pull request includes several code refactorings to improve the
readability and maintainability of the codebase. The changes include
reordering and organizing the initialization parameters in the
QdrantComponent class, removing unused imports and cleaning up code
formatting in the OllamaModel.py file, updating comments and docstrings
for clarity and consistency in the OllamaModel.py file, and refactoring
the logic for setting the base URL in the get_model method of the
OllamaModel.py file to improve maintainability and readability. These
changes aim to make the codebase more organized and easier to understand
for future development and maintenance.
2024-05-29 06:40:17 -07:00
ogabrielluiz
32e8da3bf4 ♻️ (OllamaModel.py): Remove unused imports and clean up code formatting for better readability
📝 (OllamaModel.py): Update comments and docstrings for clarity and consistency
🔧 (OllamaModel.py): Refactor the logic for setting the base URL in the get_model method to improve maintainability and readability
2024-05-29 10:33:12 -03:00
ogabrielluiz
642acf8172 ♻️ (Qdrant.py): refactor QdrantComponent class to improve code readability and maintainability by reordering and organizing the initialization parameters. 2024-05-29 10:09:45 -03:00
ogabrielluiz
c6b315bf60 Merge branch 'feature/output_dropdown' into two_edges 2024-05-29 09:42:29 -03:00
ogabrielluiz
6732cf94f6 feat: Add Decision class to langflow schema 2024-05-28 23:04:37 -03:00
ogabrielluiz
79e35dc2a2 Merge remote-tracking branch 'origin/dev' into two_edges 2024-05-28 23:03:38 -03:00
ogabrielluiz
f9026ba8f6 build(pre-release.yml): dynamically set artifact name based on release type input to ensure correct artifact is downloaded 2024-05-28 22:08:49 -03:00
ogabrielluiz
861955bebe chore: Update dependencies to latest versions 2024-05-28 21:52:31 -03:00
Gabriel Luiz Freitas Almeida
36a6d8d23a
chore: Add domain attribute to cookies in login.py and auth.py (#2003) 2024-05-28 17:45:52 -07:00
ogabrielluiz
2a2483d0ee chore: Add domain attribute to cookies in login.py and auth.py 2024-05-28 21:45:29 -03:00
ogabrielluiz
a112d72fc1 chore: Update docker volume mount path for langflow-data in pre.docker-compose.yml 2024-05-28 20:46:46 -03:00
cristhianzl
69f5d93bde (chatInput): add custom hooks for auto-resize, focus unlock, and upload
♻️ (chatInput): refactor chat input component to use new custom hooks

💡 (chatInput): replace conditional rendering with Case component for clarity
2024-05-28 20:31:56 -03:00
ogabrielluiz
8bc241267d chore(create-release.yml): remove unnecessary version check step to simplify workflow and improve readability 2024-05-28 19:47:46 -03:00
ogabrielluiz
969ac6eb49 chore(create-release.yml): Update Poetry version to 1.8.2 2024-05-28 19:44:50 -03:00
ogabrielluiz
9df2dc72ac chore(create-release.yml): add 'needs: release' to ensure the 'create_release' job runs after the 'release' job 2024-05-28 19:43:07 -03:00
ogabrielluiz
546dd3dbdf feat(create-release.yml): add support for building and uploading different project versions based on release type (base or main) to streamline release process 2024-05-28 19:40:03 -03:00
ogabrielluiz
ce797dbfa0 chore(create-release.yml): update workflow name to 'pre-release.yml' for consistency and clarity 2024-05-28 19:32:54 -03:00
ogabrielluiz
4f684c851c chore(create-release.yml): update action to download artifact to dawidd6/action-download-artifact@v3 for compatibility with workflow Langflow Pre-release (Unified) and add github_token and workflow inputs for authentication and artifact retrieval. 2024-05-28 19:28:42 -03:00
ogabrielluiz
8902b6d09e chore(create-release.yml): rename job name to 'Create Release Job' for clarity
chore(create-release.yml): rename step name to 'Download Artifact' for better readability
chore(create-release.yml): rename step name to 'Create Release Notes' for better understanding of the action's purpose
2024-05-28 19:24:52 -03:00
ogabrielluiz
6e9e67d5c6 chore(pre-release.yml): remove unnecessary dependency on 'call_docker_build' job for 'create_release' job when release_type is 'main' to simplify workflow logic 2024-05-28 19:00:26 -03:00
ogabrielluiz
8d1295b5a1 fix(pre-release.yml): update artifact path based on release type to correctly upload artifacts for different release types 2024-05-28 18:53:19 -03:00
ogabrielluiz
25767de60d refactor: Update version numbers in pyproject.toml files 2024-05-28 18:46:31 -03:00
ogabrielluiz
9965f9a31a feat: Add release_type input to create-release workflow 2024-05-28 18:44:01 -03:00
ogabrielluiz
6070bbb8fc feat(create-release.yml): add GitHub Actions workflow to create a release with version input and release notes generation 2024-05-28 18:38:58 -03:00
anovazzi1
02a1624bf4 update cleanEdges and fix updateNewOutput 2024-05-28 18:29:07 -03:00
Gabriel Luiz Freitas Almeida
482ac3fbfc
Refactor base.py and Dockerfile, and folder column migration (#2002)
* refactor(base.py): handle ImportError when importing is_pre_release function from langflow.version module to prevent crashing the application
feat(base.py): dynamically determine if the version is a pre-release version by checking for 'a', 'b', or 'rc' in the version number

* fix(Dockerfile): add missing backslash to ensure proper chaining of commands

* refactor: Update get_lifespan function to handle ImportError and dynamically determine the version number

The get_lifespan function in main.py has been updated to handle ImportError when importing the __version__ attribute from the langflow.version module. If the import fails, the version number is dynamically determined using the importlib.metadata.version function. This change ensures that the application does not crash when the langflow.version module is not available.

Note: This commit message follows the convention used in the recent user commits.

* chore: Add langflow-pre.db and langflow.db to .dockerignore

* chore: Update .dockerignore to include langflow-pre.db and langflow.db

* refactor: Add folder_id column to flow table and handle folder column migration

This commit adds the folder_id column to the flow table in the database. It also handles the migration of the folder column to the new folder_id column. This change allows for better organization and management of flows within folders.

Note: This commit message follows the convention used in the recent user commits.

* refactor: Update Dockerfiles to include user creation and environment variable

This commit updates the Dockerfiles to include the creation of a user with UID 1000 and the necessary permissions for the /app/langflow directory. It also adds the user's local bin directory to the PATH environment variable. This change improves the security and isolation of the application within the container.

Note: This commit message follows the convention used in the recent user commits.
2024-05-28 14:27:02 -07:00
anovazzi1
45011e8fda refactor: add idx property to handle types in GenericNode and reactflowUtils 2024-05-28 17:57:52 -03:00
Gabriel Luiz Freitas Almeida
6d849b449e
update call_docker_build job (#2001)
* refactor: Update SplitTextComponent to store parent and text data in Record object

* chore(pre-release.yml): update call_docker_build job to use langflow-ai/langflow/.github/workflows/docker-build.yml@dev for better workflow organization and consistency

* merge dev
2024-05-28 13:24:12 -07:00