Add rename show functionality: implement API endpoint for renaming shows, update Show model to support name changes, and enhance ShowMetadataCard UI for name input. Update translations for new UI elements to improve user experience.

This commit is contained in:
Leonid Pershin
2026-07-25 12:19:07 +03:00
parent 671bbb78bd
commit a34d929330
8 changed files with 86 additions and 21 deletions
+4
View File
@@ -24,6 +24,10 @@ export function createShow(body: {
return apiRequest<CreatedIdResponse>('/admin/shows', { method: 'POST', body })
}
export function renameShow(id: string, name: string) {
return apiRequest<void>(`/admin/shows/${id}/name`, { method: 'PUT', body: { name } })
}
export function setShowOriginalName(id: string, originalName: string | null) {
return apiRequest<void>(`/admin/shows/${id}/original-name`, {
method: 'PUT',