girlscript / gssoc-website-new

GSSoC'24 Official Website
https://gssoc.girlscript.tech
71 stars 74 forks source link

Show more details on the project Page #264

Closed sanjay-kv closed 6 days ago

sanjay-kv commented 3 weeks ago

image

Add more features like total open PR and issue to existing Project Page.

Sid-80 commented 2 weeks ago

I am willing to work on this issue!

sanjay-kv commented 2 weeks ago

much appreciated @Sid-80

Sid-80 commented 2 weeks ago

@sanjay-kv We are having any api for getting data about PRs.

sanjay-kv commented 2 weeks ago

i think we should already have in leaderboard.js file

sanjay-kv commented 1 week ago

Hows this going @Sid-80

Sid-80 commented 1 week ago

@sanjay-kv I am out of station!! I will surely complete it!!

Sid-80 commented 1 week ago

image

@sanjay-kv In leaderboard.json, we are having only user data. Here we need project events!!

Sid-80 commented 1 week ago

UI is ready, just data is remaining

Sid-80 commented 1 week ago

@sanjay-kv UI image

sanjay-kv commented 1 week ago

@Sid-80 what you suggest new api just for projects?

Sid-80 commented 1 week ago

Yess. The api should return the above required data about projects. Or Modification in projects api to add the above additional details like last PR merged, open issues, open PRs!!

sanjay-kv commented 1 week ago

I think modification in the existing project API will do, additional API calling will make the loading data slower. Let me know whether you can do it or you need any help

Sid-80 commented 1 week ago

We can display the above info after clicking on project details modal. What's your view

Sid-80 commented 1 week ago

Performance will not be affected

sanjay-kv commented 1 week ago

then we can create new API and link to it. Sorry about the delay in communications.

Sid-80 commented 1 week ago

Yepp!! No issues!! Patience is imp in Open Source

Sid-80 commented 1 week ago

Please guide me to create api !!

Sid-80 commented 1 week ago

@sanjay-kv I have to use any backend endpoint ??

sanjay-kv commented 1 week ago

I will connect with person who is good at api. So can collaborate with him.

Sid-80 commented 1 week ago

Let me know!! Thank you!!

devXprite commented 1 week ago

Hi @Sid-80,

I've created an API for the Projects Page, which allows you to retrieve all project details in a single API call. The data is automatically updated every hour, and the response time is super fast, so it won't slow down data loading.

If you want you use this API on the Projects Page. If you have any specific additional data you'd like to see in the API response, just let me know.

API Endpoint: https://gssoc-leaderboard.vercel.app/api/projects

Example Response:

Screenshot at 2024-06-25 19-23-35

Sid-80 commented 1 week ago

Hii @devXprite, totalPullRequests are total PRs merged or number of PRs open ?

devXprite commented 1 week ago

Hii @devXprite, totalPullRequests are total PRs merged or number of PRs open ?

They are Open PR. I think i should Rename it to openPullRequests & openIssues.

Sid-80 commented 1 week ago

Yepp!! Better for understanding

sanjay-kv commented 1 week ago

Hii @devXprite, totalPullRequests are total PRs merged or number of PRs open ?

They are Open PR. I think i should Rename it to openPullRequests & openIssues.

Yes, that would easy to understand for future enhancement

Sid-80 commented 1 week ago

I will give it a try!! Will ping if any backend error occurs

devXprite commented 1 week ago

Hii @devXprite, totalPullRequests are total PRs merged or number of PRs open ?

They are Open PR. I think i should Rename it to openPullRequests & openIssues.

Yes, that would easy to understand for future enhancement

Done :+1:. Now Changes are live.

Sid-80 commented 1 week ago

@devXprite CORS issue image

Sid-80 commented 1 week ago

image

@sanjay-kv I think scrollbar doesn't look better on cards. What's your view ?

Sid-80 commented 1 week ago

@devXprite Which year's projects will be returned, latest one?

devXprite commented 6 days ago

@devXprite CORS issue image

Fixed :+1:

devXprite commented 6 days ago

@devXprite Which year's projects will be returned, latest one?

Yes, they are current year projects and are ordered by the most recent commit date.

sanjay-kv commented 6 days ago

image

@sanjay-kv I think scrollbar doesn't look better on cards. What's your view ?

yes, we can create a standard size without scrolls @devXprite is working on it. @Sid-80 I have another work would you like to take it?