* feat: Add EditorConfig and Prettier configuration files for consistent code formatting
- Introduced .editorconfig to enforce coding styles across various file types.
- Added .prettierrc for Prettier configuration to standardize code formatting.
- Updated settings.json to define tab sizes and formatting options for different languages.
- Enhanced canvasControlsComponent with a new dropdown for control buttons, improving UI interaction.
- Refactored logCanvasControlsComponent and MemoizedComponents for better structure and consistency.
* [autofix.ci] apply automated fixes
* feat: Enhance canvas controls with keyboard shortcuts and dropdown functionality
- Introduced keyboard shortcuts for zooming in, zooming out, fitting view, and resetting zoom.
- Refactored DropdownControlButton to improve accessibility and usability.
- Updated CanvasControls to handle keyboard events for enhanced user interaction.
- Added helper function to format zoom percentage for better display.
- Improved structure and readability of the canvas controls component.
* [autofix.ci] apply automated fixes
* feat: Introduce CanvasControlsDropdown and HelpDropdown components
- Added new dropdown components for canvas controls and help functionalities.
- Refactored CanvasControls to utilize the new dropdowns, enhancing UI interaction.
- Improved keyboard shortcut handling for zoom and view adjustments.
- Streamlined component structure for better maintainability and readability.
* refactor: Update dropdown components and styles in canvasControls
- Removed unused ShadTooltip import from dropdowns.tsx.
- Adjusted padding and margin styles for DropdownControlButton and CanvasControlsDropdown for improved layout.
- Enhanced button styles in MemoizedComponents for consistency.
- Cleaned up class names in CanvasControls for better readability.
* feat: Enhance HelpDropdown with navigation and external links
- Added functionality to open documentation and desktop download links in new tabs.
- Integrated navigation for shortcuts settings within the HelpDropdown.
- Cleaned up commented-out code for better readability and maintainability.
* [autofix.ci] apply automated fixes
* feat: Add tests for CanvasControls and Dropdown components
- Introduced unit tests for CanvasControls, verifying rendering and keyboard shortcut handling.
- Added tests for CanvasControlsDropdown and HelpDropdown, ensuring proper functionality and interaction.
- Implemented mocks for external dependencies to isolate component behavior during testing.
- Enhanced test coverage for dropdown interactions and navigation features.
* refactor: Simplify Jest setup by removing unused polyfills and mocks
- Removed unnecessary polyfills for ResizeObserver and IntersectionObserver from the Jest setup file.
- Cleaned up the window.open mock to streamline the testing environment.
* feat: Enhance FlowMenu and EditFlowSettings components
- Reintroduced memoization and hotkey handling in FlowMenu for improved performance.
- Updated EditFlowSettings to include locking functionality with a switch component, enhancing user control over flow settings.
- Adjusted layout and styling for better user experience in the EditFlowSettings component.
* [autofix.ci] apply automated fixes
* feat: Implement locking functionality in FlowSettingsComponent
- Added state management for the locked property in FlowSettingsComponent.
- Updated EditFlowSettings to disable input fields based on the locked state.
- Enhanced the flow submission logic to include the locked status when saving changes.
* [autofix.ci] apply automated fixes
* chore: Remove EditorConfig and Prettier configuration files
- Deleted .editorconfig and .prettierrc files to streamline project configuration.
- Updated .cursor/settings.json to enable biome without specific editor settings for various file types.
* chore: Update biome settings in .cursor/settings.json
- Removed the biome.enabled property to simplify configuration.
- Retained the biome.configurationPath for continued functionality.
* feat: Enhance dropdown functionality with toggle options and bug report link
- Added a toggle feature to the DropdownControlButton for enabling smart guides.
- Introduced a new BUG_REPORT_URL constant for reporting issues.
- Updated HelpDropdown to utilize the new toggle functionality and link for bug reporting.
- Cleaned up imports and adjusted component props for better usability.
* fix: Correct onClick handling in DropdownControlButton component
- Updated the onClick prop to directly use the provided onClick function instead of a conditional.
- Adjusted the handleOnNewValue prop in ToggleShadComponent to ensure proper toggle functionality.
* [autofix.ci] apply automated fixes
* feat: Introduce CanvasControls and dropdown components for enhanced canvas interaction
- Added CanvasControls component to manage canvas interactions and state based on flow lock status.
- Implemented CanvasControlsDropdown and HelpDropdown for zoom and help functionalities, respectively.
- Created DropdownControlButton for reusable dropdown actions with keyboard shortcuts.
- Removed deprecated dropdowns and refactored related tests to align with new component structure.
- Introduced utility functions for zoom percentage formatting and modifier key detection.
* refactor: Clean up imports and enhance HelpDropdown functionality
- Removed redundant imports in FlowMenu and HelpDropdown components.
- Refactored HelpDropdown to utilize Zustand for managing helper line state.
- Improved readability by adjusting component structure and formatting.
* Revert "Merge branch 'lfoss-1889' of https://github.com/langflow-ai/langflow into lfoss-1889"
This reverts commit 896436ac53986702dd162151e7fdb770689751c7, reversing
changes made to 475c2fa027211021557ff37bd056627be896b59c.
* [autofix.ci] apply automated fixes
* Reapply "Merge branch 'lfoss-1889' of https://github.com/langflow-ai/langflow into lfoss-1889"
This reverts commit 4e971f81e4d2e01a75bfc855467d60536d668eb4.
* fix proxy
* test: Enhance testing for canvas controls and dropdown components
- Updated CanvasControls test to verify state management and rendering.
- Added comprehensive tests for CanvasControlsDropdown, including zoom functionality and keyboard shortcuts.
- Introduced tests for utility functions in canvasUtils, ensuring correct zoom formatting and modifier key detection.
- Created tests for DropdownControlButton, validating rendering, click handling, and toggle functionality.
- Refactored Dropdowns test to remove CanvasControlsDropdown references and streamline imports.
* [autofix.ci] apply automated fixes
* refactor: reorganize imports and optimize state selection in FlowMenu component
- Moved import statements for memo, useMemo, useRef, and useState to the correct position.
- Updated currentFlow state selection to use useShallow for improved performance.
* [autofix.ci] apply automated fixes
* refactor: reorganize imports and enhance DropdownControlButton functionality
- Moved import statements for React and other components to appropriate locations.
- Added externalLink prop to DropdownControlButton for improved link handling.
- Updated HelpDropdown to utilize externalLink prop for relevant buttons.
- Refined HeaderMenuItemLink styles for better visual consistency.
* [autofix.ci] apply automated fixes
* test: enhance accessibility features in DropdownControlButton tests
- Added role, tabIndex, aria-checked, and aria-label attributes for improved accessibility.
- Implemented keyboard interaction handling for Enter and Space keys to trigger value changes.
* [autofix.ci] apply automated fixes
* refactor: reorganize imports and enhance FlowMenu state management
- Moved import statements for React hooks to the correct position.
- Updated state selection to include isFlowLocked for improved clarity and performance.
- Refined usage of currentFlow state properties in the MenuBar component.
* [autofix.ci] apply automated fixes
* test: add Flow Lock feature tests for locking and unlocking flows
- Implemented tests to verify the locking and unlocking functionality of flows, including UI changes and state persistence.
- Ensured that inputs are enabled/disabled correctly based on the lock state and that the appropriate lock/unlock icons are displayed in the settings.
* [autofix.ci] apply automated fixes
* test: Update selectors in various specs to use canvas_controls_dropdown
Replaced instances of 'fit_view' selector with 'canvas_controls_dropdown' in multiple test files to ensure proper interaction with the canvas controls. This change enhances the reliability of the tests by targeting the correct UI elements.
* [autofix.ci] apply automated fixes
* test: Refactor auto-login-off.spec.ts and rename-flow.ts for improved readability and functionality
Updated the auto-login-off.spec.ts file to enhance code clarity by adjusting formatting and ensuring proper selector usage. Additionally, modified the rename-flow.ts utility to include hover actions for better user interaction simulation during tests. These changes aim to improve test reliability and maintainability.
* test: Enhance interaction with canvas controls in multiple specs
Added interactions with the 'canvas_controls_dropdown' in various test files to improve test reliability and ensure proper UI element targeting. This update includes adjustments in auto-login-off.spec.ts, customComponentAdd.spec.ts, tableInputComponent.spec.ts, stop-button-playground.spec.ts, and generalBugs-shard-7.spec.ts, enhancing the overall functionality of the tests.
* fixed tests
* test: Enhance interaction with canvas controls across multiple specs
Added interactions with the 'canvas_controls_dropdown' in various test files to improve test reliability and ensure proper UI element targeting. This update includes adjustments in tweaksTest.spec.ts, user-flow-state-cleanup.spec.ts, and several integration tests, enhancing the overall functionality of the tests.
* [autofix.ci] apply automated fixes
* test: Further enhance interactions with canvas controls in multiple specs
Added additional clicks on the 'canvas_controls_dropdown' in stop-building.spec.ts, promptModalComponent.spec.ts, minimize.spec.ts, and generalBugs-shard-11.spec.ts to improve test reliability and ensure proper UI element targeting. This update continues to enhance the overall functionality of the tests.
* [autofix.ci] apply automated fixes
* test: Improve interactions with canvas controls in various specs
Added multiple clicks on the 'canvas_controls_dropdown' across several test files, including playground.spec.ts, decisionFlow.spec.ts, and generalBugs-shard-5.spec.ts, to enhance test reliability and ensure accurate UI element targeting. This update continues to refine the overall functionality of the tests.
* [autofix.ci] apply automated fixes
* test: Enhance canvas control interactions across multiple specs
Added additional clicks on the 'canvas_controls_dropdown' in various test files, including generalBugs-shard-5.spec.ts, linkComponent.spec.ts, tabComponent.spec.ts, flowPage.spec.ts, stop-button-playground.spec.ts, and general-bugs-truncate-results.spec.ts. This update aims to improve test reliability and ensure accurate interactions with the UI elements.
* [autofix.ci] apply automated fixes
* test: Refine canvas control interactions in various specs
Added additional clicks on the 'canvas_controls_dropdown' across multiple test files, including similarity.spec.ts, fileUploadComponent.spec.ts, sliderComponent.spec.ts, tableInputComponent.spec.ts, and minimize.spec.ts. This update aims to enhance test reliability and ensure accurate interactions with UI elements, continuing the effort to improve overall test functionality.
* [autofix.ci] apply automated fixes
* test: Refine canvas control interactions in loop-component.spec.ts
Added additional clicks on the 'canvas_controls_dropdown' to enhance test reliability and ensure accurate interactions with UI elements. This update continues the effort to improve overall test functionality.
* [autofix.ci] apply automated fixes
* test: Update lock-flow interactions for improved reliability
Refactored interactions in lock-flow.spec.ts to replace 'lock_unlock' clicks with more specific actions on 'flow_name' and 'lock-flow-switch'. Added necessary clicks on 'canvas_controls_dropdown' and ensured UI updates are properly awaited. This enhances the reliability of the test by ensuring accurate interactions with UI elements.
* [autofix.ci] apply automated fixes
* test: Enhance flow-lock.spec.ts for improved test reliability
Added a wait timeout to ensure UI elements are fully rendered before interactions. Updated the test structure for better clarity and consistency in verifying the flow lock feature, ensuring accurate expectations for lock icon visibility.
* [autofix.ci] apply automated fixes
* test: Add unit tests for various components and improve Jest setup
- Introduced unit tests for FlowMenu, HeaderMenu, CanvasControlsDropdown, EditFlowSettings, LogCanvasControls, and MemoizedComponents to enhance test coverage.
- Updated jest.setup.js with global module stubs to prevent ESM/context issues in unit tests, ensuring smoother test execution.
- Improved test reliability by mocking necessary components and avoiding direct imports that could lead to context issues during testing.
* [autofix.ci] apply automated fixes
* test: Refactor flow-lock and starter-projects tests for improved reliability
- Updated flow-lock.spec.ts to replace click interactions with keyboard actions for toggling the lock switch, enhancing test stability.
- Improved assertions for input states using toBeEnabled and toBeDisabled for clearer intent.
- Increased timeout for waiting on UI elements in starter-projects.spec.ts to ensure proper rendering before interactions, reducing flakiness in tests.
* [autofix.ci] apply automated fixes
* test: Refactor file upload component tests for consistency and readability
- Simplified arrow function syntax in evaluateHandle calls for better clarity.
- Standardized formatting of test expectations to enhance readability.
- Ensured consistent use of timeout options across various assertions to improve test reliability.
* test: Update CanvasControlsDropdown test to improve accessibility
- Replaced div with button in the DropdownMenu mock to enhance accessibility.
- Added aria attributes to the button for better screen reader support and user experience.
* [autofix.ci] apply automated fixes
* feat: Refactor FlowSettingsComponent for improved functionality and testing
- Introduced helper functions to manage flow updates and validation logic.
- Enhanced state management for save button enable/disable conditions.
- Added comprehensive unit tests for FlowSettingsComponent to ensure expected behavior and edge cases.
- Improved code readability and maintainability through restructuring and modularization.
* [autofix.ci] apply automated fixes
* feat: Refactor HelpDropdown component for improved structure and maintainability
- Extracted HelpDropdownView as a separate component to enhance readability and separation of concerns.
- Updated HelpDropdown to utilize the new HelpDropdownView, simplifying its logic.
- Added unit tests for HelpDropdownView to ensure functionality and interaction correctness.
- Improved code organization and modularity for better maintainability.
* [autofix.ci] apply automated fixes
* refactor: streamline code style and improve readability in starter-projects.spec.ts
- Simplified arrow function syntax by removing parentheses where not needed.
- Enhanced conditional logic for handling visibility of elements in the test flow.
- Improved overall code organization for better maintainability.
* [autofix.ci] apply automated fixes
* test: enhance flow lock feature tests for reliability and clarity
- Updated test selectors for consistency and improved readability.
- Replaced keyboard interaction with direct click for enabling the lock switch to reduce flakiness.
- Added conditional check for the save button to ensure it is enabled before clicking.
- Improved wait times for UI elements to enhance test stability.
- Cleaned up code structure for better maintainability.
* [autofix.ci] apply automated fixes
* test: improve flow lock feature test reliability
- Added a conditional check to ensure the lock switch is in the correct state after clicking.
- Enhanced test stability by incorporating an additional click if the state is not as expected.
* test: refine starter-projects.spec.ts for improved clarity and efficiency
- Removed unnecessary wait for the fit_view selector to streamline the test flow.
- Simplified the logic for clicking the fit_view button, enhancing readability and reducing redundancy.
* [autofix.ci] apply automated fixes
* test: further refine starter-projects.spec.ts for consistency and readability
- Simplified arrow function syntax by removing unnecessary parentheses.
- Enhanced code clarity by standardizing the structure of test assertions and interactions.
- Improved overall test flow by ensuring consistent formatting and reducing redundancy.
* [autofix.ci] apply automated fixes
* revert
* revert
* test: enhance readability and consistency in starter-projects.spec.ts and Text Sentiment Analysis.spec.ts
- Simplified arrow function syntax by removing unnecessary parentheses.
- Standardized test assertions and interactions for improved clarity.
- Adjusted text analysis assertion to ensure it checks for a minimum length of 50 characters.
- Added a wait for selector in the starter-projects.spec.ts to ensure proper element visibility before interaction.
* [autofix.ci] apply automated fixes
* refactored starter projects test
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>