Skip to content

feat: add copy button on token description#48

Open
astowny wants to merge 1 commit intominima-global:mainfrom
astowny:feat/copy-token-description
Open

feat: add copy button on token description#48
astowny wants to merge 1 commit intominima-global:mainfrom
astowny:feat/copy-token-description

Conversation

@astowny
Copy link
Copy Markdown

@astowny astowny commented Mar 23, 2026

Description

Adds a copy to clipboard button on the token description field in the token detail page (/balance/$id).

Before

The description field had no copy button — users had to manually select and copy the text.

After

A copy icon appears on the right side of the description field (same as token ID, web validation URL, etc.). Tapping it copies the description to the clipboard.

Details

  • Custom tokens: the copy button only appears when the token actually has a description (not shown for no_description fallback)
  • Native Minima token (0x00): the copy button is always shown (copies the default description text)
  • Uses the existing copy prop on the InfoBox component — no new code needed, just enabling the feature

Files Changed

  • src/routes/balance/$id.tsx — Added copy prop to description InfoBox components

Add the copy prop to the description InfoBox on the token detail page,
allowing users to copy the token description to clipboard with one tap.

This applies to both custom tokens (copies the token's description field)
and the native Minima token (copies the default description text).

Consistent with the existing copy behavior on token ID, web validation URL,
and external URL fields.
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