-
Notifications
You must be signed in to change notification settings - Fork 383
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
OK-36500, OK-36508, OK-36075: Improve device filtering in Device Management & Revert QR wallet reset logic & BTC connect issue #6871
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
WalkthroughThe changes simplify the QR wallet creation process by removing an extra device lookup. The removed method previously checked for existing QR wallets and their associated devices. Now, the system directly queries devices by their ID. Additionally, a new optional parameter, Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant QRWalletCreator
participant LocalDbBase
participant DeviceQuery
User->>QRWalletCreator: Initiate QR wallet creation
QRWalletCreator->>LocalDbBase: Call createQrWallet(rawDeviceId, …)
LocalDbBase->>DeviceQuery: getDeviceByQuery(rawDeviceId)
DeviceQuery-->>LocalDbBase: Return device info
LocalDbBase-->>QRWalletCreator: Return device info
QRWalletCreator->>User: Wallet creation proceeds with retrieved device
sequenceDiagram
participant Client
participant ServiceAccount
participant WalletStore
Client->>ServiceAccount: getAllHwQrWalletWithDevice(skipDuplicateDevice: true)
ServiceAccount->>WalletStore: Fetch hardware and QR wallets
Note right of ServiceAccount: Build deviceToHwWalletMap to filter duplicates
ServiceAccount-->>Client: Return filtered wallet list
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (2)
🪧 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 (
|
2dee648
Summary by CodeRabbit
New Features
Bug Fixes