Commit graph

2,427 commits

Author SHA1 Message Date
Lucas Oliveira
2cfd772387 React Flow update and minor style fixes 2023-08-29 15:42:30 -03:00
Cristhian Zanforlin Lousa
27455cbd77 Merge branch 'login' of https://github.com/logspace-ai/langflow into login 2023-08-29 11:46:52 -03:00
Cristhian Zanforlin Lousa
3e55e5f394 🐛 fix(headerComponent): change Sign out button to anchor tag for better accessibility and consistency
 feat(headerComponent): add Home link when on admin page for easier navigation
 feat(headerComponent): add Admin page link for easier navigation to admin page
🐛 fix(ApiKeysPage): handle case when api_keys.name is null or undefined by displaying "-" instead
🐛 fix(ApiKeysPage): handle case when api_keys.last_used_at is an invalid date by displaying "Never" instead
 feat(ApiKeysPage): add Total Uses column to display the total number of uses for each API key
🐛 fix(loginPage): set isAdmin context variable based on user's is_superuser property
🐛 fix(loginPage): increase delay before fetching logged user to 500ms for better user experience
🐛 fix(types): add total_uses property to ApiKey type to match backend response
2023-08-29 11:46:48 -03:00
Gabriel Luiz Freitas Almeida
408caea750 🔒 chore(api.tsx): refactor request interceptor logic to improve readability and maintainability 2023-08-29 10:40:09 -03:00
igorrCarvalho
787c7844f5 Merge login into login 2023-08-28 20:44:05 -03:00
igorrCarvalho
5b75d44c3e Fix: remove admin page and signout on flow page 2023-08-28 20:41:54 -03:00
anovazzi1
166cd7e9f0 added flex to avoid scroll bug on admin page 2023-08-28 20:33:39 -03:00
anovazzi1
bf81507447 feat(AdminPage): add support for displaying user ID, creation date, and update date in the user table
fix(AdminPage): add type annotations to user variables in filter and map functions to improve type safety
2023-08-28 20:07:52 -03:00
igorrCarvalho
21ef1b43c7 fix: Remove redundant button on admin page header 2023-08-28 20:04:56 -03:00
igorrCarvalho
bb4ed111ef fix: Remove redundant button on admin page header 2023-08-28 19:58:25 -03:00
anovazzi1
d1ffe5ab11 fix glitch on apiKey page 2023-08-28 18:59:59 -03:00
Cristhian Zanforlin Lousa
6c03edc50a 🐛 fix(auth.py): set AUTO_LOGIN to False to disable automatic login as a super user
🐛 fix(API/index.ts): add null check for response object before checking status to prevent potential error
2023-08-28 18:22:59 -03:00
Cristhian Zanforlin Lousa
7dcb534eb3 Merge branch 'login' of https://github.com/logspace-ai/langflow into login 2023-08-28 17:56:28 -03:00
Cristhian Zanforlin Lousa
0a2ced4e60 🔧 fix(authContext.tsx): remove unused refreshAccessToken function to improve code readability and maintainability
🔧 fix(tabsContext.tsx): remove unnecessary console.error statements to improve code readability and maintainability
🔧 fix(genericModal/index.tsx): remove unnecessary console.log statement to improve code readability and maintainability
🔧 fix(ApiKeysPage/index.tsx): remove unnecessary console.log statement to improve code readability and maintainability
🔧 fix(auth.ts): remove unused refreshAccessToken function type to improve code readability and maintainability
2023-08-28 17:56:24 -03:00
Gabriel Luiz Freitas Almeida
c9fef26981
Merge branch 'dev' into login 2023-08-28 20:34:08 +00:00
igorrCarvalho
70a8b1f630 Fix: Admin Page button showing even when logged as normal user 2023-08-28 17:28:32 -03:00
igorrCarvalho
97aa1e1443 Fix: Remove processCode() for when popUp open and make it only happen when click Check and save 2023-08-28 17:15:58 -03:00
Cristhian Zanforlin Lousa
9424d5738a 🐛 fix(parameterComponent): add missing prop 'editNode' to KeypairListComponent to fix component rendering issue
🐛 fix(EditNodeModal): import KeypairListComponent to fix missing import error
 feat(EditNodeModal): add support for editing keypair type template parameters by adding KeypairListComponent and handling new values
2023-08-28 17:12:28 -03:00
igorrCarvalho
2b88963e64 refactor: bring back border to the login related buttons 2023-08-28 16:20:19 -03:00
igorrCarvalho
8f90e61379 Refactor: update Last Used from invalid date to never 2023-08-28 16:07:57 -03:00
igorrCarvalho
cb3fc079c6 refactor: Migrate api key messages to constants 2023-08-28 14:06:22 -03:00
Cristhian Zanforlin Lousa
dc3db7ce78 🔧 chore(inputListComponent): add TODO comment for handling conversion from string to array format
🔧 chore(inputListComponent): add recursive character text splitter to handle conversion from string to array format
2023-08-28 13:59:01 -03:00
Cristhian Zanforlin Lousa
c6f6e2008e 🔀 refactor(inputListComponent): improve code readability and handle value conversion from string to array format
📝 WHY: The InputListComponent expects an array format for the value prop, but sometimes it receives a string instead. To prevent errors and ensure smooth operation, we need to handle the conversion from a string to an array with the string as its element. This refactor improves code readability and clarifies the purpose of the value conversion logic.
2023-08-28 13:52:49 -03:00
Cristhian Zanforlin Lousa
517816bd3b 🐛 fix(inputListComponent): convert value to an array when it's a string to avoid errors in InputListComponent 2023-08-28 13:51:42 -03:00
Cristhian Zanforlin Lousa
3b1872dd4c 🐛 fix(inputListComponent): fix type error when value is a string by converting it to an array 2023-08-28 13:31:50 -03:00
Gabriel Luiz Freitas Almeida
b70d5501a2 🐛 fix(ApiKeysPage): handle cases where keysList.current is null or undefined to prevent errors
 feat(ApiKeysPage): add conditional rendering for keysList.current to display appropriate messages when there are no keys assigned or when loading keys
2023-08-27 19:54:59 -03:00
Cristhian Zanforlin Lousa
be0c7ce368 🐛 fix(ApiKeysPage): handle case when last_used_at date is invalid to prevent error in moment.js formatting
🎨 style(ApiKeysPage): improve table header className logic for better readability
2023-08-25 20:06:11 -03:00
Cristhian Zanforlin Lousa
8c763d798e 🐛 fix(PaginatorComponent): add useEffect to update maxPageIndex when totalRowsCount changes
 feat(ApiKeysPage): add Header component to the page layout for better organization and structure
🐛 fix(ApiKeysPage): fix import order to follow convention and improve readability
🐛 fix(ApiKeysPage): fix indentation and formatting issues for better code readability
 feat(ApiKeysPage): add conditional rendering for displaying a message when user has no assigned keys
🐛 fix(ApiKeysPage): fix indentation and formatting issues for better code readability
 feat(ApiKeysPage): add table component to display the list of keys with their details
🐛 fix(ApiKeysPage): fix indentation and formatting issues for better code readability
 feat(ApiKeysPage): add ConfirmationModal component for deleting keys with appropriate title and content
🐛 fix(ApiKeysPage): fix indentation and formatting issues for better code readability
2023-08-25 20:02:16 -03:00
Cristhian Zanforlin Lousa
d546647518 Merge branch 'login' of https://github.com/logspace-ai/langflow into login 2023-08-25 19:50:43 -03:00
Cristhian Zanforlin Lousa
9509edb66d 🔧 fix(App.tsx): remove unused imports and variables for better code cleanliness
 feat(authContext.tsx): move autoLogin logic from App component to AuthProvider to improve separation of concerns
🔧 fix(index.tsx): reorder context providers to ensure correct execution order
🔧 fix(tabsContext.tsx): add comment to clarify the purpose of the useEffect hook
🔧 fix(typesContext.tsx): add comment to clarify the purpose of the useEffect hook
🔧 fix(routes.tsx): rename ProtectedAdminRoute to ProtectedRoute for consistency
2023-08-25 19:50:38 -03:00
anovazzi1
8fda2e207c refactor(ApiKeysPage): update the message displayed when there are no keys assigned to the user for better clarity and user experience 2023-08-25 19:31:24 -03:00
anovazzi1
c296fc18af removed id column from api keys table 2023-08-25 19:29:43 -03:00
Cristhian Zanforlin Lousa
6867811626 Merge branch 'login' of https://github.com/logspace-ai/langflow into login 2023-08-25 19:08:44 -03:00
Cristhian Zanforlin Lousa
89d69af7f8 🐛 fix(authContext.tsx): initialize accessToken and refreshToken with values from cookies to maintain user session
 feat(authContext.tsx): add support for process.env.PORT environment variable to be able to run app on a configurable port
🐛 fix(tabsContext.tsx): import missing AuthContext and use getAuthentication function to conditionally fetch data
🐛 fix(typesContext.tsx): import missing AuthContext and use getAuthentication function to conditionally fetch data
🐛 fix(api.tsx): add check to not refresh token if refreshToken is "auto"
2023-08-25 19:08:38 -03:00
anovazzi1
5efdde4aca fix(API): remove unused user_id parameter in getApiKey function
fix(API): remove unused user_id parameter in createApiKey function and add name parameter
fix(API): change deleteApiKey parameter from user_id to api_key
fix(SecretKeyModal): change createApiKey parameter from data to apiKeyName
fix(ApiKeysPage): remove unused user_id parameter in getApiKey function and add console.log for debugging
2023-08-25 18:50:37 -03:00
anovazzi1
927379b245 fix(manager.py): catch all exceptions instead of just TypeError when loading JSON payload to handle any parsing errors
feat(index.tsx): add authentication token to WebSocket URL to authenticate the user
2023-08-25 18:15:59 -03:00
Cristhian Zanforlin Lousa
38eb1a2d79 Merge branch 'login' of https://github.com/logspace-ai/langflow into login 2023-08-25 17:54:57 -03:00
Cristhian Zanforlin Lousa
1f42910c55 🐛 fix(tabsContext.tsx): add delay to refreshFlows function to prevent race condition with API call
🐛 fix(typesContext.tsx): add delay to useEffect to prevent race condition with API call
2023-08-25 17:54:37 -03:00
igorrCarvalho
928d696751 Merge branch 'login' of github.com:logspace-ai/langflow into login 2023-08-25 17:49:08 -03:00
igorrCarvalho
10ba3381e0 Refactor: Move github stars context to darkContext 2023-08-25 17:48:39 -03:00
anovazzi1
d2f5a5d564 moved api interceptor 2023-08-25 17:21:54 -03:00
anovazzi1
17cbc64273 update browser route context location 2023-08-25 17:17:09 -03:00
Cristhian Zanforlin Lousa
1ed89cbbad merge fix 2023-08-25 17:10:54 -03:00
anovazzi1
82826d6b44 fix(constants.ts): update BASE_URL_API to "/api/v1/" to match backend API endpoint
fix(API/index.ts): update API endpoints to use BASE_URL_API instead of hardcoding "/api/v1/"
2023-08-25 15:15:19 -03:00
Cristhian Zanforlin Lousa
151d01f506 🔧 chore(Makefile): remove unnecessary semicolons in Makefile commands
🔧 chore(Makefile): remove unnecessary package-lock.json deletion in install_frontendc command
 feat(ParameterComponent): add KeypairListComponent to handle key-value pairs
🔧 chore(KeypairListComponent): create KeypairListComponent to handle key-value pairs
🔧 chore(KeypairListComponent): add handleChangeKey and handleChangeValue functions to handle changes in key-value pairs
🔧 chore(KeypairListComponent): add button to add new key-value pair and remove existing key-value pair
🔧 chore(KeypairListComponent): add disabled prop to disable editing of key-value pairs
🔧 chore(KeypairListComponent): add editNode prop to style input fields in edit mode
🔧 chore(types): add KeyPairListComponent type definition
2023-08-24 21:00:38 -03:00
Lucas Oliveira
1e5fc97013 Bug fixed 2023-08-24 20:21:09 -03:00
igorrCarvalho
a1ea788d45 Feat: Make edges with data work on Examples too 2023-08-24 19:53:00 -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