feat: update environment configuration and enhance API integration

- Remove versioning from docker-compose.yml
- Enhance Vite configuration to support API proxying for development
- Improve error handling and data normalization in API service
- Add fallback values in PublicationsTable and ResearcherCard components
- Update sync functionality in DashboardPage to handle backend responses more effectively
- Refactor mockSyncResearcher to simulate backend response structure
This commit is contained in:
Alexis
2026-04-24 10:40:28 +02:00
parent 89c45b7d67
commit 2bb1309133
9 changed files with 182 additions and 72 deletions
+7 -3
View File
@@ -69,10 +69,14 @@ export async function mockGetPublications(/* orcidId */) {
export async function mockSyncResearcher(orcidId) {
await delay(1800);
// Imita el payload real del backend (resumen del SyncJob, no el researcher).
return {
...MOCK_RESEARCHER,
orcid_id: orcidId,
last_sync_at: new Date().toISOString(),
status: "ok",
message: "Sincronización completada correctamente.",
researcher: orcidId,
new_records: 0,
updated_records: MOCK_PUBLICATIONS.length,
total: MOCK_PUBLICATIONS.length,
};
}