-
Notifications
You must be signed in to change notification settings - Fork 20
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
Improve admin screen aesthetics. #263
Conversation
Previously the voting wallet status and the ticket search were stacked on top of eachother, making the page very long and awkward to navigate. This introduces tabbed navigation which allows just one to be displayed at a time.
var indented bytes.Buffer | ||
err := json.Indent(&indented, []byte(input), "<br/>", " ") | ||
if err != nil { | ||
log.Errorf("Failed to indent JSON: %w", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid capitalizing the error string here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a logging statement which will be printed in isolation, thus the caps. This matches the rest of the log statements in the project. Error strings on the other hand are lower-cased because they are usually printed with some proceeding context.
Various improvements to Admin screen aesthetics:
Improvements to voting wallet status table:
Improve ticket info table:
Note to reviewers - send me a DM and I will give you the admin password + a ticket hash so you can test this out on https://testnet-vsp.jholdstock.uk