feat: implement store home page with product listing, pagination, and error handling

This commit is contained in:
2026-06-30 08:47:57 -03:00
parent b2796a2383
commit 74144b6d2c
4 changed files with 36 additions and 12 deletions

View File

@@ -31,6 +31,13 @@ function createTenantServiceStub(
tenant: tenantState.asReadonly(),
status: statusState.asReadonly(),
getTenant: () => tenantState(),
getTenantApiUrl: () => {
const tenantVal = tenantState();
if (!tenantVal) {
throw new Error('No se pudo resolver el tenant activo.');
}
return `http://localhost:8000/api/tenants/${tenantVal.codigo}`;
},
bootstrap: vi.fn().mockResolvedValue(undefined)
};
}