Repository navigation
Trim the explorer's labels and repeated text - #336
Merged
Merged
Conversation
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 (
mainbuild vs this branch, measured an hour apart, so the lists hold slightly different rows):mainWhat changed
Amount (DUSK),Slashes (soft/hard)) instead of after every number. Relative times read18 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.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.Claim rewards), or the function it ran where the row already names the contract.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)
Left as is
@dusk-network/networks/formatstill writes the weekday for other apps; the explorer drops it on display.Tested
npm run checksandnpm run build: format, lint, svelte-check, 597 unit tests, build.mainand 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 usemain's code and lengths, so a long receiver can still be cut off at 360 px, as it is onmain. Nothing else is cut off at either width. Screenshots are saved locally.