Enhance channel and settings functionalities: introduce viewer settings in ChannelEndpoints, update SiteSettings to include channel number toggling, and refactor related data structures. Implement new endpoints for validating templates and diffing scheduling changes, improving overall user experience and configuration management.
build / backend (push) Successful in 1m54s
build / frontend (push) Successful in 43s
tests / backend-tests (push) Successful in 2m4s

This commit is contained in:
Leonid Pershin
2026-07-26 14:50:32 +03:00
parent 8494eb5e6a
commit f699576582
54 changed files with 5857 additions and 1631 deletions
@@ -0,0 +1,29 @@
using FluentValidation;
using LiteCqrs;
using TeleWave.Application.Common.Models;
using TeleWave.Domain.Broadcast;
namespace TeleWave.Application.Broadcast.UpdateViewerSettings;
/// <summary>
/// Оверлеи и аналоговый фильтр канала (см. 6.8). Отдельной командой, а не в общих настройках:
/// это про то, как канал выглядит у зрителя, и правится другими руками и в другой момент.
/// </summary>
public sealed record UpdateViewerSettingsCommand(
Guid ChannelId,
Guid? LogoImageId,
LogoCorner LogoCorner,
double LogoOpacity,
bool ShowClock,
double AnalogFilterStrength
) : ICommand<Result>;
public sealed class UpdateViewerSettingsCommandValidator
: AbstractValidator<UpdateViewerSettingsCommand>
{
public UpdateViewerSettingsCommandValidator()
{
RuleFor(x => x.LogoOpacity).InclusiveBetween(0.0, 1.0);
RuleFor(x => x.AnalogFilterStrength).InclusiveBetween(0.0, 1.0);
}
}