109 Commits
Author SHA1 Message Date
tom goriunovandGitHub b9c24fea17 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 5c286d6517 migrate to eslint 9 and its flat config 2024-11-13 12:54:12 +01:00
94e289c068 Account v2 (#2262)
* simple profile button and auth modal layout

* connect email and code screens to API

* add screens to modal for wallet authentication

* migrate to pin input

* user profile menu

* refactor otp field

* fix passing set-cookie from api response

* add wallet info into profile menu

* add mobile menu

* show connected wallet address in button

* my profile page re-design

* custom behaviour of connect button on dapp page

* style pin input

* add logout

* handle case when account is disabled

* handle case when wc is disabled

* remove old components

* refactoring

* workflow to link wallet or email to account

* link wallet from profile

* show better OTP code errors

* add email alert on watchlist and verified addresses pages

* deprecate env and remove old code

* remove code for unverified email page

* add auth guard to address action items

* move useRedirectForInvalidAuthToken hook

* add mixpanel events

* refetch csrf token after login and fix connect wallet from contract page

* Add NEXT_PUBLIC_RE_CAPTCHA_V3_APP_SITE_KEY env

* migrate to reCAPTCHA v3

* resend code and change email from profile page

* better wallet sign-in message error

* fix demo envs

* update some screenshots

* profile button design fixes

* fix behaviour "connect wallet" button on contract page

* fix linking email and wallet to existing account

* bug fixes

* restore the login page

* update screenshots

* tests for auth modal and user profile

* add name field to profile page and write some tests

* [skip ci] clean up and more tests

* update texts

* change text once more

* fix verified email checkmark behaviour

* pass api error to the toast while signing in with wallet

* [skip ci] disable email field on profile page

* bug fixes

* update screenshot

* Blockscout account V2

Fixes #2029

* fix texts and button paddings

* Form fields refactoring (#2320)

* text and address fields for watchlist form

* checkbox field component

* refactor private tags form

* refactor api keys and custom abi

* refactor verifiy address and token info forms (pt. 1)

* refactor token info forms (pt. 2)

* refactor token info forms (pt. 3)

* refactor public tags form

* refactor contract verification form

* refactor contract audit form

* refactor auth, profile and csv export forms

* renaming and moving

* more refactoring and test fixes

---------

Co-authored-by: aagaev <[email protected]>
2024-10-30 12:56:57 +01:00
tom 42ac6c01bc [skip ci] proxy content-type header from API response to Next.js proxy response 2024-10-18 18:16:53 +02:00
tom goriunovandGitHub 3a0e318834 SolidityScan API response schema validation (#2190)
* add schema validation to solidity scan report resource

* report invalid API schema event to prometheus
2024-08-26 11:28:53 +02:00
tom goriunovandGitHub f73558157f SVG sprite page (#2056)
* create page with all icons from the sprite

* add info about file size

* refactoring
2024-07-01 11:25:28 +02:00
tom 813c6585f5 Add endpoint what will return the list of app ENVs
Fixes #1964
2024-06-03 13:59:59 +02:00
tom goriunovandGitHub 9babbc4b2f Enhance OG tags with API data (#1806)
* simple fetch data for token instance page

* generate enhanced metadata

* group query params in page props

* make base gSSP function generic

* add metric for search engine bots

* measure api request duration

* get API data for token, address and dapp pages

* improve typings for apiData prop

* add ENV variable

* tweak logs for /media-type requests

* [skip ci] add prefix to default metrics
2024-04-16 10:27:47 +02:00
tom goriunovandGitHub da8c180f2c Monitoring: social preview bots request counter (#1781)
* add counter metric and logger for bot request

* add script for grafana local instance

* add log endpoint

* add ENV to enable monitoring

* [skip ci] change metric labels and add telegram bot

* [skip ci] remove 404 from /metrics route
2024-04-04 12:49:21 +02:00
tom 448e846b10 add fallback for NFT animation media 2024-03-05 09:27:20 +04:00
tom goriunovandGitHub 7109d07563 NFT media is not displayed (#1340)
[skip ci] NFT media is not displayed

Fixes #1339
2023-11-14 12:27:41 -03:00
tom goriunovandGitHub e50e23d9d7 show "Read contract" tab even if WalletConnect is not configured (#1315)
Fixes #1313
2023-11-02 10:27:30 -03:00
tom 8e013c7960 [skip ci] move next.js api config to proxy route 2023-10-13 18:47:55 -03:00
tom goriunovandGitHub 0e1bb4aa6c bugfix: media is not shown for NFT (#1095)
* combine imageUrl and animationUrl prop for NftMedia

* add lazy load to NftMedia

* refactor image and video components

* add support for NFT HTML media

* move pw image mocks to separate folder

* tests

* fix loading state
2023-08-18 08:56:53 -04:00
tom goriunovandGitHub e5bb9b21af refactor page layout components (#1087)
* update csv export text

* fix pw tests

* base layout and customization for home page and search results page

* refactor rest of the pages

* refactor AppError

* move header padding to layout

* move nextjs utils to separate folder

* combine PageServer and Page

* make useQueryClientConfig hook

* add tests

* remove unused var

* fix envs for pw

* fix pw tests
2023-08-15 19:28:00 -04:00
tom goriunovandGitHub f644f2a96e app feature list (#1079)
* metadata helpers and values for txs pages

* update titles to the rest of the pages

* refactor getServerSideProps

* dynamically update metadata for token and dapp page

* test

* 404 error page

* make new config

* make use of new config, delete old one

* feature reporter: dev implementation

* feature reporter: docker integration

* resctructure ENVS.md

* sentry feature

* refinements

* add spaces between sections

* tweaks

* switch to camelCase

* clean up

* remove NEXT_PUBLIC_NETWORK_TOKEN_ADDRESS

* v
2023-08-09 15:39:36 -04:00
tom goriunovandGitHub cb2da9782d support 429 "Too many requests" API error (#1004)
* get client key on 429 error

* set key to cookie and pass it in query params

* move csrf-token header to useApiFetch

* pin host for preview

* actual layout

* support new changes in API

* proxy headers from API

* add header to request

* remove next.js proxy flag

* fix ts

* refactor

* add tests
2023-08-02 19:45:06 -04:00
Nick Zenchik f2c4899c4a Adding primitive health-check 2023-06-05 23:57:47 +03:00
tom 90c6fcc331 fetch media type via node.js 2023-03-02 17:47:56 -05:00
tom f53c949f22 fix csrf request 2022-12-30 10:31:05 +03:00
tom 22b0ae8ba1 refactoring and clean up 2022-12-29 11:30:24 +03:00
tom 4d284138c5 add prefix to proxy path 2022-12-26 16:36:28 +03:00
tom 68a98b3627 final part 2022-12-25 12:09:07 +03:00
tom 1af06b91e0 Merge branch 'main' of github.com:blockscout/frontend into client-api-calls 2022-12-24 13:28:14 +04:00
Igor StuevandGitHub 7763774c6c Merge pull request #411 from blockscout/indexing-status
indexing status
2022-12-21 14:26:22 +03:00
tom cf76b6b265 rollback csrf 2022-12-20 15:07:37 +03:00
tom 8ea2bf43cf stats api 2022-12-20 12:52:47 +03:00
tom c8d702315d Merge branch 'main' of github.com:blockscout/frontend into client-api-calls 2022-12-20 12:16:34 +03:00
tom 9d51f86702 delete node api endpoint 2022-12-20 11:57:00 +03:00
tom 70e44120c1 api keys resource 2022-12-20 11:50:24 +03:00
isstuev 139a4de655 api path fix 2022-12-20 11:42:50 +03:00
tom d8ad7d612b first two resources and hook 2022-12-19 13:23:54 +03:00
tom ddc541a7dc make proxy for localhost 2022-12-19 11:16:26 +03:00
isstuev 2adb78dcf4 indexing alert 2022-12-16 13:13:48 +03:00
isstuev 0c8fe000da address-internal-txs 2022-12-16 12:47:05 +03:00
tom dad3dbe42c Merge branch 'address-coin-balance' of github.com:blockscout/frontend into address-blocks-validated 2022-12-13 19:08:57 +03:00
tom bdd41a0fa7 Merge branch 'main' of github.com:blockscout/frontend into address-coin-balance 2022-12-13 19:05:29 +03:00
tom 10b5767eac desktop view 2022-12-13 13:24:21 +03:00
tom 428a463ac1 Merge branch 'main' of github.com:blockscout/frontend into address-coin-balance 2022-12-13 11:16:42 +03:00
isstuev fbaf367cc6 onfilterchange 2022-12-12 23:28:24 +03:00
isstuev 845c13bd15 address txs tab 2022-12-12 17:35:34 +03:00
Yuri MikhinandYuri Mikhin 67c4ca6160 Improve stats charts. 2022-12-12 12:58:45 +03:00
tom c88352cd7b desktop view 2022-12-12 11:47:31 +03:00
Yuri MikhinandYuri Mikhin e59d7cd450 Remove precision from charts. 2022-12-09 15:52:21 +03:00
Yuri MikhinandYuri Mikhin 86b97f55ac Add backend integration for stats charts. 2022-12-09 15:52:21 +03:00
Yuri MikhinandYuri Mikhin 2165e6c8b9 Move home stats data fetching to /node-api/home-stats route. 2022-12-09 15:52:21 +03:00
tom 82a8143a29 add token balances 2022-11-30 13:07:53 +03:00
tom 124b3b9662 address counters 2022-11-30 12:11:56 +03:00
tom 1588e71768 address page setup 2022-11-30 11:38:53 +03:00
tom e5818a0bba network utilization and clean up 2022-11-24 11:35:02 +04:00