Commit graph

4,779 commits

Author SHA1 Message Date
Lucas Oliveira
705dd6acea Fixed gradient not saving correctly 2023-09-08 16:47:53 -03:00
Gabriel Luiz Freitas Almeida
ea11b16f58 🔒 chore(users.py): refactor reset_password function to improve password verification logic 2023-09-08 16:44:25 -03:00
Gabriel Luiz Freitas Almeida
a68535cbe4 🐛 fix(users.py): prevent users from changing their password in the patch_user endpoint to ensure security
🐛 fix(users.py): prevent users from using their current password when resetting their password to ensure security
2023-09-08 16:42:56 -03:00
Gabriel Luiz Freitas Almeida
01a289dd9a 🐛 fix(users.py): assign the hashed new password to a variable before updating the user's password to ensure consistency
 test(test_user.py): add test to verify if the new password works after resetting it
2023-09-08 14:28:32 -03:00
Gabriel Luiz Freitas Almeida
f95a38a4b5 🐛 fix(crud.py): change HTTP status code from 304 to status.HTTP_304_NOT_MODIFIED for better readability and consistency
 feat(crud.py): add support for updating user profile image in the update_user function
 feat(test_user.py): add test case for updating user profile image in the test_patch_user function
2023-09-08 14:23:19 -03:00
Gabriel Luiz Freitas Almeida
75f03b17f4 🔧 chore(67cc006d50bf_add_profile_image_column.py): refactor upgrade and downgrade functions to check if "user" table exists and if "profile_image" column is already present before adding or dropping the column respectively 2023-09-08 14:19:28 -03:00
Gabriel Luiz Freitas Almeida
071ad8621b 🔧 chore(user.py): add optional profile_image field to UserRead model for improved user profile functionality 2023-09-08 14:13:54 -03:00
Lucas Oliveira
bd44500508 Added gradient chooser and success messages 2023-09-08 13:08:39 -03:00
Lucas Oliveira
b770622603 Added gradient and changed types of patch user 2023-09-08 11:23:57 -03:00
Gabriel Luiz Freitas Almeida
04544b172f 🚀 feat(alembic): add migration to add profile_image column to user table
🔧 chore(user.py): add profile_image field to User model for storing user profile images
2023-09-08 07:36:56 -03:00
Lucas Oliveira
512db102fa Change password implemented, but not working 2023-09-06 14:16:07 -03:00
Gabriel Luiz Freitas Almeida
49167a58a9 🐛 fix(tests): update endpoint path from "/api/v1/user" to "/api/v1/users" for consistency and clarity
 feat(tests): add assertion for response status code 201 after creating a user
🐛 fix(tests): update endpoint path from "/api/v1/user/{user_id}" to "/api/v1/users/{user_id}" for consistency and clarity
🐛 fix(tests): update endpoint path from "/api/v1/user" to "/api/v1/users/whoami" to fetch the updated user
🐛 fix(tests): update endpoint path from "/api/v1/user/{user_id}" to "/api/v1/users/{user_id}" for consistency and clarity
🐛 fix(tests): update endpoint path from "/api/v1/user/{user_id}" to "/api/v1/users/{user_id}" for consistency and clarity
 feat(tests): add assertion for response status code 401 and detail message after fetching the updated user
 feat(tests): add assertion for response status code 200 after deleting a user
🐛 fix(tests): update endpoint path from "/api/v1/user/{user_id}" to "/api/v1/users/{user_id}" for consistency and clarity
 feat(tests): add assertion for response status code 200 and detail message after deleting a user
🐛 fix(tests): update endpoint path from "/api/v1/user/{user_id}" to "/api/v1/users/{user_id}" for consistency and clarity
🐛 fix(tests): update endpoint path from "/api/v1/user/{user_id}" to "/api/v1/users/{user_id}" for consistency and clarity
 feat(tests): add assertion for response status code 304 after patching user data
 feat(tests): add assertion for response status code 200 after resetting user password
🐛 fix(tests): update endpoint path from "/api/v1/user/{user_id}" to "/api/v1/users/{user_id}" for consistency and clarity
 feat(tests): add assertion for response status code 422 and detail message after patching user data with wrong id
🐛 fix(tests): update endpoint path from "/api/v1/user/{user_id}" to "/api/v1/users/{user_id}" for consistency and clarity
 feat(tests): add assertion for response
2023-09-05 17:19:46 -03:00
Gabriel Luiz Freitas Almeida
a7db386277 🐛 fix(users.py): change route paths for user-related endpoints to improve consistency and readability
 feat(users.py): add support for resetting a user's password
🐛 fix(crud.py): fix update_user function to properly handle unchanged attributes and return 304 status code if nothing is updated
🐛 fix(user.py): change field name in UserUpdate model from 'username' to 'password' to reflect the intended functionality
🐛 fix(index.ts): update API routes in frontend controller functions to match the changed user-related endpoint paths
2023-09-05 17:19:11 -03:00
Lucas Oliveira
7e0394a114 Merge branch 'dev' into feature/profilePage 2023-09-05 15:22:01 -03:00
Lucas Oliveira
b6c5fecae2 Fixed message not sending when closing db 2023-09-05 15:20:51 -03:00
Lucas Oliveira
109b9a1172 Added error checking when file is not a JSON 2023-09-05 14:21:47 -03:00
Lucas Oliveira
2c99d2ce70 Implemented flow add when dropping json 2023-09-05 14:14:47 -03:00
Lucas Oliveira
539e508e12 Added style to file drop 2023-09-05 11:52:20 -03:00
Lucas Oliveira
8119d5922b Merge branch 'dev' into feature/profilePage 2023-09-05 11:18:29 -03:00
anovazzi1
0a47163f9b
fix bug on open modals (#865) 2023-09-05 09:50:42 -03:00
Cristhian Zanforlin Lousa
e50b593681 🐛 fix(API/index.ts): handle potential undefined response object properties to prevent errors 2023-09-04 20:18:10 -03:00
anovazzi1
25f7814fea refactor(codeTabsComponent): wrap code tabs in a div with flex column layout for better styling and readability 2023-09-04 19:33:21 -03:00
anovazzi1
8acdd1abff fix animation 2023-09-04 19:29:20 -03:00
anovazzi1
0fe46a3909 revert to default animation of radixUI 2023-09-04 18:48:50 -03:00
Lucas Oliveira
5df8b11d9f Changed autocomplete to only fill when on form 2023-09-04 16:37:43 -03:00
anovazzi1
82368bbe76
Login enhancements (#847)
This pull request introduces a series of enhancements to our recently
revamped login page, streamlining the user experience. These changes
were meticulously designed and developed to ensure a seamless login
process for our users while adhering to the highest standards of
usability and privacy.
2023-09-04 16:20:18 -03:00
anovazzi1
2112f6152e Merge remote-tracking branch 'origin/dev' into login_improvements 2023-09-04 16:19:13 -03:00
Gabriel Luiz Freitas Almeida
4efab50916
Replace logging with loguru (#863) 2023-09-04 19:18:50 +00:00
Gabriel Luiz Freitas Almeida
e8846fc568
Merge branch 'dev' into implement_loguru 2023-09-04 19:17:21 +00:00
Gabriel Luiz Freitas Almeida
28b487dc33 🔧 fix(manager.py): change logger.warn to logger.warning for consistency and clarity
🔧 fix(logger.py): change log_file parameter type annotation to Optional[Path] to indicate that it is an optional argument
2023-09-04 16:15:41 -03:00
Gabriel Luiz Freitas Almeida
7e336bbee6 🐛 fix(logger.py): change log_level variable to uppercase to improve consistency and semantics 2023-09-04 16:13:01 -03:00
Gabriel Luiz Freitas Almeida
3c153c8b1b
Improves endpoint dependency usage (#862) 2023-09-04 19:06:31 +00:00
Gabriel Luiz Freitas Almeida
58c3e5e9dc refactor: replace loggers with loguru 2023-09-04 11:38:39 -03:00
Gabriel Luiz Freitas Almeida
87eb8b1a95 🔧 chore(logger.py): refactor logger configuration to use loguru library and improve log formatting 2023-09-04 11:35:22 -03:00
Gabriel Luiz Freitas Almeida
5f98f0bbd9 📦 chore(pyproject.toml): add loguru package as a dependency for improved logging capabilities 2023-09-04 11:34:38 -03:00
Gabriel Luiz Freitas Almeida
2ab3fcb28a 🐛 fix(base.py): set default value of frontend_node to None in ValidatePromptRequest class to avoid potential NoneType errors
🐛 fix(validate.py): set frontend_node to None instead of an empty dictionary in post_validate_prompt function to align with the default value in ValidatePromptRequest class
2023-09-04 10:04:21 -03:00
Gabriel Luiz Freitas Almeida
dc1a5c81a1
added missing backslashes to api key request definition and bugfix to migration script (#858) 2023-09-04 12:36:17 +00:00
root
b1c24054c6 added indent to index dropping on non-existing table 2023-09-04 11:41:34 +00:00
Gabriel Luiz Freitas Almeida
53c5a3ccde 🐛 fix(base.py): make frontend_node field in PromptValidationResponse optional to handle cases where it is not provided 2023-09-04 07:05:10 -03:00
Gabriel Luiz Freitas Almeida
833fb4ad8f 🔀 chore(utils.py): add type hint for get_session() function to indicate it returns a generator instead of a Session object 2023-09-04 07:01:05 -03:00
Gabriel Luiz Freitas Almeida
43864904ef 🔧 chore(Makefile): update mypy command to only check files in src/backend/langflow directory to improve performance and reduce noise in the output 2023-09-04 07:00:38 -03:00
Gabriel Luiz Freitas Almeida
37ebbf4e65 Formatting 2023-09-04 06:42:41 -03:00
Gabriel Luiz Freitas Almeida
84a0d3acb3 🔧 fix(chat.py): remove unused imports and type hints to improve code readability
 feat(chat.py): add dependency injection for ChatManager in chat and init_build routes to improve modularity and testability
🔧 fix(chat.py): remove duplicate instantiation of ChatManager in chat and init_build routes to improve efficiency
🔧 fix(chat.py): remove duplicate instantiation of ChatManager in stream_build route to improve efficiency
🔧 fix(utils.py): add missing import for ChatManager in get_chat_manager function
2023-09-04 06:42:01 -03:00
Gabriel Luiz Freitas Almeida
2bbbf44b39 🐛 fix(endpoints.py): change get_all function signature to include settings_manager as a dependency to improve code readability
🐛 fix(flows.py): change update_flow function signature to include settings_manager as a dependency to improve code readability
🐛 fix(login.py): change auto_login function signature to include settings_manager as a dependency to improve code readability
🐛 fix(users.py): change add_user function signature to include session as a dependency to improve code readability
🐛 fix(users.py): change read_all_users function signature to include session as a dependency to improve code readability
🐛 fix(users.py): change patch_user function signature to include session as a dependency to improve code readability
🐛 fix(users.py): change delete_user function signature to include session as a dependency to improve code readability
🐛 fix(users.py): change add_super_user_for_testing_purposes_delete_me_before_merge_into_dev function signature to include session as a dependency to improve code readability
2023-09-04 06:41:34 -03:00
root
6d6ab9a874 added missing backslashes to api key request definition 2023-09-02 21:36:49 +00:00
Cristhian Zanforlin Lousa
1b317ee4c9 Merge branch 'dev' of https://github.com/logspace-ai/langflow into dev 2023-08-31 16:07:53 -03:00
Cristhian Zanforlin Lousa
d16456d795 🎨 style(headerComponent): add cursor-pointer class to admin page and logout menu items for better user experience 2023-08-31 16:07:48 -03:00
Lucas Oliveira
da7bdb6513 Added profile settings page 2023-08-31 15:30:40 -03:00
Lucas Oliveira
28580095dd Changed types and resetted tab id when on Admin Page 2023-08-31 15:08:09 -03:00
Lucas Oliveira
6d634313e3 Change input placeholder 2023-08-31 14:36:47 -03:00