Commit graph

11,619 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
8429f3fe72 🐛 fix(chat.py): fix typo in variable name 'messsage' to 'message' for better readability
🔧 chore(chat.py): refactor error handling in chat websocket to improve code clarity and maintainability
2023-08-31 11:16:52 -03:00
Gabriel Luiz Freitas Almeida
269cb9bc53 🐛 fix(__main__.py): pass the session as a keyword argument 'db' to the create_super_user function for clarity and consistency
🐛 fix(test_user.py): pass the session as a keyword argument 'db' to the create_super_user function for clarity and consistency
2023-08-31 11:16:39 -03:00
Lucas Oliveira
fc0e868515 Fixed UI of Dropdown Button 2023-08-31 11:15:12 -03:00
Cristhian Zanforlin Lousa
3d82767950 🐛 fix(parameterComponent): fix incorrect condition for rendering component based on type
🐛 fix(keypairListComponent): remove console.log statement
🐛 fix(keypairListComponent): add class 'input-invalid' to input when duplicate key is detected
🐛 fix(EditNodeModal): fix incorrect condition for rendering KeypairListComponent based on type
🎨 style(applies.css): add styles for 'input-invalid' class to indicate invalid input
2023-08-31 11:10:58 -03:00
Gabriel Luiz Freitas Almeida
d8c7450576 🔧 chore(test_user.py): refactor super_user fixture to use auth settings from settings manager for username and password
🔧 chore(test_user.py): refactor super_user fixture to use auth settings from settings manager for username and password in create_super_user function call
2023-08-31 10:55:04 -03:00
Lucas Oliveira
d2eb87d44b Merge remote-tracking branch 'origin/dev' into dropdownButton_component 2023-08-31 10:43:28 -03:00
Gabriel Luiz Freitas Almeida
489394a051
Adds langfuse integration (#796) 2023-08-31 13:42:48 +00:00
Lucas Oliveira
66752b61ea Merge branch 'dev' into dropdownButton_component 2023-08-31 10:42:19 -03:00
Lucas Oliveira
a9f3588651
Reset flows cache when logged out (#844) 2023-08-31 10:42:12 -03:00
Lucas Oliveira
59bbad7db1
UI Fixes for branch Login (#849) 2023-08-31 10:41:51 -03:00
Cristhian Zanforlin Lousa
7d1a6c310d merge fix 2023-08-31 10:37:46 -03:00
Cristhian Zanforlin Lousa
fadd28802d 🐛 fix(parameterComponent): fix type error in useState declaration for dictArr variable
🐛 fix(parameterComponent): fix logic error in onChange handler to update dictArr state when there are duplicate keys in the array
 feat(parameterComponent): add type annotation to onChange handler parameter to improve code clarity
2023-08-31 10:36:49 -03:00
Cristhian Zanforlin Lousa
2b2c677f7c 🐛 fix(parameterComponent): import missing utility functions from reactflowUtils to fix error
 feat(parameterComponent): add error handling for duplicate keys in dictionary input field to prevent saving invalid data
🐛 fix(keypairListComponent): fix logic for handling duplicate keys in key-value pairs to prevent saving invalid data
🚚 chore(types): add optional duplicateKey property to KeyPairListComponent type
 feat(reactflowUtils): add utility functions to convert object to array and array to object, and check for duplicate keys in an array of objects
2023-08-31 10:27:04 -03:00
Gabriel Luiz Freitas Almeida
8d96c32c2b 🔧 chore(manager.py): add teardown method to DatabaseManager class for cleaning up the database
🔧 chore(manager.py): remove default superuser if auto_login is enabled during teardown to ensure clean database state
2023-08-31 10:21:03 -03:00
Gabriel Luiz Freitas Almeida
29a616bc77 🐛 fix(utils.py): remove unnecessary code and simplify create_super_user function
 feat(utils.py): refactor create_user_longterm_token to use settings_manager for username and password
2023-08-31 10:20:53 -03:00
Gabriel Luiz Freitas Almeida
91ea879e50 🔧 fix(base.py): make Service class inherit from ABC to make it an abstract base class
 feat(manager.py): add debug log messages for service creation and update to improve debugging
 feat(manager.py): add teardown method to ServiceManager to teardown all services and clear state
 feat(manager.py): add teardown_services function to teardown all services and clear state
2023-08-31 10:20:40 -03:00
Gabriel Luiz Freitas Almeida
08407abe9a 🔧 chore(main.py): add teardown_services function to be called on app shutdown event to properly clean up resources 2023-08-31 10:20:20 -03:00
Lucas Oliveira
03599541c2 Added user dropdown instead of buttons 2023-08-31 08:20:23 -03:00
Lucas Oliveira
ee27839009 Added skeleton when loading all flows 2023-08-30 22:56:43 -03:00
Cristhian Zanforlin Lousa
646fd7f1e5 🐛 fix(keypairListComponent): fix bug where changing key in input field would overwrite existing keys
 feat(keypairListComponent): add logic to append a counter to new key if it already exists in the list to ensure uniqueness
2023-08-30 22:10:50 -03:00
anovazzi1
19dd994c12 chore(frontend): update dependencies in package.json
- Update "@emotion/react" to version "^11.11.1"
- Update "@emotion/styled" to version "^11.11.0"
- Update "@headlessui/react" to version "^1.7.17"
- Update "@heroicons/react" to version "^2.0.18"
- Update "@mui/material" to version "^5.14.7"
- Update "@tabler/icons-react" to version "^2.32.0"
- Update "@tailwindcss/forms" to version "^0.5.6"
- Update "ace-builds" to version "^1.24.1"
- Update "axios" to version "^1.5.0"
- Update "class-variance-authority" to version "^0.6.1"
- Update "dompurify" to version "^3.0.5"
- Update "esbuild" to version "^0.17.19"
- Update "react-error-boundary" to version "^4.0.11"
- Update "react-icons" to version "^4.10.1"
- Update "react-router-dom" to version "^6.15.0"
- Update "react-tabs" to version "^6.0.2"
- Update "react-tooltip" to version "^5.21.1"
- Update "rehype-mathjax" to version "^4.0.3"
- Update "shadcn-ui" to version "^0.2.3"
- Update "tailwind-merge" to version "^1.14.0"
- Update "tailwindcss-animate" to version "^1.0.7"

chore(frontend): update devDependencies in package.json

- Update "@swc/cli" to version "^0.1.62"
- Update "@swc/core" to version "^1.3.80"
- Update "@tailwindcss/typography" to version "^0.5.9"
- Update "@testing-library/jest-dom" to version "^5.17.0"
- Update "@testing-library/react" to version "^13.4.0"
- Update "@testing-library/user-event" to version "^13.5.0"
- Update "@types/lodash" to version "^4.14.197"
- Update "@types/node" to version "^16.18.46"
- Update "@types/react
2023-08-30 19:12:28 -03:00
anovazzi1
f30c818053
Improves secret key implementation (#846)
Secret key is now set once if not passed using the env variable and
saved into the CONFIG_DIR.
There are separate implementations depending on the OS
2023-08-30 19:08:19 -03:00
Cristhian Zanforlin Lousa
c06cfce385 🐛 fix(api.tsx): handle null values when calling login function to prevent potential errors 2023-08-30 19:02:52 -03:00
Gabriel Luiz Freitas Almeida
98dfc01934 🔒 refactor(auth.py): move SECRET_KEY logic to AuthSettings class to improve code organization and reusability
🔒 refactor(base.py): remove SECRET_KEY field from Settings class since it is now handled by AuthSettings class
🔒 refactor(manager.py): pass CONFIG_DIR to AuthSettings constructor when creating an instance
2023-08-30 18:58:12 -03:00
anovazzi1
60945ce883 added check to onCloseWebsocket event 2023-08-30 18:49:41 -03:00
Gabriel Luiz Freitas Almeida
3a90b07235 fix exception 2023-08-30 18:18:22 -03:00
Gabriel Luiz Freitas Almeida
1407719f2f 🐛 fix(chat.py): handle unauthorized error in chat websocket to return WS_1008_POLICY_VIOLATION status code and "Unauthorized" reason 2023-08-30 18:12:03 -03:00
anovazzi1
418bddd322 fix(formModal): encode the accessToken parameter in the chatEndpoint URL to handle special characters correctly
The accessToken parameter in the chatEndpoint URL is now encoded using the encodeURIComponent function to handle special characters correctly. This ensures that the accessToken is properly passed to the chat endpoint without causing any issues.
2023-08-30 18:01:21 -03:00
Gabriel Luiz Freitas Almeida
9d7deccc53 🐛 fix(chat.py): handle and log any exception that occurs in the chat websocket to prevent unhandled errors and provide better error messages 2023-08-30 17:54:58 -03:00
Gabriel Luiz Freitas Almeida
163a7c49cd 🐛 fix(utils.py): fix TypeError when comparing offset-naive and offset-aware datetimes in get_current_user function 2023-08-30 17:51:57 -03:00
igorrCarvalho
158ef9a9ea Refactor: Remove duplicate login button and bring back button borders back 2023-08-30 17:48:17 -03:00
Gabriel Luiz Freitas Almeida
de08475bdf Merge remote-tracking branch 'origin/dev' into fix_display_prompt 2023-08-30 17:45:16 -03:00
Gabriel Luiz Freitas Almeida
61f0a93cc6 🔥 refactor(manager.py): remove redundant code in connect method by removing unnecessary await websocket.accept() call 2023-08-30 17:40:22 -03:00
igorrCarvalho
4739372e20 Refactor: Add trim() to signUp page 2023-08-30 17:40:18 -03:00
Gabriel Luiz Freitas Almeida
a8b9c08a9d 🐛 fix(base.py): fix issue with loading and saving secret key in Settings class
🐛 fix(utils.py): fix issue with writing secret key to file in write_secret_to_file function
2023-08-30 17:39:51 -03:00
Gabriel Luiz Freitas Almeida
eacf558e70 🐛 fix(chat.py): close websocket connection with status code 1008 and reason "Unauthorized" if user is not authenticated or inactive
🐛 fix(auth/utils.py): raise credentials_exception if token has expired
2023-08-30 17:29:07 -03:00
igorrCarvalho
35e24610af Refactor: Add trim() to login form 2023-08-30 17:29:00 -03:00
Gabriel Luiz Freitas Almeida
53b9565ac6 Merge remote-tracking branch 'origin/dev' into fix_secret_key 2023-08-30 16:48:04 -03:00
Cristhian Zanforlin Lousa
66a9056b92 Merge branch 'feat-dict' of https://github.com/logspace-ai/langflow into feat-dict 2023-08-30 16:38:08 -03:00
Cristhian Zanforlin Lousa
35322e7d55 🐛 fix(parameterComponent): import KeypairListComponent from correct path to fix compilation error
 feat(parameterComponent): add support for editing key-value pairs in the parameter component
🐛 fix(genericIconComponent): fix stroke width prop name to strokeWidth to fix SVG rendering issue
🐛 fix(keypairListComponent): import GenericModal from correct path to fix compilation error
 feat(keypairListComponent): add support for editing key-value pairs in the keypair list component
🐛 fix(editNodeModal): import KeypairListComponent from correct path to fix compilation error
 feat(editNodeModal): add support for editing key-value pairs in the edit node modal
🐛 fix(types): change value type in KeyPairListComponent to any to allow for any key-value pair
2023-08-30 16:37:53 -03:00
Gabriel Luiz Freitas Almeida
269116b834 🐛 fix(test_cli.py): convert temp_dir to string before checking if it is in COMPONENTS_PATH to ensure comparison correctness 2023-08-30 16:25:52 -03:00
Gabriel Luiz Freitas Almeida
b3c2fd26a5 🐛 fix(base.py): fix import statements for read_secret_from_file and write_secret_to_file functions
🔒 chore(utils.py): add write_secret_to_file and read_secret_from_file functions to handle secret key file read/write operations
2023-08-30 16:14:27 -03:00
Gabriel Luiz Freitas Almeida
971d777074 🔧 chore(pyproject.toml): add markupsafe dependency to improve compatibility and security
🔧 chore(pyproject.toml): add pywin32 dependency for Windows platform to support specific functionality
2023-08-30 16:05:53 -03:00
Gabriel Luiz Freitas Almeida
e2e890464f 🔧 fix(base.py): import set_secure_permissions function from utils module to fix NameError
🔒 feat(utils.py): add set_secure_permissions function to set secure file permissions based on the operating system
2023-08-30 15:53:32 -03:00
Gabriel Luiz Freitas Almeida
7d9a9a7def 🔧 fix(loginPage): improve code readability by formatting the code and breaking long lines
🔧 fix(types): fix formatting of the updated_at property in UserInputType
🔧 fix(reactflowUtils): fix import order and formatting in reactflowUtils.ts
2023-08-30 14:56:23 -03:00
Gabriel Luiz Freitas Almeida
f9e3d0f57b 🐛 fix(headerComponent): reformat code to improve readability and consistency
🔨 refactor(AdminPage/index.tsx): reorganize imports and remove unused imports for better code organization and maintainability
🐛 fix(AdminPage/index.tsx): fix import statement for Header component to resolve import error
🚀 feat(AdminPage/index.tsx): add support for filtering user list based on input value to improve user experience

🔨 refactor(AdminPage/index.tsx): clean up code formatting and indentation for improved readability
🐛 fix(AdminPage/index.tsx): fix missing closing tags and correct JSX syntax errors
 feat(AdminPage/index.tsx): add support for user management actions such as filtering, adding, editing, and deleting users
📝 chore(AdminPage/index.tsx): update comments and remove unused code for better code organization

🎨 style: refactor user management UI to improve readability and maintainability
🔧 chore: update user management UI to use UserManagementModal and ConfirmationModal components for edit and delete functionality respectively

🐛 fix(PageComponent/index.tsx): fix formatting of proOptions object to improve readability and maintain consistency
2023-08-30 14:49:03 -03:00
Gabriel Luiz Freitas Almeida
1da3a7d260 🐛 fix(users.py): improve readability by formatting raise statement to multiple lines 2023-08-30 14:48:50 -03:00
Gabriel Luiz Freitas Almeida
af0ac6f2f6 🐛 fix(base.py): change variable names from source_handle and target_handle to _source_handle and _target_handle for better encapsulation and to avoid potential conflicts with class methods or properties
🔒 chore(base.py): add error logging for empty edge data to provide better debugging information
2023-08-30 14:28:52 -03:00
Gabriel Luiz Freitas Almeida
b865c4f917 🐛 fix(base.py): handle case when edge data is empty by logging an error and setting default values for source_handle, target_handle, and target_param
 feat(base.py): extract target_param from target_handle by splitting on "|" character to improve readability and maintainability
2023-08-30 14:26:18 -03:00
Gabriel Luiz Freitas Almeida
2bb626fc66 🐛 fix(base.py): fix validation of source and target handles in Edge class constructor
 feat(base.py): add SourceHandle and TargetHandle models to represent source and target handles in Edge class
2023-08-30 14:21:25 -03:00