Commit Graph
47 Commits
Author SHA1 Message Date
tom goriunovandGitHub 96596264b9 Call the API logout endpoint when the user logs out (#2469)
* Call the API logout endpoint when the user logs out

* fix tests

* one more fix
2024-12-16 13:22:09 +01:00
tom goriunovandGitHub 7d7e7ba4df Migrate from web3modal to reown (#2321)
* migrate from `web3modal` to `reown`

Fixes #2316

* bump up package versions
2024-12-13 18:32:26 +01:00
tom goriunovandGitHub 8fab91b298 Bump up Node.js to v22 (#2410)
* Bump up Node.js to v22

Fixes #2404

* update Playwright to v1.49.0

* fix tests

* one more fix

* fix screenshots
2024-11-25 12:43:05 +01:00
tom 56ed34c852 migrate to eslint 9 and its flat config 2024-11-13 12:54:12 +01:00
de46df7d9e 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 goriunovandGitHub 32690afe56 Call contract read methods from the client (#2032)
* display methods accordion

* add method_id to methods

* query read method via public client

* query read methods without inputs at accordion section open

* add custom abi tabs

* add proxy tabs

* custom wagmi config if wc is not configured

* remove ContractAbiItemConstant component

* display tuple properties in method outputs

* display read result

* clean up

* support nested arrays in the read result

* re-write test for contract methods

* change result view for address output

* refactoring

* fix tests

* remove web3 provider fallback

* fix tab loading

* refactoring

* add implementation contract selector

* add "copy to clipboard" for address, remove top-level square brackets

* add preview mode to contract method result

* tests for read result

* fix tests

* change styles for result preview

* review fix
2024-06-24 19:56:06 +02:00
isstuev b14d326c75 Multi chain balance button 2024-05-26 16:14:04 +02:00
tom goriunovandGitHub c51dbd8177 Playwright tests refactoring, pt.5 (#1952)
* next part of test refactoring

* more refactoring

* more refactoring

* fixes and clean-up

* fixes

* build fixes

* more fixes
2024-05-25 15:41:32 +02:00
tom goriunovandGitHub 9ec01aa280 Update styles of form inputs (#1914)
* Update styles of form inputs

* update token info form

* update demo values

* fix preset for sepolia

* update screenshots
2024-05-15 17:37:02 +02:00
tom goriunovandGitHub 2d83230bc2 Design updates (#1767)
* update blob icon

* fix tags on token transfer

* update address tx filter styles

* page padding fixes

* update twitter icon

* updat screenshots

* fix test

* update back arrow color in the modals

* update solidityscan text

* update stats widget bg color
2024-04-08 17:07:01 +02:00
tom goriunovandGitHub 7dd2cafada update web3modal to v4 (#1731)
* update hooks and methods

* fix typescript

* options fix

* fix pw test build

* try to fix tests

* more pw test fixes

* update screenshots and fix address verification test
2024-03-25 08:41:20 +01:00
isstuev 508372b905 some fixes and tests 2024-02-12 20:18:08 +01:00
tom fcd92d35ea Merge branch 'main' of github.com:blockscout/frontend into tom2drum/issue-1414 2023-12-21 11:48:33 +04:00
tom 6a176e33c5 migration: next part 2023-12-20 14:09:33 +04:00
tom 6d3f4f7bfb update Web3Modal to v3
Fixes #1314
2023-12-18 10:20:56 +04:00
tom goriunovandGitHub a337b898bb More events for mixpanel analytics (#1160)
* color mode property for PageView and AccountAccess events

* account events

* contract events

* address events

* event for more button
2023-09-19 11:17:36 -03:00
tom f831484e24 update screenshots 2023-08-31 17:05:48 -03: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 88f3240a81 customize scroll bar in snippets (#1053)
* custom styles for scrollbar

* style scrollbar for search suggest on home page

* change overflow for search suggest

* fix error screen when API error payload is string

e.g. "Internal server error"

* add resizer img and styles for FF

* update screenshots

* update icon for dark theme
2023-08-07 15:39:24 -04:00
tom 259ea1994a fix typo 2023-07-20 09:39:18 -04:00
tom goriunovandGitHub 1906ae4c30 Eliminate underscores in URLs (#1007)
Fixes #988
2023-07-13 12:15:59 -04:00
tom 580b47ad85 update mobile screenshots 2023-06-29 17:05:08 -04:00
tom f8d6fccbfb reset form error when button is clicked again 2023-06-09 12:40:23 -04:00
tom c1ff72e03e update screenshots 2023-05-17 16:22:00 -03:00
tom 85013be28a call resources only if user is authenticated 2023-05-16 16:22:46 -03:00
tom 45b7fd5f27 add comment field and show application rejection reason 2023-04-25 15:14:59 -03:00
tom 7ccd7392d4 tests for account part 2023-04-18 18:56:35 -03:00
tom 8ccfe0dc7c text updates 2023-04-18 14:57:52 -03:00
tom bb2ccb3f2e Merge branch 'feat/verified-tokens' into token/verified-info 2023-04-14 13:23:24 -03:00
tom c71c92af6a hide add token in modal for non-token addresses 2023-04-13 15:50:03 -03:00
tom 8246c7db2c fix ts 2023-04-13 13:28:47 -03:00
tom ec33c983fc support link and login route 2023-04-13 12:39:00 -03:00
tom 5fcd289c45 handle add token info 2023-04-12 18:04:16 -03:00
tom 868b484e6c add callbacks to success screen 2023-04-12 12:16:07 -03:00
tom 02d30f4130 manage success and failed submit 2023-04-12 12:15:48 -03:00
tom 97428e9947 correct error texts 2023-04-10 16:05:37 -03:00
tom b90779a71a web3 modal and minor fixes 2023-04-05 14:00:48 -03:00
tom 3d8b29e12d copy to clipboard button 2023-04-05 14:00:48 -03:00
tom cdca1f5d02 happy path 2023-04-05 14:00:48 -03:00
tom d2acbca041 refactor second step 2023-04-05 14:00:48 -03:00
tom e31ea1e2b6 refactor form and check address on first step 2023-04-05 14:00:47 -03:00
tom e239f84670 signature validation 2023-04-05 14:00:47 -03:00
tom c49c106da8 ui changes 2023-04-05 14:00:47 -03:00
tom 49b05da4a4 submit form data 2023-04-05 14:00:47 -03:00
tom 856e4eafb9 web3 signature 2023-04-05 14:00:47 -03:00
tom f071f83bb9 form fields and steps 2023-04-05 14:00:47 -03:00