Update validation rules in ImportManualInboxCommand and ManualInboxDialog to allow season numbers starting from zero, reflecting the inclusion of special episodes and pilots. Adjust input constraints in the frontend to enhance user experience and ensure consistency with backend validation.
build / backend (push) Successful in 1m48s
build / frontend (push) Successful in 51s
tests / backend-tests (push) Successful in 2m2s

This commit is contained in:
Leonid Pershin
2026-07-26 15:53:09 +03:00
parent 7af6242003
commit 6bca42754c
3 changed files with 54 additions and 3 deletions
@@ -184,9 +184,10 @@ export function ManualInboxDialog({ onClose }: { onClose: () => void }) {
</div>
<div className="flex flex-col gap-1.5">
<Label>{t('admin.media.toShowSeason')}</Label>
{/* Ноль — законный сезон: в нём живут спецвыпуски и пилоты. */}
<Input
type="number"
min={1}
min={0}
placeholder={t('admin.media.toShowAuto')}
value={seasonStr}
onChange={(e) => setSeasonStr(e.target.value)}