Skip to content

Transaction hash is not clickable — no block explorer link #331

Description

@miguel502

Transaction hashes render in accent-coloured, underline-on-hover link styling with a copy button beside
them, but clicking does nothing. Users reasonably expect to land on the block explorer — reported
alongside the unstake issue: "when i click the tx hash it should bring me to the explorer".
No explorer URL is configured anywhere in the repo, so this is a missing feature combined with a
misleading affordance.

Steps to reproduce

  1. Open /app/transactions (or any view listing transaction hashes)
  2. Click a hash
  3. Nothing happens

Root cause

packages/ui/src/components/TransactionHash.tsx:26 renders a <button>, not a link, and onClick is
optional (:10):

<Button variant={'link'} className={'!p-0 text-accent border-none h-5 font-mono'} onClick={onClick}>
{truncateHash}
</Button>

With no onClick passed the button keeps variant="link" styling
(packages/ui/src/components/button.tsx:28 — accent colour plus hover:underline) but has no handler.
Six call sites pass no onClick:

  • apps/middleman/src/app/detail/TransactionDetail.tsx:376
  • apps/middleman/src/app/app/(lists)/transactions/table/columns.tsx:75
  • apps/middleman/src/app/admin/(internal)/transactions/table/columns.tsx:80
  • apps/middleman/src/app/app/(lists)/suppliers/ActivitiesSection.tsx:118
  • apps/provider/src/app/admin/details/TransactionDetail/index.tsx:137
  • apps/provider/src/app/admin/(internal)/keys/ActivitiesSection.tsx:128

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions