Add NPC creation status tracking and progress reporting in Admin module

- Implemented getNPCsCreationStatus method in AdminController to retrieve the status of NPC creation jobs.
- Enhanced AdminService to manage NPC creation jobs, including job ID generation, progress updates, and error handling.
- Updated frontend CreateNPCView to display progress of NPC creation, including estimated time remaining and job status.
- Added localization strings for progress reporting in both German and English.
- Improved overall user experience by providing real-time feedback during NPC creation processes.
This commit is contained in:
Torsten Schulz (local)
2026-01-07 17:09:54 +01:00
parent b34dcac685
commit c322eb1e5a
8 changed files with 347 additions and 25 deletions

View File

@@ -135,7 +135,13 @@
"errorCreating": "Fehler beim Erstellen der NPCs.",
"invalidAgeRange": "Ungültiger Altersbereich.",
"invalidTitleRange": "Ungültiger Titel-Bereich.",
"invalidCount": "Ungültige Anzahl (1-500)."
"invalidCount": "Ungültige Anzahl (1-500).",
"progress": "Fortschritt",
"progressDetails": "{current} von {total} NPCs erstellt",
"timeRemainingSeconds": "Verbleibende Zeit: {seconds} Sekunden",
"timeRemainingMinutes": "Verbleibende Zeit: {minutes} Minuten {seconds} Sekunden",
"almostDone": "Fast fertig...",
"jobNotFound": "Job nicht gefunden oder abgelaufen."
}
},
"chatrooms": {

View File

@@ -162,7 +162,13 @@
"errorCreating": "Error creating NPCs.",
"invalidAgeRange": "Invalid age range.",
"invalidTitleRange": "Invalid title range.",
"invalidCount": "Invalid count (1-500)."
"invalidCount": "Invalid count (1-500).",
"progress": "Progress",
"progressDetails": "{current} of {total} NPCs created",
"timeRemainingSeconds": "Time remaining: {seconds} seconds",
"timeRemainingMinutes": "Time remaining: {minutes} minutes {seconds} seconds",
"almostDone": "Almost done...",
"jobNotFound": "Job not found or expired."
}
},
"chatrooms": {