Skip to content

Show Pinata health degradation inline on invoice create upload step #720

Description

@king-aj-the-first

GitHub labels: Stellar Wave

Drips complexity: Medium (100 points)

Area: Invoice Lifecycle

Description

usePinataHealth and Pinata degradation tests exist, but the create wizard upload step does not surface degraded/unavailable gateway state before file drop.

Requirements and Context

SMEs should know IPFS is degraded before uploading a large PDF. Show inline banner on step 1 when health check fails.

Suggested Execution

git checkout -b feat/create-wizard-pinata-health-banner
  1. Create branch feat/create-wizard-pinata-health-banner
  2. Call usePinataHealth on create page
  3. Render degradation banner above FileInput
  4. Block upload CTA when unavailable with reason
  5. Reuse existing PinataHealthDegradation test patterns

Example commit message

feat(invoice-lifecycle): show Pinata health banner on create upload step

File Paths

  • hooks/usePinataHealth.ts
  • app/invoice/create/page.tsx
  • app/invoice/__tests__/PinataHealthDegradation.test.tsx

Guidelines

  • Assignment required before starting
  • PR description must include: Closes #<issue_number>
  • Run npm run lint, npm run type-check, npm run test, and npm run build before opening PR
  • Add screenshots or recordings for UI changes
  • Complexity: Medium (100 points) — focused feature work in an existing surface

Acceptance Criteria

  • Degraded state shows inline banner
  • Unavailable blocks upload with message
  • Healthy state shows no banner
  • Existing wizard tests pass
  • Banner copy is translated

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions