diff --git a/src/components/ProfileDetailsGitHub.tsx b/src/components/ProfileDetailsGitHub.tsx
index a6c86ee..86fcb34 100644
--- a/src/components/ProfileDetailsGitHub.tsx
+++ b/src/components/ProfileDetailsGitHub.tsx
@@ -29,8 +29,8 @@ export default function ProfileDetailsGitHub({ address }: any) {
return (
<>
Not linked
-
- Link 🔗
+
+ Link my GitHub account 🔗
>
)
diff --git a/src/pages/[passportId].tsx b/src/pages/[passportId].tsx
index 4fea7ef..77d0c0b 100644
--- a/src/pages/[passportId].tsx
+++ b/src/pages/[passportId].tsx
@@ -27,6 +27,8 @@ export default function ProfilePage({ citizen, nationCred, veNation, dework, sou
{!router.isFallback && (
🎗️ NationCred
+
+ {router.isFallback ? (
+
+ ) : (
+ <>
+ Citizen activity status:
+ {!nationCred.is_active_per_week[nationCred.is_active_per_week.length - 1] ? (
+
+ INACTIVE 🥲
+
+ ) : (
+
+ ACTIVE 🥳
+
+ )}
+ >
+ )}
+
{router.isFallback ? (
@@ -164,6 +184,10 @@ export function NationCredChart({ nationCred }: any) {
console.info('NationCredChart')
const chartData = {
series: [
+ {
+ name: 'Active citizen threshold',
+ data: new Array(nationCred.scores.length).fill(1)
+ },
{
name: 'NationCred score',
data: nationCred.scores
@@ -182,7 +206,7 @@ export function NationCredChart({ nationCred }: any) {
}
],
options: {
- colors: ['#fbbf24', '#fbbf24', '#fbbf24', '#fbbf24'],
+ colors: ['#fb923c', '#facc15', '#facc15', '#facc15', '#facc15'],
dataLabels: {
enabled: false
},
@@ -270,17 +294,17 @@ export function VotingPowerChart({ citizen, veNation }: any) {
console.info('VotingPowerChart')
const chartData = {
series: [
- {
- name: 'Voting power',
- data: veNation.voting_power_per_week
- },
{
name: 'Passport expiry threshold',
data: new Array(veNation.voting_power_per_week.length).fill(1.5)
+ },
+ {
+ name: 'Voting power',
+ data: veNation.voting_power_per_week
}
],
options: {
- colors: ['#88f1bb', '#e7588f'],
+ colors: ['#fb923c', '#38bdf8'],
dataLabels: {
enabled: false
},
@@ -337,6 +361,7 @@ export async function getStaticProps(context: any) {
const nationcred_scores: number[] = []
const nationcred_governance_scores: number[] = []
const nationcred_operations_scores: number[] = []
+ const nationcred_is_active_per_week: boolean[] = []
Papa.parse(nationCredData, {
header: true,
skipEmptyLines: true,
@@ -349,11 +374,13 @@ export async function getStaticProps(context: any) {
nationcred_value_creation_scores[i] = Number(row.value_creation_hours)
nationcred_governance_scores[i] = Number(row.governance_hours)
nationcred_operations_scores[i] = Number(row.operations_hours)
+ nationcred_is_active_per_week[i] = Boolean(row.is_active)
})
console.info('nationcred_scores:', nationcred_scores)
console.info('nationcred_value_creation_scores:', nationcred_value_creation_scores)
console.info('nationcred_governance_scores:', nationcred_governance_scores)
console.info('nationcred_operations_scores:', nationcred_operations_scores)
+ console.info('nationcred_is_active_per_week:', nationcred_is_active_per_week)
}
})
@@ -445,7 +472,8 @@ export async function getStaticProps(context: any) {
scores: nationcred_scores,
valueCreationScores: nationcred_value_creation_scores,
governanceScores: nationcred_governance_scores,
- operationsScores: nationcred_operations_scores
+ operationsScores: nationcred_operations_scores,
+ is_active_per_week: nationcred_is_active_per_week
},
veNation: {
voting_power_per_week: venation_voting_power_per_week