UX improvement for Raw/JSON view and value copying
There are some small improvements to do to make user experience even faster.
-
Add copy function to other important fields like block number, tx hash, block hash.
-
Change visuality switch behaviour
- Remove Data View dropdown completely from navbar.
- As a default set existing (raw) view (not json).
- Add data view switch to right top of the corresponding content.
- The switch would change existing raw view to prettified json view. The switch button would look like below (not toggled/toggled)
- This switch would be on block page and transaction page.
- Also to copy block and transaction as a Raw JSON, add next to above button on the left side a button with the JSON text and copy icon. So it would copy whole block or transaction as a raw json.
- Copying operations on each raw would stay as it is now.
- Change copy to clipboard icon to globally used icon,example
This would give us less view switching, and having ability to browsing through blocks and transactions without any switch.