-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: Active accounts chart 2 #1006
Conversation
🧪️ Preview Links 🔎️Mainnet: https://pr-1006-aescan.stg.service.aepps.com |
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.
Overall it looks good, I proposed a different way to display active accounts numbers.
Co-authored-by: Michele F. <[email protected]>
Co-authored-by: Michele F. <[email protected]>
Co-authored-by: Michele F. <[email protected]>
Co-authored-by: Michele F. <[email protected]>
totalAccountsCount.value = null | ||
const { data } = await axios.get(`${MIDDLEWARE_URL}/v3/stats/total-accounts?interval_by=month&limit=100`) | ||
// todo ask mdw for endpoint | ||
totalAccountsCount.value = data.data.reduce((total, item) => total + parseInt(item.count), 0) |
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.
It works based on manually summing the accounts from time fragments. Which is ok for now, not a clean solution.
Clean solution followup #1009
<td>$ {{ formatNullable(formatNumber(coinW?.price)) }}</td> | ||
<td>$ {{ formatNullable(formatNumber(coinW?.volume)) }}</td> | ||
</tr> | ||
<thead> |
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.
cleanup not related
@@ -27,27 +27,15 @@ const chartsStore = useChartsStore() | |||
const { hashrateStatistics } = storeToRefs(chartsStore) | |||
const { fetchHashrateStatistics } = chartsStore | |||
|
|||
const props = defineProps({ |
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.
all cleanup and lil refactoring
class="transactions-panel"/> | ||
<transactions-panel class="transactions-panel"/> | ||
</template> | ||
<transactions-statistics class="transactions-panel"/> |
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.
united with accounts now, i improved the content jumping when loading. Still, some more work to be done, but much better now.
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.
LGTM
Co-authored-by: Michele F. <[email protected]>
Description
Resolves #863
Demo
Checklist: