♻️ (APIRequest.py): refactor APIRequest class to improve variable naming and remove unnecessary underscore prefix in headers parameter
💡 (APIRequest.py): update comments in APIRequest class to improve code readability and maintainability
📝 (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
🔧 (.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
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.
The input and output components FileInput.py, JsonInput.py, KeyPairInput.py, StringListInput.py, CSVOutput.py, ImageOutput.py, JsonOutput.py, KeyPairOutput.py, PDFOutput.py, and StringListOutput.py were deleted as they were no longer being used in the project. This cleanup improves code organization and reduces unnecessary dependencies.
📝 (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
🐛 (constants.py): fix import statement for JsonSpec from langchain.tools.json.tool to langchain_community.tools.json.tool
🐛 (index.tsx): add data-testid attribute to the div element to improve testability
🐛 (buildUtils.ts): add debugger statement for debugging purposes
🐛 (chatInputOutput.spec.ts): fix click event target from "Run" to "Playground"
🐛 (fileUploadComponent.spec.ts): fix click event target from "Run" to "Playground"
🐛 (textInputOutput.spec.ts): fix click event target from "Run" to "Playground"
* Refactor store_message function in chat.py and memory.py
* Refactor store_message function in chat.py and memory.py
* Add StoreMessageComponent to langflow components
* Refactor store_message function in chat.py and memory.py to require session_id, sender, and sender_name
* Refactor StoreMessageComponent to use Optional[str] for sender_name and session_id parameters
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
In our ongoing commitment to enhancing user experience and streamlining
data interaction, we are thrilled to introduce a trio of powerful IO
components: JSON Viewer, DictionaryIO, and InputListIO. These components
are meticulously crafted to empower developers with seamless data
handling capabilities, enabling efficient processing and visualization
of JSON data structures, dictionaries, and input lists.