Commit graph

3,239 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
6b82b730cd 🔥 refactor(auth): remove unused code and dependencies in auth module
🔥 refactor(routers): remove unused code and dependencies in routers module
2023-08-25 10:09:37 -03:00
anovazzi1
9b3e4f27a5 fix(tabsContext.tsx): handle error message properly when saving changes in the tabs provider
The error handling in the tabs provider has been improved to display a more meaningful error message when there is an error while saving changes. Instead of directly assigning the error to the `setErrorData` state variable, the error message is now wrapped in an object with a title and a list of error messages. This change ensures that the error message is displayed consistently and provides better context to the user.
2023-08-24 19:50:17 -03:00
anovazzi1
cea8acacd8 update type to avoid undefined 2023-08-24 19:42:48 -03:00
anovazzi1
544738ebef
Merge branch 'login' into bugfix-msgSuccess 2023-08-24 17:58:25 -03:00
Gabriel Luiz Freitas Almeida
41ef2fd2f7 🔧 fix(alembic): fix indentation and formatting issues in add_apikey_table migration script
 feat(alembic): add support for creating apikey and user tables in the database
🔥 chore(alembic): remove flowstyle and component tables from the database schema
2023-08-24 17:42:53 -03:00
Gabriel Luiz Freitas Almeida
58121cc6ca 🔥 refactor(main.py): remove unused routers from the app to improve code cleanliness and reduce unnecessary imports 2023-08-24 17:42:33 -03:00
Gabriel Luiz Freitas Almeida
d9cbf17b1a 🔄 chore(router.py): add users_router and api_key_router to the APIRouter to include the new routes for users and api keys
🔄 chore(__init__.py): add users_router and api_key_router to the __all__ list to include the new routes for users and api keys
🆕 feat(api_key.py): add new routes for retrieving, creating, and deleting API keys
🆕 feat(login.py): add new routes for user login, auto login, and token refresh
🆕 feat(schemas.py): add new schemas for API key response and users response
🆕 feat(users.py): add new routes for adding, reading, updating, and deleting users
🗑️ chore(health.py): remove health router as it is no longer needed
🔄 chore(utils.py): update import statements for User model and update_user_last_login_at function
2023-08-24 17:41:41 -03:00
anovazzi1
6dbc06dc12 Merge remote-tracking branch 'origin/dev' into bugfix-msgSuccess 2023-08-24 17:41:26 -03:00
anovazzi1
24e84aa2fe Merge branch 'dev' into bugfix-msgSuccess 2023-08-24 17:39:52 -03:00
Gabriel Luiz Freitas Almeida
1a51cc0848 📦 feat(api_key): add ApiKey model and related classes for database operations
📦 feat(component): add Component model and related classes for database operations

📦 feat(flow): add Flow model and related classes for database operations

📦 feat(token): add Token model for authentication

📦 feat(user): add User model and related classes for database operations

📦 feat(user): add utility functions for user operations
2023-08-24 17:32:26 -03:00
anovazzi1
668387dde8 Merge branch 'dev' into bugfix-tweakPage 2023-08-24 17:18:40 -03:00
anovazzi1
4fab63e5de code format 2023-08-24 17:10:02 -03:00
anovazzi1
c1c5b2242f fix(buildTrigger/index.tsx): change the success message title from "Code is ready to run" to "Flow is ready to run" for better clarity and accuracy 2023-08-24 17:08:24 -03:00
igorrCarvalho
f8d51b4882 Refactor: Move header login buttons to right side of flow name 2023-08-24 14:29:24 -03:00
DiogenesBR
fe3a9c61df fix the imports of orjson_dumps 2023-08-24 14:57:18 +00:00
DiogenesBR
cdd25dbeb2 add some new types to the .gitattributes 2023-08-24 14:56:09 +00:00
Gabriel Luiz Freitas Almeida
63ca408506 🔧 chore(alembic): add ApiKey table and remove FlowStyle and Component tables
🔄 refactor(alembic): downgrade migration to recreate FlowStyle and Component tables and remove User and ApiKey tables
2023-08-23 21:43:14 -03:00
Gabriel Luiz Freitas Almeida
061a9c09ba Merge remote-tracking branch 'origin/main' into dev 2023-08-23 21:42:34 -03:00
Gabriel Luiz Freitas Almeida
130dc7ead6 🔧 fix(schemas.py): import ApiKeyRead from api_key module to fix missing import error
🔧 fix(models/__init__.py): add ApiKey to __all__ list to fix missing import error
 feat(models/api_key.py): add ApiKey model and its related classes to support API key functionality
2023-08-23 21:12:11 -03:00
anovazzi1
cd6985591f fix(App.tsx): replace hardcoded error message with FetchErrorComponent to improve error handling and display
feat(App.tsx): add support for displaying fetch error message and description in FetchErrorComponent
feat(fetchErrorComponent): create FetchErrorComponent to display fetch error message and description
fix(genericIconComponent): add stroke-width property to ensure consistent icon stroke width
feat(loadingComponent): import LoadingComponentProps from types/components to improve type safety
feat(constants): add FETCH_ERROR_MESSAGE and FETCH_ERROR_DESCRIPTION constants for fetch error handling
fix(typesContext): remove console.log statement and set fetchError to true when an error occurs during fetching types
feat(typesContext): add error handling for fetching types and set fetchError to true when an error occurs
feat(typesContext): import fetchErrorComponentType from types/components to improve type safety
feat(types/components): create fetchErrorComponentType and LoadingComponentProps interfaces for type safety
fix(styleUtils): import Unplug icon from lucide-react to fix missing icon issue
2023-08-23 21:09:53 -03:00
igorrCarvalho
9686542f0a Fix: code is ready to run does not appear after build 2023-08-23 20:38:40 -03:00
igorrCarvalho
8fb73e689a Fix: Code is ready to run success alert showing up in tweaks page 2023-08-23 20:23:18 -03:00
igorrCarvalho
13a60c872f Fix: Node deleted when press backspace on tweaks page 2023-08-23 19:26:25 -03:00
igorrCarvalho
56a75af6da Remove console.log 2023-08-23 18:02:50 -03:00
igorrCarvalho
0ffdaa00a5 Fix: Backspace doesnt work on tweak page 2023-08-23 17:39:34 -03:00
anovazzi1
d9b03980f7 fix(typesContext.tsx): remove unnecessary code that checks result status and fetches health on error
fix(typesContext.tsx): handle error when fetching types and set fetchError state to true
2023-08-23 14:59:20 -03:00
anovazzi1
ea105ee7af refactor(typesContext.tsx): remove unnecessary retry logic and interval for fetching types
fix(typesContext.tsx): fix issue where component was not unmounting properly and causing memory leaks
2023-08-23 14:44:45 -03:00
anovazzi1
f22768c2bc fix(App.tsx): remove extra comma in the useContext hook
feat(App.tsx): add support for displaying fetch error message when there is an error in the backend API call
fix(typesContext.tsx): add error handling for API call and set fetchError state accordingly
feat(typesContext.tsx): add fetchError state and setFetchError function to the typesContext
2023-08-23 12:52:49 -03:00
Cristhian Zanforlin Lousa
b4a01ad934 🔧 fix(tabsContext.tsx): add setSuccessData to useContext to fix missing function error
 feat(tabsContext.tsx): add success alert when changes are saved successfully in TabsProvider component
🔧 fix(flowSettingsModal/index.tsx): remove setSuccessData from useContext to fix missing function error
🔧 fix(AdminPage/index.tsx): remove console.log statement
 feat(AdminPage/index.tsx): add success alert when user is edited successfully
🔧 fix(extraSidebarComponent/index.tsx): remove setSuccessData from useContext to fix missing function error
2023-08-22 22:14:46 -03:00
Cristhian Zanforlin Lousa
ada752309a 🐛 fix(App.tsx): add setIsAdmin function to AuthContext to update isAdmin state when user data is fetched
 feat(App.tsx): set isAdmin state based on user's is_superuser value to conditionally render admin-related components
🐛 fix(headerComponent/index.tsx): fix conditional rendering of Sign out, Home, and Admin page buttons based on autoLogin and isAdmin values
🐛 fix(authContext.tsx): remove unnecessary useEffect to update isAdmin state when accessToken or isAdmin changes
🔥 chore(api.tsx): remove unused sleep function
 feat(AdminPage/index.tsx): update text in AdminPage to provide a better description of the page's purpose
🐛 fix(routes.tsx): wrap AdminPage and ApiKeysPage components with ProtectedAdminRoute component to restrict access to admin-only routes
2023-08-22 21:49:37 -03:00
DiogenesBR
78c58c1f7e Merge dev with custom_component_chroma 2023-08-22 19:21:52 -03:00
Cristhian Zanforlin Lousa
1d14f24a97 merge fix 2023-08-22 18:20:26 -03:00
Cristhian Zanforlin Lousa
54fd3d5705 🔧 fix(headerComponent): remove unused imports and function call to improve code cleanliness and performance
 feat(headerComponent): remove conditional rendering for api keys button to always display it in the header
🔧 fix(ApiKeysPage): add missing import for Header component to fix compilation error
2023-08-22 18:20:04 -03:00
Gabriel Luiz Freitas Almeida
cea4063637 🐛 fix(GetRequest.py): convert timeout to integer to avoid potential type errors
 feat(PostRequest.py): update display name to "POST Request" for better clarity and consistency
2023-08-22 17:53:55 -03:00
Gabriel Luiz Freitas Almeida
c6fc60d4b2 🔧 chore(GetRequest.py): add timeout parameter to the GetRequest component for configurable request timeout
📝 docs(GetRequest.py): update component documentation to include information about the new timeout parameter
2023-08-22 17:52:17 -03:00
Gabriel Luiz Freitas Almeida
c22a792a7f 📚 docs(GetRequest.py): add documentation link for the GET Request component
📚 docs(JSONDocumentBuilder.py): add documentation link for the JSON Document Builder component
📚 docs(PostRequest.py): add documentation link for the POST Request component
📚 docs(UpdateRequest.py): add documentation link for the Update Request component
2023-08-22 17:45:45 -03:00
anovazzi1
76db1b011c Merge remote-tracking branch 'origin/dev' into login 2023-08-22 17:41:19 -03:00
Gabriel Luiz Freitas Almeida
42a268a678 📝 docs(components/utilities.mdx): add documentation for Update Request feature
🚀 feat(UpdateRequest.py): add UpdateRequest component to make PATCH or PUT requests to a given URL
2023-08-22 17:35:20 -03:00
anovazzi1
cee95cb0a6 chore(constants.ts): update SIGN_UP_SUCCESS message to improve clarity and conciseness 2023-08-22 17:18:35 -03:00
Gabriel Luiz Freitas Almeida
b1779e849d 🔥 refactor(base.py): remove unused imports and code in base.py
🔥 refactor(base.py): remove unused variables and functions in base.py
2023-08-22 16:46:57 -03:00
Gabriel Luiz Freitas Almeida
f69fddb1a0 🔧 chore(settings.py): add missing import statement for json module
🔧 chore(settings.py): remove unused import statement for contextlib module

🔧 chore(settings.py): remove unused import statement for orjson module

🔧 chore(settings.py): remove unused import statement for os module

🔧 chore(settings.py): remove unused import statement for typing module
2023-08-22 16:42:09 -03:00
Gabriel Luiz Freitas Almeida
fb7513f7cb 🐛 fix(custom_component.py): change repr_value type from str to Any to allow any type of value to be assigned 2023-08-22 16:37:53 -03:00
Gabriel Luiz Freitas Almeida
938fcbab62 🐛 fix(GetRequest.py): change variable name 'url' to 'urls' to improve clarity and semantics
 feat(PatchRequest.py): add new component 'PatchRequest' to make PATCH requests to a given URL
🐛 fix(PostRequest.py): change variable name 'document' to 'documents' to improve clarity and semantics
2023-08-22 16:37:43 -03:00
igorrCarvalho
0dd098882c Merge branch 'login-auth' of github.com:logspace-ai/langflow into login-auth 2023-08-22 16:28:14 -03:00
igorrCarvalho
471692bdd1 Refactor: Add Header to admin page 2023-08-22 16:27:26 -03:00
anovazzi1
99407c2617 feat(ApiKeysPage): add Header component to the ApiKeysPage for consistent layout and navigation
The Header component is added to the ApiKeysPage to provide a consistent layout and navigation across the application. This will improve the user experience and make it easier for users to navigate between different pages.
2023-08-22 16:17:47 -03:00
Gabriel Luiz Freitas Almeida
05c8f5a0f8 🐛 fix(GetRequest.py): update orjson_dumps function call to set indent_2 parameter to False
🐛 fix(GetRequest.py): update return type annotation of get_documents method to list[Document]
🐛 fix(PostRequest.py): update return type annotation of post_document method to list[Document]
2023-08-22 16:13:07 -03:00
Gabriel Luiz Freitas Almeida
6fa2258aac 🔧 chore(manager.py): import orjson library for improved JSON serialization and deserialization performance 2023-08-22 16:12:42 -03:00
Gabriel Luiz Freitas Almeida
70f98f9150 🐛 fix(custom_component.py): extract inner type from return type if it starts with 'list' or 'List' to handle list types correctly 2023-08-22 16:12:30 -03:00
Gabriel Luiz Freitas Almeida
1dbe776e6a feat(utils.py): add function extract_inner_type to extract the inner type from a type hint that is a list 2023-08-22 16:11:47 -03:00