Enhance channel management with apply report feature
Added functionality to display a consolidated apply report for warnings after applying channel templates, improving user experience by reducing clutter from individual warning notifications. Updated the ChannelDetail component to manage the new report state and integrated the ApplyReportDialog for displaying the report. Refactored the Problems component to utilize a new PlanningWarnings component for better organization of warning messages. Localization strings were updated to include new report-related texts in both English and Russian.
This commit is contained in:
@@ -730,7 +730,7 @@ type PlanningWarningKind =
|
||||
| 'GenreShareExceeded'
|
||||
| 'FallbackShareExceeded'
|
||||
|
||||
type PlanningWarningDto = {
|
||||
export type PlanningWarningDto = {
|
||||
kind: PlanningWarningKind
|
||||
slotId: string | null
|
||||
details: string
|
||||
|
||||
@@ -715,6 +715,9 @@ export const en = {
|
||||
'References not restored: {{count}} — the group or junction was deleted after the apply.',
|
||||
apply: 'Apply',
|
||||
applied: 'Air rebuilt, entries: {{count}}',
|
||||
applyReport: 'Apply report',
|
||||
applyReportWarnings:
|
||||
'The planner could not honour every rule — {{count}} warnings. The air is built, but these spots are worth a look.',
|
||||
weekdays: {
|
||||
0: 'Sun',
|
||||
1: 'Mon',
|
||||
|
||||
@@ -710,6 +710,9 @@ export const ru = {
|
||||
'Ссылок не восстановлено: {{count}} — группа или стык были удалены после применения.',
|
||||
apply: 'Применить',
|
||||
applied: 'Эфир пересобран, записей: {{count}}',
|
||||
applyReport: 'Отчёт о применении',
|
||||
applyReportWarnings:
|
||||
'Планировщик выполнил не все правила — предупреждений: {{count}}. Эфир собран, но эти места стоит посмотреть.',
|
||||
weekdays: {
|
||||
0: 'Вс',
|
||||
1: 'Пн',
|
||||
|
||||
Reference in New Issue
Block a user