Skip to content

Initialize React application setup for Angular-to-React migration#164

Open
devin-ai-integration[bot] wants to merge 2 commits intomasterfrom
devin/1770914655-react-app-init
Open

Initialize React application setup for Angular-to-React migration#164
devin-ai-integration[bot] wants to merge 2 commits intomasterfrom
devin/1770914655-react-app-init

Conversation

@devin-ai-integration
Copy link

@devin-ai-integration devin-ai-integration bot commented Feb 12, 2026

Initialize React app with Vite + TypeScript for Angular-to-React migration

Summary

Scaffolds a new React application (react-hn/) inside the existing Angular repository to begin the Angular-to-React migration. Sets up:

  • Vite + React + TypeScript project via create-vite
  • Core dependencies: react-router-dom, zustand, @tanstack/react-query, workbox-*
  • PWA configuration via vite-plugin-pwa with manifest and workbox runtime caching matching the Angular service worker setup
  • Project folder structure with placeholder components, hooks, services, types, pages, and contexts
  • TypeScript config with @/* path aliases, strict mode, ES2020 target
  • Vite resolve alias for @/ imports to work at runtime
  • Prettier config matching Angular project settings (4-space tabs, single quotes, trailing commas)
  • Static assets copied from the Angular project (icons/, images/, favicon.ico)
  • Type definitions for Story, Comment, User, and FeedType based on the Angular models
  • Vitest installed with npm run test script

Build (tsc -b && vite build) and lint (eslint .) both pass cleanly.

Updates since last revision

  • Added resolve.alias in vite.config.ts so @/* imports work at runtime (not just typecheck)
  • Removed duplicate public/manifest.json (VitePWA plugin generates manifest.webmanifest)
  • Ran npx prettier --write . to unify formatting across all files
  • Installed vitest and added "test": "vitest" script to package.json

Local Testing Screenshot

React app running locally

Review & Testing Checklist for Human

  • Test plan: Clone the branch, cd react-hn && npm install && npm run dev, verify the default Vite+React page loads at localhost:5173. Run npm run build to confirm PWA service worker generation.
  • Verify @/ alias works: The alias is configured but not yet used in imports. When migrating components, confirm import { env } from '@/config/env' resolves correctly.
  • API endpoint: The hardcoded URL (https://node-hnapi.herokuapp.com) in src/config/env.ts may be unreachable (Heroku free tier sunset). Not blocking for init but will need updating before API integration.

Notes

…act migration

- Scaffold React app with Vite and TypeScript template
- Install core dependencies: react-router-dom, zustand, @tanstack/react-query, workbox, vite-plugin-pwa
- Create project folder structure (components, pages, hooks, contexts, services, types, utils, config)
- Configure TypeScript with path aliases (@/*)
- Configure PWA with vite-plugin-pwa matching Angular service worker setup
- Copy static assets (icons, images, manifest, favicon) from Angular project
- Setup Prettier with matching Angular project config
- Create environment configuration and placeholder files

Co-Authored-By: Matthew Guerra <matthew.guerra@cognition.ai>
@devin-ai-integration
Copy link
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

…, remove duplicate manifest

Co-Authored-By: Matthew Guerra <matthew.guerra@cognition.ai>
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.

0 participants