Refactor AdminUserEndpoints and MediaEndpoints to include default parameter values for pagination and filtering, improving API usability. Update ManualInboxDialog to enhance show selection logic with auto-detection based on file names, and improve user feedback with new translations. Refactor PostgresFixture for better container management in integration tests.
build / backend (push) Successful in 2m26s
build / frontend (push) Successful in 1m5s
tests / backend-tests (push) Successful in 2m27s

This commit is contained in:
Leonid Pershin
2026-07-26 16:17:24 +03:00
parent 8fa4ea02fe
commit 2387223f0b
9 changed files with 297 additions and 82 deletions
@@ -32,16 +32,20 @@ public static class AdminUserEndpoints
return app;
}
/// <summary>
/// Все параметры со значениями по умолчанию: обязательный <c>bool</c> в query превращает
/// запрос без него в 400 ещё до хендлера — ошибку в таком виде отладить тяжело.
/// </summary>
private static async Task<IResult> ListUsers(
int page,
int pageSize,
string? search,
Guid? roleId,
bool? isBlocked,
string? sort,
bool desc,
ISender sender,
CancellationToken cancellationToken
CancellationToken cancellationToken,
int page = 1,
int pageSize = 20,
string? search = null,
Guid? roleId = null,
bool? isBlocked = null,
string? sort = null,
bool desc = false
)
{
var result = await sender.Send(