feat: simplify ready requests and add global search
Magent CI/CD / verify (push) Successful in 1m56s
Magent CI/CD / deploy-prod (push) Skipped
Magent CI/CD / deploy-beta (push) Successful in 48s

This commit is contained in:
2026-09-15 15:15:35 +12:00
parent dd51332f3c
commit 4ba1a5763e
10 changed files with 600 additions and 49 deletions
@@ -132,6 +132,17 @@ export default function NewRequestClient() {
if (!getToken()) router.push('/login')
}, [router])
useEffect(() => {
const params = new URLSearchParams(window.location.search)
const requestedType = params.get('type')
const requestedQuery = params.get('query')?.trim()
if ((requestedType === 'movie' || requestedType === 'tv') && requestedQuery) {
setMediaType(requestedType)
setQuery(requestedQuery)
window.setTimeout(() => searchSectionRef.current?.scrollIntoView({ behavior: 'smooth', block: 'center' }), 80)
}
}, [])
const selectedTitleId = selected?.tmdbId
useEffect(() => {
if (selectedTitleId) configureSectionRef.current?.focus()