You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.@/components/EditPostModal.tsx
to change the Create Post Modal design; after your changes, users should be able to mark their post toisPrivate = true
. Refer to the Figma design for your frontend for this component.@/app/(community)/page.tsx
Refer to the Figma design for this filtering condition component.@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.@/components/ProfilePage/ProfileContainer.tsx
to fix the logic on how an individual's private posts are shown to admins versus normal users.Acceptance Criteria
The text was updated successfully, but these errors were encountered: