Closed StephenHeaps closed 10 months ago
we probably want to add the ability to configure the space value and how they lie on each other(.zIndex
) for MultipleCircleIconView
also the design for MultipleCircleIconView
when icons are more than maxIcons
is actually the +x
instead of ...
as in multiple network icons.
vs
and we probably want to give a background color for AssetIconView
since some icon image has transparent background
for example below shows the Raydium
icon has transparent background
we probably want to add the ability to configure the space value and how they lie on each other(
.zIndex
) forMultipleCircleIconView
also the design forMultipleCircleIconView
when icons are more thanmaxIcons
is actually the+x
instead of...
as in multiple network icons.
Discussed offline; these tokens are sorted by balance so we chose to keep z-index order so largest balance remains on top. Investigated the +x
, but no perfect solution with larger numbers and the +
would likely overlapped without larger spacing increase between icons.
and we probably want to give a background color for
AssetIconView
since some icon image has transparent background for example below shows theRaydium
icon has transparent background
Good idea. Updated so we have a circular background instead of just a circular stroke 👍. https://github.com/brave/brave-ios/pull/8659/commits/0b43005cccc5b064e88293e1bd07b9be3b44a117
[puLL-Merge] - brave/brave-ios@8659
This pull request introduces improvements to the Brave iOS Wallet by restructuring the user interface for the accounts view and by decoupling the UI layer from the storage/ state management. The motivation behind these changes is to improve code maintainability, simplify state management, and enhance the user experience by adopting modern SwiftUI patterns.
AccountsView.swift: handle
function
Changes include user-triggered actions that might lead to data exposure if not handled correctly (e.g., account export). It is important to ensure that actions such as exporting private keys are securely verified and that any sensitive data is protected.
AccountsStore.swift: updateBalancesAndPrices
function
The async operation fetches balances and prices, which could be a potential vector for race conditions or data inconsistency if not correctly synchronized.
MainMenuView.swift: Button actions for backup and add accounts
Backup operations should always require user authentication, and no sensitive data should be displayed without sufficient protection.
CryptoStore.swift: accountsStore
state management
Ensure that any shared data between stores does not lead to unauthorized access or state mutations across different views or components.
Summary of Changes
...
button....
context menu...
menu. Add account available in...
menu on Accounts tab only.This pull request fixes #8600
Submitter Checklist:
NSLocalizableString()
Test Plan:
...
->View Details
should open account assets / transactions view...
->Edit
should open modal for the account to edit the account's name...
->Export
should open private key flow for the account...
menu in navigation bar)...
menu in navigation bar while on Accounts tab)Screenshots:
Reviewer Checklist:
QA/(Yes|No)
bug
/enhancement