This frontend has been updated to work with the new LinkedClaims backend API.
-
New API Service Layer
/src/api/index.ts- All API calls/src/api/types.ts- TypeScript types
-
Field Name Changes
rating→scoreamount→amt
-
API Endpoint Changes
/api/claim/v2→/api/claims/api/claims/v3→/api/feed/api/claim/:id→/api/claims/:id/api/report/:id→/api/reports/claim/:id
-
Entity System
/src/types/entities.ts- Entity types and helpers/src/components/EntityBadge/- Entity type badges
-
Enhanced Node Data
- Nodes now include
entityTypeandentityData - Graph utils updated to handle enhanced nodes
- Nodes now include
# Install dependencies
yarn install
# Start development server
yarn dev
# Build for production
yarn build- Feed: Should load with new API endpoint
- Create Claim: Should work with score/amt fields
- Graph: Should display enhanced nodes with entity data
- Reports: Should show claim details and validations
Make sure .env has:
VITE_BACKEND_BASE_URL=https://dev.linkedtrust.us
- Entity type badges throughout the UI
- Enhanced graph nodes with entity information
- New report endpoints with validation support
- Credential submission capability (endpoint ready)
- Add entity filtering to feed UI
- Style graph nodes based on entity type
- Create credential submission form
- Add entity report pages
- Implement trending topics display
The codebase has been cleaned up with:
- Centralized API service
- Proper TypeScript types
- Consistent error handling
- Field name transformations handled in API layer
All old endpoints are mapped in the API service for backward compatibility during transition.