Commit graph

2,735 commits

Author SHA1 Message Date
cristhianzl
3584fab652 Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-12-07 15:42:34 -03:00
cristhianzl
9a92a291ca fix(parameterComponent): add data-testid attribute to textarea and input elements for easier testing
fix(GenericNode): add data-testid attribute to div element for easier testing
fix(textAreaComponent): add data-testid attribute to div element for easier testing
fix(EditNodeModal): add data-testid attribute to textarea element for easier testing
fix(genericModal): add data-testid attribute to span element for easier testing
fix(flowPage.spec): comment out unnecessary code
fix(keyPairListComponent.spec): add click event to div element for easier testing
fix(nestedComponent.spec): comment out unnecessary code
fix(promptModalComponent.spec): comment out unnecessary code
fix(inputComponent.spec): add click event to div element for easier testing
fix(toggleComponent.spec): add click event to div element for easier testing
2023-12-07 15:42:26 -03:00
anovazzi1
441247d63b fix(extraSidebarComponent): update useEffect dependency array to include 'data' variable to ensure proper re-rendering when 'data' changes 2023-12-07 11:08:33 -03:00
cristhianzl
08522720dc fix(keypairListComponent): add data-testid attribute to input elements for better testability
fix(codeAreaModalComponent.spec): remove unnecessary click action
fix(floatComponent.spec): remove unnecessary click action
fix(intComponent.spec): remove unnecessary click action
fix(keyPairListComponent.spec): remove unnecessary click action
fix(promptModalComponent.spec): remove unnecessary comments and unused code
2023-12-06 20:06:47 -03:00
Lucas Oliveira
7e71bec7e4 Fixed minimize not working 2023-12-06 18:23:06 -03:00
Lucas Oliveira
6de820a6cc Changed colors 2023-12-05 19:48:08 -03:00
Lucas Oliveira
344f761b57 Fixed component colors 2023-12-05 19:33:15 -03:00
cristhianzl
3192290f1b Merge branch 'feature/store' of github.com:logspace-ai/langflow into feature/store 2023-12-04 20:48:20 -03:00
cristhianzl
8714ecfada feat(flowsContext.tsx): add nodesOnFlow and setNodesOnFlow functions to FlowsContext to track changes in nodes on the flow
fix(PageComponent/index.tsx): update onNodesChangeMod function to only trigger when there are changes in the nodes on the flow and update nodesOnFlow state in FlowsContext
feat(tabs/index.ts): add nodesOnFlow and setNodesOnFlow functions to FlowsContextType to track changes in nodes on the flow
2023-12-04 20:48:11 -03:00
Lucas Oliveira
7de1ee12c8 Fixed disabled variable at EditNodeModal 2023-12-04 18:37:33 -03:00
Lucas Oliveira
b6f1f07d19 Fixed button to open new tab(make it a Link) 2023-12-04 18:19:44 -03:00
anovazzi1
cd1a290057 fix(PageComponent): update onKeyDown event handler to prevent copying text when there is a selection 2023-12-04 18:11:38 -03:00
Lucas Oliveira
11c9515e19 Fix response incorrect 2023-12-04 17:54:55 -03:00
Lucas Oliveira
a26726a99d Fixed ctrl-z not working when pasting more times 2023-12-04 17:41:38 -03:00
Lucas Oliveira
0fc773ecee Update node state when changing something, updated back button to act like one 2023-12-04 17:38:38 -03:00
Lucas Oliveira
40d62fa565 TakeSnapshot added on paste 2023-12-04 17:18:36 -03:00
Lucas Oliveira
34aef1540b Changed position of copied element 2023-12-04 17:16:23 -03:00
Lucas Oliveira
15b7ce83d3 Fix lag on components page 2023-12-04 17:10:32 -03:00
Lucas Oliveira
cfec6f2683 Cancel previous timeout if flow and reactFlowInstance changes 2023-12-04 16:41:13 -03:00
Lucas Oliveira
d19fdf5373 Added colors to types 2023-12-04 16:41:13 -03:00
Lucas Oliveira
755f8c6e70 Fixed icon size and naming 2023-12-04 16:07:52 -03:00
Lucas Oliveira
6e353ba3ee Removed position from component upload 2023-12-04 15:56:59 -03:00
Lucas Oliveira
7e12316022 Added component drop on ReactFlow 2023-12-04 15:56:59 -03:00
Lucas Oliveira
a632fc6bdb Added loading screen on reactflow 2023-12-04 15:32:35 -03:00
Lucas Oliveira
64ca2649fe Fixed group button with transparent background 2023-12-04 15:06:48 -03:00
Lucas Oliveira
395c0fe55a Fixed placeholder message 2023-12-04 15:00:09 -03:00
Lucas Oliveira
f964420a5e Added icons on sidebar 2023-12-04 14:52:31 -03:00
Lucas Oliveira
cc5a913cfd Updated to be on pair with store 2023-12-04 14:43:06 -03:00
anovazzi1
faea687871 feat(GenericNode): add priorityFields constant to improve sorting logic in GenericNode component
The `GenericNode` component in `index.tsx` has been updated to include an import statement for the `priorityFields` constant from `constants.ts`. This constant is a `Set` containing the field names "code" and "template".

In the `sort` function of the `GenericNode` component, the logic has been modified to check if a field name is present in the `priorityFields` set. If so, it gives higher priority to that field during sorting. This change improves the sorting logic in the component.

The `constants.ts` file has also been updated to include the `priorityFields` constant.
2023-12-04 14:28:07 -03:00
anovazzi1
a368991d39 fix(GenericNode): change icon name from "Ungroup" to "group_components" to match the corresponding icon component
fix(GradientSparkles): add new icon component "GradientUngroup" to render the "Ungroup" icon with gradient stroke
fix(ComponentsComponent): add TODO comment to create a placeholder for when there are no components created yet
fix(styleUtils): import and use the new "GradientUngroup" icon component for the "group_components" icon in nodeIconsLucide
2023-12-01 18:18:18 -03:00
anovazzi1
7d2e67ec77 refactor(flowsContext.tsx): remove file name from components before creating data URI
The `removeFileNameFromComponents` function is added to remove the file name from the components in the `clonedFlow` object before creating the data URI. This ensures that the file name is not included in the exported flow data.

refactor(genericModal/index.tsx): fix formatting of genericModalPropsType

The formatting of the `genericModalPropsType` interface is fixed to improve readability and maintain consistency with the codebase.
2023-12-01 17:23:46 -03:00
cristhianzl
c8c899d1ad fix(parameterComponent): import cloneDeep from lodash to fix missing import error
feat(parameterComponent): add support for process.env.PORT environment variable to be able to run app on a configurable port
fix(PageComponent): add conditional logic to fit the view based on the number of nodes in the flow
2023-12-01 16:44:37 -03:00
cristhianzl
7bfce4cd1d feat(StorePage): add resetPagination function to reset page index and page size when changing tabs 2023-11-30 17:38:54 -03:00
Lucas Oliveira
b8f8ec9c90 Fixed disabled not disabling text input 2023-11-30 17:33:47 -03:00
anovazzi1
67e520cfd6 fix(shareModal): import removeFileNameFromComponents function to fix compilation error
feat(shareModal): add logic to remove file names from flows before sharing to improve privacy and security
feat(reactflowUtils): add removeFileNameFromComponents function to recursively remove file names from flow components
2023-11-30 16:43:28 -03:00
anovazzi1
ab56d48002 fix(inputFileComponent): handle case when fileTypes prop is undefined to prevent error when checking file type
The checkFileType function in the InputFileComponent component now handles the case when the fileTypes prop is undefined. This prevents an error from occurring when checking the file type of the selected file.
2023-11-30 16:17:35 -03:00
anovazzi1
d26b6e36b2 fix(inputFileComponent): handle case when fileTypes is undefined to prevent error when joining the array 2023-11-30 16:16:17 -03:00
anovazzi1
ed47a20c3d fix(inputComponent): remove unnecessary console.log statement
fix(tagsSelectorComponent): reformat code for better readability
fix(styleUtils): remove unused import for GradientGroup from GradientSparkles icons
2023-11-30 15:15:44 -03:00
anovazzi1
14cd1b30fd fix(storeContext.tsx): set initial value of hasStore to false instead of true to fix incorrect initial state
fix(shareModal/index.tsx): import has function from lodash to fix missing import error
fix(shareModal/index.tsx): add hasStore to the list of dependencies in useEffect to fix missing dependency warning
fix(extraSidebarComponent/index.tsx): add hasStore to the list of dependencies in useEffect to fix missing dependency warning
fix(extraSidebarComponent/index.tsx): disable share button if hasStore is false to prevent sharing without a store
fix(extraSidebarComponent/index.tsx): disable share button in ShareModal if hasStore is false to prevent sharing without a store
fix(extraSidebarComponent/index.tsx): disable share button in ShareModal if hasStore is false to prevent sharing without a store
fix(nodeToolbarComponent/index.tsx): add hasStore to the list of dependencies to fix missing dependency warning
fix(nodeToolbarComponent/index.tsx): disable share option in SelectItem if hasStore is false to prevent sharing without a store
2023-11-30 14:58:02 -03:00
igorrCarvalho
2d21535e2a Refactor: Change node description pencil editor color 2023-11-29 22:03:20 -03:00
igorrCarvalho
ba85fd1f7f Fix: Make vectorStore tag stop braking button box 2023-11-29 21:51:42 -03:00
igorrCarvalho
d9cc89860c Fix: Header with wrong colors 2023-11-29 20:45:39 -03:00
anovazzi1
2916502c71 fix(tagsSelectorComponent): remove unnecessary conditional class assignment for fade-container
fix(applies.css): update fade-container::before and fade-container::after background gradient to match the new design
2023-11-29 19:10:38 -03:00
Lucas Oliveira
4911c7196c Fixed glitch on my components, testing needed 2023-11-29 18:50:53 -03:00
Lucas Oliveira
1fd2931e4c Fix delete not deleting when searching for something 2023-11-29 18:45:31 -03:00
Lucas Oliveira
6b691dc47d Fixed context menu on sidebar 2023-11-29 18:35:54 -03:00
anovazzi1
030c19808e chore(genericModal/index.tsx): add comments to indicate that the validatePrompt function needs review
fix(genericModal/index.tsx): fix condition for checking if inputVariables is empty or null
refactor(genericModal/index.tsx): remove unnecessary code and reorganize code logic in the validatePrompt function
2023-11-29 18:00:57 -03:00
Lucas Oliveira
a0c5887d9a Fixed custom component only updating when dragging it 2023-11-29 18:00:24 -03:00
anovazzi1
a2d278b52d refactor(PageComponent): remove unnecessary code that sets the viewport in the useEffect hook
The code was removed because it was not being used and was unnecessary for the functionality of the PageComponent.
2023-11-29 17:44:34 -03:00
Lucas Oliveira
cfdb3f5220 Fixed not updated flow being sent to store 2023-11-29 17:40:19 -03:00