feat(migrations): Rename indexes and update global integration settings fields for improved clarity and functionality
feat(admin): Add API monitoring, debug console, and system health templates for enhanced admin interface docs: Add AI system cleanup summary and audit report detailing architecture, token management, and recommendations docs: Introduce credits and tokens system guide outlining configuration, data flow, and monitoring strategies
This commit is contained in:
@@ -32,14 +32,6 @@ interface ImageQueueModalProps {
|
||||
model?: string;
|
||||
provider?: string;
|
||||
onUpdateQueue?: (queue: ImageQueueItem[]) => void;
|
||||
onLog?: (log: {
|
||||
timestamp: string;
|
||||
type: 'request' | 'success' | 'error' | 'step';
|
||||
action: string;
|
||||
data: any;
|
||||
stepName?: string;
|
||||
percentage?: number;
|
||||
}) => void;
|
||||
}
|
||||
|
||||
export default function ImageQueueModal({
|
||||
@@ -51,7 +43,6 @@ export default function ImageQueueModal({
|
||||
model,
|
||||
provider,
|
||||
onUpdateQueue,
|
||||
onLog,
|
||||
}: ImageQueueModalProps) {
|
||||
const [localQueue, setLocalQueue] = useState<ImageQueueItem[]>(queue);
|
||||
// Track smooth progress animation for each item
|
||||
@@ -250,43 +241,6 @@ export default function ImageQueueModal({
|
||||
console.log(`[ImageQueueModal] Task completed with state:`, taskState);
|
||||
clearInterval(pollInterval);
|
||||
|
||||
// Log completion status
|
||||
if (onLog) {
|
||||
if (taskState === 'SUCCESS') {
|
||||
const result = data.result || (data.meta && data.meta.result);
|
||||
const completed = result?.completed || 0;
|
||||
const failed = result?.failed || 0;
|
||||
const total = result?.total_images || totalImages;
|
||||
|
||||
onLog({
|
||||
timestamp: new Date().toISOString(),
|
||||
type: failed > 0 ? 'error' : 'success',
|
||||
action: 'generate_images',
|
||||
stepName: 'Task Completed',
|
||||
data: {
|
||||
state: 'SUCCESS',
|
||||
completed,
|
||||
failed,
|
||||
total,
|
||||
results: result?.results || []
|
||||
}
|
||||
});
|
||||
} else {
|
||||
// FAILURE
|
||||
onLog({
|
||||
timestamp: new Date().toISOString(),
|
||||
type: 'error',
|
||||
action: 'generate_images',
|
||||
stepName: 'Task Failed',
|
||||
data: {
|
||||
state: 'FAILURE',
|
||||
error: data.error || data.meta?.error || 'Task failed',
|
||||
meta: data.meta
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Update final state
|
||||
if (taskState === 'SUCCESS' && data.result) {
|
||||
console.log(`[ImageQueueModal] Updating queue from result:`, data.result);
|
||||
|
||||
Reference in New Issue
Block a user