Skip to content

Add payment proof freshness badge to paid results #82

Description

@emrekayat

Why this matters

SCF reviewers should be able to tell whether a displayed payment proof is fresh or stale without inspecting raw timestamps in the API payload.

Scope

Add a small freshness badge for paid-query proof metadata in the dashboard result panel:

  • Fresh when proof timestamp is recent;
  • Stale when older than a conservative threshold;
  • Unavailable when no proof timestamp exists;
  • tooltip/copy that does not imply settlement if evidence is missing.

Suggested files:

  • apps/web/src/App.tsx
  • apps/web/src/types.ts
  • packages/shared/src/schemas.ts if response typing needs a field.

Acceptance criteria

  • Badge is driven from API result/payment metadata, not hard-coded demo state.
  • Missing proof timestamp renders as unavailable, not fresh.
  • Demo-mode result still clearly shows it is demo evidence.
  • Component or frontend test covers fresh, stale, and missing cases.
  • No payment execution behavior changes.

Wave complexity

High - improves reviewer confidence in paid-query evidence freshness.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssue proposed for the Drips Stellar Wave programarea: webWeb and wallet experiencearea: x402x402 and Stellar paymentscomplexity: highExpected high implementation complexitydrips-candidateCandidate for a Drips Stellar WaveenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions