Commit graph

4,041 commits

Author SHA1 Message Date
cristhianzl
8a4a346736 (codeTabsComponent/index.tsx): add support for exporting code as a file
♻️ (codeTabsComponent/index.tsx): refactor code to use a switch statement instead of multiple if conditions for different template field types
🔧 (codeTabsComponent/index.tsx): fix import statements and remove unused imports
📝 (codeTabsComponent/index.tsx): add comments to improve code readability

📝 (codeTabsComponent/index.tsx): refactor code to use a switch statement instead of multiple if-else conditions for better readability and maintainability
♻️ (codeTabsComponent/index.tsx): refactor code to use a Case component for each condition in the switch statement to improve code organization and readability

 (index.tsx): remove unused import of React from "react" to improve code cleanliness
♻️ (index.tsx): refactor code to remove unused imports and variables, improve code readability and organization
📝 (index.tsx): add missing import of Case component from "../../../../shared/components/caseComponent"
🔧 (index.tsx): add missing import of TooltipRenderComponent from "../tooltipRenderComponent"
 (index.tsx): add missing hooks and functions to improve code functionality and maintainability

📝 (index.tsx): Refactor code to improve readability and maintainability

📝 (index.tsx): refactor the rendering logic in the ParameterComponent to improve readability and maintainability
🔧 (index.tsx): fix access to nested properties in the data object by using optional chaining operator (?.) to prevent potential errors when accessing undefined properties

 (tooltipRenderComponent): add a new component for rendering tooltips in the genericNode component
📝 (use-fetch-data-on-mount): add a new hook for fetching data on component mount
📝 (use-handle-new-value): add a new hook for handling new values in the component
📝 (use-handle-node-class): add a new hook for handling node class in the component
📝 (use-handle-refresh-buttons): add a new hook for handling refresh button press in the component

 (editNodeModal/index.tsx): import Case component to handle conditional rendering of different input components based on template type
📝 (editNodeModal/index.tsx): add comments to explain the purpose of the code and provide context for future developers
♻️ (editNodeModal/index.tsx): refactor code to use the Case component for conditional rendering instead of multiple if statements

📝 (file.js): update code formatting and indentation for better readability

📝 (editNodeModal/index.tsx): update code to fix a bug related to accessing nested properties in myData.node object
♻️ (editNodeModal/index.tsx): refactor code to use conditional rendering with Case component for better readability and maintainability

 (caseComponent/index.tsx): add a new component called Case that conditionally renders its children based on a given condition
📝 (components/index.ts): add an optional display_name property to the groupedObjType interface
♻️ (components/index.ts): remove unnecessary commas and fix indentation in the codeTabsPropsType interface

🐛 (reactflowUtils.ts): remove unused parameter 'edges' in isValidConnection function
♻️ (reactflowUtils.ts): refactor scapeJSONParse and scapeJSONStringfy functions to remove unnecessary exclamation marks
🐛 (reactflowUtils.ts): fix bug in updateIds function where it doesn't update the sourceHandle and targetHandle correctly
🐛 (reactflowUtils.ts): fix bug in validateNode function where it doesn't handle empty keys correctly
🐛 (reactflowUtils.ts): fix bug in validateNode function where it doesn't handle duplicate keys correctly
🐛 (reactflowUtils.ts): fix bug in validateNode function where it doesn't handle dict type correctly
🐛 (reactflowUtils.ts): fix bug in validateNodes function where it doesn't handle empty nodes correctly
🐛 (reactflowUtils.ts): fix bug in updateEdges function where it doesn't update the className correctly
🐛 (reactflowUtils.ts): fix bug in handleKeyDown function where it doesn't handle control+backspace on Windows/Linux correctly
🐛 (reactflowUtils.ts): fix bug in handleOnlyIntegerInput function where it doesn't handle decimal point correctly
🐛 (reactflowUtils.ts): fix bug in getConnectedNodes function where it doesn't return the correct connected nodes
🐛 (reactflowUtils.ts): fix bug in convertObjToArray function where it doesn't handle non-dict type correctly
🐛 (reactflowUtils.ts): fix bug in generateFlow function where it doesn't filter out edges correctly
🐛 (reactflowUtils.ts): fix bug in reconnectEdges function where it doesn't update the sourceHandle correctly
🐛 (reactflowUtils.ts): fix bug in filterFlow function where it doesn't filter out nodes and edges correctly
🐛 (reactflowUtils.ts): fix bug in validateSelection function where it doesn't handle selection mode correctly

📝 (reactflowUtils.ts): remove trailing commas and unnecessary whitespace to improve code readability and consistency
♻️ (reactflowUtils.ts): refactor validateSelection function to remove duplicate code and improve readability
♻️ (reactflowUtils.ts): refactor generateNodeTemplate function to simplify code and improve readability
♻️ (reactflowUtils.ts): refactor isHandleConnected function to remove unnecessary parentheses and improve readability
♻️ (reactflowUtils.ts): refactor generateNodeFromFlow function to remove unnecessary parentheses and improve readability
♻️ (reactflowUtils.ts): refactor connectedInputNodesOnHandle function to remove unnecessary parentheses and improve readability
♻️ (reactflowUtils.ts): refactor updateProxyIdsOnTemplate function to remove unnecessary parentheses and improve readability
♻️ (reactflowUtils.ts): refactor updateEdgesIds function to remove unnecessary parentheses and improve readability
♻️ (reactflowUtils.ts): refactor expandGroupNode function to remove unnecessary parentheses and improve readability
♻️ (reactflowUtils.ts): refactor getGroupStatus function to remove unnecessary parentheses and improve readability
♻️ (reactflowUtils.ts): refactor createFlowComponent function to remove unnecessary parentheses and improve readability
♻️ (reactflowUtils.ts): refactor updateComponentNameAndType function to remove unnecessary parentheses and improve readability
♻️ (reactflowUtils.ts): refactor removeFileNameFromComponents function to remove unnecessary parentheses and improve readability
♻️ (reactflowUtils.ts): refactor extractFieldsFromComponenents function to remove unnecessary parentheses and improve readability
♻️ (reactflowUtils.ts): refactor downloadFlow function to remove unnecessary parentheses and improve readability
♻️ (reactflowUtils.ts): refactor downloadFlows function to remove unnecessary parentheses and improve readability
♻️ (reactflowUtils.ts): refactor createNewFlow function to remove unnecessary parentheses and improve readability
2024-05-16 19:01:15 -03:00
Igor Carvalho
fdf1881f00
Refactor: Disable group button when its not possible to group (#1878) 2024-05-15 16:53:56 -03:00
Lucas Oliveira
d42925c16c Fixed Undo bug adding Skip Snapshot to function that resets inputs when disabled 2024-05-15 13:59:50 +02:00
anovazzi1
14ff98213d
add export flow on API modal and fix .env bug (#1896)
* feat(codeTabsComponent): add ExportModal component to enable exporting flow data in CodeTabsComponent

* refactor(service.py): update VariableService to handle environment variables with
whitespace by stripping the value before creating the variable

* chore: Update package versions to 1.0.0a33 and 0.0.44 for 'langflow' and 'langflow-base' respectively

* make lock
2024-05-14 19:23:36 -03:00
anovazzi1
30ac9fa05a Merge branch 'dev' of personal:logspace-ai/langflow into dev 2024-05-14 14:47:26 -03:00
anovazzi1
c464e16d28 refactor: Update expandGroupNode function to handle template proxy values 2024-05-14 14:47:20 -03:00
anovazzi1
3abc7eedc3
Fix duplicate group bug (#1859)
* fix duplicate group bug

* remove commented console.log
2024-05-14 14:46:44 -03:00
Cristhian Zanforlin Lousa
c69f950cba
Migrate Tweaks Module to Zustand Library and Add All Flows (#1847)
*  (codeTabsComponent/index.tsx): refactor code to remove unnecessary code and improve readability
📝 (codeTabsComponent/index.tsx): update comments in source code to provide better understanding of the code logic
♻️ (apiModal/index.tsx): refactor code to remove unnecessary code and improve readability
📝 (apiModal/index.tsx): update comments in source code to provide better understanding of the code logic
🔧 (tweaksStore.ts): add new store for managing tweaks data

📝 (components/index.ts): update codeTabsPropsType to use array syntax for tweak and tweaksList properties for better readability and consistency
♻️ (utils/utils.ts): refactor toTitleCase function to remove unnecessary comma and improve code readability
♻️ (utils/utils.ts): refactor groupByFamily function to remove unnecessary comma and improve code readability
♻️ (utils/utils.ts): refactor getPythonApiCode function to remove unnecessary comma and improve code readability
♻️ (utils/utils.ts): refactor getCurlCode function to remove unnecessary comma and improve code readability
♻️ (utils/utils.ts): refactor getPythonCode function to remove unnecessary comma and improve code readability
♻️ (utils/utils.ts): refactor getWidgetCode function to remove unnecessary comma and improve code readability
♻️ (utils/utils.ts): refactor getFieldTitle function to remove unnecessary comma and improve code readability
♻️ (utils/utils.ts): refactor IncrementObjectKey function to remove unnecessary comma and improve code readability
♻️ (utils/utils.ts): refactor getSetFromObject function to remove unnecessary comma and improve code readability
♻️ (utils/utils.ts): refactor getRandomName function to remove unnecessary comma and improve code readability

* 📝 (codeTabsComponent/index.tsx): remove unnecessary whitespace in className
♻️ (codeTabsComponent/index.tsx): refactor code to improve readability and remove unnecessary code
♻️ (apiModal/index.tsx): refactor code to improve readability and remove unnecessary code
♻️ (tweaksStore.ts): refactor code to improve readability and remove unnecessary code
 (zustand/tweaks/index.ts): add types for tweaks store

*  (codeTabsComponent/index.tsx): refactor code to improve readability and remove unnecessary code
♻️ (codeTabsComponent/index.tsx): refactor code to improve readability and remove unnecessary code
♻️ (utils/utils.ts): refactor code to improve readability and remove unnecessary code

 (tweaks_test.spec.ts): add end-to-end test to check if tweaks are updating when something on the flow changes

* 🐛 (accordionComponent/index.tsx): fix variable name from 'trigger' to 'keyValue' for better clarity and readability
♻️ (accordionComponent/index.tsx): refactor code to use 'defaultValue' prop instead of manually setting the value in the AccordionItem component
🐛 (codeTabsComponent/index.tsx): remove unused 'openAccordions' function
♻️ (codeTabsComponent/index.tsx): refactor code to remove unnecessary condition for opening accordions in the onValueChange event handler
♻️ (codeTabsComponent/index.tsx): refactor code to remove unused 'open' prop in AccordionItem component
♻️ (codeTabsComponent/index.tsx): refactor code to remove unused 'openAccordion' state variable
♻️ (codeTabsComponent/index.tsx): refactor code to remove unused 'openAccordions' function call in the onValueChange event handler

* 🐛 (apiModal/index.tsx): remove unnecessary comma after ref parameter in ApiModal component
♻️ (apiModal/index.tsx): refactor code to improve readability and remove unnecessary commas in function parameters
 (apiModal/index.tsx): add conditional check before assigning values to tabs array to prevent errors when tabs is undefined or empty

* 🐛 (index.tsx): remove unnecessary defaultValue prop from Accordion component
♻️ (index.tsx): refactor AccordionItem component to remove defaultValue prop and simplify code

* 🐛 (apiModal/index.tsx): remove unnecessary comma after ref parameter in function signature
♻️ (apiModal/index.tsx): refactor code to improve readability and remove unnecessary comma after ref parameter in function signature

* refactor tweaks

*  (codeTabsComponent/index.tsx): add autoFocus prop to the tweaks switch to prevent it from automatically gaining focus when rendered
♻️ (codeTabsComponent/index.tsx): refactor classNames in the api-modal-according-display div to remove unnecessary whitespace
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api-modal-according-display div to improve readability and remove unnecessary parentheses
♻️ (codeTabsComponent/index.tsx): refactor mapping of templateFields in the api

* fix tests on tweaks
2024-05-10 12:30:45 -03:00
cristhianzl
919db5d928 (raw-component): create a new raw component called RawComponent
📝 (raw-component): add a basic implementation of the RawComponent with a simple div element inside
2024-05-10 11:23:37 -03:00
Cristhian Zanforlin Lousa
b3fa552bf9
fix state error when is debouncing changes on integers inputs (#1848)
🐛 (index.tsx): fix missing line break after handleUpdateValues function
call
 (index.tsx): improve performance by debouncing handleUpdateValues
function call for certain types of parameters
📝 (parameterUtils.ts): update handleUpdateValues function to use
optional chaining for accessing template properties
🚀 (chatInputOutput.spec.ts): remove unused imports and commented code
🚀 (dragAndDrop.spec.ts): fix typo in test description
2024-05-08 11:56:29 -03:00
Gabriel Luiz Freitas Almeida
a037bf9978
Add GroqLogo and GroqIcon components (#1853)
* Update package.json format command to include only specific directories

* Add GroqLogo component and GroqIcon to the project

* Update dependencies and add GroqModelSpecs component

* Fix nullable column issue in langflow/alembic/versions/6e7b581b5648_fix_nullable.py

* Add GroqModelSpecs component and update dependencies

* Update GroqModelSpecs and GroqModel display names

* chore: Add langchain-pinecone dependency and update constants.py
2024-05-07 18:38:13 -03:00
Gabriel Luiz Freitas Almeida
21be1268ae
Update langchain-pinecone dependency and add Pinecone API key (#1854)
* Update langchain-pinecone dependency and related code

* Add Pinecone API key to environment variables

* Fix commented out code in codeTabsComponent, parameterComponent, and editNodeModal

* Add PineconeSearchComponent to PineconeSearch.py

* Update PineconeComponent to accept pinecone_api_key as optional parameter
2024-05-07 17:46:54 -03:00
anovazzi1
0226706391
"Refactor: Add playground check before opening" (#1845)
Refactor: Add playground check before opening (#1844)
2024-05-07 11:09:18 -03:00
Cristhian Zanforlin Lousa
81d31b1337
Refactor: change action key based on user OS (#1843) 2024-05-06 22:41:35 -03:00
igorrCarvalho
8cae3c75f2 Refactor: Block only last column size 2024-05-06 21:45:10 -03:00
igorrCarvalho
2f60185aa4 Refactor: change action key based on user OS 2024-05-06 19:20:08 -03:00
igorrCarvalho
b96eb4715d Refactor: Disable AgGridReact table resize option 2024-05-06 19:13:35 -03:00
cristhianzl
da3057fd50 🐛 (index.tsx): fix missing line break after handleUpdateValues function call
 (index.tsx): improve performance by debouncing handleUpdateValues function call for certain types of parameters
📝 (parameterUtils.ts): update handleUpdateValues function to use optional chaining for accessing template properties
🚀 (chatInputOutput.spec.ts): remove unused imports and commented code
🚀 (dragAndDrop.spec.ts): fix typo in test description
2024-05-06 16:11:02 -03:00
Lucas Oliveira
fabb3c9b56 Added password on addNewVariable modal 2024-05-06 19:10:19 +01:00
Lucas Oliveira
2f56f3a952 Fixed password on inputComponent 2024-05-06 18:52:36 +01:00
Lucas Oliveira
9172dbc895 Fixed size and pagination of globalVariables table 2024-05-06 18:45:13 +01:00
Lucas Oliveira
28949ed526 fixed flex on column 2024-05-06 18:37:05 +01:00
Lucas Oliveira
f661edb5bc Fixed resizability of last column 2024-05-06 18:33:13 +01:00
cristhianzl
a2a1642017 📝 (index.tsx): remove trailing whitespace in button className to improve code readability
♻️ (index.tsx): refactor button className to remove unnecessary ternary operator and improve code readability
♻️ (index.tsx): refactor icon className to remove unnecessary classes and improve code readability
2024-05-04 00:57:16 -03:00
cristhianzl
26fd9d5312 Merge branch 'dev' of https://github.com/langflow-ai/langflow into dev 2024-05-03 18:30:16 -03:00
cristhianzl
79b5223c19 (cardComponent/index.tsx): remove trailing commas in useState calls for better code consistency
♻️ (cardComponent/index.tsx): remove unnecessary parentheses in useState calls for better code readability
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in className attribute for better code formatting
♻️ (cardComponent/index.tsx): remove unnecessary whitespace in
2024-05-03 18:24:57 -03:00
Gabriel Luiz Freitas Almeida
92d39a6500
Fix mark_branch function and refactor build_and_cache_graph_from_db function (#1833)
* Fix mark_branch function in Graph class to properly handle visited vertices

* Refactor build_and_cache_graph_from_db function in utils.py to simplify code and remove unnecessary parameter

* Fix retrieval of graph from cache in retrieve_vertices_order function

* Fix possible_id type annotation in get_id_from_search_string function

* Refactor APIRequest class to improve variable naming and remove unnecessary underscore prefix in headers parameter

* Refactor buildVertices function in buildUtils.ts to improve code readability and remove unnecessary variable assignment

* Fix API endpoints in test_endpoints.py to use correct HTTP methods
2024-05-03 18:23:41 -03:00
cristhianzl
2dc4ffd99f fix UI errors 2024-05-03 18:17:49 -03:00
anovazzi1
e361228b48 chore: Update CollectionCardComponent with hover background color and card filter overlay 2024-05-03 18:00:50 -03:00
anovazzi1
cd6473be9d hide tags while there is no playground 2024-05-03 16:57:05 -03:00
anovazzi1
142029d91e fix playground on dev 2024-05-03 16:50:23 -03:00
anovazzi1
781ac4fe9d chore: Add z-index to delete button in CollectionCardComponent 2024-05-03 16:04:17 -03:00
anovazzi1
ebaaf726f9 chore: Add card filter overlay and update flex alignment in CollectionCardComponent 2024-05-03 16:01:58 -03:00
anovazzi1
338a236ee7 remove isGroupRestriction from shortcut 2024-05-03 15:19:58 -03:00
cristhianzl
5ef34e48f3 📝 (index.tsx): add convertTestName function to utils.ts to convert card names to test ids
📝 (index.tsx): add `data-testid` attribute to Card component to improve testability
📝 (index.tsx): remove unnecessary parentheses in ternary operator
📝 (index.tsx): remove unnecessary `undefined` in ternary operator
📝 (index.tsx): add `data-testid` attribute to delete button to improve testability
📝 (index.tsx): add `convertTestName` function to utils.ts to convert card names to test ids
📝 (utils.ts): add `convertTestName` function to convert card names to test ids
📝 (deleteComponentFlows.spec.ts): add end-to-end tests for deleting a flow and a component
2024-05-03 10:16:24 -03:00
cristhianzl
8121151a8f (IOModal/index.tsx): change size prop value from "large" to "md-thin" to adjust the size of the modal based on the selected tab
 (baseModal/index.tsx): add new size option "md-thin" to adjust the size of the modal to be medium and thin
2024-05-03 09:54:02 -03:00
anovazzi1
13ff4e1d26 Add openDelete state and button to CollectionCardComponent 2024-05-02 21:45:03 -03:00
anovazzi1
b7cfa211b3 Fix chatMessage component layout issue 2024-05-02 19:48:14 -03:00
anovazzi1
83a05589ca Fix word-break issue in chatMessage component 2024-05-02 19:46:42 -03:00
anovazzi1
da927d56c1 fix history propagation on playground 2024-05-02 19:02:28 -03:00
cristhianzl
9cd3925233 remove parser 2024-05-02 18:54:01 -03:00
cristhianzl
37ca646f2c Merge branch 'dev' of https://github.com/langflow-ai/langflow into dev 2024-05-02 18:51:31 -03:00
cristhianzl
33ad0430d3 🔧 (.pre-commit-config.yaml): add eslint-plugin-react@latest as a dependency to improve linting for React components
🔧 (.eslintrc.json): update eslint configuration to include additional plugins, parser, parserOptions, and env settings to improve linting for React components and TypeScript files
♻️ (index.tsx): remove unnecessary empty line to improve code readability
2024-05-02 18:51:27 -03:00
anovazzi1
87d90f365d Merge branch 'dev' of personal:logspace-ai/langflow into dev 2024-05-02 18:42:54 -03:00
Gabriel Luiz Freitas Almeida
8eef545acc Update ESLint configuration to include React and Prettier plugins 2024-05-02 18:42:46 -03:00
anovazzi1
120f9b2a97 fix playground button position 2024-05-02 18:42:21 -03:00
cristhianzl
ff1516a27a test lint 2024-05-02 18:35:58 -03:00
Cristhian Zanforlin Lousa
0ce2853f4c
Refactor store_message function and add Simple Git Hooks (#1827)
This pull request adds Simple Git Hooks for better code quality and
consistency. It also updates the pre-commit-config.yaml and Makefile,
and refactors the pre-commit installation in the Makefile. Additionally,
the update_poetry.sh script is refactored to not install pipx anymore.
2024-05-02 18:35:08 -03:00
cristhianzl
c9248d253a 📝 (addNewVariableButton.tsx): reformat code for better readability and maintainability
📝 (addNewVariableButton.tsx): fix typo in variable name 'unavaliableFields' to 'unavailableFields'
📝 (addNewVariableButton.tsx): add id attribute to InputComponent for better accessibility
📝 (headerComponent/index.tsx): add data-testid attribute to user-profile-settings button for easier testing
📝 (inputComponent/index.tsx): add data-testid attribute to popover anchor element for easier testing
 (userSettings.spec.ts): add end-to-end tests for user settings page, including testing profile gradient, interacting with global variables, and checking shortcuts
2024-05-02 18:08:39 -03:00
Gabriel Luiz Freitas Almeida
a3484ed239 Refactor store_message function and add Simple Git Hooks (#1817) 2024-05-02 17:01:39 -03:00