Skip to content

feat(stellar): add Stellar Expert explorer links to all transaction rows#178

Merged
therealjhay merged 2 commits into
Betta-Pay:mainfrom
mordabdul1:fix/114-stellar-explorer-links
Jun 30, 2026
Merged

feat(stellar): add Stellar Expert explorer links to all transaction rows#178
therealjhay merged 2 commits into
Betta-Pay:mainfrom
mordabdul1:fix/114-stellar-explorer-links

Conversation

@mordabdul1

Copy link
Copy Markdown
Contributor

[npm run lint ✅ completed (existing repo warnings only)
npm run typecheck ✅ passed
npm test -- src/config/tests/config.test.ts --runInBand ✅ passed (9/9)
npm run build ✅ passed]

Overview

This PR adds Stellar transaction explorer links to the frontend so users can verify their transactions on-chain. It introduces an ExternalLink icon button to individual transaction rows that opens the Stellar Expert explorer.

Related Issue

Closes #114

Changes

🌐 Explorer Links

  • [ADD] lib/utils/explorer.ts

  • Added utility function getStellarExplorerTxUrl to construct Stellar Expert URLs based on the current network environment.

  • [MODIFY] components/wallet/WalletActivityHistory.tsx

  • Added an external link button for each wallet transaction.

  • Hidden when txHash is absent.

  • [MODIFY] app/(merchant)/transactions/page.tsx

  • Added an Explorer column to the transactions table.

  • Added external link buttons for desktop rows and mobile cards.

  • [MODIFY] app/(merchant)/settlement/page.tsx

  • Added an external link button to settlement history items.

Verification Results

Acceptance Criteria Status
Wallet activity list has links
Transactions table has links
Settlement history has links
Link opens in new tab with noopener noreferrer
Uses current network from STELLAR_NETWORK
Hides button if txHash is missing

Added ExternalLink buttons linking to Stellar Expert transaction pages
for wallet activity, transactions table, and settlement history. Uses
current network (testnet/mainnet). Allows users to verify transactions
on-chain with one click.
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

@mordabdul1 is attempting to deploy a commit to the therealjhay's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jun 30, 2026

Copy link
Copy Markdown

@mordabdul1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@therealjhay

Copy link
Copy Markdown
Contributor

Kindly resolve conflict

Resolved conflicts in two files, preserving the Stellar Explorer link
feature on top of upstream's changes:

- app/(merchant)/transactions/page.tsx: adopted upstream's virtualized
  transaction table and re-applied the "Explorer" column (header + per-row
  Stellar Expert link). Kept upstream's search-input sanitization
  (sanitizedOnChange) and used the destructured `[debouncedSearch]` form
  required by useDebounceValue. Added the useRef + useVirtualizer imports
  that upstream's file was missing.
- app/(merchant)/settlement/page.tsx: adopted upstream's shared mock
  (@/lib/mock/settlements) instead of the inline definitions; added an
  optional `txHash` field (and sample hashes) to that mock so the
  settlement explorer link keeps working.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mordabdul1

Copy link
Copy Markdown
Contributor Author

@therealjhay done

@therealjhay therealjhay merged commit cb085c3 into Betta-Pay:main Jun 30, 2026
1 check failed
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 Stellar transaction explorer links

2 participants