Commit 05db099
committed
feat: migrate React frontend from core repository
Migrate all React components, pages, and assets from the core repository to webapp. The webapp now serves the complete frontend while proxying API requests to the core backend.
Changes:
- Migrated 6 React components (Dashboard, Repository, RepositoryListItem, PullRequest, PullRequestView, Logs)
- Updated all API calls from /v1/* to /api/v1/* to work with Express proxy
- Created authentication hook (useAuth) and protected routes
- Added page components for routing (Dashboard, Repository, PullRequest, Admin)
- Configured CSS modules support in Vite
- Copied static assets (images, styles) from core
- Updated routing in App.jsx with protected routes
- Enhanced Header with authentication UI
Architecture:
- Frontend calls /api/v1/* endpoints
- Express proxy strips /api prefix and forwards to core as /v1/*
- Core backend remains completely unchanged
- Cookie-based authentication handled by proxy layer
All checks passing: linting, formatting, type checking, and build.1 parent ea9e0a4 commit 05db099
File tree
42 files changed
+7320
-1
lines changed- public
- images
- src
- components
- Dashboard
- Logs
- PullRequestView
- PullRequest
- RepositoryListItem
- Repository
- hooks
- pages
- AdminPage
- DashboardPage
- PullRequestPage
- RepositoryPage
- styles/modules
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
42 files changed
+7320
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
0 commit comments