Commit graph

1,182 commits

Author SHA1 Message Date
Lucas Oliveira
7bfe0c88c1 Fixed and added conditions to flows without chat 2023-07-10 16:42:41 -03:00
Lucas Oliveira
e020e23124 Fixed tooltip not being at the top of all nodes 2023-07-10 16:20:18 -03:00
Lucas Oliveira
6b3fcd5608 format 2023-07-10 16:00:12 -03:00
Lucas Oliveira
f035be88e4 Fixed bug where we cannot create new flow when we build a flow 2023-07-10 15:59:38 -03:00
Gabriel Luiz Freitas Almeida
eecefdb235 🐛 fix(formModal): handle case when chatKey is undefined to prevent error 2023-07-10 15:47:02 -03:00
Cristhian Zanforlin Lousa
43063dd00f 🎨 style(chatMessage/index.tsx): add responsive max-width to the markdown container to improve readability on smaller screens 2023-07-10 15:17:13 -03:00
Cristhian Zanforlin Lousa
df31285395 Merge branch 'form_io' of https://github.com/logspace-ai/langflow into form_io 2023-07-10 14:39:18 -03:00
Cristhian Zanforlin Lousa
1f2cddf1d2 🎨 style(chatInput/index.tsx): add 'bg-input' class to the chat input when lockChat is true to improve visual distinction 2023-07-10 14:39:11 -03:00
Gabriel Luiz Freitas Almeida
c9fd97f1f6 formatting 2023-07-10 13:58:48 -03:00
Cristhian Zanforlin Lousa
f751927ab1 🎨 style(dropdownComponent/index.tsx): add custom-scroll class to dropdown options to enable custom scrolling 2023-07-10 12:15:39 -03:00
Cristhian Zanforlin Lousa
efbc23d6bc 🐛 fix(codeAreaComponent): update class names to improve styling and semantics
🐛 fix(promptComponent): remove unnecessary div wrapper
🐛 fix(textAreaComponent): update class names to improve styling and semantics
2023-07-10 12:01:25 -03:00
anovazzi1
c8cdb89da1 using new examples for testing 2023-07-10 11:36:16 -03:00
Cristhian Zanforlin Lousa
ea8d6668de 🐛 fix(EditNodeModal): use the 'disabled' prop value instead of hardcoded 'false' to control the disabled state of input components 2023-07-10 10:32:19 -03:00
Cristhian Zanforlin Lousa
243b59507b 🐛 fix(parameterComponent): use strict equality operator (===) instead of loose equality operator (==) for item.type comparison to improve code quality and avoid potential bugs
🐛 fix(parameterComponent): update style prop value in ShadTooltip component to use class names 'tooltip-fixed-width' and 'custom-scroll' for consistent styling and better readability
🐛 fix(parameterComponent): update disabled prop value in TextAreaComponent to use the disabled variable passed as a prop for consistency and better code organization
🐛 fix(AccordionComponent): use strict equality operator (===) instead of loose equality operator (==) for open.length comparison to improve code quality and avoid potential bugs
🐛 fix(codeAreaComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(codeAreaComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(codeAreaComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(codeAreaComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(inputFileComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(inputFileComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(inputFileComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(inputFileComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(intComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(intComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(promptComponent): add missing dependencies to useEffect dependency array to avoid potential bugs and improve code quality
🐛 fix(promptComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(textAreaComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(textAreaComponent): remove unnecessary space in className prop value to improve code readability
🐛 fix(tabsContext): change getTweak initial state from an object to an empty array to match the expected type and avoid potential bugs
🐛 fix(ApiModal): add missing curly braces around the buildTweaks function call to ensure the correct value is pushed to the tweak.current array

🐛 fix(EditNodeModal): remove unnecessary 'save' variable from useContext destructuring
🐛 fix(chatMessage): use strict equality operator (===) instead of loose equality operator (==) for comparison
🐛 fix(chatModal): use strict equality operator (===) instead of loose equality operator (==) for comparison
🐛 fix(codeAreaModal): add 'setCloseEdit' to useContext destructuring and add 'setModalOpen' function
🐛 fix(chatInput): use strict equality operator (===) instead of loose equality operator (==) for comparison
🐛 fix(chatMessage): use strict equality operator (===) instead of loose equality operator (==) for comparison
🐛 fix(formModal): use strict equality operator (===) instead of loose equality operator (==) for comparison
🐛 fix(formModal): use strict equality operator (===) instead of loose equality operator (==) for comparison
🐛 fix(formModal): use strict equality operator (===) instead of loose equality operator (==) for comparison
🐛 fix(formModal): use strict equality operator (===) instead of loose equality operator (==) for comparison
🐛 fix(genericModal): use strict equality operator (===) instead of loose equality operator (==) for comparison
🐛 fix(flow): add missing newline at the end of the file
🐛 fix(tabs): add missing import for TweaksType from flow

🐛 fix(utils.ts): change comparison operator from '==' to '===' for better type safety and strict equality check
2023-07-10 10:29:09 -03:00
Gabriel Luiz Freitas Almeida
d0124dc4cc 🔥 refactor(chatModal/index.tsx): remove unused setNoticeData function from alertContext
🔒 chore(chatModal/index.tsx): remove unused lockChat state variable and setLockChat function
2023-07-09 11:18:21 -03:00
Gabriel Luiz Freitas Almeida
8a3e8f010a 🔧 chore(chatModal): update updateLastMessage function to include thought property in the message object
🔧 chore(chatModal): update updateLastMessage function to include thought property in the message object for stream type messages
2023-07-09 10:59:55 -03:00
Gabriel Luiz Freitas Almeida
79261bf620 feat(SanitizedHTMLWrapper): add new component to safely render sanitized HTML content
🐛 fix(chatMessage): fix import path for SanitizedHTMLWrapper component
🐛 fix(formModal): fix import path for SanitizedHTMLWrapper component
🐛 fix(genericModal): fix import path for SanitizedHTMLWrapper component
2023-07-08 15:13:45 -03:00
Gabriel Luiz Freitas Almeida
9a3e0d2891 feat(SanitizedDiv): add a new component to sanitize and render HTML content safely
🔨 refactor(chatMessage): replace the usage of DOMPurify with SanitizedHTMLWrapper component in chatMessage component
🔨 refactor(formModal): replace the usage of DOMPurify with SanitizedHTMLWrapper component in formModal component
🔨 refactor(genericModal): replace the usage of DOMPurify with SanitizedHTMLWrapper component in genericModal component
2023-07-08 15:11:59 -03:00
Gabriel Luiz Freitas Almeida
3896f894ac 🐛 fix(constants.tsx): correct typo in constant name from HIGHLIGH_CSS to HIGHLIGHT_CSS for consistency and clarity 2023-07-08 15:09:49 -03:00
Gabriel Luiz Freitas Almeida
ded0529d59 🔧 chore(chatMessage/index.tsx): import DOMPurify to sanitize HTML content in chat message thought
🐛 fix(chatMessage/index.tsx): use DOMPurify to sanitize HTML content in chat message thought to prevent XSS attacks
2023-07-08 14:58:47 -03:00
Gabriel Luiz Freitas Almeida
167c9cc2d8 🐛 fix(chatModal): concatenate message and thought strings instead of overwriting them to preserve previous content 2023-07-08 14:58:24 -03:00
Gabriel Luiz Freitas Almeida
1fbc897cfa 🐛 fix(GenericNode/index.tsx): fix tooltip content to display "Building..." when isBuilding flag is true 2023-07-08 14:57:53 -03:00
Gabriel Luiz Freitas Almeida
55164fdfa3 🐛 fix(error): fix formatting issue in ErrorAlert component 2023-07-08 11:43:27 -03:00
Cristhian Zanforlin Lousa
df7b3bb653 🔥 refactor(promptModal): remove unused code and dependencies to improve code cleanliness and reduce bundle size
🔥 refactor(textAreaModal): remove unused code and dependencies to improve code cleanliness and reduce bundle size
2023-07-08 09:13:35 -03:00
Cristhian Zanforlin Lousa
4883064e84 🐛 fix(alerts/error): remove unnecessary line break in ErrorAlert component
 feat(modals/EditNodeModal): add ability to set nodeClass in EditNodeModal component
🐛 fix(modals/genericModal): handle optional chaining for error response data in GenericModal component
🔥 chore(modals/promptModal): remove unused import and checkPrompt function in PromptAreaModal component
2023-07-08 09:12:24 -03:00
Cristhian Zanforlin Lousa
7dcaf709da 🐛 fix(chatMessage/index.tsx): add optional chaining to template.split() to handle cases where template is null or undefined 2023-07-08 08:38:08 -03:00
Lucas Oliveira
b1a58a76b8 Fixed chat thought always showing 2023-07-08 06:44:03 -03:00
Lucas Oliveira
ca7d7cb19c Merge branch 'form_io' of github.com:logspace-ai/langflow into form_io 2023-07-08 06:42:33 -03:00
Rodrigo Nader
bdd39a506a feat(css): Update styles for chat thought and initial prompt
This commit updates the styles for the chat thought and initial prompt components in the frontend. The changes include modifying the border color to use a custom ring color, adjusting the padding and margin, and updating the text size and color. Additionally, the label for the "Initial Prompt" button has been changed to "Display Prompt" for clarity.
2023-07-08 01:33:12 -03:00
Lucas Oliveira
6a04fabced Fixed DOM Nesting error on EditNodeModal 2023-07-08 00:16:22 -03:00
Lucas Oliveira
db990f2472 Assertion on onMove function on reactflow 2023-07-08 00:12:04 -03:00
Lucas Oliveira
33d6fb8081 Fixed bugfix for ace 2023-07-08 00:10:44 -03:00
Lucas Oliveira
eb5a315b07 Fixed bug of DOM nesting showing on console.log 2023-07-08 00:06:30 -03:00
Lucas Oliveira
58f6efca61 Merge branch 'form_io' into form_io_constants 2023-07-07 23:57:41 -03:00
Lucas Oliveira
2a34f725fc Added Tooltip Wrapper inside context wrappers to show tooltip on top of every node 2023-07-07 23:48:21 -03:00
anovazzi1
8cca9ce495 refactor(parameterComponent): remove unnecessary empty line in ParameterComponent
refactor(parameterComponent): remove unused useEffect dependency in ParameterComponent
refactor(inputComponent): reformat classNames in InputComponent for better readability
refactor(EditNodeModal): remove unused imports in EditNodeModal
refactor(EditNodeModal): reformat disabled variable assignment in EditNodeModal for better readability
refactor(EditNodeModal): remove unnecessary empty lines in EditNodeModal
refactor(EditNodeModal): reformat handleOnNewValue function call in EditNodeModal for better readability
refactor(chatMessage): remove unnecessary empty line in ChatMessage component
refactor(chatMessage): remove unnecessary inline-block class in ChatMessage component
2023-07-07 21:26:14 -03:00
anovazzi1
224fd4fef7 bug fix text overlay 2023-07-07 21:23:49 -03:00
Cristhian Zanforlin Lousa
4045d233c7 🐛 fix(parameterComponent/index.tsx): remove unused useState and useEffect dependencies to improve code readability
🐛 fix(EditNodeModal/index.tsx): remove unused useState and useEffect dependencies to improve code readability
2023-07-07 20:55:56 -03:00
Cristhian Zanforlin Lousa
d813994867 Merge branch 'form_io' of https://github.com/logspace-ai/langflow into form_io 2023-07-07 20:05:36 -03:00
Cristhian Zanforlin Lousa
1294efc5db 🐛 fix(inputComponent): fix padding issue in password input field
The padding issue in the password input field was causing the text to be clipped. The issue was resolved by adjusting the padding classes based on the editNode and password conditions.
2023-07-07 20:05:29 -03:00
anovazzi1
d13f37fcbe feat(modals): add BaseModal component for reusable modal functionality
fix(codeAreaModal): refactor codeAreaModal to use BaseModal component for consistency and reusability
2023-07-07 19:59:20 -03:00
Cristhian Zanforlin Lousa
c749ebc297 🐛 fix(inputComponent): fix classNames in InputComponent to correctly apply styles 2023-07-07 19:30:31 -03:00
Cristhian Zanforlin Lousa
5c0888cf72 merge fix 2023-07-07 19:12:51 -03:00
Cristhian Zanforlin Lousa
24d1157988 🐛 fix(parameterComponent): remove extra whitespace in parameterComponent
 feat(EditNodeModal): add support for handling tab state and saving changes in EditNodeModal
🐛 fix(EditNodeModal): fix disabled condition in EditNodeModal
🐛 fix(EditNodeModal): remove unused useEffect in EditNodeModal
 feat(EditNodeModal): add handleOnNewValue function to handle changes in EditNodeModal
2023-07-07 19:12:18 -03:00
Gabriel Luiz Freitas Almeida
86e11bc1cd 🔥 refactor(inputFileComponent): remove unnecessary empty line
The empty line after the `export default function InputFileComponent({` declaration has been removed as it was not serving any purpose and was unnecessary.
2023-07-07 18:45:49 -03:00
Gabriel Luiz Freitas Almeida
47ab165015 Formatting 2023-07-07 18:25:56 -03:00
Gabriel Luiz Freitas Almeida
05f30a585f 🔧 chore(GenericNode): optimize imports and remove duplicate imports
🔧 chore(ShadTooltipComponent): remove unused import and set default value for delayDuration prop
🔧 chore(ApiModal): optimize imports and remove unused imports
🔧 chore(genericModal): optimize imports and remove unused imports

The changes were made to optimize the imports and remove duplicate and unused imports in the respective files. This improves the codebase by reducing unnecessary dependencies and improving maintainability.
2023-07-07 18:25:52 -03:00
Cristhian Zanforlin Lousa
c9b5a09c46 🐛 fix(table.tsx): remove unnecessary "overflow-auto" class from table container div to fix styling issue 2023-07-07 18:23:04 -03:00
Cristhian Zanforlin Lousa
39daf5e8cf 🔧 fix(ShadTooltipComponent): add style prop to ShadTooltip component to allow custom styling
🔧 fix(types): add style property to ShadToolTipType to reflect the changes in ShadTooltipComponent
2023-07-07 18:14:01 -03:00
Cristhian Zanforlin Lousa
2525ad218c 🐛 fix(dropdownComponent): add 'nowheel' class to options when editNode is true to fix styling issue
🐛 fix(inputFileComponent): fix class order in className to ensure correct styling when editNode is true
🐛 fix(genericModal): remove unnecessary conditional rendering of '-' in Input Variables label
2023-07-07 17:37:23 -03:00