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

Private Posts #63

Open
6 tasks done
DanielChee opened this issue Feb 4, 2025 · 0 comments · May be fixed by #66
Open
6 tasks done

Private Posts #63

DanielChee opened this issue Feb 4, 2025 · 0 comments · May be fixed by #66
Assignees

Comments

@DanielChee
Copy link
Collaborator

DanielChee commented Feb 4, 2025

Description

We need to implement Private Posts, which utilize the isPrivate field in Posts (Think of it like EdDiscussion where users can make a private post directly to the TAs). When a user chooses to make their post Private, it will only be shown to admin on the main community page and the poster's profile page. Additionally, ensure that Private Posts can not be reported or pinned. Other than its visibility restrictions, Private Posts act exactly as normal posts do.

  • To help, you will be working with @/components/EditPostModal.tsx to change the Create Post Modal design; after your changes, users should be able to mark their post to isPrivate = true. Refer to the Figma design for your frontend for this component.
  • Add a filter button labeled "Visibility" to the main page to include a filter for Private Posts. This should be located at @/app/(community)/page.tsx Refer to the Figma design for this filtering condition component.
  • Additionally, you will be editing @app/(community)/page.tsx to fix the logic on how posts are fetched, based on the role of the user fetching these posts. Again, admin should see private posts, while normal users should not.
  • Similarly, look into @/components/ProfilePage/ProfileContainer.tsx to fix the logic on how an individual's private posts are shown to admins versus normal users.

Acceptance Criteria

  • Users can mark a post as private
  • Normal users can not see private posts in the main community page or on their individual profile page
  • Admin can see private posts
  • Private posts can not be pinned
  • Private posts can not be reported
  • Figma designs are matched
@charliejlin charliejlin linked a pull request Feb 7, 2025 that will close this issue
6 tasks
@charliejlin charliejlin linked a pull request Feb 7, 2025 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants