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

Add Citizen profile page #11

Merged
merged 8 commits into from
Nov 20, 2022

Conversation

aahna-ashina
Copy link
Member

@aahna-ashina aahna-ashina commented Nov 17, 2022

@aahna-ashina aahna-ashina self-assigned this Nov 17, 2022
colorGradient.addColorStop(1, 'rgba(213, 163, 152, 0.8)')

// Fetch data from datasets repo
const sourceCredFileUrl: string = `https://raw.githubusercontent.com/nation3/nationcred-datasets/f9e5b8d30b969815a918de619fa4e89a1c800ce3/data-sources/sourcecred/output/sourcecred-${profile.ethAddress}.csv`
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@johnmark13 Using the data from your PR here. Once merged, we can update this URL.

johnmark13
johnmark13 previously approved these changes Nov 17, 2022
Copy link

@johnmark13 johnmark13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is super cool. The chart colors at the moment slightly limit legibility/determining different streams, but that seems a small thing for now.

@aahna-ashina
Copy link
Member Author

aahna-ashina commented Nov 18, 2022

The chart colors at the moment slightly limit legibility/determining different streams, but that seems a small thing for now.

@johnmark13 Yes, we can easily adjust the colors. Do you have suggestions for which colors to use? 😄

Also note that you can hover points in the chart to see details:

Screenshot 2022-11-18 at 9 11 04 AM

@aahna-ashina aahna-ashina marked this pull request as ready for review November 18, 2022 01:18
@aahna-ashina
Copy link
Member Author

@johnmark13 Added Dework chart:

Screenshot 2022-11-18 at 9 57 55 AM

okhaimie-dev
okhaimie-dev previously approved these changes Nov 18, 2022
Copy link
Member

@okhaimie-dev okhaimie-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Maybe we can also add pagination or a custom search bar on the directory / default page for better UX in the future.

@aahna-ashina
Copy link
Member Author

Maybe we can also add pagination or a custom search bar on the directory / default page for better UX in the future.

@okhaimie-dev Great ideas! Added those here:

@xPi2
Copy link

xPi2 commented Nov 18, 2022

Why the "Loading profile..." placeholder?

@aahna-ashina
Copy link
Member Author

aahna-ashina commented Nov 18, 2022

@xPi2 Yes, a placeholder. Work in progress 😄

xPi2
xPi2 previously approved these changes Nov 18, 2022
luisivan
luisivan previously approved these changes Nov 18, 2022
@aahna-ashina aahna-ashina dismissed stale reviews from luisivan and xPi2 via c913b39 November 20, 2022 04:40
@aahna-ashina aahna-ashina merged commit 254b2c6 into nation3:main Nov 20, 2022
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.

5 participants