Skip to content

Implement Claimable Amount Caching and Stream Creation Success Flow#431

Merged
ogazboiz merged 2 commits into
LabsCrypt:mainfrom
MarvyNwaokobia:feat/stream-ui-flows
Apr 29, 2026
Merged

Implement Claimable Amount Caching and Stream Creation Success Flow#431
ogazboiz merged 2 commits into
LabsCrypt:mainfrom
MarvyNwaokobia:feat/stream-ui-flows

Conversation

@MarvyNwaokobia

@MarvyNwaokobia MarvyNwaokobia commented Apr 29, 2026

Copy link
Copy Markdown

This PR implements backend performance optimizations and improves the frontend user experience for stream creation.

Changes

  • Backend (Add claimable amount caching to reduce repeated RPC calls #377):
    • Added an in-memory cache for claimable amounts with a 5-second TTL.
    • Implemented GET /v1/streams/{id}/claimable endpoint with live RPC fallback logic.
    • Added cache invalidation when WITHDRAWN events are processed.
    • Exposed cache hit rate in new /v1/admin/metrics endpoint.
    • Updated Swagger documentation.
  • Frontend (Add stream creation success flow with redirect to stream detail #378):
    • Added post-submission polling to StreamCreationWizard to handle indexer lag.
    • Created TransactionTracker component to visualize signing, confirmation, and indexing stages.
    • Implemented automatic redirection to stream detail page upon successful indexing.
    • Added fallback UI with Stellar Explorer link for timeouts.

closes #377
closes #378

Marvy added 2 commits April 29, 2026 06:33
…flow

- backend: added in-memory cache for claimable amounts with 5s TTL
- backend: added /v1/admin/metrics for cache hit rate monitoring
- frontend: improved StreamCreationWizard with post-submission polling and redirection
- frontend: added TransactionTracker component for status visualization

closes LabsCrypt#377, closes LabsCrypt#378
@ogazboiz ogazboiz merged commit a761f43 into LabsCrypt:main Apr 29, 2026
5 of 9 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.

Add stream creation success flow with redirect to stream detail Add claimable amount caching to reduce repeated RPC calls

2 participants