35 Commits
Author SHA1 Message Date
tom goriunovandGitHub 401dc58402 Smart wallet auth (#3220)
* basic login button implementation

* refactoring and add dynamic auth button to the other pages

* connect wallet without authenticating an user

* login and logout user in blockscout account

* refactoring and RPC overrides

* authenticate user with connected wallet

* add ENS to profile button

* override evm chains and fix contract write with waas wallet

* disconnect wallet and fix docker build

* add dynamic imports to components that use web3 wallet packages

* refactor user profile directory

* clean up

* tweaks

* update pw ci script

* fix "connect wallet" button behavior

* handle linking email to profile with dynamic provider

* fix test

* async loading web3 hooks and remove dynamic loading from components that use them

* fix pw tests

* add account navigation in horizontal layout when auth provider is dynamic

* fix address verification modal

* review fixes

* spelling fixes
2026-02-18 19:42:44 +01:00
enochleeandGitHub 2d6c5b3773 Added "rel=noopener-noreferrer" attribute for links to external pages (#3039)
* added rel="noopener noreferrer" to link elements using external and noIcon prop

* fix: resolve asChild and external prop conflicts in Link components

* Revert "fix: resolve asChild and external prop conflicts in Link components"

This reverts commit e99580049946b487ce4dc77e7cdab2cd17e5c820.

* fix: remove asChild prop conflicts with external links
2025-10-07 18:03:34 +02:00
Igor StuevandGitHub c4a65d3b0c update docs links (#2992) 2025-09-01 13:46:17 +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 goriunovandGitHub 7648d05541 Auth: Switch the chain before signing the message when the user logs in with their wallet (#2673)
Fixes #2345
2025-04-15 15:23:57 +02:00
tom ffce962477 more test fixes 2025-03-27 20:42:21 +01:00
tom 31c83b0a89 update styles for progress circle, pagination, dialog and file upload 2025-03-26 14:22:02 +01:00
tom 4b7a930af9 fix some tests 2025-03-26 12:52:10 +01:00
tom 8fa65829c2 fix ts 2025-03-24 20:55:19 +01:00
tom 46a00cedbb fix more ts errors 2025-03-11 16:18:03 +01:00
tom 0fdae008d5 verified addresses modal 2025-02-24 19:58:43 +01:00
tom 0032590eb0 watchlist page refactoring 2025-02-07 19:57:18 +01:00
tom goriunovandGitHub 184406a89c 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 125c4880de migrate to eslint 9 and its flat config 2024-11-13 12:54:12 +01:00
48b39022d3 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 f3fc9f9277 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 2e23e95715 some fixes and tests 2024-02-12 20:18:08 +01:00
tom 951d8d6adb update Web3Modal to v3
Fixes #1314
2023-12-18 10:20:56 +04:00
tom goriunovandGitHub 79f7ee655c 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 goriunovandGitHub e3551038af 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 c8aa2bde33 fix typo 2023-07-20 09:39:18 -04:00
tom f8d6fccbfb reset form error when button is clicked again 2023-06-09 12:40:23 -04: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 ec33c983fc support link and login route 2023-04-13 12:39:00 -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 c49c106da8 ui changes 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