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
+5
View File
@@ -72,11 +72,15 @@ export type MediaStatsDto = {
// ── Библиотека (шоу) ───────────────────────────────────────────────────────
export type ShowKind = 'Series' | 'Single'
/** Категория аудитории: обычное / детское / взрослое. */
export type ShowAudience = 'General' | 'Kids' | 'Adult'
export type ShowSummaryDto = {
id: string
name: string
originalName: string | null
kind: ShowKind
audience: ShowAudience
episodeCount: number
seasonCount: number
year: number | null
@@ -121,6 +125,7 @@ export type ShowDto = {
name: string
originalName: string | null
kind: ShowKind
audience: ShowAudience
description: string | null
metadataProvider: string | null
metadataExternalId: string | null
+4
View File
@@ -196,6 +196,8 @@ const resources = {
originalName: 'Оригинальное название (eng)',
kind: 'Тип',
kinds: { Series: 'Сериал', Single: 'Полнометражка' },
audience: 'Категория',
audiences: { General: 'Обычное', Kids: 'Детское', Adult: 'Взрослое' },
seasons: 'Сезоны',
loadedSeasons: 'Загружены сезоны',
episodes: 'Серии',
@@ -576,6 +578,8 @@ const resources = {
originalName: 'Original name (eng)',
kind: 'Kind',
kinds: { Series: 'Series', Single: 'Movie' },
audience: 'Category',
audiences: { General: 'General', Kids: 'Kids', Adult: 'Adult' },
seasons: 'Seasons',
loadedSeasons: 'Loaded seasons',
episodes: 'Episodes',