Skip to content

Trim the explorer's labels and repeated text - #336

Merged
HDauven merged 9 commits into
mainfrom
copy/plain-text
Nov 21, 2026
Merged

HDauven merged 9 commits into
mainfrom
copy/plain-text

Conversation

@HDauven

@HDauven HDauven commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Calmer screens, clear where it matters. Repeats, narration and filler go. What someone needs before they act stays on the main view: amounts and parties, status, and the qualifiers that change what a figure means ("of circulating supply", a coming eligibility's time). Reference sits a tap away. Addresses keep main's lengths: the transaction page gives From, To and Contract in full, an account page its key; lists keep four characters at each end in phone rows and the home page's blocks, and six elsewhere. Data, queries and layout are unchanged.

Characters in the main area, mainnet (main build vs this branch, measured an hour apart, so the lists hold slightly different rows):

Screen main This branch
Home 2,702 2,092
Account (provisioner) 1,896 1,592
Account with a .dusk name 1,836 1,539
Provisioners 1,812 1,522
Transactions 1,571 1,172

What changed

  • Units sit in the column headers (Amount (DUSK), Slashes (soft/hard)) instead of after every number. Relative times read 18 s ago, 40 min ago, and record dates drop the weekday (19 Nov 2026, 21:00:35 CET). A past stake eligibility shows the date; a coming one keeps its time.
  • The transaction page leads with what it did (Claim rewards, Sozu pool · stake_activate), not a sentence repeating the From, Amount and To rows. The function a call ran is under Details, and what Public or Shielded shows is a tooltip on its row. The fee is one figure in DUSK.
  • Lists say a call's plain words alone (Claim rewards), or the function it ran where the row already names the contract.
  • Labels and messages are shorter but keep their facts: search notices, empty states, footer links, "Fee", "Block", "Reward", "Fees". "Copy" buttons are just the icon, with a tooltip and an accessible name.

Kept: test DUSK has no value; Failed, with its reason on hover and in Details; a shortened or partial ID is never treated as a match; a .dusk name with the account it points to; "Native stake" and the active/inactive split; "Shielded funds aren't shown."

Glossary (applied throughout)

  • account, never address or account address; staking account. The shielded side stays shielded address.
  • transaction ID for a transaction; a block keeps its hash.
  • Fee for what was paid; Details for the fold (was Technical details); Public and Shielded; Completed and Failed; Not confirmed yet while in the mempool.

Left as is

  • The copyright line, "All Rights Reserved." included.
  • @dusk-network/networks/format still writes the weekday for other apps; the explorer drops it on display.

Tested

  • npm run checks and npm run build: format, lint, svelte-check, 597 unit tests, build.
  • Built main and this branch for mainnet and compared them read-only in Chromium against nodes.dusk.network, at desktop width and at 360 px: home, blocks, a block, transactions, a transfer, a Sozu call, a failed call, a stake, two accounts and provisioners. Phone rows use main's code and lengths, so a long receiver can still be cut off at 360 px, as it is on main. Nothing else is cut off at either width. Screenshots are saved locally.

Say a transaction's kind once, put units in the column headers instead
of after every number, shorten accounts, contracts and IDs one way,
and write relative times and record dates shorter, following the copy
audit. Use "account" for what holds funds, "transaction ID" for a
transaction and "Details" for the fold. Data and queries are unchanged.
@HDauven
HDauven requested a review from GeorgianDusk November 20, 2026 12:24
A transaction's From, To and Contract are whole again, as on main: the
transaction page is where people check an address, and four characters
at each end is what look-alike addresses copy. Other accounts and IDs
keep six at each end; only the blocks and transactions lists' tables,
which are dense, keep four. One helper takes the length.
The first pass hid, removed or shortened things main shows. This puts
them back, in fewer words where it can: phone lists keep four characters
at each end and the tables main's six, so nothing new is cut off at
360 px; a coming eligibility keeps its time; "of circulating supply",
what Public or Shielded shows, a call's type and function, the fee's
dollars, "Native stake", the stake's split, "Everything here is public",
"Live", the "≈" on rounded stakes and the map's legend are back.
What Public or Shielded shows is a tooltip on its row, and the function
a call ran sits under Details, so plain-word calls read "Claim rewards".
The fee is one figure in DUSK, and the explanatory map caption, the "≈"
marks, "Everything here is public." and the build date go again.
"Native stake", the stake's split, "of circulating supply", a coming
eligibility's time and main's address lengths stay.
# Conflicts:
#	src/lib/chain-info/__tests__/describeTransaction.spec.js
#	src/lib/components/__tests__/BlockDetails.spec.js
#	src/lib/components/__tests__/BlocksList.spec.js
#	src/lib/components/__tests__/BlocksTable.spec.js
#	src/lib/components/__tests__/DataCard.spec.js
#	src/lib/components/__tests__/Footer.spec.js
#	src/lib/components/__tests__/ProvisionersCard.spec.js
#	src/lib/components/__tests__/TransactionDetails.spec.js
#	src/lib/components/__tests__/TransactionType.spec.js
#	src/lib/components/__tests__/TransactionsList.spec.js
#	src/lib/components/__tests__/TransactionsTable.spec.js
#	src/lib/containers/__tests__/SearchField.spec.js
#	src/lib/containers/__tests__/StatisticsPanel.spec.js
#	src/lib/containers/__tests__/explainSearchMiss.spec.js
#	src/lib/dusk/components/__tests__/CopyButton.spec.js
#	src/lib/dusk/components/__tests__/RelativeTime.spec.js
#	src/lib/dusk/date/__tests__/formatDateTime.spec.js
#	src/lib/dusk/string/__tests__/getRelativeTimeString.spec.js
#	src/lib/services/__tests__/duskAPI.spec.js
#	src/routes/__tests__/following.spec.js
#	src/routes/__tests__/layout.spec.js
#	src/routes/accounts/__tests__/page.spec.js
#	src/routes/search/__tests__/page.spec.js
A block's page heads with its height alone under its "Block" label, a
transfer to an account the network's labels name says whom in what
leads ("Transfer to BSC bridge"), and a search notice with no message
no longer keeps an empty line before its suggestion.
The transaction page gives it in its own Method row on the main view
again, under the fee, and list rows add it after a call's plain words,
as "Claim rewards · withdraw".
The type sits in a flex box, which drops the space before the receiver, so the page read "Transferto BSC bridge". The receiver's words now carry the space.
A block heads "Block 5,807,008", a transfer "Transfer of 2,419.879265012 DUSK" (to a labelled account, "Transfer to BSC bridge of …"), a call its plain words with any DUSK it moves, as "Stake of 1,000 DUSK", or "Call to" its function, and an unnamed account "Provisioner" or "Account" and its address. A failed one keeps its amount, struck through, and its subline says Failed.
@HDauven
HDauven merged commit d2460a4 into main Nov 21, 2026
1 check passed
@HDauven
HDauven deleted the copy/plain-text branch November 21, 2026 01:23
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.

2 participants