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

Display posts for student (frontend) #20

Open
MalteStengard opened this issue Oct 28, 2024 · 2 comments
Open

Display posts for student (frontend) #20

MalteStengard opened this issue Oct 28, 2024 · 2 comments
Assignees

Comments

@MalteStengard
Copy link

MalteStengard commented Oct 28, 2024

Requirements:
A logged in user should be able to view all posts made by other users on their dashboard. Posts should be stacked in one column starting with the most recent being on top. Each post should display the user who posted it, when it was posted, its content, comments on the post, and have a like and toggle comments button. A post should display if it has been edited.

Design

Plan

  • Make sure posts can be seen in a list on the dashboard
// pages/dashboard/index.js
<Card>
   <Posts/>
<Card/>

// components/posts/index.js
// The code in posts seems to be mostly finished

// components/post/index.js
// The code in post seems to be mostly finished

  • Make sure posts are in order of most recent post at the top
// components/posts/index.js
return (
    <>
      {posts.map((post) => {
        return (
          <Post
            key={post.id}
            name={`${post.author.firstName} ${post.author.lastName}`}
            date={post.createdAt}
            content={post.content}
            comments={post.comments}
          />
        );
      })}
</>
  • Check that all the information listed in requirements can be seen on each post
// components/post/index.js
// The code in post seems to be mostly finished
@sebgro98
Copy link

Approved

1 similar comment
@amos1969
Copy link

Approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants