Skip to content

feat(tx-detail): add copyable hash and open in explorer button - #196

Merged
Gaubee merged 1 commit into
mainfrom
feat/tx-detail-copyable-hash
Jan 9, 2026
Merged

Gaubee merged 1 commit into
mainfrom
feat/tx-detail-copyable-hash

Conversation

@Gaubee

@Gaubee Gaubee commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add bfmetav2 explorer config (baseURL: https://tracker.bf-meta.org)
  • Create CopyableText component with copy status icon (idle/copied/failed)
  • Update transaction detail page:
    • Hash text now shows inline copy icon
    • Replace '复制哈希' button with '在浏览器中打开' (opens explorer in new tab)
    • '分享' button unchanged (copies explorer URL)

Changes

  • public/configs/default-chains.json - Add bfmetav2 explorer config
  • src/components/common/copyable-text.tsx - New component
  • src/pages/history/detail.tsx - Use CopyableText, add open in explorer button
  • i18n keys for clickToCopy and openInExplorer

- Add bfmetav2 explorer config to default-chains.json
- Create CopyableText component with copy status icon
- Update transaction detail page to use CopyableText for hash
- Replace 'Copy Hash' button with 'Open in Explorer' button
- Add i18n keys for clickToCopy and openInExplorer
@Gaubee
Gaubee merged commit a774c06 into main Jan 9, 2026
5 checks passed
@Gaubee
Gaubee deleted the feat/tx-detail-copyable-hash branch January 9, 2026 03:37
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.

1 participant