Streamlined bulk import with inline progress bar and neutral labels

This commit is contained in:
Stu Leak 2025-12-04 12:41:51 -05:00
parent 919cf65f30
commit 0c01fec88c
2 changed files with 19 additions and 19 deletions

View File

@ -97,16 +97,16 @@ function displayGlobalSearchResults(data) {
// Bulk Import Functions
async function bulkImportAll() {
showLoader('Importing everything from TPDB...');
startJobProgress('TPDB bulk import');
showLoader('Importing everything...');
startJobProgress('Full library import');
try {
await importWithProgress('/api/import/all-performers/progress', 'Performers');
await importWithProgress('/api/import/all-studios/progress', 'Studios');
await importWithProgress('/api/import/all-scenes/progress', 'Scenes');
setImportStatus('import-all', 'Bulk import complete', true);
setImportStatus('import-all', 'Import complete', true);
setTimeout(() => location.reload(), 1500);
} catch (err) {
setImportStatus('import-all', `Bulk import error: ${err.message}`, false);
setImportStatus('import-all', `Import error: ${err.message}`, false);
} finally {
stopJobProgress();
hideLoader();
@ -114,8 +114,8 @@ async function bulkImportAll() {
}
async function bulkImportPerformers() {
showLoader('Importing performers from TPDB...');
startJobProgress('Importing performers from TPDB');
showLoader('Importing performers...');
startJobProgress('Importing performers');
try {
await importWithProgress('/api/import/all-performers/progress', 'Performers');
setTimeout(() => location.reload(), 1000);
@ -128,8 +128,8 @@ async function bulkImportPerformers() {
}
async function bulkImportStudios() {
showLoader('Importing studios from TPDB...');
startJobProgress('Importing studios from TPDB');
showLoader('Importing studios...');
startJobProgress('Importing studios');
try {
await importWithProgress('/api/import/all-studios/progress', 'Studios');
setTimeout(() => location.reload(), 1000);
@ -142,8 +142,8 @@ async function bulkImportStudios() {
}
async function bulkImportScenes() {
showLoader('Importing scenes from TPDB...');
startJobProgress('Importing scenes from TPDB');
showLoader('Importing scenes...');
startJobProgress('Importing scenes');
try {
await importWithProgress('/api/import/all-scenes/progress', 'Scenes');
setTimeout(() => location.reload(), 1000);

View File

@ -93,16 +93,16 @@
<!-- HERO -->
<section class="hero-section">
<h1 class="hero-title">Welcome to Goondex</h1>
<p class="hero-subtitle">TPDB bulk imports with Adult Empire enrichment</p>
<p class="hero-subtitle">Full-library sync with seamless enrichment</p>
<div class="hero-actions">
<button class="btn" onclick="bulkImportAll()">
TPDB Bulk Import
Full Import
<div class="hoverEffect"><div></div></div>
</button>
<button class="btn-secondary" onclick="syncAll()">
Sync Data
Sync Library
<div class="hoverEffect"><div></div></div>
</button>
</div>
@ -176,26 +176,26 @@
<!-- TPDB IMPORT/SYNC -->
<section class="import-section">
<h3 id="ae-import">TPDB Import & Sync</h3>
<h3 id="ae-import">Library Import & Sync</h3>
<p class="help-text">
Run bulk imports from TPDB, then enrich with AE/StashDB. Keep it running to build a complete base.
Run a full import, then sync regularly. Enrichment runs behind the scenes.
</p>
<div class="import-buttons">
<button class="btn" onclick="bulkImportAll()">
Import Everything (TPDB)
Import Everything
<div class="hoverEffect"><div></div></div>
</button>
<button class="btn-secondary" onclick="bulkImportPerformers()">
Import All Performers
Import Performers
<div class="hoverEffect"><div></div></div>
</button>
<button class="btn-secondary" onclick="bulkImportStudios()">
Import All Studios
Import Studios
<div class="hoverEffect"><div></div></div>
</button>
<button class="btn-secondary" onclick="bulkImportScenes()">
Import All Scenes
Import Scenes
<div class="hoverEffect"><div></div></div>
</button>
<button class="btn-secondary" onclick="syncAll()">