upto phase 4 completed

This commit is contained in:
IGNY8 VPS (Salman)
2026-01-10 14:59:57 +00:00
parent 6e15ffb49b
commit 747770ac58
5 changed files with 141 additions and 98 deletions

View File

@@ -797,7 +797,7 @@ const AutomationPage: React.FC = () => {
className={`
relative rounded-xl border border-gray-200 dark:border-gray-800 p-4 transition-all bg-white dark:bg-gray-900
border-l-[5px] ${stageBorderColor}
${isActive
${ isActive
? 'shadow-lg ring-2 ring-brand-200 dark:ring-brand-800'
: isComplete
? ''
@@ -840,10 +840,10 @@ const AutomationPage: React.FC = () => {
</div>
</div>
{/* Credits and Duration - only show during/after run */}
{result && (result.credits_used > 0 || result.time_elapsed) && (
{/* Credits and Duration - show during/after run */}
{result && (result.credits_used !== undefined || result.time_elapsed) && (
<div className="flex justify-between items-center py-2 border-t border-gray-200 dark:border-gray-700 text-xs">
{result.credits_used > 0 && (
{result.credits_used !== undefined && (
<span className="font-semibold text-warning-600 dark:text-warning-400">{result.credits_used} credits</span>
)}
{result.time_elapsed && (
@@ -960,7 +960,7 @@ const AutomationPage: React.FC = () => {
{pending}
</div>
</div>
<div className="h-8 w-px bg-gray-200 dark:bg-gray-700"></div>
<div className="h-8 w-px bg-gray-200 dark:border-gray-700"></div>
<div className="text-center">
<div className="text-xs font-medium text-gray-500 dark:text-gray-400 uppercase mb-0.5">Processed</div>
<div className={`text-xl font-bold ${processed > 0 ? 'text-success-600 dark:text-success-400' : 'text-gray-400 dark:text-gray-500'}`}>
@@ -969,10 +969,10 @@ const AutomationPage: React.FC = () => {
</div>
</div>
{/* Credits and Duration - only show during/after run */}
{result && (result.credits_used > 0 || result.time_elapsed) && (
{/* Credits and Duration - show during/after run */}
{result && (result.credits_used !== undefined || result.time_elapsed) && (
<div className="flex justify-between items-center py-2 border-t border-gray-200 dark:border-gray-700 text-xs">
{result.credits_used > 0 && (
{result.credits_used !== undefined && (
<span className="font-semibold text-warning-600 dark:text-warning-400">{result.credits_used} credits</span>
)}
{result.time_elapsed && (