Skip to content

feat: integrate frontend plans with live API - #1049

Merged
ONEONUORA merged 4 commits into
Fracverse:masterfrom
JoyLight00:feature/frontend-live-backend-api
Aug 23, 2026
Merged

feat: integrate frontend plans with live API#1049
ONEONUORA merged 4 commits into
Fracverse:masterfrom
JoyLight00:feature/frontend-live-backend-api

Conversation

@JoyLight00

Copy link
Copy Markdown
Contributor

Summary

Replaces direct localStorage mock-store usage in the frontend plan and KYC workflows with live backend API integration.

Changes

  • Added centralized mock/live data selection through NEXT_PUBLIC_USE_MOCK_DATA.
  • Live API mode is now the default.
  • Replaced direct mock-store reads in:
    • Asset-owner overview
    • Plans list
    • Plan detail
    • Plan editing
    • Plan creation
    • Claim search
    • KYC status handling
  • Added loading cancellation and user-facing API error states.
  • Added optional automatic revalidation support to useApiQuery.
  • Normalized raw Axum API responses for plan list and detail endpoints.
  • Added wallet-address support to GET /api/kyc/status.
  • Updated KYC submission payloads to match the backend’s snake_case DTO.
  • Added the missing backend GET /api/plans/{id} route.
  • Preserved local demo behavior when NEXT_PUBLIC_USE_MOCK_DATA=true.

Configuration

NEXT_PUBLIC_USE_MOCK_DATA=false
NEXT_PUBLIC_API_URL=http://localhost:8080

Set NEXT_PUBLIC_USE_MOCK_DATA=true to use the local demo store.

Validation

  • git diff --check passed.
  • Frontend tests and TypeScript validation were not runnable because frontend dependencies are not installed and the repository lockfile is missing the workspace entry.
  • Backend compilation was not runnable because cargo is unavailable in the container.

Closes #1032

@ONEONUORA

Copy link
Copy Markdown
Contributor

@JoyLight00
Pls make your implementation to pass CI checks

Comment thread frontend/app/asset-owner/plans/claim/page.tsx Fixed
@JoyLight00

Copy link
Copy Markdown
Contributor Author

@JoyLight00 Pls make your implementation to pass CI checks

Done Boss

@ONEONUORA ONEONUORA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @JoyLight00

@ONEONUORA
ONEONUORA merged commit 7d850e6 into Fracverse:master Aug 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

frontend: Replace LocalStorage Mock Store Fallbacks with Live Backend API Integration

3 participants