Commit graph

2,631 commits

Author SHA1 Message Date
cristhianzl
77665da9c7 fix(keyPairListComponent.spec.ts): fix incorrect key and value in test case to ensure accurate testing 2023-11-27 09:38:14 -03:00
cristhianzl
d35ce3d48b fix(SanitizedHTMLWrapper): add data-testid attribute to the div element for testing purposes
fix(genericIconComponent): add data-testid attribute to the TargetIcon component for testing purposes

fix(promptComponent): add data-testid attribute to the span element for testing purposes

fix(textAreaComponent): add data-testid attribute to the IconComponent component for testing purposes

fix(genericModal): add data-testid attribute to the Textarea component and the input element for testing purposes

fix(types/components): add id property to IconComponentProps type

test(flowPage.spec): update click actions to use getByTestId method for testing purposes

test(intComponent.spec): update fill action to set a different value for testing purposes

test(promptModalComponent.spec): update click and fill actions to use getByTestId method for testing purposes
2023-11-24 16:03:33 -03:00
igorrCarvalho
04a69bbf74 Refactor: Add showModalAdvanced to useEffect dependencies to prevent EditNodeModal not updating bug 2023-11-24 13:25:48 -03:00
Gabriel Luiz Freitas Almeida
42bd345162 Merge branch 'dynamic_field' into feature/store 2023-11-24 12:51:41 -03:00
anovazzi1
2438a8c658 fix(GenericNode/index.tsx): fix initial state of inputName to be false instead of true for better user experience
refactor(GenericNode/index.tsx): refactor tooltip div structure to improve readability and add pencil icon if node has flow
refactor(GenericNode/index.tsx): refactor color logic to use typesContext instead of accessing types directly
refactor(GenericNode/index.tsx): refactor output type title logic to use ternary operator for better readability
refactor(GenericNode/index.tsx): refactor validation status params rendering to use ternary operator for better readability
refactor(GenericNode/index.tsx): refactor generic node description rendering to use ternary operator for better readability
refactor(GenericNode/index.tsx): refactor template field rendering to use ternary operator for better readability
refactor(PageComponent/index.tsx): remove unnecessary empty line
2023-11-24 12:45:00 -03:00
cristhianzl
4f1d0b4683 fix(keypairListComponent): update input ids to include "editNode" prefix when editNode prop is true
fix(genericModal): add data-testid to save button for easier testing
fix(sideBarDraggableComponent): add data-testid to div element for easier testing
fix(nodeToolbarComponent): add empty fragment as ConfirmationModal.Trigger to fix warning
fix(types): add editNodeModal property to KeyPairListComponentType
fix(codeAreaModalComponent.spec): update locator for Python Function Tool
fix(floatComponent.spec): update locator for Python Function Tool
fix(intComponent.spec): update locator for GET Request Tool
fix(keyPairListComponent.spec): update locator for CSV Loader Tool
fix(promptModalComponent.spec): update locator for Prompt Template Tool
2023-11-24 11:06:57 -03:00
igorrCarvalho
7e4dd16881 Feat: Add option to replace saved component or create a new one using confirmation modal 2023-11-23 22:06:07 -03:00
anovazzi1
037f7f5b1b refactor for field types 2023-11-23 21:33:30 -03:00
cristhianzl
9e653f2bdc Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-23 18:41:25 -03:00
anovazzi1
8e47e7c9d7 fix(PageComponent): change position calculation to use screenToFlowPosition instead of project to fix incorrect node creation position 2023-11-23 18:41:13 -03:00
anovazzi1
0e078efee0 fix(shareModal): add support for disabled prop to prevent opening the modal when disabled
fix(extraSidebarComponent): pass disabled prop to ShareModal based on hasApiKey value to disable sharing when no API key is available
2023-11-23 18:28:07 -03:00
anovazzi1
bd74a16e47 fix(extraSidebarComponent): change variable name from hasApiKey to hasApiKey for consistency
fix(nodeToolbarComponent): add condition to show Share option only if `hasApiKey` is true
2023-11-23 17:39:28 -03:00
anovazzi1
61ad880990 fix(shareModal/index.tsx): add conditional check for hasApiKey before calling handleGetTags and handleGetNames to prevent unnecessary API calls when there is no API key available 2023-11-23 17:22:43 -03:00
anovazzi1
b60fd7f04d fix(sideBarDraggableComponent): fix indentation and closing tag placement for IconComponent in SidebarDraggableComponent 2023-11-23 16:55:15 -03:00
anovazzi1
9db5f90acf fix(extraSidebarComponent): sort the keys in dataFilter object with a custom sorting function to prioritize "saved_components" key 2023-11-23 16:38:54 -03:00
cristhianzl
fa7376c118 fix(flowsContext.tsx): remove unnecessary console.log statement
fix(flowsContext.tsx): update saveFlow function to check for empty nodes before saving
fix(flowsContext.tsx): update saveFlow function to handle optional description property
fix(flowsContext.tsx): update saveFlow function to correctly update flow data in state
fix(PageComponent/index.tsx): add missing flows dependency to useEffect hook
fix(PageComponent/index.tsx): update saveFlow function to correctly pass flow data to saveFlow function
2023-11-22 22:29:38 -03:00
cristhianzl
30cc5723bd Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-11-22 22:08:14 -03:00
cristhianzl
08b6739e1e fix(nodeToolbarComponent): add data-testid attribute to more options modal for easier testing
fix(floatComponent.spec): update element locator for sideLlamaCpp to llmsLlamaCpp to match changes in the codebase
fix(floatComponent.spec): update element locator for editAdvancedIcon to use getByTestId for more reliable testing
2023-11-22 22:08:04 -03:00
anovazzi1
3db17aa7b6 fix(parameterComponent): update disabled logic to include proxy property in the comparison
fix(sideBarDraggableComponent): remove unnecessary line breaks and update deleteComponent function call
2023-11-22 22:07:33 -03:00
cristhianzl
c1fa3c49ab fix(flowsContext.tsx): remove console.log statement used for debugging
fix(EditNodeModal/index.tsx): fix issue with useRef not updating properly by assigning a new object to myData.current
2023-11-22 21:57:10 -03:00
anovazzi1
339cde462f fix(GenericNode/index.tsx): fix indentation and formatting issues in the code for better readability
feat(GenericNode/index.tsx): add condition to only render ParameterComponent if base_classes array is not empty
2023-11-22 21:22:24 -03:00
cristhianzl
eb8ff52ac2 chore(flowsContext.tsx): remove unused imports and variables for better code cleanliness
feat(flowsContext.tsx): add support for creating a new flow with a default name if no flow is provided
feat(flowsContext.tsx): add support for adding a version number to duplicate flow names
feat(flowsContext.tsx): add support for saving a flow to the database and updating its id
feat(flowsContext.tsx): add support for deleting a component flow
feat(extraSidebarComponent/index.tsx): add support for disabling save button when there are no nodes in the flow
2023-11-22 20:45:55 -03:00
igorrCarvalho
51ff8eb032 Fix: Make component search by name instead type to avoid delete on side bar not working 2023-11-22 19:15:46 -03:00
Lucas Oliveira
470a8e3373 Fixing /all calls quantity 2023-11-22 16:58:28 -03:00
Lucas Oliveira
0d785c923a Fixed refreshing flows on refresh page 2023-11-22 16:47:38 -03:00
Lucas Oliveira
71510a21f8 Changed non existent isComponent to be considered as flow 2023-11-22 16:03:24 -03:00
Lucas Oliveira
dee08d6584 Changed order in which uploaded flows are added 2023-11-22 15:50:55 -03:00
Lucas Oliveira
73b42e917d Fixed dropping file 2023-11-22 15:45:57 -03:00
Lucas Oliveira
b7303fa032 fixed uploadFlow in other places 2023-11-22 14:25:33 -03:00
Gabriel Luiz Freitas Almeida
77aee1b413 Update icon import names 2023-11-22 10:56:10 -03:00
Lucas Oliveira
103b497328 Fixed sorting 2023-11-21 23:00:32 -03:00
anovazzi1
f50491a47e fix(shareModal/index.tsx): update useEffect dependency array to include internalOpen variable to ensure proper handling of API calls when modal is open or internalOpen is true 2023-11-21 22:36:20 -03:00
anovazzi1
e8783d3a9b fix(shareModal/index.tsx): update useEffect dependency array to include 'open' variable to prevent unnecessary re-renders 2023-11-21 22:29:23 -03:00
Lucas Oliveira
d4cef3588c Added ID filtering on Store 2023-11-21 22:15:16 -03:00
Lucas Oliveira
12d6b4746a Added ID filter to LangFlow 2023-11-21 22:15:16 -03:00
anovazzi1
95ef164f83 fix(shareModal/index.tsx): remove unused useRef variable tagListId to improve code readability and maintainability
fix(storeUtils.ts): update getTagsIds function to accept an array of tag objects instead of a ref object, and remove unnecessary console.log statements
2023-11-21 21:45:15 -03:00
anovazzi1
003a3e0783 fix(EditFlowSettingsComponent): remove unused code and improve performance by removing unnecessary API calls to read flows from the database
feat(EditFlowSettingsComponent): add support for checking if the entered name is already in use by passing the list of unavailable names as a prop
fix(FlowSettingsModal): remove unused state variable invalidName and setInvalidName function
feat(FlowSettingsModal): add support for checking if the entered name is already in use by passing the list of unavailable names as a prop
fix(ShareModal): add support for checking if the entered name is already in use by passing the list of unavailable names as a prop
feat(ShareModal): add support for fetching the list of unavailable names from the API to check if the entered name is already in use
fix(types): remove unused invalidName property from InputProps type
2023-11-21 21:31:24 -03:00
Lucas Oliveira
6f709dc3ee Added sorting by date on langflow my collection 2023-11-21 21:29:31 -03:00
Lucas Oliveira
410fbfe10b Sync with langflow.store to use same components 2023-11-21 20:44:50 -03:00
Lucas Oliveira
4a0cd402a8 formatiing 2023-11-21 20:27:19 -03:00
Lucas Oliveira
3d32be344d Fixed flows being able to upload to components and vice versa 2023-11-21 20:27:19 -03:00
anovazzi1
fb58388504 fix(GenericNode): sort template fields alphabetically with special handling for "code" field to be displayed first
The changes in this commit fix the sorting of template fields in the GenericNode component. Previously, the fields were sorted alphabetically, but with this change, the "code" field is prioritized and displayed first. This change improves the user experience by making the "code" field more prominent and easily accessible.
2023-11-21 20:21:02 -03:00
igorrCarvalho
0e8c6681e4 Fix: Add ArrowUp and ArrowDown to if params to prevent arrows not working on int input 2023-11-21 19:17:52 -03:00
igorrCarvalho
dba85aadfb Refactor: Make text area modal open on input click to avoid it not opening on edit node page 2023-11-21 18:55:52 -03:00
anovazzi1
2bdc1b7fbb fix(PageComponent): update saveFlow function to pass a modified flow object with updated data property to improve data consistency
fix(PageComponent): update saveFlow function to pass a modified flow object with updated data property to improve data consistency
fix(extraSidebarComponent): update saveFlow function to pass a modified flow object with updated data property to improve data consistency
2023-11-21 18:39:12 -03:00
anovazzi1
7549cbb90b fix(cardComponent): update ShadTooltip content to always display "Private" for private cards
fix(API): update parameter name from status to isPrivate for consistency and clarity
fix(StorePage): update parameter name from status to isPrivate to match API changes and improve semantics
2023-11-21 17:19:49 -03:00
Gabriel Luiz Freitas Almeida
c84d93fa5c 🎨 style(parameterComponent): improve CSS for dropdown and refresh button in ParameterComponent
🐛 fix(parameterComponent): add conditional rendering for refresh button based on data.node.template[name].refresh value
2023-11-21 16:42:56 -03:00
Gabriel Luiz Freitas Almeida
8f6f020881 Add RefreshCcw icon to nodeIconsLucide 2023-11-21 16:42:29 -03:00
Lucas Oliveira
e3797bae8d Set tab id as null when entering store 2023-11-21 16:22:06 -03:00
Lucas Oliveira
82b84dd7d5 Fixed checkbox function on share modal 2023-11-21 16:20:40 -03:00