73 Commits
Author SHA1 Message Date
tom goriunovandGitHub 4335faeb35 UI/UX: Implement unified EmptyState component for stats page (#3195)
* add EmptyState component to toolkit and use it in the stats page

* remove EmptySearchResult component

* tweaks

* refactor ComingSoon component

* fix toolkit build

* rollback changes in main preset
2025-12-23 11:34:33 +01:00
tom goriunovandGitHub 932add9d96 Change zero to <0.001 value within different pages (#3150)
* basic components and address page refactoring

* second part of refactoring

* third part of refactoring

* NativeCoinValue component

* more refactoring

* rename TruncatedValue into TruncatedText

* minor fixes

* refactor block details

* fix layout of value and fee in tx table

* update screenshots

* different units for tooltip and stats widget small value fix

* update screenshots

* update tx table screenshot

* fix copy button vertical alignment
2025-12-05 16:04:27 +01:00
edc54514f1 OP Superchain explorer: aggregated views (#3040)
* refactor widgets on home page

* coming soon placeholder component

* top accounts page

* contract data

* address ERC-20 tokens list

* chain filter for address ERC-20 tokens

* token select for address detailed view

* address details fields

* tokens table

* stats widgets on home page

* chain indicators graph on the home page

* quick search

* search results all tab

* tabs and chain select on search results page

* search results mobile view

* add contract info to search and address details

* add text filter for tokens and search improvements

* load all results inside tab on search results page

* token balance info

* add support for domains in the full search

* Multichain explorer

Resolves #2989

* add envs validator for multichain

* add some tests

* fix search bar on search results page on mobile

* home stats fixes

* fix ts

* optimize amount of queries on address page

* add more contract info on address page

* add enter key hint to search input

* fix tests

* fix test

* update bg.primary css-variable on color theme change

* sitemap for multichain

* txs page: render first tab if blob tab is not available on the chain

* filter out in active chains from chain select on address page and user ops page

* add chain icon to advanced filter table

* fix tooltip on entity with shield

* fix ts

* show contract implementations

* fixes

* add chain icon to all lists

* refactor zetachain chains config type

* use chain id as primary option instead of chain slug

* refactor chain config type for multichain and essential dapps

* refactor chain icon and chain select

* rename chain-slug in chain_slug

* change default radius of chain icon and update screenshots for multichain tests

* change conditions for "isContract" and "isVerified"

* test fixes

* make shield optional for external chain entities

* add chain icon to approvals lists

* add stats page for multichain

* add chain postfix to chart .png and .csv assets name

* fix tests

* sync verified contracts language filter and fix loading state in the search results page

* fix sol2uml diagram and csv export

* regcred from helmfile for review

* link fixes

* fix state for unknown address

* fix incorrect chain in the context during spa transition to the same route on different chain

* add links to stats widgets

* add mixpanel to L2 demo values

* show message of on-demand contract verification

* fix screenshots

---------

Co-authored-by: Nick Zenchik <[email protected]>
2025-11-18 09:44:22 +01:00
tom goriunovandGitHub 5c0c18149d Move charts to toolkit and improve color mode hook (#3075)
* move charts to toolkit

* refactor imports

* fix tests

* change the behavior of the color mode hook and add the noWatermark prop

* fix gas tracker test and fix toolkit build
2025-10-21 17:33:04 +02:00
tom goriunovandGitHub f0e713b877 Add support for customizing the UI color theme (#2923)
* UI customizations: new features

Fixes #2905

* colors for graphs

* introduce env variable

* colors for topbar, stats, selected state and tabs

* fix build

* fix validator

* refactor link.primary.hover color token

* refactor selected colors

* update styles for switch and fix some color tokens

* change color for selectable controls

* icon color tokens refactoring

* UI customizations: new features

Fixes #2905

* test for common components

* tweaks

* migrate from color-mode-hex cookie to color-theme cookie

* clean up

* update screenshots

* more screenshot updates

* update default color of chart line

* update envs for mega eth
2025-08-19 11:58:05 +02:00
tom goriunovandGitHub ecae7062b2 Merge pull request #2700 from blockscout/release/v2-0-1
Release v2.0.1
2025-05-05 09:56:18 +02:00
tom 24411cee0e update screenshots 2025-05-02 14:13:44 +02:00
tom 866bdfbac9 update margins on stats page and in the tx heading 2025-05-02 13:45:34 +02:00
tom goriunovandGitHub fae4990e1f API resource refactoring (#2699)
* add prefix to API resources

* fix pw tests

* refactor config

* remove unnecessary prefixes in resource names

* fixes

* update screenshots
2025-05-01 15:22:38 +02:00
tom goriunovandGitHub f6725649da UI toolkit package (#2691)
* first version of the pack

* single entry point

* add custom components to the package

* move form components to toolkit

* add more utils and hooks to the package

* minor fixes

* add CI workflow

* update readme and package.json

* fix ts

* fix build of env-validator

* fix docker build

* fix icons size

* test fixes

* more test fixes
2025-04-21 19:44:22 +02:00
tom c55dfdcf5b remove old semantic tokens 2025-03-13 15:22:59 +01:00
tom 46a00cedbb fix more ts errors 2025-03-11 16:18:03 +01:00
tom 57bb722cb0 refactor Select usage 2025-03-11 12:35:49 +01:00
tom f55aecd4cb stats pages 2025-02-21 19:57:22 +01:00
Igor StuevandGitHub 6c2356d607 remove skeleton animations (#2505)
* remove skeleton animations test

* eslint add Skeleton

* eslint-fix
2025-01-06 16:57:22 +01:00
tom goriunovandGitHub c802f0b5ed Replace system selectors with Blockscout selectors style (#2451)
* migrate from native select to the custom one

* migrate popover radio filter to select component

* migrate stats menu to select

* migrate Sort component

* screenshot updates
2024-12-13 14:42:21 +01:00
tom 125c4880de migrate to eslint 9 and its flat config 2024-11-13 12:54:12 +01:00
isstuev 2923e7f027 design fixes 2024-09-25 10:16:02 +02:00
isstuev 61271e560a stats updates 2024-09-25 10:16:02 +02:00
tom goriunovandGitHub e9aa8a3c2f Stats: give emphasis to incomplete data days (#2085)
* draw dotted line for incomplete data

* add title to tooltip

* refactor parts into separate components

* move utils

* refactor render logic of tooltip

* more refactoring

* fix issue in safari

* tweaks

* test

* make an approximation as a straight line.

* update screenshots

* fix the tooltip hiding behavior.

* add prop for disabling animation
2024-07-22 14:41:18 +02:00
tom goriunovandGitHub c735b217a7 Update info icon color (#2088)
* Icon info color

Fixes #2045

* fix test

* more test fixes
2024-07-09 18:21:04 +02:00
tom d1e04a0dde Merge branch 'main' of github.com:blockscout/frontend into tom2drum/issue-1977 2024-07-05 19:18:51 +02:00
tom goriunovandGitHub 5d2ae73172 Migrate to @blockscout/stats-types and @blockscout/visualizer-types (#2063)
* migrate to stats-types package

* migrate to visualizer-types package

* update package.json
2024-07-02 16:27:13 +02:00
tom d932e16b07 update gutter for Menu dropdown 2024-06-28 18:55:22 +02:00
tom goriunovandGitHub d4c92518b1 Update styles of outlined buttons and more (#1978)
* selected state for Button

* tests

* fix menu filter button hover issue

* update screenshots

* try to fix SearchBar recent keywords test
2024-06-05 12:44:09 +02:00
tom goriunovandGitHub c0e660d2e1 Stats Update (#1796)
* [WIP] chart for secondary coin price

* latest L1 state batch snippet

* txs stats snipper

* Merge main branch

* optimism preset

* rename governance token into secondary coin

* add secondary coin price to top bar

* calculate usd value for avg tx fee

* tests

* tweaks

* change envs for demo

* fix tests

* fixes

* fix flaky test

* change scroll to filter for stats link behaviour
2024-04-17 10:04:33 +02:00
tom goriunovandGitHub ae5489b1f7 Gas tracker page (#1524)
* add custom headers to API resource

* refactoring

* page title

* chart

* gas prices snippet

* GasPrice component

* add ENV for gas units

* dark theme and other tweaks

* tests

* add base and priority fee

* [skip ci] small fiat values

* change behavior of the variable

* update tooltip layout

* refactor gas info tooltip

* refactor GasPrice component

* fix logic and deploy demo for eth mainnet

* tests

* remove link from anchor

* [skip ci] rollback ENVs for demo

* review fixes

* fix tests
2024-02-20 08:36:57 +04:00
tom goriunovandGitHub 797b8f57bb Validators list (#1621)
* new ENV and page placeholder

* display list data

* comment out SearchInput

* add counters

* add tag to address page

* tests

* refactoring

* fix ts

* change ENVs for demo

* fix ENVs validator

* [skip ci] remove hash

* review fixes
2024-02-19 11:04:28 +04:00
tom 58f80b5055 use dataUpdatedAt as a reference 2024-01-11 19:50:04 +04:00
tom 4b90c45a5a tooltip on stats page 2024-01-08 07:57:10 +04:00
tom 87bbfdd449 migration: next part 2023-12-20 14:09:33 +04:00
isstuev e983387c4e stats second fix 2023-12-14 12:53:10 +01:00
tom goriunovandGitHub c559061506 migrate to ReactQuery v5 (#1321)
* change signature of hooks

* isLoading -> isPending

* default error type

* dev tools props
2023-11-02 10:27:41 -03:00
tom goriunovandGitHub 3cfc6170cd Charts&Stats: add tooltips to number charts (#1192)
Fixes #1151
2023-09-19 11:21:26 -03:00
tom 2bdeccedaf skeletons for stats counters 2023-06-02 11:59:47 -03:00
tom dc5fb9142c skeletons for stats 2023-05-25 17:54:20 -03:00
tom 2b813d102e renaming 2023-05-08 15:47:14 -03:00
isstuev e90a7ecc57 global en locale 2023-04-12 10:16:26 -03:00
tom d324576c6b Merge branch 'main' of github.com:blockscout/frontend into charts-fixes 2023-02-28 11:33:20 -05:00
tom 85e1fe67cf remove number formatters 2023-02-24 11:54:14 -05:00
tom ad85fc18dc add units in tooltip 2023-02-23 15:27:55 -05:00
tom cc9cdf774e fixes for safari 2023-01-26 09:56:13 -06:00
Yuri Mikhin 4d0e0bceec Remove charts flickering. 2023-01-22 16:34:05 +03:00
Yuri Mikhin 1c0dfd1d11 Remake mobile layout for the stats page. 2023-01-22 16:34:04 +03:00
isstuev 948c086642 token type filter 2023-01-20 11:22:06 -06:00
Yuri MikhinandYuri Mikhin 78f12ca2a7 Remake charts API integration. 2023-01-18 12:45:44 +03:00
Yuri MikhinandYuri Mikhin 8d4f383ea8 Remake counters API integration. 2023-01-18 12:45:44 +03:00
Yuri MikhinandYuri Mikhin 4d980dc29f Add network error state for charts. 2023-01-13 12:48:56 +03:00
Yuri MikhinandYuri Mikhin 0e291dd850 Add grouping of values for charts at the long ranges. 2023-01-11 18:54:36 +03:00
Yuri MikhinandYuri Mikhin ceefa93ebb Add units to number widgets in the Stats. 2023-01-03 23:20:05 +03:00