feat: backend health/IPFS/v1 routes, escrow funding UI, CI caching (issues #24 #25 #34 #41)#47
Merged
soomtochukwu merged 5 commits intoMar 28, 2026
Conversation
Issue 24 — Backend Axum setup & DB pooling: - Add /api/health endpoint that pings the Postgres pool - Add /api/v1/users stub route - Restructure all routes under /api/v1 prefix Issue 25 — IPFS off-chain storage: - Add services/ipfs.rs with Pinata API integration - Add POST /api/v1/uploads multipart endpoint (10 MiB cap, MIME allowlist) - Enable axum multipart + reqwest multipart features Issue 34 — Client Escrow Funding Interface: - Add apps/web/app/jobs/[id]/fund/page.tsx - Funding summary modal with fee breakdown (2% platform fee) - Double-confirmation modal + caution alert before wallet sign - On-chain polling loop until job transitions to funded/in_progress - Frontend api.ts: updated to v1 routes + uploads.pin helper Issue 41 — CI/CD GitHub Actions: - Separate jobs for contracts-clippy, contracts-test, backend-clippy, backend-test, frontend-lint, frontend-build, e2e - Swatinem/rust-cache on every Rust job to preserve target/ - actions/cache for Playwright browsers - npm ci (deterministic) instead of npm install - TypeScript type-check step in frontend-lint job Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
@boys-cyberhub Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
- backend/src/routes/uploads.rs: replace `while let` with `if let` to fix clippy::never_loop (the loop always returned on first iteration) - apps/web/package-lock.json: regenerate to sync with package.json (was missing typescript and utf-8-validate entries) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
package-lock.json was generated with npm 11 (Node 24). CI was using Node 20/npm 10 which rejected the lock file as out-of-sync. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…sion root tsconfig.json has types:[node] but @types/node is only installed in apps/web — tsc was picking up the wrong config from the repo root
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #24 · Closes #25 · Closes #34 · Closes #41
Issue #24 — Backend: Setup Rust Axum Project & DB Pooling
GET /api/health— pings the Postgres pool and returns{ status, db }(acceptance criteria: healthy status with active DB connectivity)/api/v1prefix (/api/v1/jobs,/api/v1/disputes,/api/v1/appeals,/api/v1/users)GET /api/v1/usersstub route added (foundational; full auth profile system tracked separately)TraceLayerIssue #25 — Backend: Off-chain Storage & IPFS Integration
backend/src/services/ipfs.rs— wraps Pinata'spinFileToIPFSREST API viareqwest, returns the CIDPOST /api/v1/uploads— acceptsmultipart/form-data, enforces 10 MiB cap and MIME-type allowlist (PDF, ZIP, JSON, plain text, PNG/JPEG/GIF/WebP)PINATA_JWTenv var required at runtime; unit tests stub it with a placeholderCargo.toml: enabledaxum/multipart+reqwest/multipartfeaturesIssue #34 — Frontend: Client Escrow Funding Interface
apps/web/app/jobs/[id]/fund/page.tsxdepositEscrowGET /api/v1/jobs/:idevery 2 s, up to 60 s)lib/api.ts: bumped all routes to/v1, addeduploads.pin()helperIssue #41 — CI/CD GitHub Actions Architecture
contracts-clippy,contracts-test,backend-clippy,backend-test,frontend-lint,frontend-build,e2eSwatinem/rust-cache@v2on every Rust job — preservestarget/across runs, keeps CI well under 5 minactions/cache@v4for Playwright browser binaries — avoids repeatedplaywright installnpm ci(deterministic lockfile install) replacesnpm installin all frontend jobstsc --noEmitstep added tofrontend-lintfor type-level safetyneeds: frontend-buildso it only runs after the build passesTest plan
cargo check -p backend— passes locally ✅/jobs/<id>/fundwith a funded job — verify summary, modal, and signed tx flowPOST /api/v1/uploadswith a valid PDF — confirm CID is returnedPOST /api/v1/uploadswith an.exe— confirm 400 rejectionGET /api/health— confirm{ "status": "ok", "db": "connected" }with a live DB🤖 Generated with Claude Code