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

Update info page to include stake activities, Recent tx and mixer running. #247

Merged
merged 8 commits into from
Nov 23, 2023

Conversation

Sirmorrison
Copy link
Collaborator

@Sirmorrison Sirmorrison commented Nov 13, 2023

Fix #210

image image

@Sirmorrison Sirmorrison marked this pull request as ready for review November 15, 2023 10:44
@JustinBeBoy
Copy link
Collaborator

  1. Update layout progress bar like figma.

image

  1. remove "backup now" button if the wallet is watch-only or backed up

image

  1. Update balance like figma

your PR
image

figma
image

@dreacot please update text when clicked info button on mixer section

ui/page/components/mixer_layout.go Show resolved Hide resolved
ui/page/components/mixer_layout.go Outdated Show resolved Hide resolved
ui/page/components/mixer_layout.go Outdated Show resolved Hide resolved
ui/page/components/mixer_layout.go Outdated Show resolved Hide resolved
ui/page/components/mixer_layout.go Outdated Show resolved Hide resolved
ui/page/components/mixer_layout.go Show resolved Hide resolved
ui/page/info/info_page.go Show resolved Hide resolved
ui/page/info/info_page.go Show resolved Hide resolved
@JustinBeBoy
Copy link
Collaborator

LGTM

Please align to the right margin
image

@Sirmorrison
Copy link
Collaborator Author

LGTM

Please align to the right margin image

resolved

Copy link
Collaborator

@JustinBeBoy JustinBeBoy left a comment

Choose a reason for hiding this comment

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

app Crash when switching between info and other tabs

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x58 pc=0x1883540]

goroutine 58 [running]:
github.com/crypto-power/cryptopower/ui/page/send.(*Page).initializeAccountSelectors.func3(0xc00a5d9600?)
        D:/Works/Decred/cryptopower/ui/page/send/page.go:214 +0x80
github.com/crypto-power/cryptopower/ui/page/components.(*WalletAndAccountSelector).SelectFirstValidAccount(0xc00466e600, 0x25235a0?)
        D:/Works/Decred/cryptopower/ui/page/components/wallet_account_selector.go:129 +0xbd
github.com/crypto-power/cryptopower/ui/page/send.(*Page).OnNavigatedTo(0xc008c42000)
        D:/Works/Decred/cryptopower/ui/page/send/page.go:268 +0x97
github.com/crypto-power/cryptopower/app.(*PageStack).Push(0xc003f27200, {0x251cf60, 0xc008c42000}, {0x2520890, 0xc00afda890})   
        D:/Works/Decred/cryptopower/app/pagestack.go:67 +0x4f0
github.com/crypto-power/cryptopower/app.(*MasterPage).Display(0xc00afda890, {0x251cf60?, 0xc008c42000?})
        D:/Works/Decred/cryptopower/app/masterpage.go:46 +0x33
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).HandleUserInteractions.func1({0x251cf60, 0xc008c42000})
        D:/Works/Decred/cryptopower/ui/page/root/main_page.go:264 +0x45
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).HandleUserInteractions(0xc00325a240)
        D:/Works/Decred/cryptopower/ui/page/root/main_page.go:295 +0x416
github.com/crypto-power/cryptopower/ui/page/root.(*HomePage).HandleUserInteractions(0xc000229680)
        D:/Works/Decred/cryptopower/ui/page/root/home_page.go:195 +0x56
github.com/crypto-power/cryptopower/ui.(*Window).handleFrameEvent(0xc003cf06c0, {{0xc14fa20eeffada8c, 0x119053563d, 0x3243fa0}, 
{0x3f800000, 0x3f800000}, {0x320, 0x28a}, {0x0, 0x0, ...}, ...})
        D:/Works/Decred/cryptopower/ui/window.go:227 +0x147
github.com/crypto-power/cryptopower/ui.(*Window).HandleEvents(0xc003cf06c0)
        D:/Works/Decred/cryptopower/ui/window.go:200 +0x236
main.main.func3()
        D:/Works/Decred/cryptopower/main.go:109 +0x17
created by main.main in goroutine 1
        D:/Works/Decred/cryptopower/main.go:107 +0x4e9
exit status 2

ui/page/info/info_page.go Outdated Show resolved Hide resolved
ui/page/info/info_page.go Outdated Show resolved Hide resolved
@dreacot
Copy link
Member

dreacot commented Nov 22, 2023

the recent transaction and staking activity margins are not consistent with what we have on figma

Screenshot from 2023-11-22 12-34-03

Screenshot from 2023-11-22 12-35-26

@Sirmorrison
Copy link
Collaborator Author

Sirmorrison commented Nov 23, 2023

the recent transaction and staking activity margins are not consistent with what we have on figma

Screenshot from 2023-11-22 12-34-03

Screenshot from 2023-11-22 12-35-26

The reason it does not look like figma is because we are already in a selected wallet screen. Figma assumes that we are displaying txs from multi wallets.

I have however adopted the design on figma.
image

@Sirmorrison
Copy link
Collaborator Author

Sirmorrison commented Nov 23, 2023

app Crash when switching between info and other tabs

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x58 pc=0x1883540]

goroutine 58 [running]:
github.com/crypto-power/cryptopower/ui/page/send.(*Page).initializeAccountSelectors.func3(0xc00a5d9600?)
        D:/Works/Decred/cryptopower/ui/page/send/page.go:214 +0x80
github.com/crypto-power/cryptopower/ui/page/components.(*WalletAndAccountSelector).SelectFirstValidAccount(0xc00466e600, 0x25235a0?)
        D:/Works/Decred/cryptopower/ui/page/components/wallet_account_selector.go:129 +0xbd
github.com/crypto-power/cryptopower/ui/page/send.(*Page).OnNavigatedTo(0xc008c42000)
        D:/Works/Decred/cryptopower/ui/page/send/page.go:268 +0x97
github.com/crypto-power/cryptopower/app.(*PageStack).Push(0xc003f27200, {0x251cf60, 0xc008c42000}, {0x2520890, 0xc00afda890})   
        D:/Works/Decred/cryptopower/app/pagestack.go:67 +0x4f0
github.com/crypto-power/cryptopower/app.(*MasterPage).Display(0xc00afda890, {0x251cf60?, 0xc008c42000?})
        D:/Works/Decred/cryptopower/app/masterpage.go:46 +0x33
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).HandleUserInteractions.func1({0x251cf60, 0xc008c42000})
        D:/Works/Decred/cryptopower/ui/page/root/main_page.go:264 +0x45
github.com/crypto-power/cryptopower/ui/page/root.(*MainPage).HandleUserInteractions(0xc00325a240)
        D:/Works/Decred/cryptopower/ui/page/root/main_page.go:295 +0x416
github.com/crypto-power/cryptopower/ui/page/root.(*HomePage).HandleUserInteractions(0xc000229680)
        D:/Works/Decred/cryptopower/ui/page/root/home_page.go:195 +0x56
github.com/crypto-power/cryptopower/ui.(*Window).handleFrameEvent(0xc003cf06c0, {{0xc14fa20eeffada8c, 0x119053563d, 0x3243fa0}, 
{0x3f800000, 0x3f800000}, {0x320, 0x28a}, {0x0, 0x0, ...}, ...})
        D:/Works/Decred/cryptopower/ui/window.go:227 +0x147
github.com/crypto-power/cryptopower/ui.(*Window).HandleEvents(0xc003cf06c0)
        D:/Works/Decred/cryptopower/ui/window.go:200 +0x236
main.main.func3()
        D:/Works/Decred/cryptopower/main.go:109 +0x17
created by main.main in goroutine 1
        D:/Works/Decred/cryptopower/main.go:107 +0x4e9
exit status 2

This bug is reproducible in master, and its caused by navigating to the send page or pages using the wallet selector with a watch-only wallet. I will open an issue for it.
Related issue :#264

@JustinBeBoy
Copy link
Collaborator

LGTM

@dreacot
Copy link
Member

dreacot commented Nov 23, 2023

the recent transaction and staking activity margins are not consistent with what we have on figma
Screenshot from 2023-11-22 12-34-03
Screenshot from 2023-11-22 12-35-26

The reason it does not look like figma is because we are already in a selected wallet screen. Figma assumes that we are displaying txs from multi wallets.

I have however adopted the design on figma. image

Your previous implementation is correct as figma made the mistake of assuming multiple wallets. Please revert

What i pointed out in my original comment was margin issues, and not the content of the tx rows.

The bottom Margin after recent transactions is more that what's on figma

The left right margins are also more than what we have on figma

The divider line starta more left that the figma design

@dreacot dreacot merged commit cc62a2f into crypto-power:master Nov 23, 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.

update the wallet info page
3 participants