upto phase 4 completed
This commit is contained in:
@@ -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 && (
|
||||
|
||||
Reference in New Issue
Block a user