docs & ux improvmeents
This commit is contained in:
@@ -245,7 +245,7 @@ const AutomationPage: React.FC = () => {
|
||||
const handleRunNow = async () => {
|
||||
if (!activeSite) return;
|
||||
if (estimate && !estimate.sufficient) {
|
||||
toast.error(`Insufficient credits. Need ~${estimate.estimated_credits}, you have ${estimate.current_balance}`);
|
||||
toast.error(`Content limit reached. This run needs ~${estimate.estimated_credits} pieces, you have ${estimate.current_balance} remaining.`);
|
||||
return;
|
||||
}
|
||||
try {
|
||||
@@ -453,9 +453,9 @@ const AutomationPage: React.FC = () => {
|
||||
<div className="h-4 w-px bg-white/25"></div>
|
||||
<div className="text-sm text-white/90">
|
||||
<span className="font-medium">Est:</span>{' '}
|
||||
<span className="font-semibold text-white">{estimate?.estimated_credits || 0} credits</span>
|
||||
<span className="font-semibold text-white">{estimate?.estimated_credits || 0} content pieces</span>
|
||||
{estimate && !estimate.sufficient && (
|
||||
<span className="ml-1 text-white/90 font-semibold">(Low)</span>
|
||||
<span className="ml-1 text-white/90 font-semibold">(Limit reached)</span>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user