TheCSharpAcademy / TCSA.V2

A revamp of The C# Academy using all the power of .NET 8's new Blazor!
5 stars 8 forks source link

Add Count to Project Page #387

Closed TheCSharpAcademy closed 1 month ago

TheCSharpAcademy commented 1 month ago

In the project page I'd like to display "This project was completed by {x} students" somewhere at the top (but after the banner).

ukpagrace commented 1 month ago

Hey @TheCSharpAcademy, How is a completed project determined? is it when the project is approved or when the user makes a completed project

TheCSharpAcademy commented 1 month ago

@ukpagrace You should be able to figure out by studying the code. I'd like you to try before giving you the answer, since this is a big part of what you'll have to do in a professional environment 😄. Feel free to ask later if you still can't find it.

ukpagrace commented 1 month ago

okay :)

ukpagrace commented 1 month ago

I looked through the code and the Dashboard Poject and i can see Iscompeleted and IsPendingReview IsCompleted is for when the user completes the reading and makes it as completed while is PendingReview is when they submit a pr for the project and is approved

And IsPendingReview is the one I am using, but i have a question users that dont submit using with the code review link do they still go through this process?

ukpagrace commented 1 month ago

This is my pull request, i tried adding it in development but I couldn't find it https://github.com/TheCSharpAcademy/TCSA.V2/pull/388