Phase 1: Initialize React Project Foundation for Angular to React Migration #80
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Phase 1: Initialize React Project Foundation for Angular to React Migration
Summary
This PR creates the foundational React project structure for migrating the Angular 9 Hacker News PWA to React. It sets up a new
react-hn/directory with Vite, TypeScript, React Router, Context API for state management, and PWA support via Workbox.Key additions:
Status: Foundation only - components are placeholders. No actual UI or data fetching functionality implemented yet.
Review & Testing Checklist for Human
assets/icons/android-chrome-*.pngthat don't exist in this PR. Either:src/assets/icons/directory, ORTesting:
Fresh install verification: Clone the branch fresh and verify:
cd react-hn npm install npm run devApp should open at http://localhost:3000 and redirect to /news/1
Route navigation: Test all routes work correctly:
/redirects to/news/1/news/1,/newest/1,/show/1,/ask/1,/jobs/1all load Feed component/item/123loads ItemDetails component (lazy loaded)/user/testuserloads User component (lazy loaded)TypeScript validation: Run
npm run lintto verify no type errorsNotes
npm run build && npm run preview.Devin session: https://app.devin.ai/sessions/544f0789693847398e3160e4b3268701
Requested by: [email protected] ([email protected])