Skip to content

Commit

Permalink
feat: See Contributions details from reward administration - MEED-7482
Browse files Browse the repository at this point in the history
…- Meeds-io/MIPs#154 (#593)

This PR will allow admin to see contribution details from reward
management.
  • Loading branch information
AzmiTouil authored and boubaker committed Oct 24, 2024
1 parent 307bb41 commit 5c45ba5
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
6 changes: 6 additions & 0 deletions wallet-webapps/src/main/webapp/WEB-INF/gatein-resources.xml
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,12 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<depends>
<module>applicationToolbarComponent</module>
</depends>
<depends>
<module>usersLeaderboardCommon</module>
</depends>
<depends>
<module>ruleExtensions</module>
</depends>
<depends>
<module>vue</module>
</depends>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,16 @@
:contract-details="contractDetails"
:token-symbol="tokenSymbol"
:completely-proceeded="completelyProceeded"
:transaction-ether-scan-link="transactionEtherScanLink" />
:transaction-ether-scan-link="transactionEtherScanLink"
@open-contribution-details="openContributionDetails" />
</template>
</v-data-table>
<users-leaderboard-profile-achievements-drawer
ref="profileStatsDrawer"
:from-date-in-second="startDateInSeconds"
:to-date-in-second="endDateInSeconds"
go-back-button
relative />
</v-card>
</template>

Expand Down Expand Up @@ -201,8 +208,17 @@ export default {
completelyProceeded() {
return this.rewardReport?.completelyProceeded;
},
endDateInSeconds() {
return this.period?.endDateInSeconds;
},
startDateInSeconds() {
return this.period?.startDateInSeconds;
},
rewardPeriodType() {
return this.period?.rewardPeriodType;
},
isNotPastPeriod() {
return !this.period || this.period.endDateInSeconds > this.currentTimeInSeconds;
return !this.period || this.endDateInSeconds > this.currentTimeInSeconds;
},
walletRewards() {
return (this.rewardReport && this.rewardReport.rewards) || [];
Expand Down Expand Up @@ -295,6 +311,9 @@ export default {
});
});
},
openContributionDetails(userId) {
this.$refs?.profileStatsDrawer?.openByIdentityId(userId, this.rewardPeriodType);
}
},
};
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
display-no-address />
</td>
<td class="text-center">
<span>
<v-btn icon @click="openContributionDetails">
{{ points }}
</span>
</v-btn>
</td>
<td class="text-center">
<template v-if="!status">
Expand Down Expand Up @@ -290,6 +290,9 @@ export default {
},
seeHistory() {
this.$refs.accountDetail.open();
},
openContributionDetails() {
this.$emit('open-contribution-details', this.walletTechnicalId);
}
}
};
Expand Down

0 comments on commit 5c45ba5

Please sign in to comment.