HITK-TECH-Community / Community-Website

Official Website of HITK Tech Community 👩🏻‍💻👨🏻‍💻
https://hitk-tech-community.netlify.app/
MIT License
169 stars 321 forks source link

[Restructure] Fixing Resource Page and broadcast flow #976

Open Kajol-Kumari opened 1 month ago

Kajol-Kumari commented 1 month ago

Description

The current resource creation flow is wrong, the creation of resource should create a new braodcast, instead of a resource, with the isApproved flag set to false by default -> admins should approve these braodcasts using manage broadcasts page and then it should appear on the Broadcast page of frontend.

Issue Breakdown

  1. Introduce isApproved flag in broadcats model. Refactor the resource form so that a new broadcast gets created on successful submission, with isApproved set to false.
  2. Manage broadcast page will fetch all approved/non-approved broadcasts
  3. There should be 2 more buttons on manage broadcasts card - approve and reject Screenshot 2024-05-27 at 9 08 27 PM
  4. add a filter of isApproved=true in the Broadcast and all broadcast page.
Kajol-Kumari commented 1 month ago

This issue will be broken down in 4 issues like mentioned above, please claim one issue at a time mentioning the point number.

SwayamRana808 commented 1 month ago

i have doubt " the creation of resource should create a new broadcast, instead of a resource" ... so we will not use resource schema and will use broadcast schema and post methods like used in admin "add broadcast page" in home>resource page and change the resource form like broadcast form? @Kajol-Kumari

SwayamRana808 commented 1 month ago

"Manage broadcast page will fetch all approved/non-approved broadcasts" if get all broadcast how we will know which one is approved and which one not ? 1>There should be 2 more buttons on manage broadcasts card - approve and reject-- should we use one button approve if not and reject if not approved?

Kajol-Kumari commented 1 month ago

oadcast, instead of a resource" ... so we will not use resource schema and will use broadcast schema and post methods like used in admin "add broadcast page" in home>resource page and change the resource form like broadcast form?

yes, @SwayamRana808

Kajol-Kumari commented 1 month ago

"Manage broadcast page will fetch all approved/non-approved broadcasts" if get all broadcast how we will know which one is approved and which one not ? 1>There should be 2 more buttons on manage broadcasts card - approve and reject-- should we use one button approve if not and reject if not approved?

when a new broadcast gets added, we should have isApproved flag set to false by default and only after approval from Manage Broadcast of admin panel, it should show in broadcast/all broadcast page of the website.

Note - this issue will be broken down into 3 separate issues

shivamgaur99 commented 1 month ago

@Kajol-Kumari i would like to work on that issue, if @SwayamRana808 want to work you can assign him

Hemu21 commented 1 month ago

@Kajol-Kumari as you said this issue is breakdown into 3 so can you please assign me one. other 2 to above asked ones. Here we 3 asked and it is divided into 3. so, can you please assign me one issue from this issue.

Kajol-Kumari commented 1 month ago

@SwayamRana808 / @shivamgaur99 / @Hemu21 i have listed the issue breakdown in issue description, whichever part u want to claim, just create a new issue for that as u folks are first one to comment so ideally it would get assigned to u, i hope u three claim one each

Hemu21 commented 1 month ago

@Kajol-Kumari can you please assign me the issue 3.

shivamgaur99 commented 1 month ago

@Kajol-Kumari, please assign me issue 1.

SwayamRana808 commented 1 month ago

please assign me the issue 4.