Commit graph

2,427 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
37ebbf4e65 Formatting 2023-09-04 06:42:41 -03:00
root
6d6ab9a874 added missing backslashes to api key request definition 2023-09-02 21:36:49 +00:00
Gabriel Luiz Freitas Almeida
5c258d08f0 Merge remote-tracking branch 'origin/dev' into celery 2023-09-01 15:24:07 -03: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
Lucas Oliveira
2265d947bb Formatting fixes 2023-08-31 14:35:54 -03:00
Lucas Oliveira
6990d4865d Admin page UI revamp 2023-08-31 14:35:12 -03:00
Lucas Oliveira
06e5e7dc4c Formatting issues 2023-08-31 11:49:00 -03:00
Lucas Oliveira
8fedf9562f Fixed usability issues on import json method 2023-08-31 11:38:40 -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
Lucas Oliveira
d2eb87d44b Merge remote-tracking branch 'origin/dev' into dropdownButton_component 2023-08-31 10:43:28 -03: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
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
anovazzi1
60945ce883 added check to onCloseWebsocket event 2023-08-30 18:49:41 -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
igorrCarvalho
158ef9a9ea Refactor: Remove duplicate login button and bring back button borders back 2023-08-30 17:48:17 -03:00
igorrCarvalho
4739372e20 Refactor: Add trim() to signUp page 2023-08-30 17:40:18 -03:00
igorrCarvalho
35e24610af Refactor: Add trim() to login form 2023-08-30 17:29:00 -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
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
igorrCarvalho
bfc8ad8e30 feat: Add uploadFlow function to import from JSON button 2023-08-30 14:20:10 -03:00
Cristhian Zanforlin Lousa
4c228303c9 🐛 fix(EditNodeModal): add condition to check if nodeLength is greater than arrayOfObjects.length to handle overflow scrolling correctly 2023-08-30 11:50:47 -03:00
Lucas Oliveira
3c9a6af4cd Autocomplete style fix and input type fixed for signup and login 2023-08-30 11:42:58 -03:00
Lucas Oliveira
34da831213 Reset flows cache when logged out 2023-08-30 10:34:30 -03:00
anovazzi1
c64594c0a8 removed dead code 2023-08-29 22:33:19 -03:00
anovazzi1
6457725d13 fix(genericModal/index.tsx): remove debugger statement for cleaner code
fix(genericModal/index.tsx): update condition for setting nodeClass to avoid unnecessary re-rendering
2023-08-29 22:29:41 -03:00
Cristhian Zanforlin Lousa
f86c7c1689 🐛 fix(genericModal/index.tsx): add conditional check before setting nodeClass to prevent potential null or undefined value 2023-08-29 22:13:28 -03:00
Cristhian Zanforlin Lousa
89a0918dc5 🔧 fix(codeTabsComponent): remove unused useContext for isTweakPage in codeTabsComponent
🔧 fix(alertContext): remove isTweakPage and setIsTweakPage from alertContext

🔧 fix(genericModal): add null check for nodeClass before calling postValidatePrompt

🔧 fix(extraSidebarComponent): remove setIsTweakPage from extraSidebarComponent

🔧 fix(typesContext): remove isTweakPage and setIsTweakPage from typesContext
2023-08-29 22:07:18 -03:00
Lucas Oliveira
daf9214513 Merge branch 'dev' into newHandleId 2023-08-29 21:22:28 -03:00
igorrCarvalho
da703d65e3 Feat: Add DropdownButton prop type 2023-08-29 18:53:39 -03:00
igorrCarvalho
6240991e0c Feat: Add Dropdown Button to main page 2023-08-29 18:47:36 -03:00
igorrCarvalho
d6f9124405 Feat[DropdownButtonComponent]: Create Dropdown Button component 2023-08-29 18:34:55 -03:00
anovazzi1
02cc23d6b1
Login (#802)
### Description
This pull request introduces a significant enhancement to the project by
incorporating robust authentication logic. The enhancement addresses the
critical need for secure user access and data protection within the
application. With this addition, the system will be able to authenticate
users, verify their identities, and provide access only to authorized
individuals.

### Changes Implemented
- **Authentication Middleware**: A new middleware module has been
implemented to intercept incoming requests and validate user
authentication. This middleware checks for valid authentication tokens
or credentials and ensures that only authenticated users can access
protected resources.

- **User Authentication Endpoint**: A new endpoint has been created to
handle user authentication. This endpoint allows users to provide their
credentials, which are then securely processed and validated against the
stored user data.

- **Password Hashing**: User passwords are now securely hashed using a
strong cryptographic algorithm before being stored in the database. This
ensures that even if the database is compromised, user passwords remain
inaccessible.

- **Token-Based Authentication**: Upon successful authentication, the
system generates a time-limited access token for the user. This token
must be included in subsequent requests to access protected resources.
Token validity is maintained through token expiration and refresh
mechanisms.

- **Authorization Checks**: The logic has been extended to include
authorization checks after successful authentication. This ensures that
authenticated users only have access to the resources they are
authorized to use, based on their roles and permissions.

### Benefits
1. **Enhanced Security**: By implementing strong authentication
mechanisms and password hashing, the project significantly improves
security, minimizing the risk of unauthorized access or data breaches.

2. **User-Friendly Experience**: Users can securely access the
application, confident in the knowledge that their credentials and data
are protected. The token-based authentication simplifies the user
experience by eliminating the need for frequent re-authentication.

3. **Scalability**: The authentication logic has been designed with
scalability in mind, ensuring that the system can handle a growing
number of users and requests without compromising security or
performance.

4. **Modularity**: The new authentication logic has been integrated as a
separate module, enhancing the project's modularity and maintainability.
2023-08-29 17:38:20 -03:00
anovazzi1
cf8df6c62b fix(users.py): update error message to be more generic and not reveal specific reason for username unavailability
fix(AdminPage/index.tsx): fix nullish assertion for create_at and updated_at properties to avoid potential errors
fix(signUpPage/index.tsx): fix error handling to correctly display error message
fix(types/components/index.ts): make id, create_at, and updated_at properties optional in UserInputType
2023-08-29 16:44:15 -03:00
anovazzi1
d73b3b0b52 fix(users.py): improve error message when trying to add a user with an already claimed username 2023-08-29 16:26:15 -03:00