Lucas Oliveira
d09df8a497
Formatting Fixes
2023-09-11 16:07:40 -03:00
Lucas Oliveira
f8ab2f12be
Merge branch 'dev' into feature/profilePage
2023-09-11 16:07:17 -03:00
Lucas Oliveira
77e9e79332
Fix on api button
2023-09-11 16:06:27 -03:00
Lucas Oliveira
268906fe49
Minor bug fixes to clean console
2023-09-11 16:05:25 -03:00
Gabriel Luiz Freitas Almeida
6a477d2dd8
Fix lint error ( #886 )
2023-09-11 17:27:04 +00:00
Cristhian Zanforlin Lousa
a2eadbedb1
🐛 fix(api.tsx): add conditional check before calling login function to prevent errors when response data is missing access_token or refresh_token
2023-09-11 09:10:44 -03:00
Cristhian Zanforlin Lousa
b832e0844e
🐛 fix(API/index.ts): add condition to check if token exists before making the request to renew access token to prevent errors
2023-09-11 09:08:32 -03:00
Gabriel Luiz Freitas Almeida
4d0531d0cd
🐛 fix(users.py): fix variable name in if condition to correctly check for password update
2023-09-08 18:41:44 -03:00
Lucas Oliveira
f4186840fb
Changed error handling
2023-09-08 17:07:27 -03:00
Lucas Oliveira
c180b3c302
Changed error handling and conditions
2023-09-08 17:07:08 -03:00
Lucas Oliveira
dfe459ce1d
Fixed changing password not working
2023-09-08 16:47:53 -03:00
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
Guangya Liu
86cf771d00
Fix lint error
2023-09-07 14:57:37 -04:00
Lucas Oliveira
512db102fa
Change password implemented, but not working
2023-09-06 14:16:07 -03:00
igorrCarvalho
f44b0e33b1
remove unnused imports
2023-09-05 18:31:30 -03:00
igorrCarvalho
25949b97a7
Fix: user not having icon when id starts with a letter
2023-09-05 18:31:30 -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
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
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
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