Add grid auto-build functionality with profile management and preview capabilities
ci / build-backend (push) Successful in 2m40s
ci / build-frontend (push) Successful in 1m14s
ci / tests (push) Successful in 2m45s
ci / sonar (push) Successful in 7m4s

Implemented new API endpoints and frontend components for grid auto-building based on predefined profiles. Added functionality to list grid profiles, preview generated grids, and generate grids with specified parameters. Enhanced the TemplateEndpoints and related services to support these features, improving the user experience for channel scheduling. Localization updates were made to accommodate new features in both English and Russian.
This commit is contained in:
Leonid Pershin
2026-07-27 08:08:56 +03:00
parent 6fe6404e61
commit bef029b858
33 changed files with 2623 additions and 44 deletions
@@ -0,0 +1,13 @@
using Microsoft.Extensions.Options;
using TeleWave.Application.Common.Interfaces;
namespace TeleWave.Infrastructure.Media;
/// <summary>
/// Читает параллельность транскода из настроек. Значение то же, по которому
/// <see cref="MediaProcessingBackgroundService"/> раздаёт слоты, — иначе оценка очереди врала бы.
/// </summary>
public sealed class MediaProcessingLimits(IOptions<MediaOptions> options) : IMediaProcessingLimits
{
public int MaxParallelTranscodes => Math.Max(1, options.Value.MaxParallelTranscodes);
}