Fix frontend API integration: correct endpoint and data transformation

- Change getProjects() to call /api/bzzz/active-repos instead of /projects
- Transform Bzzz repository response structure from nested {repositories: [...]} to flat array
- Map repository fields to Project interface with status field (ready_to_claim -> active/inactive)
- Remove defensive array checks since API now returns proper array structure
- Fix TypeError: r.filter is not a function by ensuring proper data flow

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
anthonyrawlins
2025-07-14 22:29:11 +10:00
parent 8a2e6b42dc
commit 2b5e6a492d
4 changed files with 57 additions and 41 deletions

347
frontend/dist/assets/index-f7xYn9lw.js vendored Normal file

File diff suppressed because one or more lines are too long