[TASK-6450] add register/login functions in setup flow & home page#501
[TASK-6450] add register/login functions in setup flow & home page#501nezz0746 merged 14 commits intopeanut-walletfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (5)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
3b87a79 to
f0a0549
Compare
panosfilianos
left a comment
There was a problem hiding this comment.
Overall great PR. Very partial about the walletContext.ts but I think it's a major improvement. Let's get these things answered and let's merge.
| } | ||
| } | ||
| const handleCardClick = (index: number) => { | ||
| setSelectedWallet(wallets[index]) |
There was a problem hiding this comment.
issue (non-blocking): we need to add logic around this selection for BYOW (eg. the provider is not connected to the right wallet)
There was a problem hiding this comment.
for connection status, kernelClient (PW) & wagmi context (BYOB) hold the source of truth so shouldn't mater when doing this selection. You can select a non connected wallet.
| id: number; | ||
| } | ||
|
|
||
| interface ToastContextType { |
There was a problem hiding this comment.
thought: ideally these would go to a .consts file
There was a problem hiding this comment.
Tbh If it's not a large amount of code, I usually keep non exported types & interfaces in the file they're used, keeps branching & reading easier. But will not die on that hill.
| /** | ||
| * TEMPORARY: This is a temporary storage solution for storing passkeys locally to move forward with UI development. | ||
| */ | ||
| export class PasskeyStorage { |
There was a problem hiding this comment.
question: do we expect to delete this file?
There was a problem hiding this comment.
Hopefully, once we replaced it with backend accounts
There was a problem hiding this comment.
question: it seems like we should delete this file. Am I missing something?
There was a problem hiding this comment.
Was trying go straight to feature here, updated what was needed. But kept as is in case you wanted to use.
| }) | ||
| } | ||
|
|
||
| const businessLogic = async () => { |
There was a problem hiding this comment.
thought: this should probably be renamed
| setupWalletsAfterLogin() | ||
| } | ||
| }, [kernelClientAddress, isKernelClientReady]) | ||
|
|
There was a problem hiding this comment.
note: my upcoming PR will introduce similar functionality
| // - wagmi not connected | ||
| // - wagmi connected to wrong wallet | ||
| // throws WalletError in case of error which is an 'undefined' return | ||
| const checkActivateWallet = async (wallet: interfaces.IWallet): Promise<interfaces.IWallet | undefined> => { |
There was a problem hiding this comment.
issue (non-blocking): this is the functionality we need for BYOWs. wdyt?
There was a problem hiding this comment.
I think here you couldn't select as active if it wasn't connected. I've unlocked this possibility & let users select the wallet they want, and sign in in a second time.
Changes