Add audience categorization for shows: implement ShowAudience type, update related API endpoints, and enhance frontend components for audience selection and display. Modify data structures to support audience information in show creation and retrieval processes.
build / backend (push) Successful in 3m35s
build / frontend (push) Successful in 52s
tests / backend-tests (push) Successful in 3m27s

This commit is contained in:
Leonid Pershin
2026-07-26 02:06:08 +03:00
parent 525fd2ee01
commit 8962840654
19 changed files with 1900 additions and 8 deletions
+6
View File
@@ -2,6 +2,7 @@ import { apiRequest } from '@/shared/api/client'
import type {
CreatedIdResponse,
MetadataCandidate,
ShowAudience,
ShowDto,
ShowKind,
ShowSummaryDto,
@@ -20,10 +21,15 @@ export function createShow(body: {
kind: ShowKind
description?: string
originalName?: string
audience?: ShowAudience
}) {
return apiRequest<CreatedIdResponse>('/admin/shows', { method: 'POST', body })
}
export function setShowAudience(id: string, audience: ShowAudience) {
return apiRequest<void>(`/admin/shows/${id}/audience`, { method: 'PUT', body: { audience } })
}
export function renameShow(id: string, name: string) {
return apiRequest<void>(`/admin/shows/${id}/name`, { method: 'PUT', body: { name } })
}