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

Attack cost calculator layout changes and bug fixes #1777

Merged
merged 1 commit into from
Apr 1, 2021

Conversation

hypernoob
Copy link
Contributor

@hypernoob hypernoob commented Aug 3, 2020

Images:

Notable Changes:

  • Correctly display current network name
  • Load additional costs from query string
  • Fixed step value of exchange rate input
  • Fixed input and select widths on firefox
  • Improved layout of parameter sections
  • Fixed margin and removed z-index of legend
  • Format units consistently in the calculation
  • Sticky total attack cost to the bottom
  • PoW section: typo aquire > acquire

Copy link
Member

@chappjc chappjc left a comment

Choose a reason for hiding this comment

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

Looks nice. Will need testing @dnldd, when you get a chance. BTW, please be sure to test with the browser dev console (F12) opened so you can see console warnings and errors.

@dnldd
Copy link
Member

dnldd commented Aug 11, 2020

Sure thing, will do.

Copy link
Member

@dnldd dnldd left a comment

Choose a reason for hiding this comment

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

Changes made look good but I did notice a couple of UX related things. The miner selector on some displays takes up a whole line, it'd be ideal if it was only allowed to take the remaining space on a line or a portion of what's left after the l"Mining device" label.
miner-dropdown-full-line

miner-dropdown

I also noticed on most screens the "Total Attack Cost" can only be seen after scrolling down. Considering that's the most important figure on the page I think it should be visible at all times. Users will be able to see the changes they make to the attack parameters at a glance instead of having to scroll to bring the element in view. It'd be great to make that element stick to the bottom of the view making it visible regardless of scrolling.

total-attack-cost-hidden

@hypernoob hypernoob marked this pull request as draft August 21, 2020 10:38
@hypernoob hypernoob requested a review from dnldd August 21, 2020 11:22
@hypernoob hypernoob marked this pull request as ready for review August 21, 2020 11:23
@dnldd
Copy link
Member

dnldd commented Aug 21, 2020

I think the fields should have their text centered, currently it looks like there is a lot of white space left even when the fields are populated. This is regardless of the screen size.

proportions-small

proportions-large

Do you plan on making the changes suggested for the "Total Attack Cost" in a separate PR? It's currently still hidden until its scrolled to.

@hypernoob
Copy link
Contributor Author

clip
What's your browser? I tested on Chrome and Firefox. Works fine on both.

@dnldd
Copy link
Member

dnldd commented Aug 24, 2020

I tested on firefox, check again.

@dnldd
Copy link
Member

dnldd commented Aug 24, 2020

Hmm, pulled the PR again, ensured cache was disabled, rebuilt dcrdata and I'm still getting this.
Screenshot from 2020-08-24 14-07-45

@hypernoob
Copy link
Contributor Author

It seems the content area is too tall for your actual screen so you can't see the sticky unless you scroll down the outer scrollbar.
firefox1
firefox2

@dnldd
Copy link
Member

dnldd commented Aug 26, 2020

Hmm, still not working as expected for me. I can see the modifications you made for Total Attack Cost (py-2 position-sticky summary) but its not taking effect for me, tested on firefox and chrome.

simnet-tak-sticky

Please try testing on simnet at your end and lets see if you encounter similar issues.

@hypernoob
Copy link
Contributor Author

hypernoob commented Aug 26, 2020

Working fine on simnet.
ff3

BTW I noticed yours is loading the .scss files instead of the bundled style.css.
pkg

@dnldd
Copy link
Member

dnldd commented Aug 26, 2020

Thanks for that. I was using npm run build initially, switching to npm run watch sorted it out for me.

Copy link
Member

@dnldd dnldd 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, still think the space taken up by input boxes on some s could be bettered but that can be tinkered with later.

@chappjc chappjc merged commit f22ba98 into decred:master Apr 1, 2021
@hypernoob hypernoob deleted the attack_cost branch April 9, 2021 02:46
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.

3 participants