Will Miao
d188cec306
fix(recipes): restore batch import modal on reopen and log recipe ingest progress ( #1084 )
2026-08-26 22:32:20 +08:00
Will Miao
3c83e78d9f
feat(ui): auto-newline after pasting URL in download and batch-import textareas
...
Extract auto-newline-on-paste logic into shared setupAutoNewlineOnPaste() utility in uiHelpers.js.
Apply it to both the Download modal (modelUrl) and Batch Import modal (batchUrlInput)
textarea, so users can paste multiple URLs in succession without manually pressing Enter.
2026-07-02 10:53:33 +08:00
Will Miao
b633b22779
fix(recipe): prevent empty grid by removing preserveScroll from refresh triggers
...
Bug: when scrolling down on recipes page, any operation with
preserveScroll: true would fetch only page 1 data then restore
scroll position to beyond the loaded items, leaving the grid empty.
Fix:
- Remove preserveScroll: true from all 7 must-refresh trigger
paths (filter, search, sort, import, settings reload, sync,
rebuild cache, sidebar folder nav)
- Replace full list refresh with updateSingleItem() for repair
and bulk missing-LoRA download operations
- Update tests to match new scroll-free behavior
2026-06-02 08:15:29 +08:00
Will Miao
ba1800095e
fix(recipes): preserve scroll on in-place reloads
2026-04-13 10:30:50 +08:00
Will Miao
03e1fa75c5
feat: auto-focus URL input when batch import modal opens
2026-03-18 22:33:45 +08:00
Will Miao
22c0dbd734
feat(recipes): persist 'Skip images without metadata' choice in batch import
2026-03-17 11:01:41 +08:00
Will Miao
ee466113d5
feat: implement batch import recipe functionality (frontend + backend fixes)
...
Backend fixes:
- Add missing API route for /api/lm/recipes/batch-import/progress (GET)
- Add missing API route for /api/lm/recipes/batch-import/directory (POST)
- Add missing API route for /api/lm/recipes/browse-directory (POST)
- Register WebSocket endpoint for batch import progress
- Fix skip_no_metadata default value (True -> False) to allow no-LoRA imports
- Add items array to BatchImportProgress.to_dict() for detailed results
Frontend implementation:
- Create BatchImportManager.js with complete batch import workflow
- Add directory browser UI for selecting folders
- Add batch import modal with URL list and directory input modes
- Implement real-time progress tracking (WebSocket + HTTP polling)
- Add results summary with success/failed/skipped statistics
- Add expandable details view showing individual item status
- Auto-refresh recipe list after import completion
UI improvements:
- Add spinner animation for importing status
- Simplify results summary UI to match progress stats styling
- Fix current item text alignment
- Fix dark theme styling for directory browser button
- Fix batch import button styling consistency
Translations:
- Add batch import related i18n keys to all locale files
- Run sync_translation_keys.py to sync all translations
Fixes:
- Batch import now allows images without LoRAs (matches single import behavior)
- Progress endpoint now returns complete items array with status details
- Results view correctly displays skipped items with error messages
2026-03-16 09:41:58 +08:00