Refactor admin panels to utilize CreateNameDialog for creating new entities
ci / build-backend (push) Successful in 2m23s
ci / build-frontend (push) Successful in 54s
ci / tests (push) Successful in 2m18s
ci / sonar (push) Successful in 5m51s

Updated the BumpersPanel, ChannelsPanel, CollectionsPanel, GroupsPanel, ClipGroupPanel, and ShowsPanel components to replace direct input fields with a CreateNameDialog for creating new items. This change enhances user experience by centralizing the creation process and improving UI consistency. Localization strings were also updated to reflect new dialog titles and labels in both English and Russian.
This commit is contained in:
Leonid Pershin
2026-07-29 23:26:32 +03:00
parent c4a94443f7
commit 281d081e6b
13 changed files with 408 additions and 183 deletions
+8 -2
View File
@@ -87,6 +87,7 @@ export const en = {
admin: {
groups: {
title: 'Groups',
createTitle: 'Create a group',
hint: 'A group is what may go on air. Grid slots reference it; the strategy picks an element from it.',
name: 'Name',
description: 'Description',
@@ -169,6 +170,7 @@ export const en = {
'Takes the first parts cover for collections that have no poster yet. A hand-picked one is left alone.',
postersDone: 'Posters filled: {{count}}',
title: 'Collections',
createTitle: 'Create a collection',
hint: 'A franchise is an ordered set of films played as a single unit.',
name: 'Name',
description: 'Description',
@@ -213,7 +215,8 @@ export const en = {
pickGroupFirst: 'Pick a group first',
dropToGroup: 'Drop a clip or a block here',
openGroup: 'Open group',
newGroupName: 'New group',
newGroupName: 'Group name',
createGroupTitle: 'Create a clip group',
},
genres: {
title: 'Genres',
@@ -400,6 +403,7 @@ export const en = {
},
shows: {
title: 'Shows',
createTitle: 'Create a show',
name: 'Name',
originalName: 'Original name (eng)',
kind: 'Kind',
@@ -760,6 +764,7 @@ export const en = {
},
title: 'Channels',
createTitle: 'Create a channel',
name: 'Name',
slug: 'Slug',
state: 'State',
@@ -838,7 +843,8 @@ export const en = {
title: 'Bumpers',
hint: 'Bumper blocks are shared across channels: look and sound belong to the block, text to its variants. A bumper reaches air as a junction break.',
empty: 'No bumper blocks yet.',
newName: 'New block',
newName: 'Block name',
createTitle: 'Create a bumper block',
newNamePlaceholder: 'Block name',
newVariantName: 'New text',
sampleChannel: 'Preview as channel',