This pull request encompasses a significant refactor of the Tabs component tests and a refactor of the Textarea component. The changes aim to improve the codebase by adopting more modern libraries and practices, enhancing readability, maintainability, and performance.
Summary
Tabs Component Tests:
Migrated testing library imports from @testing-library/react and @testing-library/user-event to @solidjs/testing-library, reflecting a shift towards SolidJS.
Removed unused imports such as FC, createRef, forwardRef, and userEvent, streamlining the test files.
Replaced userEvent interactions with null, indicating a placeholder for future updates or a shift in testing strategy.
Utilized fireEvent directly from @solidjs/testing-library for simulating user interactions in tests.
Textarea Component:
Transitioned from React-specific imports to SolidJS's mergeProps and splitProps for prop management, and Show for conditional rendering. This change aligns with the move towards a SolidJS-based approach.
Removed the forwardRef import, as it's no longer necessary with the new SolidJS implementation.
Enhanced the component by utilizing twMerge from tailwind-merge and mergeDeep from internal helpers for class and style merging, ensuring a more flexible and deep merging capability.
Adopted getTheme from the theme-store, facilitating theme customization and application within the component.
These changes collectively enhance the project's alignment with modern development practices and libraries, setting a solid foundation for future development and maintenance.
Fixes #24.
🎉 Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
Description
This pull request encompasses a significant refactor of the
Tabs
component tests and a refactor of theTextarea
component. The changes aim to improve the codebase by adopting more modern libraries and practices, enhancing readability, maintainability, and performance.Summary
@testing-library/react
and@testing-library/user-event
to@solidjs/testing-library
, reflecting a shift towards SolidJS.FC
,createRef
,forwardRef
, anduserEvent
, streamlining the test files.userEvent
interactions withnull
, indicating a placeholder for future updates or a shift in testing strategy.fireEvent
directly from@solidjs/testing-library
for simulating user interactions in tests.mergeProps
andsplitProps
for prop management, andShow
for conditional rendering. This change aligns with the move towards a SolidJS-based approach.forwardRef
import, as it's no longer necessary with the new SolidJS implementation.twMerge
fromtailwind-merge
andmergeDeep
from internal helpers for class and style merging, ensuring a more flexible and deep merging capability.getTheme
from thetheme-store
, facilitating theme customization and application within the component.These changes collectively enhance the project's alignment with modern development practices and libraries, setting a solid foundation for future development and maintenance.
Fixes #24.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: