64 Commits
Author SHA1 Message Date
tom 8f385e5afa pin version of monaco-editor and pass it to the loader 2026-03-02 20:01:13 +02:00
tom goriunovandGitHub 5d337fc555 Migrate from Jest to Vitest (#3173)
* first part of transition

* second part of transition

* remove jest

* bump up node version and playwright version

* update all screenshots because of the new playwright version

* fix tests

* one more screenshot update
2025-12-10 19:21:07 +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 1023dccf43 add ContentLoader to toolkit 2025-10-20 12:04:47 +02:00
tom goriunovandGitHub 16eec7ea54 Bump up Next.js, typescript and other packages (#2988)
bump up Next.js, typescript and other packages
2025-08-29 15:39:53 +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 f04c953583 Support geas smart contract language 🪿 (#2848)
* Support for `geas` smart contract language 🪿

Fixes #2818

* support fallback method with inputs and outputs

* fix data that is passed to fallback method

* add "pragma" and "define" to builtins

* add "inputs" and "outputs" to the fallback method for all contracts ABI
2025-08-15 13:22:21 +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 242c57f080 fix input group paddings calculation 2025-02-26 20:06:15 +01:00
tom 02c634645e Merge branch 'main' of github.com:blockscout/frontend into chakra-v3 2025-02-18 15:05:52 +01:00
tom e61cd21279 fix offsets of grouped inputs 2025-02-14 20:45:03 +01:00
tom 2df3a861a2 contract details tab 2025-02-13 20:30:38 +01:00
tom goriunovandGitHub 31ee9fafe9 Contract source code: the code for the empty contract is not displaye… (#2569)
Contract source code: the code for the empty contract is not displayed because of a JS crash

Fixes #2568
2025-02-11 10:21:41 +01:00
tom goriunovandGitHub d29849184d Replace lodash with es-toolkit (#2503)
* first part of migration

* second part of migration

* bump up es-toolkit version

* bump up `es-toolkit` version and remove `lodash` completely

* update screenshot
2025-01-14 12:30:05 +01:00
tom a5747cfee9 add icons for stylus contract files 2024-12-23 15:37:28 +01:00
tom goriunovandGitHub 7187fc80e6 Support verification of Stylus contracts (#2450)
* add Arbitrum Sepolia dev preset

* base form layout

* add validation for repo url and commit hash

* improve global error text

* show stylus contract info

* add test for contract verification form

* hide "open in IDE" for stylus contracts

* [skip ci] adjust validation rules for GitHub URL

* change contract info items order

* fix error text styles
2024-12-11 13:17:23 +01:00
tom goriunovandGitHub b4ac73d639 Contract page improvements (#2419)
* display address selector for non-verified proxy contract

* add code view snippet for ABI and Compiler Settings

* syntax highlighting for Scilla contracts

* ENV preset for zilliqa

* fix tests

* add native coin value to simulate method call

* fix test
2024-11-25 16:04:09 +01:00
tom 125c4880de migrate to eslint 9 and its flat config 2024-11-13 12:54:12 +01:00
tom goriunovandGitHub d67afde550 Fix highlighting for main contract code (#2333)
Fixes #2331
2024-11-04 09:31:46 +01:00
tom 2f3b24c1c9 highlight code of the main contract
Fixes #1676
2024-03-07 18:46:33 +04:00
tom efa9b6401c monaco icons 2023-12-21 11:45:10 +04:00
tom 2b028b029a last part of migratin and eslint rule 2023-12-20 14:40:52 +04:00
tom goriunovandGitHub 4114aa699b hotfix: display error inside snippet if code editor crashes (#1364) 2023-11-21 13:01:49 +04:00
tom 8a426dfa05 fix contract editor resize if there is only one source file 2023-11-09 11:35:48 -03:00
tom goriunovandGitHub aabd8c4bd0 contract source code: warnings (#981)
* add decoration for external library warning

* add decoration for same name warning

* formatted tooltip text

* show source code even if contract is not verified

* add support for remappings context in file import resolution

* library warning decoration styles

* external libraries popover

* disable contract name warning for a while

* add tab to contract page link

* change api host for preview

* add main file indicator

* change button styles and update screenshots

* change isNeedProxy for passing pw tests

* rollback review env changes
2023-07-10 15:08:51 -04:00
tom 3dc46f49e6 fix navigation between files in the same directory 2023-06-20 15:46:33 -04:00
tom ead82ab5ff fix search sidebar layout 2023-06-20 15:23:52 -04:00
tom de11318873 add icon for vyper contracts 2023-06-20 15:06:33 -04:00
tom 8405b415a3 change editor language for vyper contracts 2023-06-16 10:38:01 -04:00
tom 5bce11c061 refactor type utils 2023-04-17 15:54:39 -03:00
tom 69575cb424 handle aliased imports 2023-04-07 16:37:13 -03:00
tom 3b1a30d54c highlight absolute imports 2023-04-07 16:13:06 -03:00
tom f8ac0b68ae named imports highlight 2023-04-07 15:36:40 -03:00
tom 1b334ac50a fix import regexp 2023-03-31 18:07:13 -03:00
tom 2a22d4399d hotkeys for code editor 2023-03-27 17:58:06 -03:00
tom eacef5ba84 meta key for go to file 2023-03-22 17:58:19 -03:00
tom eca0f1eed3 fix command pallete item hover bg 2023-03-22 16:30:38 -03:00
tom 5089082b60 go to file 2023-03-22 16:24:44 -03:00
tom cafc370a6e fix tests 2023-03-22 13:59:38 -03:00
tom 2d63ab7587 temporary solution for match highlighting in editor 2023-03-22 11:11:32 -03:00
tom 9d15ae35bb improve sidebar action button 2023-03-22 11:11:32 -03:00
tom eba902ad36 mobile view 2023-03-22 11:11:32 -03:00
tom be35d1ab5e loading screen 2023-03-22 11:11:32 -03:00
tom 5929c3eb5b fix resize issues 2023-03-22 11:11:32 -03:00
tom d5f2f3193c editor for one file and color fixes 2023-03-22 11:11:32 -03:00
tom 492ab4d2a4 replace AccrodionIcon 2023-03-22 11:11:32 -03:00
tom 94604ff38f use theme colors in custom components 2023-03-22 11:11:31 -03:00
tom e704536f86 don't load model if it has already been loaded 2023-03-22 11:11:31 -03:00
tom acbbae6a0a total search result num 2023-03-22 11:11:31 -03:00
tom 74f1e41680 search settings 2023-03-22 11:11:31 -03:00