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

Implement logic for showing gb vs mb vs kb for account resources #776

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

kylanhurt
Copy link
Contributor

@kylanhurt kylanhurt commented Oct 13, 2023

Fixes #716

Description

Max size takes precedence since it is arguably more important: used size is only relevant when a significant portion of max size. Logic ignores max size only for accounts that are privileged / system.

Test scenarios

Checked values on accounts with NET or RAM that is:
a.) less than 1mb
b) less than 1gb but greater than 1mb
c.) greater than 1gb (eosio.evm)
d.) system account (eosio)

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have cleaned up the code in the areas my change touches
  • My changes generate no new warnings
  • I have checked my code and corrected any misspellings
  • I have removed any unnecessary console messages
  • I have tested for mobile functionality and responsiveness

telegram-cloud-photo-size-1-4994574957388344653-y

@netlify
Copy link

netlify bot commented Oct 13, 2023

Deploy Preview for open-block-explorer ready!

Name Link
🔨 Latest commit 71e7e03
🔍 Latest deploy log https://app.netlify.com/sites/open-block-explorer/deploys/652ebaf05bdd3e000774765e
😎 Deploy Preview https://deploy-preview-776--open-block-explorer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Oct 13, 2023

Deploy Preview for obe-testnet ready!

Name Link
🔨 Latest commit 71e7e03
🔍 Latest deploy log https://app.netlify.com/sites/obe-testnet/deploys/652ebaf0eddc7400082fbf6e
😎 Deploy Preview https://deploy-preview-776--obe-testnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 13, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 71e7e03
Status: ✅  Deploy successful!
Preview URL: https://eeeadd19.open-block-explorer.pages.dev
Branch Preview URL: https://716-resource-unit.open-block-explorer.pages.dev

View logs

@kylanhurt kylanhurt changed the title Implement logic for showing mb vs kb for account resources Implement logic for showing gb vs mb vs kb for account resources Oct 13, 2023
src/components/AccountCard.vue Outdated Show resolved Hide resolved
src/components/AccountCard.vue Outdated Show resolved Hide resolved
src/components/AccountCard.vue Outdated Show resolved Hide resolved
src/components/AccountCard.vue Outdated Show resolved Hide resolved
src/components/AccountCard.vue Outdated Show resolved Hide resolved
src/components/AccountCard.vue Outdated Show resolved Hide resolved
src/components/AccountCard.vue Outdated Show resolved Hide resolved
src/components/AccountCard.vue Outdated Show resolved Hide resolved
src/components/AccountCard.vue Outdated Show resolved Hide resolved
src/components/AccountCard.vue Outdated Show resolved Hide resolved
Add account resource units for gb

Clean up determineUnits work
@kylanhurt
Copy link
Contributor Author

@donnyquixotic Comments handled

@donnyquixotic donnyquixotic self-requested a review October 17, 2023 17:24
@donnyquixotic donnyquixotic merged commit 50e114d into master Oct 17, 2023
10 checks passed
@donnyquixotic donnyquixotic deleted the 716-resource-unit branch October 17, 2023 17:27
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.

Improve Resource Net and Ram Readability (display mb and gb)
2 participants