feat: add broadcast category selector (system/news/promo) in admin UI

This commit is contained in:
c0mrade
2026-04-10 17:04:22 +03:00
parent e6f6713b0e
commit 362a69812f
2 changed files with 41 additions and 0 deletions

View File

@@ -76,6 +76,8 @@ export interface EmailBroadcastCreateRequest {
export interface CombinedBroadcastCreateRequest {
channel: BroadcastChannel;
target: string;
// Broadcast category for user notification preference filtering
category?: 'system' | 'news' | 'promo';
// Telegram fields
message_text?: string;
selected_buttons?: string[];
@@ -111,6 +113,8 @@ export interface Broadcast {
created_at: string;
completed_at: string | null;
progress_percent: number;
// Broadcast category
category?: 'system' | 'news' | 'promo';
// New fields for channel support
channel?: BroadcastChannel;
email_subject?: string | null;