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 Dashboard Activity #131

Merged
merged 35 commits into from May 24, 2023
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
88cc77d
Implement Activity List
JSKitty May 14, 2023
a38026c
Show 'Block Reward' desc for Dashboard rewards
JSKitty May 14, 2023
27944c4
Fix polarised (Un)Delegations
JSKitty May 14, 2023
833860c
Implement verbose history descriptions
JSKitty May 16, 2023
1f72d5b
Merge branch 'master' into activity-list
JSKitty May 16, 2023
bdf46a5
Fix conflict merge mistake
JSKitty May 16, 2023
316c496
Fix another merge mistake
JSKitty May 16, 2023
0e52c9c
Fix case block lexical declaration
JSKitty May 16, 2023
7e8c887
Prettier, damnit
JSKitty May 16, 2023
0cdf081
Improve Send/Receive icons
JSKitty May 16, 2023
4bd69e4
[CSS] Stop clipping
BreadJS May 16, 2023
e8ecd6d
Modify colours
JSKitty May 16, 2023
2744b3a
Merge branch 'master' into activity-list
JSKitty May 18, 2023
984a779
Improve performance
JSKitty May 18, 2023
dde7ccc
Fix Stake history
JSKitty May 18, 2023
87e036b
Duel-table rendering
JSKitty May 18, 2023
fcd97ff
Implement continual sync + Refactor SyncTxHistory
JSKitty May 18, 2023
024e48d
Perf: switch to Map for self-address checks
JSKitty May 19, 2023
095cabe
Perf: use a date cache during table rendering
JSKitty May 19, 2023
d0da00f
Perf: render Activity only after a new block
JSKitty May 20, 2023
37e8fc8
Perf: Only check 'Sent' Txs for own + change addrs
JSKitty May 20, 2023
f61d5ed
Prettier
JSKitty May 20, 2023
7a0f0e5
Check Received TXs for self-addresses, too
JSKitty May 20, 2023
3f9c3d8
Fix: auto-syncing of new TXs for HD wallets
JSKitty May 21, 2023
fe3a825
Prettier
JSKitty May 21, 2023
c72e078
Merge branch 'master' into activity-list
JSKitty May 21, 2023
74a3d1f
Add Duddino suggestion
JSKitty May 22, 2023
8ac8d12
Add Duddino suggestion
JSKitty May 22, 2023
5633852
Add Duddino suggestion
JSKitty May 22, 2023
1328aad
Add HistoricalTx and txSum typing
JSKitty May 22, 2023
a1d9741
Add Duddino suggestion
JSKitty May 22, 2023
f0261d2
Add Duddino suggestion
JSKitty May 22, 2023
40f0e0a
Merge branch 'master' into activity-list
JSKitty May 22, 2023
b327a13
Prettier
JSKitty May 22, 2023
50808e1
Add Duddino suggestion
JSKitty May 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 2 additions & 3 deletions assets/style/style.css
Expand Up @@ -382,7 +382,6 @@ button {

#guiWallet {
width: 100%;
height: 300px;
}

#bcg-wallet-box {
Expand Down Expand Up @@ -704,7 +703,7 @@ button {

#foot {
display: block;
position: absolute;
position: fixed;
left: 0;
bottom: 0;
width: 100%;
Expand Down Expand Up @@ -1485,7 +1484,7 @@ a {

/* Tables */
table td {
max-width: 80px;
max-width: 130px;
}

table td a {
Expand Down
14 changes: 11 additions & 3 deletions index.template.html
Expand Up @@ -500,7 +500,15 @@ <h3 class="noselect balance-title">
<div class="col-12 mb-5">
<center><span class="dcWallet-activityLbl">Activity</span></center>
<div class="dcWallet-activity">
<center>Coming soon</center>
<div class="scrollTable">
<div id="activity-list-content"></div>
<center>
<button class="pivx-button-medium" id="activityLoadMore" onclick="MPW.updateActivityGUI(false)">
<span class="buttoni-icon"><i class="fas fa-sync fa-tiny-margin" id="activityLoadMoreIcon"></i></span>
<span class="buttoni-text" data-i18n="loadMore">Load more</span>
</button>
</center>
</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -830,9 +838,9 @@ <h3 class="noselect balance-title">
<div class="scrollTable">
<div id="staking-rewards-content"></div>
<center>
<button class="pivx-button-medium" id="stakingLoadMore" onclick="MPW.updateStakingRewardsGUI()">
<button class="pivx-button-medium" id="stakingLoadMore" onclick="MPW.updateActivityGUI(true)">
<span class="buttoni-icon"><i class="fas fa-sync fa-tiny-margin" id="stakingLoadMoreIcon"></i></span>
<span class="buttoni-text" data-i18n="stakeLoadMore">Load more</span>
<span class="buttoni-text" data-i18n="loadMore">Load more</span>
</button>
</center>
</div>
Expand Down
2 changes: 1 addition & 1 deletion locale/en/translation.js
Expand Up @@ -87,7 +87,7 @@ export const en_translation = {
'Coins that you Stake are "Locked" separately from your Available balance, and have a chance to generate rewards. <br> The more coins you stake, the more frequently you\'ll receive rewards.', //
stake: 'Stake',
stakeUnstake: 'Unstake', //
stakeLoadMore: 'Load more', //
loadMore: 'Load more', //

// Governance
contestedProposalsTitle: 'Contested Proposals',
Expand Down
2 changes: 1 addition & 1 deletion locale/template/translation.js
@@ -1,4 +1,4 @@
var translation = {

Check warning on line 1 in locale/template/translation.js

View workflow job for this annotation

GitHub Actions / ESLint

locale/template/translation.js#L1

'translation' is assigned a value but never used (@typescript-eslint/no-unused-vars)
// This document is to be used as a template as all the base code is in English
// Basic HTML tags are allowed such as <b><i> etc. All data is sanitized https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML

Expand Down Expand Up @@ -96,7 +96,7 @@
stakeSubTitle: '', //Coins that you Stake are \"Locked\" separately from your Available balance, and have a chance to generate rewards. <br> The more coins you stake, the more frequently you'll receive rewards.
stake: '', //Stake
stakeUnstake: '', //Unstake
stakeLoadMore: '', //Load more
loadMore: '', //Load more

// Governance
contestedProposalsTitle: '', //Contested Proposals
Expand Down
2 changes: 1 addition & 1 deletion locale/uwu/translation.js
Expand Up @@ -87,7 +87,7 @@ export const uwu_translation = {
'Coins dat you Stake are "Locked" sepawately from ur Avaiwable bwalance, and havs a chance to genewwate rewawrds. <br> Da more coins you stake, da more frequwuntly you\'ll receive rewawrds.', // Coins that you Stake are \"Locked\" separately from your Available balance, and have a chance to generate rewards. <br> The more coins you stake, the more frequently you'll receive rewards.
stake: '', //Stake
stakeUnstake: '', //Unstake
stakeLoadMore: 'Lowoad Mowore', //Load more
loadMore: 'Lowoad Mowore', //Load more

// Governance
contestedProposalsTitle: 'Contwested Pwoposals',
Expand Down