Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Epic Seedless-onboarding #2534

Merged
merged 61 commits into from
Nov 9, 2023
Merged

Epic Seedless-onboarding #2534

merged 61 commits into from
Nov 9, 2023

Conversation

schmanu
Copy link
Member

@schmanu schmanu commented Sep 21, 2023

What it solves

Implements seedless onboarding via MPC Core SDK

Resolves #2452

How to test

  • Login with Google via Header
  • Continue with Google via Welcome page
  • Set password
  • Extract pk
  • Recover with password
  • Recover with password and remember

Screenshots

Checklist

  • I've tested the branch on mobile 📱
  • I've documented how it affects the analytics (if at all) 📊
  • I've written a unit/e2e test for it (if applicable) 🧑‍💻

@github-actions
Copy link

github-actions bot commented Sep 21, 2023

Branch preview

✅ Deploy successful!

https://web3authcoresdk--walletweb.review-wallet-web.5afe.dev

@github-actions
Copy link

github-actions bot commented Sep 21, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

Copy link
Member

@iamacook iamacook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please note: this is not a full review.

These are findings from reviewing #2559 that are out of scope there.

tickerName: chain.nativeCurrency.name,
}

const currentInstance = getStore()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getStore is not reactive. We should access useStore instead.

src/hooks/wallets/mpc/useMPC.ts Outdated Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented Oct 5, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

schmanu and others added 8 commits October 6, 2023 13:49
* feat: Implement account center redesign

* fix: Continue as button spacing

* fix: Failing e2e tests

* refactor: useConnectWallet hook, explicit onLogin handling

* fix: Failing test

* fix: Show social login in overview header

* fix: Move import data e2e test to global preference page
@github-actions
Copy link

github-actions bot commented Oct 17, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@github-actions
Copy link

github-actions bot commented Oct 17, 2023

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
75.08% (-0.07% 🔻)
10089/13438
🔴 Branches
49.6% (+0.15% 🔼)
2049/4131
🔴 Functions
57.53% (-0.35% 🔻)
1498/2604
🟡 Lines
76.65% (-0.19% 🔻)
9125/11905
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🔴
... / SocialLoginModule.ts
58.46% 30% 62.5% 57.89%
🟢
... / useMPC.ts
91.67% 92.31% 71.43% 93.02%
🔴
... / useSocialWallet.ts
45.45% 0% 0% 41.03%
🟡
... / SocialWalletService.ts
58.9% 46.15% 46.15% 60%
🟡
... / SecurityQuestionRecovery.ts
60% 0% 75% 60%
🟢
... / mpcWallet.ts
100% 100% 100% 100%
🔴
... / DeviceShareRecovery.ts
41.67% 0% 60% 41.67%
🟡
... / config.ts
63.16% 53.85% 50% 62.5%
🔴
... / PasswordRecoveryModal.tsx
32.14% 0% 0% 40.91%
🟢
... / PasswordRecovery.tsx
91.3% 100% 50% 95.24%
🟢
... / PasswordInput.tsx
80% 42.86% 33.33% 87.5%
🟢
... / index.tsx
80.3% 75% 60% 85%
🔴
... / wallets.ts
35.19% 0% 0% 44.19%
🟢
... / wallet.ts
100% 100% 100% 100%
🟢
... / eip1193Provider.ts
100% 100% 100% 100%
🟢
... / index.tsx
86.49% 77.78% 60% 90.63%
🟢
... / index.tsx
100% 30% 100% 100%
🟢
... / index.tsx
84.21% 16.67% 50% 87.5%
🟢
... / icon.ts
100% 100% 100% 100%
🟢
... / WalletLogin.tsx
100% 100% 100% 100%
🟢
... / index.tsx
100% 100% 100% 100%
🟢
... / index.tsx
100% 100% 100% 100%
🔴
... / index.tsx
49.35% 13.33% 9.09% 52.11%
🟡
... / index.tsx
55.56% 0% 0% 71.43%
🟢
... / index.tsx
80% 100% 0% 100%
🔴
... / index.tsx
44.78% 19.35% 27.27% 46.77%
🟢
... / AccountCenter.tsx
94.44% 100% 100% 100%
🟢
... / index.tsx
94.74% 66.67% 100% 100%
🟢
... / ConnectionCenter.tsx
85.19% 66.67% 40% 91.67%
🟡
... / ConnectWalletButton.tsx
77.78% 100% 50% 75%
🟢
... / WalletDetails.tsx
100% 100% 0% 100%
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟡
... / useConnectWallet.ts
66.67% (-10.26% 🔻)
0% (-100% 🔻)
50%
63.64% (-11.36% 🔻)
🟡
... / index.tsx
72.55% (-1.68% 🔻)
58.33% (-3.57% 🔻)
53.33%
73.2% (-1.8% 🔻)
🔴
... / index.tsx
58.23%
15% (-0.79% 🔻)
27.27% 58.11%
🟢
... / index.ts
100%
66.67% (-33.33% 🔻)
100% 100%

Test suite run success

1105 tests passing in 155 suites.

Report generated by 🧪jest coverage report action from 73c5c73

usame-algan and others added 4 commits October 18, 2023 09:21
* fix: Add social login feature toggle from config service

* fix: Failing tests

* fix: Address comments
* feat: Implement new form layout

* fix: Add password strength check, add cancel button

* fix: Use RHF isSubmitting flag, move validate logic into onChange

* fix: Update form dynamically when connecting/disconnecting, show notifications on success/error

* fix: Update password match when typing in a new password

* fix: Allow medium and strong passwords

* fix: reset form state, fix accordion expand

* fix: simplify validation, extract regex logic and test

* refactor: Extract isSocialLoginWallet

* fix: Failing test

* fix: Remove ts-ignore

* fix: Dont reset form fields on error
@github-actions
Copy link

github-actions bot commented Oct 23, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

* feat: Add password recovery modal design

* fix: Close modal on login

* fix: Extend disabled state, add progress bar

* fix: Close connection popover when password recovery opens

* fix: Move logic from useEffect into login handler

* refactor: Reuse PasswordInput
usame-algan and others added 4 commits November 2, 2023 17:00
* fix: Hide Security&Login from settings if not a social signer

* refactor: Remove Boolean expression

* fix: Add tooltip to info text on welcome page

* fix: Close popover when password recovery opens

* fix: Failing tests
* refactor: environment config for social wallet

* refactor: Use IS_PRODUCTION directly, adjust isSocialWalletOptions

* fix: Failing tests

* fix: Adjust error message

---------

Co-authored-by: Usame Algan <[email protected]>
* Fix: hide Social Login wallet button from onboard

* Watch onboard modal

* Move to useSocialWallet
src/config/constants.ts Outdated Show resolved Hide resolved
katspaugh
katspaugh previously approved these changes Nov 3, 2023
usame-algan and others added 3 commits November 6, 2023 15:49
* fix: Adjust connection center design

* refactor: Use currentColor for the icon
Side effect: The redirect URI is changed from /serviceworker/redirect to /redirect
* fix: Add feature flag for social login

* fix: Show simple Connect button in case feature is disabled

* fix: Remove redirects on the welcome page
usame-algan
usame-algan previously approved these changes Nov 8, 2023
* chore: update mpc-core-kit

* feat: set constant hashedFactorNonce
Copy link

github-actions bot commented Nov 9, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@schmanu schmanu merged commit 798e998 into dev Nov 9, 2023
13 checks passed
@schmanu schmanu deleted the web3authcoresdk branch November 9, 2023 15:06
@github-actions github-actions bot locked and limited conversation to collaborators Nov 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Epic: [Seedless-Onboarding]
5 participants