Commit 0d57ebe
feat(frontend): add React frontend for GUI (M1)
Complete M1 frontend implementation with Vite + React + TypeScript + Tailwind:
Structure:
- src/api/: Type-safe API client with axios
- src/components/: Layout (Sidebar, Header), Runs (Card, StatusBadge)
- src/pages/: RunListPage, NewRunPage, RunDetailPage
- src/lib/: Utility functions
- src/styles/: Tailwind CSS with custom FUSION theme
Features:
- Run list with status badges and progress bars
- Create run form with template selection
- Run detail page with live log streaming (SSE)
- Artifact browser with file download
- Auto-refresh for status updates
- Responsive layout
Config:
- Vite proxies /api to backend (port 8765)
- Build outputs to fusion/api/static/ for production
- Path aliases (@/) for clean imports
Also:
- Fix run_manager.py to pass --run_id to simulator CLI
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 49f9698 commit 0d57ebe
25 files changed
Lines changed: 5623 additions & 0 deletions
File tree
- frontend
- public
- src
- api
- components
- layout
- runs
- lib
- pages
- styles
- fusion/api/services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments