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 Projects tab to the Profile page #91

Open
4 tasks
shubhanshu02 opened this issue Sep 6, 2021 · 3 comments
Open
4 tasks

Add Projects tab to the Profile page #91

shubhanshu02 opened this issue Sep 6, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@shubhanshu02
Copy link
Member

After #89 is completed, we can add a "Projects" tab to the Profile page. The main purpose of this tab will be to show the submissions done by all the teams the user is a part of. Currently, this is not shown; instead, we can only see the user teams on the profile page.

Tasks

  • Investigate if submissions can be extracted from the existing data on the Profile page. Possible sources of this data are:
    • Profile data stored in the Context in context/auth.js
    • Data fetched on the profile page from the backend API /profile/{username}.
    • Other APIs in the backend can be explored.
  • If no such sources are found, or the sources are computationally expensive, file an issue on the backend repository, mentioning this issue, for a new API to get the submission data of the user.
  • Make a card for showing Projects. (If a component is already there, skip this step)
  • Fetch the submission data from this source and show the data in cards.
@shubhanshu02 shubhanshu02 added the enhancement New feature or request label Sep 6, 2021
@shubhanshu02 shubhanshu02 added this to To do in Hackalog Frontend v2 via automation Sep 6, 2021
@shubhanshu02 shubhanshu02 moved this from To do to In progress in Hackalog Frontend v2 Sep 6, 2021
@shubhanshu02 shubhanshu02 moved this from In progress to To do in Hackalog Frontend v2 Sep 6, 2021
@JeeveshGarg
Copy link
Collaborator

I guess we can fetch submission data from backend API, from /profile/{username} we get teams id's and Hackathons for every team user is part of, then we get submission id from /hackathons/{slug}/submissions/.

Instead of card, I'm thinking about table which contain user Team Name, Hackathon, rank, Score and Submission link.

@tiger-yash
Copy link
Member

I guess we can fetch submission data from backend API, from /profile/{username} we get teams id's and Hackathons for every team user is part of, then we get submission id from /hackathons/{slug}/submissions/.

Instead of card, I'm thinking about table which contain user Team Name, Hackathon, rank, Score and Submission link.

Card will be better since there won't be too many hackathons to display and also cards would look good.

@shubhanshu02
Copy link
Member Author

I guess we can fetch submission data from backend API, from /profile/{username} we get teams id's and Hackathons for every team user is part of, then we get submission id from /hackathons/{slug}/submissions/.

Yes, correct. Till this request is being processed, we need to show a spinner instead of an empty tab for better UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

3 participants