Add debug export functionality for channel analysis
ci / build-backend (push) Successful in 1m16s
ci / build-frontend (push) Successful in 42s
ci / tests (push) Successful in 1m24s
ci / sonar (push) Successful in 5m9s

Implemented a new endpoint for exporting debug data related to channel scheduling, allowing users to download an archive containing channel settings, slot states, and trace information. Updated the frontend to include a button for triggering the export, along with necessary API adjustments for handling the download. Enhanced localization strings to support the new debug export feature in both English and Russian. Updated .gitignore to include debug export files while ensuring the directory structure is maintained for development.
This commit is contained in:
Leonid Pershin
2026-07-31 02:58:17 +03:00
parent 01ba48e163
commit 9cd364b174
21 changed files with 1055 additions and 7 deletions
@@ -0,0 +1,13 @@
using LiteCqrs;
using TeleWave.Application.Common.Models;
namespace TeleWave.Application.Programming.Planning.DebugExport;
/// <summary>
/// Собрать отладочный дамп канала: всё, из чего строится сетка, плюс то, что из неё получилось.
///
/// Команда, а не запрос, хотя в БД ничего не меняет: копия архива ложится на диск, а побочный
/// эффект в запросе — это ровно то место, где потом ищут «почему после обновления страницы
/// появился файл».
/// </summary>
public sealed record ExportChannelDebugCommand(Guid ChannelId) : ICommand<Result<DebugExportDto>>;