Restructure Settings nav, modernize import page, dedup/genres UX polish
Settings is now one top-nav entry with Credentials and Jobs as sidebar sub-pages (jobs moved from /jobs to /settings/jobs). Manual import page replaces the bare file input and free-text filename field with a drag-drop dropzone and a proper file-picker table. Genres page drops the "force" checkbox for two explicit buttons (Preview / Fix genres now). Dedup's "Scan now" runs both the file-naming and acoustic passes together, and the table labels which pass caught each candidate instead of showing the raw pass name. .btn-ghost gets a visible border so it reads as a real button next to Delete/Danger actions instead of looking unaligned. Job names throughout the UI are now human-readable instead of raw job_key strings. Also includes the fpcalc exit-code fix from earlier (fingerprint index was discarding valid fingerprints on files with a benign decode warning).
This commit is contained in:
+11
-2
@@ -28,8 +28,17 @@ async def genres_index(request: Request, user: dict = Depends(require_auth), db=
|
||||
|
||||
|
||||
@router.post("/scan")
|
||||
async def scan(force: bool = Form(False), user: dict = Depends(require_auth)):
|
||||
await genre_review_service.run(apply=False, force=force, triggered_by="manual")
|
||||
async def scan(user: dict = Depends(require_auth)):
|
||||
# Always force=True: matches the weekly scheduled run's own behavior
|
||||
# (see genre_review_service.run's docstring), so a preview accurately
|
||||
# shows what "Fix genres now" would actually do.
|
||||
await genre_review_service.run(apply=False, force=True, triggered_by="manual")
|
||||
return RedirectResponse(url="/genres", status_code=303)
|
||||
|
||||
|
||||
@router.post("/apply")
|
||||
async def apply(user: dict = Depends(require_auth)):
|
||||
await genre_review_service.run(apply=True, force=True, triggered_by="manual")
|
||||
return RedirectResponse(url="/genres", status_code=303)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user