image gen mess

This commit is contained in:
IGNY8 VPS (Salman)
2026-01-03 22:31:30 +00:00
parent f518e1751b
commit c4de8994dd
9 changed files with 453 additions and 221 deletions

View File

@@ -326,12 +326,14 @@ export default function Images() {
.sort((a, b) => (a.position || 0) - (b.position || 0));
pendingInArticle.forEach((img, idx) => {
// Position is 0-indexed in backend, but labels should be 1-indexed for users
const displayPosition = (img.position ?? idx) + 1;
queue.push({
imageId: img.id || null,
index: queueIndex++,
label: `In-Article Image ${img.position || idx + 1}`,
label: `In-Article Image ${displayPosition}`,
type: 'in_article',
position: img.position || idx + 1,
position: img.position ?? idx,
contentTitle: contentImages.content_title || `Content #${contentId}`,
prompt: img.prompt || undefined,
status: 'pending',