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

Article Dashboard and Github OAuth #71

Open
1 of 2 tasks
bryanwong8 opened this issue Jun 6, 2020 · 1 comment
Open
1 of 2 tasks

Article Dashboard and Github OAuth #71

bryanwong8 opened this issue Jun 6, 2020 · 1 comment
Assignees
Labels
frontend This is a frontend issue
Projects

Comments

@bryanwong8
Copy link
Contributor

bryanwong8 commented Jun 6, 2020

Is your feature request related to a problem? Please describe.
We need to display the articles by sorting by views, most viewed and most recent articles in the user dashboard.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Figma Design

  • ##User Dashboard

Screen Shot 2020-06-05 at 5 52 08 PM

  • Should be editing the pages/dashboard/[pid].tsx

  • Change the most viewed tab to all posts tab. It should display all of the articles written by the current user

  • Change the most liked tab to the published. It should display all of the published articles by the current user

  • Change the most recent tab to the drafts tab. It should display all of the drafted articles written by the current user.

  • Should use the components/global/ArticleList.tsx to display the articles.

  • Should call the {{APIURL}}/profiles/{{USERNAME}}/articles route to display the articles from the current user. You can include different query parameters to sort the articles by likes, most viewed and most recent.

  • ##Github OAuth

  • Should be using the next-auth package to implement Github OAuth, https://github.com/iaincollins/next-auth

  • At first, generate the Github API Key and secret with your account. We will later change the API Keys and Secret to the Bit Project account.

  • You should look at the documentation from this link to implement OAuth, https://next-auth.js.org/getting-started/introduction

  • You can even try the demo with this link, https://next-auth-example.now.sh/

@bryanwong8 bryanwong8 added the frontend This is a frontend issue label Jun 6, 2020
@project-bot project-bot bot added this to To do in Bit Project Jun 6, 2020
@lazordiak
Copy link
Contributor

image
here's what it's looking like right now without the specific articles
for next-auth im getting some weird "object(...) is not a function" errors which i usually attribute to misnamed imports but im basically using the code from the example, so it's puzzling
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend This is a frontend issue
Projects
Bit Project
  
To do
Development

No branches or pull requests

2 participants