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

Implement total USD asset balance #131

Merged
merged 3 commits into from
Oct 2, 2023
Merged

Conversation

Sirmorrison
Copy link
Collaborator

Fix #77

@ukane-philemon
Copy link
Collaborator

Did a little test and noticed:

  1. The assets card does not update the dollar val display when the rate source is disabled from the settings page but it does when it's enabled.
  2. I think this is the PR that should remove the little toggle at the top as per the discussion on matrix.

@dreacot
Copy link
Member

dreacot commented Sep 29, 2023

please resolve branch conflicts

@dreacot
Copy link
Member

dreacot commented Sep 29, 2023

on testing the functionality i noticed there might have been a miscommunication with the way this should work, the total USD Balance, works with the Fetch Exchange Rate settings, the toggle might have been confusing

I think this is the PR that should remove the little toggle at the top as per the discussion on matrix.

@ukane-philemon is right, remove the toggle, if rate fetching is enabled from the settings page, then it's enabled everywhere including the total usd balance, if it's disabled in settings, then it's disabled everywhere

also the text should change to "Total USD value"

Screenshot from 2023-09-29 10-36-05

Also please update the info text to say that this feature can be enabled or disabled from the app settings
Screenshot from 2023-09-29 10-40-18

ui/cryptomaterial/image.go Outdated Show resolved Hide resolved
Copy link
Member

@dreacot dreacot left a comment

Choose a reason for hiding this comment

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

Looks good overall!

hiding my balance doesn't persist when i close and reopen the app

Screenshot from 2023-10-02 10-34-47

Comment on lines 255 to 266
// IsTotalAssetBalanceOn checks if the total usd balance is set.
func (mgr *AssetsManager) IsTotalAssetBalanceOn() bool {
var data bool
mgr.db.ReadWalletConfigValue(sharedW.TotalUSDBalanceConfigKey, &data)
return data
}

// SetTransactionsNotifications sets the transaction notifications for the wallet.
func (mgr *AssetsManager) SetTotalAssetBalanceState(data bool) {
mgr.db.SaveWalletConfigValue(sharedW.TotalUSDBalanceConfigKey, data)
}

Copy link
Member

Choose a reason for hiding this comment

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

i don't think these are used anymore

@dreacot dreacot merged commit b6cf5c4 into crypto-power:master Oct 2, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

implement total usd value for all assets combined
3 participants