Enhance ManualInboxDialog: add show selection dropdown for improved media organization and update translations for better user guidance. Simplify layout by removing redundant elements while maintaining user hints.
build / backend (push) Successful in 1m29s
build / frontend (push) Successful in 53s
tests / backend-tests (push) Successful in 1m57s

This commit is contained in:
Leonid Pershin
2026-07-26 15:55:06 +03:00
parent 6bca42754c
commit b5a47c6d8a
2 changed files with 20 additions and 17 deletions
@@ -177,6 +177,23 @@ export function ManualInboxDialog({ onClose }: { onClose: () => void }) {
</DialogHeader>
<div className="flex flex-col gap-3">
{/* Шоу — первое решение в этом диалоге: остальные поля лишь помогают разложить файлы. */}
<div className="flex flex-col gap-1.5">
<Label>{t('admin.media.manualShow')}</Label>
<Select value={showId} onValueChange={setShowId}>
<SelectTrigger>
<SelectValue placeholder={t('admin.media.manualPickShow')} />
</SelectTrigger>
<SelectContent>
{(shows ?? []).map((show) => (
<SelectItem key={show.id} value={show.id}>
{show.name}
</SelectItem>
))}
</SelectContent>
</Select>
</div>
<div className="grid gap-3 sm:grid-cols-3">
<div className="flex flex-col gap-1.5">
<Label>{t('common.search')}</Label>
@@ -375,23 +392,7 @@ export function ManualInboxDialog({ onClose }: { onClose: () => void }) {
<p className="text-xs text-amber-500">{t('admin.media.manualTruncated')}</p>
)}
<div className="flex flex-wrap items-center gap-2">
<Select value={showId} onValueChange={setShowId}>
<SelectTrigger className="w-72">
<SelectValue placeholder={t('admin.media.manualPickShow')} />
</SelectTrigger>
<SelectContent>
{(shows ?? []).map((show) => (
<SelectItem key={show.id} value={show.id}>
{show.name}
</SelectItem>
))}
</SelectContent>
</Select>
<span className="text-xs text-muted-foreground">
{t('admin.media.manualCleanupHint')}
</span>
</div>
<p className="text-xs text-muted-foreground">{t('admin.media.manualCleanupHint')}</p>
</div>
<DialogFooter>