Skip to content

Add privacy-safe, paginated analytics with demo/on-chain separation #10

Description

@emrekayat

Context

Public analytics returns recent payment and usage records directly, including query text/URLs and optional payer keys. Totals combine records without a clear distinction between demo and real settlement.

Scope

Define a privacy-safe analytics API and update the dashboard.

Acceptance criteria

  • Separate demo-paid, verified, settled, and failed counts/volume.
  • Only count authoritative settled evidence as on-chain paid volume.
  • Redact or hash payer addresses by default and never expose secrets/payment payloads.
  • Avoid returning raw query text or scrape URLs from public aggregate endpoints.
  • Add cursor pagination and validated limits for detailed history.
  • Add configurable retention for sensitive usage fields.
  • Return stable typed analytics schemas from the shared package.
  • Update the dashboard with explicit demo versus settled labels.
  • Tests cover aggregation, redaction, pagination boundaries, retention, and unauthorized detail access.
  • Document public/private analytics surfaces.

Out of scope

Claiming demo values as real Stellar volume.

Verification

Use mixed fixtures to prove public responses contain no raw sensitive query, URL, or full payer address.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssue proposed for the Drips Stellar Wave programarea: dataPersistence and analyticsarea: webWeb and wallet experiencecomplexity: mediumExpected medium implementation complexitydrips-candidateCandidate for a Drips Stellar Wave

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions