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

Add tickets list page #406

Merged
merged 3 commits into from May 20, 2021

Conversation

song50119
Copy link
Contributor

Resolves #404

@song50119 song50119 marked this pull request as ready for review May 13, 2021 09:35
@song50119 song50119 force-pushed the implement-tickets-list branch 2 times, most recently from 22c371d to a8ad94f Compare May 18, 2021 14:56
ui/decredmaterial/shadow.go Outdated Show resolved Hide resolved
ui/util.go Outdated
@@ -126,3 +127,56 @@ func computePasswordStrength(pb *decredmaterial.ProgressBarStyle, th *decredmate
pb.Progress = float32(strength * 100)
pb.Color = th.Color.Success
}

func ticketIconStatus(c *pageCommon, ticketStatus string) *struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be named ticketStatusIcon

Comment on lines 817 to 820
wrap.Radius.NE = 8 // top - left
wrap.Radius.SW = 0 // bottom - left
wrap.Radius.NW = 8 // top - right
wrap.Radius.SE = 0 // bottom - right
Copy link
Contributor

Choose a reason for hiding this comment

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

  • each corner radius doesn't have to be set on a new line. You can define the radius using the * * *
    CornerRadius type on a single line and assign it once. As in
radius := decredmaterial.CornerRadius{8, 0, 8, 0}
wrap.Radius = radius

This should be applied where appropriate in other aspects of this PR.

  • I believe NE (north east) is top right not top left.
  • I'm not sure "ticketLiveItemnInfo" is a suitable name for this. "ticketCard" maybe?
  • Can comments be added to this layout? So that it is easier to read and understood quicker.

@song50119 song50119 force-pushed the implement-tickets-list branch 2 times, most recently from 5a19e94 to 3ac7df3 Compare May 20, 2021 13:50
@oshorefueled oshorefueled merged commit 55759a6 into planetdecred:master May 20, 2021
song50119 added a commit to song50119/godcr that referenced this pull request May 29, 2021
* Add progress bar for each ticket list item
@song50119 song50119 deleted the implement-tickets-list branch December 18, 2021 09:40
song50119 added a commit to song50119/godcr that referenced this pull request Apr 24, 2022
* Add progress bar for each ticket list item
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 tickets list page (grid view)
2 participants