Feature: Add Basescan tx link to donation history records
Problem
The donation history on the reader dashboard shows donation records (e.g., "Story #1 Mar 19 — 10 PL_TEST") but the records are not clickable. Since we index donation tx hashes in the DB, we should link each record to its Basescan transaction page.
Scope
- Make the donation amount or a tx icon clickable, linking to
${EXPLORER_URL}/tx/${tx_hash}
- Import
EXPLORER_URL from lib/contracts/constants.ts
- Ensure the
tx_hash field is available in the donation query (check if already fetched)
- Add pagination with a "Load more" button (default 10 records, load 10 more on click)
Files to Investigate
- Reader dashboard component that renders Donation History
- Supabase query for donations (check if
tx_hash is selected)
Branch
task/351-donation-tx-link
Labels
agent/T3, feat
Feature: Add Basescan tx link to donation history records
Problem
The donation history on the reader dashboard shows donation records (e.g., "Story #1 Mar 19 — 10 PL_TEST") but the records are not clickable. Since we index donation tx hashes in the DB, we should link each record to its Basescan transaction page.
Scope
${EXPLORER_URL}/tx/${tx_hash}EXPLORER_URLfromlib/contracts/constants.tstx_hashfield is available in the donation query (check if already fetched)Files to Investigate
tx_hashis selected)Branch
task/351-donation-tx-linkLabels
agent/T3,feat