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

Format transactions row and details #582

Merged
merged 12 commits into from Aug 30, 2021

Conversation

beansgum
Copy link
Contributor

@beansgum beansgum commented Aug 26, 2021

Closes #561

  • Fix minus sign not showing on some sent transactions

  • Fix transferred transactions showing as sent

  • Add mixed transaction filter to dropdown selector

  • Format mixed transaction details

  • Format stake transaction row

  • Format vote transaction details

@beansgum beansgum marked this pull request as draft August 26, 2021 07:36
@beansgum beansgum marked this pull request as ready for review August 26, 2021 13:56
Copy link
Contributor

@Sirmorrison Sirmorrison left a comment

Choose a reason for hiding this comment

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

image

The ticket type/direction should not be on the tx list page the Icon is enough. It should be on the Tx details page.

AboutIcon, DebugIcon, VerifyMessageIcon, LocationPinIcon, AlertGray, ArrowDownIcon,
WatchOnlyWalletIcon, CurrencySwapIcon, SyncingIcon, ProposalIconActive, ProposalIconInactive,
Restore, DocumentationIcon, DownloadIcon, TimerIcon, TicketIcon, TicketIconInactive, StakeyIcon,
List, ListGridIcon, DecredSymbolIcon *widget.Image
List, ListGridIcon, DecredSymbolIcon, DecredSymbol2 *widget.Image
Copy link
Contributor

Choose a reason for hiding this comment

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

Rename DecredSymbol2 to DecredSymbolIconTwo

ImportedAccountIcon, AccountIcon, EditIcon, expandIcon, CopyIcon, mixer, MixerSmall,
ArrowForwardIcon, TransactionFingerPrintIcon, SettingsIcon, SecurityIcon, HelpIcon,
ImportedAccountIcon, AccountIcon, EditIcon, expandIcon, CopyIcon, MixedTx, mixer, MixerSmall,
ArrowForwardIcon, Next, TransactionFingerPrintIcon, SettingsIcon, SecurityIcon, HelpIcon,
Copy link
Contributor

Choose a reason for hiding this comment

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

Next to NextIcon

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's redundant to have Icon in the variable since the struct name already contains that.

@@ -40,14 +40,14 @@ type Icons struct {
ImageBrightness1, ContentClear, DropDownIcon, Cached, ContentRemove *widget.Icon

OverviewIcon, OverviewIconInactive, WalletIcon, WalletIconInactive,
ReceiveIcon, TransactionIcon, TransactionIconInactive, SendIcon, MoreIcon, MoreIconInactive,
ReceiveIcon, Transferred, TransactionIcon, TransactionIconInactive, SendIcon, MoreIcon, MoreIconInactive,
Copy link
Contributor

Choose a reason for hiding this comment

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

Transferred to TransferredIcon

Comment on lines 662 to 663
func (pg *TransactionDetailsPage) separator(gtx layout.Context) layout.Dimensions {
m := values.MarginPadding5
return layout.Inset{Top: m, Bottom: m}.Layout(gtx, pg.theme.Separator().Layout)
return pg.theme.Separator().Layout(gtx)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this separator wrapper needed?

@beansgum beansgum merged commit aa0dc61 into planetdecred:master Aug 30, 2021
@beansgum beansgum deleted the tx_row_format branch August 30, 2021 09:00
song50119 pushed a commit to song50119/godcr that referenced this pull request Apr 24, 2022
* Format transactions row for various tx types

* transactions: add mixed transaction type to dropdown selector

* transactions: display denomination and mix count for mixed transactions

* Support formatting amount with different text sizes and scale

* transactions: display mix denomination in transaction row

* transactions: show number of days ticket took to vote or revoke

* transactions: show vote reward and ticket price price for stake transactions

* tx details: add button to view associated ticket

* tx detais: fix padding and margins for rows and page sections

* tx details: show ticket status, days to vote and vote reward

* tx details: add maturity progress bar

* Remove redundant seperator function
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.

Issue with double minus showing up on mixed transactions.
3 participants