automation fixes (part2)

This commit is contained in:
IGNY8 VPS (Salman)
2025-12-28 03:15:39 +00:00
parent d4b9c8693a
commit f92b3fba6e
4 changed files with 543 additions and 37 deletions

View File

@@ -17,7 +17,7 @@ import {
import ActivityLog from '../../components/Automation/ActivityLog';
import ConfigModal from '../../components/Automation/ConfigModal';
import RunHistory from '../../components/Automation/RunHistory';
import CurrentProcessingCard from '../../components/Automation/CurrentProcessingCard';
import CurrentProcessingCard from '../../components/Automation/CurrentProcessingCardV2';
import GlobalProgressBar, { getProcessedFromResult } from '../../components/Automation/GlobalProgressBar';
import PageMeta from '../../components/common/PageMeta';
import PageHeader from '../../components/common/PageHeader';
@@ -960,35 +960,10 @@ const AutomationPage: React.FC = () => {
</div>
</div>
{stage7.pending > 0 && (
<div className="text-center py-4">
<div className="text-3xl font-bold text-amber-600 dark:text-amber-400">{stage7.pending}</div>
<div className="text-xs text-amber-700 dark:text-amber-300 mt-1">ready for review</div>
</div>
)}
<div className="mt-3 pt-3 border-t border-amber-200 dark:border-amber-700">
<Button
variant="primary"
tone="brand"
size="sm"
className="w-full text-xs"
disabled={stage7.pending === 0}
>
Go to Review
</Button>
<div className="mt-2">
<Button
variant="outline"
tone="success"
size="sm"
className="w-full text-xs"
disabled={stage7.pending === 0}
onClick={handlePublishAllWithoutReview}
>
Publish all Without Review
</Button>
</div>
{/* Simplified: Just show the count, no buttons */}
<div className="text-center py-4">
<div className="text-3xl font-bold text-amber-600 dark:text-amber-400">{stage7.pending}</div>
<div className="text-xs text-amber-700 dark:text-amber-300 mt-1">ready for review</div>
</div>
</div>
);