Add automation runs quota tracking to quota management page
- Add max_automation_runs to QUOTA_CONFIG in QuotaService - Add runs_this_month and runs_month_started fields to TenantDefaultFlow - Add increment_run_count() method for tracking flow executions - Add Bot icon for automation quotas in frontend QuotaSettings 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -9,7 +9,7 @@ import { useTranslation } from 'react-i18next';
|
||||
import { useOutletContext, Link } from 'react-router-dom';
|
||||
import {
|
||||
AlertTriangle, Archive, Check, ChevronDown, ChevronUp,
|
||||
Clock, Download, Users, Briefcase, Calendar, RefreshCw
|
||||
Clock, Download, Users, Briefcase, Calendar, RefreshCw, Bot
|
||||
} from 'lucide-react';
|
||||
import { Business, User, QuotaOverage } from '../../types';
|
||||
import {
|
||||
@@ -136,6 +136,10 @@ const QuotaSettings: React.FC = () => {
|
||||
return <Briefcase className="h-5 w-5" />;
|
||||
case 'MAX_SERVICES':
|
||||
return <Calendar className="h-5 w-5" />;
|
||||
case 'MAX_AUTOMATION_RUNS':
|
||||
return <Bot className="h-5 w-5" />;
|
||||
case 'MAX_AUTOMATED_TASKS':
|
||||
return <Bot className="h-5 w-5" />;
|
||||
default:
|
||||
return <AlertTriangle className="h-5 w-5" />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user