Skip to content

Add escrow status and countdown timer for cashback releases - #1958

Merged
MusabShakeel576 merged 1 commit into
qafrom
claude/cashback-escrow-status-W0JQd
Apr 19, 2026
Merged

Add escrow status and countdown timer for cashback releases#1958
MusabShakeel576 merged 1 commit into
qafrom
claude/cashback-escrow-status-W0JQd

Conversation

@MusabShakeel576

Copy link
Copy Markdown
Contributor

Summary

This PR adds support for displaying escrowed cashback with a countdown timer showing when the funds will be released. It introduces a new EscrowTimeLeft component that updates every minute to show the remaining time until payout.

Key Changes

  • New EscrowTimeLeft component: Displays a live countdown timer that updates every 60 seconds, showing the time remaining until escrowed cashback is released
  • Enhanced cashback status display: Updated UI to distinguish between three states:
    • Pending cashback (awaiting processing)
    • Escrowed cashback (locked until payout date)
    • Released cashback (available)
  • Extended CashbackInfo interface: Added isEscrowed boolean and payoutAt timestamp fields to track escrow status and release time
  • Updated getCashbackAmount helper: Now returns escrow status and payout information alongside existing pending status
  • Extended Cashback type: Added optional payoutAt field to store the escrow release timestamp
  • Improved activity detail view: Shows "Releases in" row with countdown timer when cashback is escrowed
  • Updated transaction list: Displays "(Escrowed)" label in cashback indicator when applicable

Implementation Details

  • The countdown timer uses formatDistanceStrict from date-fns for human-readable time formatting
  • The interval updates every 60 seconds (60,000ms) to balance accuracy with performance
  • The component displays "Releasing soon" when the payout time has been reached
  • Escrow information is conditionally rendered only when the cashback is actually escrowed

https://claude.ai/code/session_01JwEMS7D4Jcwkm2VqX4CRnd

@vercel

vercel Bot commented Apr 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
solid-app Ignored Ignored Apr 19, 2026 9:25am
solid-app-staging Ignored Ignored Apr 19, 2026 9:25am

Request Review

@MusabShakeel576
MusabShakeel576 merged commit 4a9749b into qa Apr 19, 2026
4 of 5 checks passed
@MusabShakeel576
MusabShakeel576 deleted the claude/cashback-escrow-status-W0JQd branch April 19, 2026 09:26
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.

2 participants