Open avikalpg opened 5 months ago
Hey @avikalpg , I'm interested to work on this good first issue for FOSS HACK, regarding this issue, when we redirect user to Home.tsx which the website's Home page to my understanding, he cant find options like listing the pull requests, instead /u page has it.
Hey @avikalpg , I'm interested to work on this good first issue for FOSS HACK, regarding this issue, when we redirect user to Home.tsx which the website's Home page to my understanding, he cant find options like listing the pull requests, instead /u page has it.
Hi @vikram761, I am glad that you are interested to work on this issue.
To clarify your doubt: our website currently does not have a Home.tsx
page at all. We have an index.tsx
, which is the landing page and this issue does not refer to it.
The task is to create a new page named Home.tsx
which contains the list of all pull requests relevant to the user (with a way to filter the ones that they haven't reviewed yet).
Here are the steps you can follow:
Home.tsx
in the pages
folderPullRequestList.tsx
file in the components
folder. This component should be able to take a list of pull requests and show them in a list form (the design can be discussed in this thread).getUserRelevantPRs.ts
in the pages/api
folder) to get the list of pull requests that are relevant for a given user. It should also contain a flag that tells whether they have reviewed that pull request or not.UserRelevantPRs.tsx
file in the views
folder. This component should make the API call to the API endpoint just created and then use the PullRequestList.tsx
component to show these pull requests.UserRelevantPRs.tsx
view in the Home.tsx
file. Add the non-expanded version of the GitAliasForm
on the top (like in the u.tsx file)Home
instead of u
.Note: each step in this should be completed in a separate pull request.
@vikram761 - if you're working on this issue, kindly enlist the project in fosshack dashboard too.
Sorry @RiyaMathew-11, we started working on our project for the #384 and you can assign this issue for other people
Currently, after a user is logged in, our website redirects them to the
u.tsx
page, which is supposed to be the user profile page.Instead, we should redirect them to a
Home.tsx
page that shows things that can be immediately used by the user. For example, the list of pull requests that are relevant for them, but they haven't reviewed.