Skip to content

[GF-BE-10] Build announcements and broadcast backend module#1141

Merged
yusuftomilola merged 2 commits into
DistinctCodes:mainfrom
Leothosine:feat/gf-be-10-announcements-broadcast-module
Jun 25, 2026
Merged

[GF-BE-10] Build announcements and broadcast backend module#1141
yusuftomilola merged 2 commits into
DistinctCodes:mainfrom
Leothosine:feat/gf-be-10-announcements-broadcast-module

Conversation

@Leothosine

Copy link
Copy Markdown
Contributor

Summary

Implements the announcements and broadcast backend module described in issue #1085. Admins can now create and manage platform-wide announcements directly, eliminating fragmented off-platform communication.

Changes

New Module: backend/src/announcements/

Entities

  • Announcement - stores title, content, type, priority, author, active flag, and optional expiry timestamp

Enums

  • AnnouncementType - general, maintenance, service_launch, closure, policy_update
  • AnnouncementPriority - low, normal, high, urgent

Endpoints

Method Path Auth Description
POST /announcements Admin / Super Admin Create announcement
GET /announcements All roles List active, non-expired announcements (paginated)
GET /announcements/:id All roles Get single announcement
PATCH /announcements/:id Admin / Super Admin Update announcement
DELETE /announcements/:id Admin / Super Admin Soft-delete (marks isActive = false)

Query filters: type, priority, isActive

Checklist

  • Announcement entity created with TypeORM (auto-syncs via synchronize: true)
  • Admin-only create/update/delete with RolesGuard
  • Expiry filtering applied on member list queries
  • AnnouncementsModule registered in AppModule
  • Unit tests pass with --passWithNoTests

Closes #1085

@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

@Leothosine is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

@yusuftomilola yusuftomilola left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for your contribution

@yusuftomilola yusuftomilola merged commit 3e58922 into DistinctCodes:main Jun 25, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GF-BE-10] Build announcements and broadcast backend module

2 participants