-
Notifications
You must be signed in to change notification settings - Fork 46
Update wallet list #872
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
Update wallet list #872
Conversation
|
📦 build.zip [updated at Dec 1, 9:09:33 PM UTC] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR implements a wallet list management feature that allows users to customize the order of their wallets through a drag-and-drop interface. The implementation introduces a persistent wallet ordering system that affects how wallets are displayed throughout the application.
Key changes:
- Added drag-and-drop wallet reordering functionality with an edit mode toggle
- Introduced a
walletsOrderpreference that persists wallet grouping and ordering - Refactored wallet list rendering to respect the custom order across multiple pages
Reviewed changes
Copilot reviewed 12 out of 14 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
src/ui/pages/WalletSelect/shared.ts |
New shared utility for merging saved wallet order with actual wallet data |
src/ui/pages/WalletSelect/WalletListEdit.tsx |
New component implementing drag-and-drop wallet reordering using @dnd-kit |
src/ui/pages/WalletSelect/WalletSelect.tsx |
Updated to support edit mode and pass walletsOrder to child components |
src/ui/pages/WalletSelect/WalletList.tsx |
Refactored to render wallets according to walletsOrder preference |
src/ui/pages/SendForm/fieldsets/AddressInput/AddressInput.tsx |
Updated address suggestions to respect wallet order |
src/ui/pages/RequestAccounts/RequestAccounts.tsx |
Updated to pass walletsOrder to WalletList |
src/ui/features/xp-drop/XpDropClaimFlow/XpDropClaim.tsx |
Updated to pass walletsOrder to WalletList |
src/ui/features/referral-program/Invite.tsx |
Updated to pass walletsOrder to WalletList |
src/shared/wallet/wallet-list.ts |
New utility defining wallet list data structures and helper functions |
src/background/Wallet/model/types.ts |
Added walletsOrder to PublicPreferences type |
src/background/Wallet/WalletRecord.ts |
Added DEFAULT_WALLET_LIST_GROUPS as default preference value |
src/ui/assets/drag.svg |
New drag handle icon for the reorder interface |
package.json & package-lock.json |
Added @dnd-kit dependencies for drag-and-drop functionality |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
cd58671 to
8493eac
Compare
No description provided.