Commit 752283c
feat(frontend): Integrate backend stats, duplicate & export
Frontend Integration - FASE 1 Completion:
- Dashboard now fetches real project stats from API (/stats endpoint)
- ProjectCard adds duplicate and export actions with toast notifications
- StatsOverview displays real-time data from backend
- Fixed navigation for advanced tools (QA, Marketing, Print, Scientific)
- Added use-toast hook for UI notifications
- Updated translations for landing page
Changes:
- src/app/[locale]/dashboard/page.tsx: Stats integration, tools navigation fix
- src/components/dashboard/ProjectCard.tsx: Duplicate & export actions
- src/components/dashboard/StatsOverview.tsx: Real API data consumption
- src/hooks/use-toast.ts: Toast notification system
- messages/en.json: Added landing.socialProof section
- src/types/project.ts: Updated ProjectStats interface
Backend Ready:
- ✅ GET /api/v1/projects/stats
- ✅ POST /api/v1/projects/:id/duplicate
- ✅ GET /api/v1/projects/:id/export
Next: Production deployment & testing
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent fe90fe9 commit 752283c
6 files changed
Lines changed: 835 additions & 130 deletions
File tree
- web
- messages
- src
- app/[locale]/dashboard
- components/dashboard
- hooks
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
129 | 135 | | |
130 | 136 | | |
0 commit comments