semiautomatix / flowbite-solid

Solid.js components built for Flowbite and Tailwind CSS
MIT License
0 stars 0 forks source link

Sweep: re-factor Radio as a Solid.js component #43

Open sweep-windows[bot] opened 3 months ago

sweep-windows[bot] commented 3 months ago

Description

This pull request updates the Radio component and its associated tests to use Solid.js conventions, moving away from React-based implementations. The changes ensure that the Radio component is fully compatible with Solid.js projects, including adjustments to testing strategies to align with Solid.js testing libraries.

Summary

Fixes #42.


🎉 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.
  • Use the GitHub issues extension for creating Sweep issues directly from your editor.

💡 To get Sweep to edit this pull request, you can:

sweep-windows[bot] commented 3 months ago

Rollback Files For Sweep

This is an automated message generated by Sweep AI.

sweep-windows[bot] commented 3 months ago

Apply Sweep Rules to your PR?

This is an automated message generated by Sweep AI.

semiautomatix commented 3 months ago

src/components/Radio/Radio.tsx is a component written in React.js, it must be modified to a Solid.js component. It is important that all functionality remain identical in the refactored implementation:

• Update the component's imports and structure to follow any other Solid.js patterns. Be sure to make use of "mergeProps" and "splitProps" Solid.js functions to destructure and use component properties, similar to how it's done in the src/components/Checkbox/Checkbox.tsx component. • Replace the use of "className" with "class"

Use src/components/Checkbox/Checkbox.tsx as an example of a working Solid.js component that adheres to best principles.

sweep-windows[bot] commented 3 months ago

🚀 Wrote Changes

Done.

This is an automated message generated by Sweep AI.