Community-Website icon indicating copy to clipboard operation
Community-Website copied to clipboard

[Restructure] Fixing Resource Page and broadcast flow

Open Kajol-Kumari opened this issue 1 year ago • 11 comments

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 avatar May 27 '24 15:05 Kajol-Kumari

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

Kajol-Kumari avatar May 27 '24 15:05 Kajol-Kumari

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 avatar May 31 '24 08:05 SwayamRana808

"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?

SwayamRana808 avatar Jun 01 '24 13:06 SwayamRana808

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 avatar Jun 02 '24 06:06 Kajol-Kumari

"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

Kajol-Kumari avatar Jun 02 '24 06:06 Kajol-Kumari

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

shivamgaur99 avatar Jun 02 '24 11:06 shivamgaur99

@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.

hemanthkumar-21 avatar Jun 02 '24 20:06 hemanthkumar-21

@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

Kajol-Kumari avatar Jun 03 '24 16:06 Kajol-Kumari

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

hemanthkumar-21 avatar Jun 03 '24 19:06 hemanthkumar-21

@Kajol-Kumari, please assign me issue 1.

shivamgaur99 avatar Jun 03 '24 20:06 shivamgaur99

please assign me the issue 4.

SwayamRana808 avatar Jun 03 '24 21:06 SwayamRana808