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

File diff suppressed because one or more lines are too long

View File

@@ -61,7 +61,7 @@
}
}
</style>
<script type="module" crossorigin src="/assets/index-S7T45P97.js"></script>
<script type="module" crossorigin src="/assets/index-f7xYn9lw.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CYSOVan7.css">
</head>
<body>