8000 Dwk601: Migrate from react to SolidJS by dwk601 · Pull Request #157 · commaai/flash · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Dwk601: Migrate from react to SolidJS #157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 24 commits into from

Conversation

dwk601
Copy link
@dwk601 dwk601 commented Jun 20, 2025

This pull request introduces significant changes to migrate the application from React to SolidJS, simplify the asset management and testing strategies, and improve performance. Key updates include the addition of SolidJS components, a streamlined test suite, and documentation updates to reflect the migration. Still working on finalizing it (13/15 tasks)

Migration to SolidJS:

  • Added a new SolidJS application entry point (index-solid.html) with updated asset paths and removed React-specific dependencies. [1] [2]
  • Created a simplified SolidJS App component (src-solid/App.jsx) with minimal state management and direct rendering of core features.

Asset Management Improvements:

  • Documented a new asset management strategy in docs/ASSET_MANAGEMENT.md, emphasizing direct serving of static assets, zero build-time processing, and browser caching.

Testing Strategy Overhaul:

  • Updated docs/TESTING_STRATEGY.md to outline a minimal test philosophy focused on essential functionality and performance improvements.
  • Documented test benchmarks in docs/TEST_BENCHMARKS.md, highlighting runtime reductions and improved reliability.

Package Updates:

  • Replaced React dependencies with SolidJS in package.json and added SolidJS-specific testing libraries.
  • Added a new package-solid.json file for SolidJS-specific configurations.

These changes collectively enhance the application's performance, simplify its architecture, and align with the migration goals.

dwk601 added 16 commits June 20, 2025 12:09
- Introduced a new asset management module to handle public assets directly.
- Updated App.jsx and Flash.jsx to utilize the new asset management system for image imports.
- Added new SVG and PNG assets for improved UI elements.
- Implemented asset preloading for critical images to enhance performance.
- Created unit tests for asset management functions to ensure reliability.
@adeebshihadeh
Copy link
Collaborator

Thanks for the PR, but 7k new lines for this little flasher clearly isn't simpler.

@dwk601 dwk601 deleted the dwk601-solid branch June 22, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0