Skip to content

feat: add credit redemption checker#2

Merged
Alhwyn merged 1 commit intocursorcommunityled:masterfrom
felipebasurto:feature/credit-redemption-checker
Jan 13, 2026
Merged

feat: add credit redemption checker#2
Alhwyn merged 1 commit intocursorcommunityled:masterfrom
felipebasurto:feature/credit-redemption-checker

Conversation

@felipebasurto
Copy link

Add a new menu option to check which sent credits have been redeemed using browser automation.

Features:

  • New "Check Credit Redemptions" screen with progress tracking
  • Uses Playwright to visit each referral URL and check redemption status
  • Automatically updates database when credits are confirmed as redeemed
  • Export unused credits to CSV for reuse at future events
  • Works in both Cloud Mode (Convex) and Local Mode (CSV)

Technical changes:

  • Add listSentWithPerson query to fetch sent credits with person info
  • Add markRedeemed mutation to update credit status
  • Add useSentCredits and useMarkRedeemed hooks for storage abstraction
  • Add local storage functions for CSV-based redemption tracking
  • Add 4th menu option with keyboard shortcut "4"
  • Update schema to add by_assignedTo index for efficient lookups

Usage:

  1. Select option 4 "Check Credit Redemptions"
  2. Press S to start checking
  3. Browser opens and checks each sent credit automatically
  4. Press E to export unused credits to CSV

Add a new menu option to check which sent credits have been redeemed using browser automation.

Features:
- New "Check Credit Redemptions" screen with progress tracking
- Uses Playwright to visit each referral URL and check redemption status
- Automatically updates database when credits are confirmed as redeemed
- Export unused credits to CSV for reuse at future events
- Works in both Cloud Mode (Convex) and Local Mode (CSV)

Technical changes:
- Add listSentWithPerson query to fetch sent credits with person info
- Add markRedeemed mutation to update credit status
- Add useSentCredits and useMarkRedeemed hooks for storage abstraction
- Add local storage functions for CSV-based redemption tracking
- Add 4th menu option with keyboard shortcut "4"
- Update schema to add by_assignedTo index for efficient lookups

Usage:
1. Select option 4 "Check Credit Redemptions"
2. Press S to start checking
3. Browser opens and checks each sent credit automatically
4. Press E to export unused credits to CSV
@Alhwyn Alhwyn merged commit a31e2af into cursorcommunityled:master Jan 13, 2026
1 check 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.

2 participants