Ori-Gatou / BuildersLeague-Edition1

0 stars 0 forks source link

[2|CBH & HR - UGC & Banned words Dashboard] UGC tables #55

Open vo-d opened 4 days ago

vo-d commented 4 days ago

๐Ÿฐ Appetite ๐Ÿฐ

| Property | Value | |:-------|:------:| | Points | ?? points | | Difficulty rating | โ˜…โ˜…โ˜…โ˜…โ˜…| | Maximum Assignees | 6 person |

๐Ÿค” Problem Statement

Screenshot 2024-09-29 204421

Create a table to show the UGC list. The list will include users' public notes and shared articles. Add pagination to this table. The table will include these fields:

The list will contain UGC from all organizations if the user is logged in as CBH. If the user is logged in as HR of a company, then only display the UGC from that organization.

If the user is logged in as CBH, for a new post or a post that has only been approved by HR, show the 'approve' button and the 'deny' button in the Approval & Report column. If the UGC is approved by CBH, then show the 'remove' button and a 'report' field to the CBH to remove the post or to see the report count.

If the user is logged in as HR, for a new post or a post that has only been approved by CBH, also show the 'approve' button and the 'deny' button in the Approval & Report column. If the UGC has been approved by HR, then show the 'remove' button and a 'report' field to HR to remove the post or to see the report count.

For your information: if CBH or HR approves, the post will be on the feed, but if another party denies it after that, the post will be taken down no matter what. (You don't have to do anything here. This is just an explanation of why we have separate approve and deny for CBH and HR)

For every cell in the table, if the content is more than how much a cell can show, when the user clicks on the cell, a pop-up will appear and show the rest of the content.

When the user clicks on the 'Remove' button, a confirmation pop-up will appear. When the user clicks on the 'Deny' button, a pop-up will appear and prompt the user for a reason.

The 'Export selected' button will export a CSV of all chosen Notes. The 'Delete selected' button will delete all of the chosen notes.

๐Ÿงช Required Tests

Mainly screenshot tests, and some integration tests for Supabase and Payload CMS. Review the Code & Testing Guidelines for more info.

โš ๏ธ Careful about:

No major rabbit holes identified. But always be careful with scope creep!

๐Ÿค– Technologies focused on in this feature