rickyfarmer / index.html
itsrawlinz's picture
Add 3 files
9a0b3bc verified
raw
history blame contribute delete
62.8 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Business Operation System - Overseer Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.department-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.agent-status-indicator {
width: 12px;
height: 12px;
border-radius: 50%;
display: inline-block;
margin-right: 6px;
}
.status-active {
background-color: #10B981;
}
.status-warning {
background-color: #F59E0B;
}
.status-critical {
background-color: #EF4444;
}
.status-idle {
background-color: #6B7280;
}
.task-item:hover {
background-color: #F3F4F6;
}
.alert-critical {
border-left: 4px solid #EF4444;
}
.alert-warning {
border-left: 4px solid #F59E0B;
}
.alert-info {
border-left: 4px solid #3B82F6;
}
.alert-emergency {
border-left: 4px solid #FF00FF;
animation: pulse 1s infinite;
}
.command-input:focus {
outline: none;
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}
.sidebar {
transition: all 0.3s ease;
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
.pulse {
animation: pulse 2s infinite;
}
.emergency-protocol {
background-color: #FFF5F5;
border-left: 4px solid #EF4444;
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar bg-gray-900 text-white w-64 flex-shrink-0 flex flex-col">
<div class="p-4 border-b border-gray-800">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 rounded-full bg-indigo-600 flex items-center justify-center">
<i class="fas fa-robot text-white"></i>
</div>
<div>
<h1 class="font-bold text-lg">Overseer</h1>
<p class="text-xs text-gray-400">Master Agent</p>
</div>
</div>
</div>
<div class="p-4 border-b border-gray-800">
<div class="flex items-center justify-between mb-2">
<h2 class="text-sm font-semibold text-gray-400 uppercase tracking-wider">System Status</h2>
<span class="text-xs bg-green-500 text-white px-2 py-1 rounded-full">Operational</span>
</div>
<div class="space-y-2">
<div class="flex justify-between text-sm">
<span class="text-gray-400">Agents Active</span>
<span class="font-medium">34/36</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">Tasks Today</span>
<span class="font-medium">189</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">CPU Load</span>
<span class="font-medium">48%</span>
</div>
</div>
</div>
<nav class="flex-1 overflow-y-auto">
<div class="space-y-1 p-2">
<a href="#" class="flex items-center space-x-3 px-3 py-2 bg-gray-800 rounded-md text-sm font-medium">
<i class="fas fa-tachometer-alt text-gray-300"></i>
<span>Dashboard</span>
</a>
<a href="#" class="flex items-center space-x-3 px-3 py-2 hover:bg-gray-800 rounded-md text-sm font-medium text-gray-300 hover:text-white">
<i class="fas fa-tasks text-gray-300"></i>
<span>Task Manager</span>
</a>
<a href="#" class="flex items-center space-x-3 px-3 py-2 hover:bg-gray-800 rounded-md text-sm font-medium text-gray-300 hover:text-white">
<i class="fas fa-chart-line text-gray-300"></i>
<span>Analytics</span>
</a>
<a href="#" class="flex items-center space-x-3 px-3 py-2 hover:bg-gray-800 rounded-md text-sm font-medium text-gray-300 hover:text-white">
<i class="fas fa-bell text-gray-300"></i>
<span>Alerts</span>
<span class="bg-red-500 text-white text-xs px-2 py-0.5 rounded-full">5</span>
</a>
<a href="#" class="flex items-center space-x-3 px-3 py-2 hover:bg-gray-800 rounded-md text-sm font-medium text-gray-300 hover:text-white">
<i class="fas fa-fire text-gray-300"></i>
<span>Emergency Protocols</span>
</a>
<a href="#" class="flex items-center space-x-3 px-3 py-2 hover:bg-gray-800 rounded-md text-sm font-medium text-gray-300 hover:text-white">
<i class="fas fa-cog text-gray-300"></i>
<span>Settings</span>
</a>
</div>
<div class="p-4 border-t border-gray-800">
<h2 class="text-sm font-semibold text-gray-400 uppercase tracking-wider mb-2">Departments</h2>
<div class="space-y-1">
<a href="#" class="flex items-center space-x-2 px-2 py-1 text-sm rounded hover:bg-gray-800 text-gray-300 hover:text-white">
<span class="w-2 h-2 rounded-full bg-blue-500"></span>
<span>Strategy</span>
</a>
<a href="#" class="flex items-center space-x-2 px-2 py-1 text-sm rounded hover:bg-gray-800 text-gray-300 hover:text-white">
<span class="w-2 h-2 rounded-full bg-purple-500"></span>
<span>Marketing</span>
</a>
<a href="#" class="flex items-center space-x-2 px-2 py-1 text-sm rounded hover:bg-gray-800 text-gray-300 hover:text-white">
<span class="w-2 h-2 rounded-full bg-green-500"></span>
<span>Sales</span>
</a>
<a href="#" class="flex items-center space-x-2 px-2 py-1 text-sm rounded hover:bg-gray-800 text-gray-300 hover:text-white">
<span class="w-2 h-2 rounded-full bg-yellow-500"></span>
<span>Product</span>
</a>
<a href="#" class="flex items-center space-x-2 px-2 py-1 text-sm rounded hover:bg-gray-800 text-gray-300 hover:text-white">
<span class="w-2 h-2 rounded-full bg-red-500"></span>
<span>Operations</span>
</a>
<a href="#" class="flex items-center space-x-2 px-2 py-1 text-sm rounded hover:bg-gray-800 text-gray-300 hover:text-white">
<span class="w-2 h-2 rounded-full bg-indigo-500"></span>
<span>Customer Success</span>
</a>
<a href="#" class="flex items-center space-x-2 px-2 py-1 text-sm rounded hover:bg-gray-800 text-gray-300 hover:text-white">
<span class="w-2 h-2 rounded-full bg-pink-500"></span>
<span>Tech Infrastructure</span>
</a>
<a href="#" class="flex items-center space-x-2 px-2 py-1 text-sm rounded hover:bg-gray-800 text-gray-300 hover:text-white">
<span class="w-2 h-2 rounded-full bg-teal-500"></span>
<span>Finance</span>
</a>
<a href="#" class="flex items-center space-x-2 px-2 py-1 text-sm rounded hover:bg-gray-800 text-gray-300 hover:text-white">
<span class="w-2 h-2 rounded-full bg-orange-500"></span>
<span>Conflict Resolution</span>
</a>
</div>
</div>
</nav>
<div class="p-4 border-t border-gray-800">
<div class="flex items-center space-x-3">
<div class="w-8 h-8 rounded-full bg-gray-700 flex items-center justify-center">
<i class="fas fa-user text-gray-300"></i>
</div>
<div>
<p class="text-sm font-medium">Human Founder</p>
<p class="text-xs text-gray-400">Admin</p>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div class="flex-1 overflow-auto">
<!-- Top Navigation -->
<header class="bg-white shadow-sm">
<div class="px-6 py-4 flex items-center justify-between">
<div class="flex items-center space-x-4">
<h1 class="text-xl font-semibold text-gray-900">Overseer Dashboard</h1>
<div class="text-sm bg-blue-50 text-blue-600 px-3 py-1 rounded-full flex items-center">
<span class="w-2 h-2 rounded-full bg-blue-500 mr-2"></span>
<span>Live Updates</span>
</div>
</div>
<div class="flex items-center space-x-4">
<button class="p-2 rounded-full hover:bg-gray-100">
<i class="fas fa-sync-alt text-gray-500"></i>
</button>
<button id="emergencyProtocolBtn" class="flex items-center space-x-1 bg-red-50 text-red-600 px-3 py-1 rounded-full hover:bg-red-100">
<i class="fas fa-fire"></i>
<span class="text-sm">Emergency Mode</span>
</button>
<div class="relative">
<button class="p-2 rounded-full hover:bg-gray-100 relative">
<i class="fas fa-bell text-gray-500"></i>
<span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span>
</button>
</div>
<div class="flex items-center space-x-2">
<div class="w-8 h-8 rounded-full bg-gray-200 flex items-center justify-center">
<i class="fas fa-user text-gray-600"></i>
</div>
<span class="text-sm font-medium">Founder</span>
</div>
</div>
</div>
</header>
<!-- Main Dashboard -->
<main class="p-6">
<!-- Emergency Protocol Panel (Hidden by default) -->
<div id="emergencyProtocolPanel" class="emergency-protocol mb-6 p-4 rounded-lg shadow hidden">
<div class="flex items-center justify-between mb-3">
<h2 class="text-lg font-semibold text-red-700 flex items-center">
<i class="fas fa-fire mr-2"></i>
Emergency Protocols Activated
</h2>
<button id="disableEmergencyBtn" class="text-sm bg-green-500 text-white px-3 py-1 rounded hover:bg-green-600">
Disable Emergency Mode
</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
<div class="bg-white p-3 rounded border border-red-200">
<h3 class="font-medium text-red-700 mb-2">Protocol 1: System Lockdown</h3>
<p class="text-sm text-gray-600">All external communications paused, sensitive data secured</p>
<div class="mt-2 flex items-center text-sm">
<span class="agent-status-indicator status-active"></span>
<span>Active</span>
</div>
</div>
<div class="bg-white p-3 rounded border border-red-200">
<h3 class="font-medium text-red-700 mb-2">Protocol 2: Backup Initiated</h3>
<p class="text-sm text-gray-600">All critical data being backed up to secure locations</p>
<div class="mt-2 flex items-center text-sm">
<span class="agent-status-indicator status-active"></span>
<span>Active</span>
</div>
</div>
<div class="bg-white p-3 rounded border border-red-200">
<h3 class="font-medium text-red-700 mb-2">Protocol 3: Conflict Resolution</h3>
<p class="text-sm text-gray-600">Conflict Resolution Agent analyzing system anomalies</p>
<div class="mt-2 flex items-center text-sm">
<span class="agent-status-indicator status-active"></span>
<span>Active</span>
</div>
</div>
</div>
</div>
<!-- Command Bar -->
<div class="mb-6">
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i class="fas fa-terminal text-gray-400"></i>
</div>
<input type="text" class="command-input block w-full pl-10 pr-3 py-3 border border-gray-300 rounded-lg bg-gray-50 focus:ring-2 focus:ring-blue-500 focus:border-blue-500" placeholder="Enter command (e.g. 'Overseer, give me the current performance of Marketing and Sales')">
<div class="absolute inset-y-0 right-0 flex items-center pr-3">
<button class="text-gray-400 hover:text-gray-600">
<i class="fas fa-microphone"></i>
</button>
</div>
</div>
<div class="mt-2 text-xs text-gray-500">
Try: "Activate emergency protocol", "Pause all non-critical agents", "Show conflict resolution log"
</div>
</div>
<!-- Alerts Section -->
<div class="mb-6">
<h2 class="text-lg font-semibold mb-3 flex items-center">
<i class="fas fa-exclamation-triangle text-red-500 mr-2"></i>
Priority Alerts
</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
<div class="alert-emergency bg-white p-4 rounded-lg shadow border-l-4 border-purple-500">
<div class="flex justify-between items-start">
<div>
<h3 class="font-medium text-purple-700">Agent Conflict Detected</h3>
<p class="text-sm text-gray-600 mt-1">Conflict between Sales and Marketing agents on lead prioritization</p>
</div>
<span class="text-xs bg-purple-100 text-purple-800 px-2 py-1 rounded-full">Conflict</span>
</div>
<div class="mt-3 flex space-x-2">
<button class="text-xs bg-purple-500 text-white px-3 py-1 rounded hover:bg-purple-600">Resolve Now</button>
<button class="text-xs bg-white border border-gray-300 text-gray-700 px-3 py-1 rounded hover:bg-gray-50">View Details</button>
</div>
</div>
<div class="alert-critical bg-white p-4 rounded-lg shadow border-l-4 border-red-500">
<div class="flex justify-between items-start">
<div>
<h3 class="font-medium text-red-700">Security Breach Attempt</h3>
<p class="text-sm text-gray-600 mt-1">Tech Infrastructure Agent detected unauthorized API access attempts</p>
</div>
<span class="text-xs bg-red-100 text-red-800 px-2 py-1 rounded-full">Critical</span>
</div>
<div class="mt-3 flex space-x-2">
<button class="text-xs bg-red-500 text-white px-3 py-1 rounded hover:bg-red-600">Lockdown</button>
<button class="text-xs bg-white border border-gray-300 text-gray-700 px-3 py-1 rounded hover:bg-gray-50">Investigate</button>
</div>
</div>
<div class="alert-warning bg-white p-4 rounded-lg shadow border-l-4 border-yellow-500">
<div class="flex justify-between items-start">
<div>
<h3 class="font-medium text-yellow-700">Resource Allocation Conflict</h3>
<p class="text-sm text-gray-600 mt-1">Multiple departments requesting same computational resources</p>
</div>
<span class="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded-full">Warning</span>
</div>
<div class="mt-3 flex space-x-2">
<button class="text-xs bg-yellow-500 text-white px-3 py-1 rounded hover:bg-yellow-600">Optimize</button>
<button class="text-xs bg-white border border-gray-300 text-gray-700 px-3 py-1 rounded hover:bg-gray-50">Review</button>
</div>
</div>
</div>
</div>
<!-- Departments Overview -->
<div class="mb-6">
<h2 class="text-lg font-semibold mb-3 flex items-center">
<i class="fas fa-sitemap text-indigo-500 mr-2"></i>
Department Status
</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
<!-- Strategy Department -->
<div class="department-card bg-white p-4 rounded-lg shadow border-t-4 border-blue-500 transition duration-300">
<div class="flex justify-between items-start mb-3">
<h3 class="font-medium">Strategy</h3>
<span class="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded-full">4 agents active</span>
</div>
<div class="space-y-2">
<div class="flex items-center text-sm">
<span class="agent-status-indicator status-active"></span>
<span>Market Intelligence</span>
<span class="ml-auto text-xs text-gray-500" title="Monitors competitors, industry trends">ℹ️</span>
</div>
<div class="flex items-center text-sm">
<span class="agent-status-indicator status-active"></span>
<span>Trend Forecasting</span>
<span class="ml-auto text-xs text-gray-500" title="Predicts market shifts using ML models">ℹ️</span>
</div>
<div class="flex items-center text-sm">
<span class="agent-status-indicator status-warning"></span>
<span>SWOT Analyst</span>
<span class="ml-auto text-xs text-gray-500" title="Identifies strengths/weaknesses">ℹ️</span>
</div>
<div class="flex items-center text-sm">
<span class="agent-status-indicator status-active"></span>
<span>Risk Assessment</span>
<span class="ml-auto text-xs text-gray-500" title="Evaluates potential business risks">ℹ️</span>
</div>
</div>
<div class="mt-4 pt-3 border-t border-gray-100 flex justify-between text-xs text-gray-500">
<span>Last report: 9 min ago</span>
<span>5 tasks pending</span>
</div>
</div>
<!-- Marketing Department -->
<div class="department-card bg-white p-4 rounded-lg shadow border-t-4 border-purple-500 transition duration-300">
<div class="flex justify-between items-start mb-3">
<h3 class="font-medium">Marketing</h3>
<span class="text-xs bg-purple-100 text-purple-800 px-2 py-1 rounded-full">6 agents active</span>
</div>
<div class="space-y-2">
<div class="flex items-center text-sm">
<span class="agent-status-indicator status-active"></span>
<span>SEO Agent</span>
<span class="ml-auto text-xs text-gray-500" title="Optimizes search visibility">ℹ️</span>
</div>
<div class="flex items-center text-sm">
<span class="agent-status-indicator status-warning"></span>
<span>Paid Ads</span>
<span class="ml-auto text-xs text-gray-500" title="Manages ad campaigns & budgets">ℹ️</span>
</div>
<div class="flex items-center text-sm">
<span class="agent-status-indicator status-active"></span>
<span>Content Writer</span>
<span class="ml-auto text-xs text-gray-500" title="Creates marketing content">ℹ️</span>
</div>
<div class="flex items-center text-sm">
<span class="agent-status-indicator status-active"></span>
<span>Social Media</span>
<span class="ml-auto text-xs text-gray-500" title="Manages social engagement">ℹ️</span>
</div>
<div class="flex items-center text-sm">
<span class="agent-status-indicator status-idle"></span>
<span>Email Campaign</span>
<span class="ml-auto text-xs text-gray-500" title="Handles email marketing">ℹ️</span>
</div>
<div class="flex items-center text-sm">
<span class="agent-status-indicator status-active"></span>
<span>Brand Guardian</span>
<span class="ml-auto text-xs text-gray-500" title="Ensures brand consistency">ℹ️</span>
</div>
</div>
<div class="mt-4 pt-3 border-t border-gray-100 flex justify-between text-xs text-gray-500">
<span>Last report: 5 min ago</span>
<span>8 tasks pending</span>
</div>
</div>
<!-- Conflict Resolution Department -->
<div class="department-card bg-white p-4 rounded-lg shadow border-t-4 border-orange-500 transition duration-300">
<div class="flex justify-between items-start mb-3">
<h3 class="font-medium">Conflict Resolution</h3>
<span class="text-xs bg-orange-100 text-orange-800 px-2 py-1 rounded-full">2 agents active</span>
</div>
<div class="space-y-2">
<div class="flex items-center text-sm">
<span class="agent-status-indicator status-active"></span>
<span>Mediator Agent</span>
<span class="ml-auto text-xs text-gray-500" title="Resolves inter-agent conflicts">ℹ️</span>
</div>
<div class="flex items-center text-sm">
<span class="agent-status-indicator status-active"></span>
<span>Priority Arbitrator</span>
<span class="ml-auto text-xs text-gray-500" title="Decides on competing priorities">ℹ️</span>
</div>
<div class="flex items-center text-sm">
<span class="agent-status-indicator status-idle"></span>
<span>Ethics Compliance</span>
<span class="ml-auto text-xs text-gray-500" title="Ensures ethical operations">ℹ️</span>
</div>
</div>
<div class="mt-4 pt-3 border-t border-gray-100 flex justify-between text-xs text-gray-500">
<span>Last report: 2 min ago</span>
<span>3 active cases</span>
</div>
</div>
<!-- Operations Department -->
<div class="department-card bg-white p-4 rounded-lg shadow border-t-4 border-red-500 transition duration-300">
<div class="flex justify-between items-start mb-3">
<h3 class="font-medium">Operations</h3>
<span class="text-xs bg-red-100 text-red-800 px-2 py-1 rounded-full">4 agents active</span>
</div>
<div class="space-y-2">
<div class="flex items-center text-sm">
<span class="agent-status-indicator status-active"></span>
<span>Automation Manager</span>
<span class="ml-auto text-xs text-gray-500" title="Orchestrates workflows">ℹ️</span>
</div>
<div class="flex items-center text-sm">
<span class="agent-status-indicator status-active"></span>
<span>Task Coordinator</span>
<span class="ml-auto text-xs text-gray-500" title="Schedules agent tasks">ℹ️</span>
</div>
<div class="flex items-center text-sm">
<span class="agent-status-indicator status-warning"></span>
<span>Internal Comms</span>
<span class="ml-auto text-xs text-gray-500" title="Manages agent communication">ℹ️</span>
</div>
<div class="flex items-center text-sm">
<span class="agent-status-indicator status-active"></span>
<span>Emergency Protocol</span>
<span class="ml-auto text-xs text-gray-500" title="Handles crisis situations">ℹ️</span>
</div>
</div>
<div class="mt-4 pt-3 border-t border-gray-100 flex justify-between text-xs text-gray-500">
<span>Last report: 1 min ago</span>
<span>2 tasks pending</span>
</div>
</div>
</div>
</div>
<!-- Recent Activity and Task Queue -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- Recent Activity -->
<div class="lg:col-span-2">
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="px-4 py-3 border-b border-gray-200 flex justify-between items-center">
<h2 class="font-semibold text-gray-800">Recent Activity Log</h2>
<button class="text-xs bg-gray-100 text-gray-600 px-3 py-1 rounded hover:bg-gray-200">View All</button>
</div>
<div class="divide-y divide-gray-200 max-h-96 overflow-y-auto">
<!-- Activity Item -->
<div class="p-4 hover:bg-gray-50">
<div class="flex items-start">
<div class="flex-shrink-0 mt-1">
<div class="w-8 h-8 rounded-full bg-orange-100 flex items-center justify-center">
<i class="fas fa-robot text-orange-500"></i>
</div>
</div>
<div class="ml-3 flex-1">
<div class="flex items-center justify-between">
<p class="text-sm font-medium text-gray-900">Mediator Agent</p>
<p class="text-xs text-gray-500">1 min ago</p>
</div>
<p class="text-sm text-gray-600">Resolved priority conflict between Sales and Marketing departments</p>
<div class="mt-2 text-xs text-orange-600 bg-orange-50 px-2 py-1 rounded inline-block">
<i class="fas fa-check-circle mr-1"></i> Solution: Implemented weighted lead scoring system
</div>
</div>
</div>
</div>
<!-- Activity Item -->
<div class="p-4 hover:bg-gray-50">
<div class="flex items-start">
<div class="flex-shrink-0 mt-1">
<div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center">
<i class="fas fa-robot text-blue-500"></i>
</div>
</div>
<div class="ml-3 flex-1">
<div class="flex items-center justify-between">
<p class="text-sm font-medium text-gray-900">SEO Agent</p>
<p class="text-xs text-gray-500">4 min ago</p>
</div>
<p class="text-sm text-gray-600">Published 3 new blog posts and optimized metadata for 12 product pages</p>
</div>
</div>
</div>
<!-- Activity Item -->
<div class="p-4 hover:bg-gray-50">
<div class="flex items-start">
<div class="flex-shrink-0 mt-1">
<div class="w-8 h-8 rounded-full bg-red-100 flex items-center justify-center">
<i class="fas fa-robot text-red-500"></i>
</div>
</div>
<div class="ml-3 flex-1">
<div class="flex items-center justify-between">
<p class="text-sm font-medium text-gray-900">Emergency Protocol</p>
<p class="text-xs text-gray-500">7 min ago</p>
</div>
<p class="text-sm text-gray-600">Initiated Protocol 1: System Lockdown after security breach detection</p>
<div class="mt-2 text-xs text-red-600 bg-red-50 px-2 py-1 rounded inline-block">
<i class="fas fa-shield-alt mr-1"></i> All external APIs temporarily disabled
</div>
</div>
</div>
</div>
<!-- Activity Item -->
<div class="p-4 hover:bg-gray-50">
<div class="flex items-start">
<div class="flex-shrink-0 mt-1">
<div class="w-8 h-8 rounded-full bg-green-100 flex items-center justify-center">
<i class="fas fa-robot text-green-500"></i>
</div>
</div>
<div class="ml-3 flex-1">
<div class="flex items-center justify-between">
<p class="text-sm font-medium text-gray-900">Lead Generation</p>
<p class="text-xs text-gray-500">12 min ago</p>
</div>
<p class="text-sm text-gray-600">Identified 47 new high-potential leads from target industries</p>
</div>
</div>
</div>
<!-- Activity Item -->
<div class="p-4 hover:bg-gray-50">
<div class="flex items-start">
<div class="flex-shrink-0 mt-1">
<div class="w-8 h-8 rounded-full bg-yellow-100 flex items-center justify-center">
<i class="fas fa-robot text-yellow-500"></i>
</div>
</div>
<div class="ml-3 flex-1">
<div class="flex items-center justify-between">
<p class="text-sm font-medium text-gray-900">Feedback Analysis</p>
<p class="text-xs text-gray-500">18 min ago</p>
</div>
<p class="text-sm text-gray-600">Processed 126 customer feedback items - sentiment score: 78% positive</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Task Queue -->
<div>
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="px-4 py-3 border-b border-gray-200 flex justify-between items-center">
<h2 class="font-semibold text-gray-800">Human Approval Queue</h2>
<span class="text-xs bg-blue-500 text-white px-2 py-1 rounded-full">4 pending</span>
</div>
<div class="divide-y divide-gray-200 max-h-96 overflow-y-auto">
<!-- Task Item -->
<div class="task-item p-4 hover:bg-gray-50">
<div class="flex justify-between items-start">
<div>
<p class="text-sm font-medium text-gray-900">Emergency Protocol Activation</p>
<p class="text-xs text-gray-500 mt-1">From: Security Agent</p>
</div>
<span class="text-xs bg-red-100 text-red-800 px-2 py-1 rounded-full">Critical</span>
</div>
<p class="text-sm text-gray-600 mt-2">Request to activate full emergency protocols due to sustained attack attempts</p>
<div class="mt-3 flex space-x-2">
<button class="text-xs bg-green-500 text-white px-3 py-1 rounded hover:bg-green-600">Approve</button>
<button class="text-xs bg-red-500 text-white px-3 py-1 rounded hover:bg-red-600">Deny</button>
<button class="text-xs bg-white border border-gray-300 text-gray-700 px-3 py-1 rounded hover:bg-gray-50">Review</button>
</div>
</div>
<!-- Task Item -->
<div class="task-item p-4 hover:bg-gray-50">
<div class="flex justify-between items-start">
<div>
<p class="text-sm font-medium text-gray-900">Conflict Resolution Escalation</p>
<p class="text-xs text-gray-500 mt-1">From: Mediator Agent</p>
</div>
<span class="text-xs bg-orange-100 text-orange-800 px-2 py-1 rounded-full">High Priority</span>
</div>
<p class="text-sm text-gray-600 mt-2">Unable to resolve resource allocation conflict between Product and Engineering</p>
<div class="mt-3 flex space-x-2">
<button class="text-xs bg-green-500 text-white px-3 py-1 rounded hover:bg-green-600">Approve</button>
<button class="text-xs bg-red-500 text-white px-3 py-1 rounded hover:bg-red-600">Deny</button>
<button class="text-xs bg-white border border-gray-300 text-gray-700 px-3 py-1 rounded hover:bg-gray-50">Suggest Solution</button>
</div>
</div>
<!-- Task Item -->
<div class="task-item p-4 hover:bg-gray-50">
<div class="flex justify-between items-start">
<div>
<p class="text-sm font-medium text-gray-900">Budget Increase Request</p>
<p class="text-xs text-gray-500 mt-1">From: Paid Ads Agent</p>
</div>
<span class="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded-full">Pending</span>
</div>
<p class="text-sm text-gray-600 mt-2">Request to increase monthly ad budget by $2,500 to capitalize on high-performing campaigns</p>
<div class="mt-3 flex space-x-2">
<button class="text-xs bg-green-500 text-white px-3 py-1 rounded hover:bg-green-600">Approve</button>
<button class="text-xs bg-red-500 text-white px-3 py-1 rounded hover:bg-red-600">Deny</button>
<button class="text-xs bg-white border border-gray-300 text-gray-700 px-3 py-1 rounded hover:bg-gray-50">Modify</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Performance Metrics -->
<div class="mt-6">
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="px-4 py-3 border-b border-gray-200">
<h2 class="font-semibold text-gray-800">Weekly Performance Summary</h2>
</div>
<div class="p-4">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
<div class="bg-blue-50 p-4 rounded-lg">
<div class="flex items-center justify-between">
<div>
<p class="text-xs text-blue-600 uppercase font-medium">New Leads</p>
<p class="text-2xl font-bold text-gray-800 mt-1">412</p>
<p class="text-xs text-blue-600 mt-1">
<span class="text-green-500">↑ 18%</span> from last week
</p>
</div>
<div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center">
<i class="fas fa-chart-line text-blue-500"></i>
</div>
</div>
</div>
<div class="bg-green-50 p-4 rounded-lg">
<div class="flex items-center justify-between">
<div>
<p class="text-xs text-green-600 uppercase font-medium">Revenue</p>
<p class="text-2xl font-bold text-gray-800 mt-1">$34,720</p>
<p class="text-xs text-green-600 mt-1">
<span class="text-green-500">↑ 14%</span> from last week
</p>
</div>
<div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center">
<i class="fas fa-dollar-sign text-green-500"></i>
</div>
</div>
</div>
<div class="bg-purple-50 p-4 rounded-lg">
<div class="flex items-center justify-between">
<div>
<p class="text-xs text-purple-600 uppercase font-medium">Conflicts Resolved</p>
<p class="text-2xl font-bold text-gray-800 mt-1">27</p>
<p class="text-xs text-purple-600 mt-1">
<span class="text-green-500">↑ 22%</span> efficiency
</p>
</div>
<div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center">
<i class="fas fa-handshake text-purple-500"></i>
</div>
</div>
</div>
<div class="bg-yellow-50 p-4 rounded-lg">
<div class="flex items-center justify-between">
<div>
<p class="text-xs text-yellow-600 uppercase font-medium">Emergency Events</p>
<p class="text-2xl font-bold text-gray-800 mt-1">3</p>
<p class="text-xs text-yellow-600 mt-1">
<span class="text-red-500">↑ 2</span> from last week
</p>
</div>
<div class="w-10 h-10 rounded-full bg-yellow-100 flex items-center justify-center">
<i class="fas fa-fire text-yellow-500"></i>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<!-- Agent Communication Modal (Hidden by default) -->
<div id="agentModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-white rounded-lg shadow-xl w-full max-w-2xl">
<div class="px-6 py-4 border-b border-gray-200 flex justify-between items-center">
<h3 class="text-lg font-semibold text-gray-900">Agent Communication</h3>
<button id="closeModalBtn" class="text-gray-400 hover:text-gray-500">
<i class="fas fa-times"></i>
</button>
</div>
<div class="p-6">
<div class="flex items-start space-x-4">
<div class="flex-shrink-0">
<div class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center">
<i class="fas fa-robot text-indigo-500"></i>
</div>
</div>
<div class="flex-1 min-w-0">
<p class="text-sm font-medium text-gray-900">Overseer</p>
<p class="text-sm text-gray-500">Master Agent</p>
<div class="mt-2 bg-gray-50 p-4 rounded-lg">
<p class="text-sm text-gray-700">Hello Founder, I have an important update regarding the CRM integration issue and need your input on how to proceed.</p>
</div>
</div>
</div>
<div class="mt-6">
<textarea class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" rows="3" placeholder="Type your response..."></textarea>
<div class="mt-3 flex justify-end space-x-3">
<button class="px-4 py-2 border border-gray-300 rounded-lg text-sm font-medium text-gray-700 hover:bg-gray-50">Cancel</button>
<button class="px-4 py-2 bg-blue-500 rounded-lg text-sm font-medium text-white hover:bg-blue-600">Send Response</button>
</div>
</div>
</div>
</div>
</div>
<!-- Conflict Resolution Details Modal -->
<div id="conflictModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-white rounded-lg shadow-xl w-full max-w-3xl">
<div class="px-6 py-4 border-b border-gray-200 flex justify-between items-center">
<h3 class="text-lg font-semibold text-gray-900">Conflict Resolution Details</h3>
<button id="closeConflictModalBtn" class="text-gray-400 hover:text-gray-500">
<i class="fas fa-times"></i>
</button>
</div>
<div class="p-6">
<div class="mb-4">
<h4 class="font-medium text-gray-800">Current Conflict Between:</h4>
<div class="mt-2 grid grid-cols-1 md:grid-cols-2 gap-4">
<div class="bg-red-50 p-3 rounded border border-red-200">
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-red-100 flex items-center justify-center mr-3">
<i class="fas fa-robot text-red-500"></i>
</div>
<div>
<p class="font-medium">Sales Department</p>
<p class="text-xs text-gray-600">Lead Prioritization Agent</p>
</div>
</div>
<div class="mt-3 pl-11">
<p class="text-sm text-gray-700">"We need to prioritize high-budget clients first to meet quarterly targets"</p>
</div>
</div>
<div class="bg-blue-50 p-3 rounded border border-blue-200">
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center mr-3">
<i class="fas fa-robot text-blue-500"></i>
</div>
<div>
<p class="font-medium">Marketing Department</p>
<p class="text-xs text-gray-600">Lead Scoring Agent</p>
</div>
</div>
<div class="mt-3 pl-11">
<p class="text-sm text-gray-700">"Our data shows engagement-based scoring yields 32% better conversion long-term"</p>
</div>
</div>
</div>
</div>
<div class="mb-4">
<h4 class="font-medium text-gray-800">Conflict Analysis:</h4>
<div class="mt-2 bg-yellow-50 p-4 rounded-lg">
<div class="flex">
<div class="flex-shrink-0">
<i class="fas fa-info-circle text-yellow-500 mt-1"></i>
</div>
<div class="ml-3">
<p class="text-sm text-yellow-700">
This is a fundamental priority conflict between short-term revenue goals (Sales) and long-term conversion optimization (Marketing).
The Mediator Agent recommends implementing a hybrid scoring system that weights both budget and engagement factors.
</p>
</div>
</div>
</div>
</div>
<div>
<h4 class="font-medium text-gray-800">Resolution Options:</h4>
<div class="mt-3 space-y-3">
<div class="flex items-start">
<div class="flex items-center h-5">
<input id="option1" name="resolution" type="radio" class="focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300" checked>
</div>
<div class="ml-3 text-sm">
<label for="option1" class="font-medium text-gray-700">Hybrid Scoring System (Recommended)</label>
<p class="text-gray-500">Implement weighted scoring that considers both budget (40%) and engagement (60%)</p>
</div>
</div>
<div class="flex items-start">
<div class="flex items-center h-5">
<input id="option2" name="resolution" type="radio" class="focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300">
</div>
<div class="ml-3 text-sm">
<label for="option2" class="font-medium text-gray-700">Department-Specific Prioritization</label>
<p class="text-gray-500">Allow each department to use their own scoring for their processes</p>
</div>
</div>
<div class="flex items-start">
<div class="flex items-center h-5">
<input id="option3" name="resolution" type="radio" class="focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300">
</div>
<div class="ml-3 text-sm">
<label for="option3" class="font-medium text-gray-700">Manual Override</label>
<p class="text-gray-500">Human Founder specifies exact prioritization criteria</p>
</div>
</div>
</div>
<div class="mt-6 flex justify-end space-x-3">
<button class="px-4 py-2 border border-gray-300 rounded-lg text-sm font-medium text-gray-700 hover:bg-gray-50">Request More Info</button>
<button class="px-4 py-2 bg-green-500 rounded-lg text-sm font-medium text-white hover:bg-green-600">Implement Solution</button>
</div>
</div>
</div>
</div>
</div>
<script>
// Enhanced functionality for the dashboard
document.addEventListener('DOMContentLoaded', function() {
// Command input functionality
const commandInput = document.querySelector('.command-input');
commandInput.addEventListener('keypress', function(e) {
if (e.key === 'Enter') {
const command = this.value.toLowerCase();
if (command.includes('overseer')) {
alert(`Command received: "${this.value}". Processing request...`);
this.value = '';
}
else if (command.includes('emergency') || command.includes('protocol')) {
document.getElementById('emergencyProtocolPanel').classList.remove('hidden');
document.getElementById('emergencyProtocolBtn').classList.add('bg-red-500', 'text-white');
document.getElementById('emergencyProtocolBtn').classList.remove('bg-red-50', 'text-red-600');
alert('Emergency protocols activated!');
this.value = '';
}
else if (command.includes('conflict')) {
document.getElementById('conflictModal').classList.remove('hidden');
this.value = '';
}
}
});
// Emergency protocol toggle
const emergencyBtn = document.getElementById('emergencyProtocolBtn');
const emergencyPanel = document.getElementById('emergencyProtocolPanel');
const disableEmergencyBtn = document.getElementById('disableEmergencyBtn');
emergencyBtn.addEventListener('click', function() {
emergencyPanel.classList.toggle('hidden');
this.classList.toggle('bg-red-500');
this.classList.toggle('text-white');
this.classList.toggle('bg-red-50');
this.classList.toggle('text-red-600');
});
disableEmergencyBtn.addEventListener('click', function() {
emergencyPanel.classList.add('hidden');
emergencyBtn.classList.remove('bg-red-500', 'text-white');
emergencyBtn.classList.add('bg-red-50', 'text-red-600');
});
// Modal controls
const agentModal = document.getElementById('agentModal');
const conflictModal = document.getElementById('conflictModal');
const closeModalBtn = document.getElementById('closeModalBtn');
const closeConflictModalBtn = document.getElementById('closeConflictModalBtn');
function openAgentModal() {
agentModal.classList.remove('hidden');
}
closeModalBtn.addEventListener('click', function() {
agentModal.classList.add('hidden');
});
closeConflictModalBtn.addEventListener('click', function() {
conflictModal.classList.add('hidden');
});
// Department card click handler
const departmentCards = document.querySelectorAll('.department-card');
departmentCards.forEach(card => {
card.addEventListener('click', function() {
const deptName = this.querySelector('h3').textContent;
if (deptName === "Conflict Resolution") {
conflictModal.classList.remove('hidden');
} else {
alert(`Showing detailed view for ${deptName} department`);
}
});
});
// Task approval buttons
const approveButtons = document.querySelectorAll('[class*="bg-green-500"]');
approveButtons.forEach(button => {
button.addEventListener('click', function(e) {
e.stopPropagation();
const task = this.closest('.task-item').querySelector('p.text-gray-900').textContent;
alert(`Approved: ${task}`);
});
});
// Resolve Now button in alerts
document.querySelector('.bg-purple-600')?.addEventListener('click', function() {
conflictModal.classList.remove('hidden');
});
// Simulate Overseer notification
setTimeout(() => {
// This would show the modal in a real app
console.log("Overseer: Important update available");
}, 8000);
// Simulate live updates
setInterval(() => {
const randomAgent = ['SEO Agent', 'Lead Generation', 'Mediator Agent', 'Emergency Protocol', 'Cold Outreach'][Math.floor(Math.random() * 5)];
const randomAction = [
'completed task',
'requested approval',
'detected anomaly',
'resolved conflict',
'activated protocol'
][Math.floor(Math.random() * 5)];
// In a real app, this would add to the activity log
console.log(`${randomAgent} ${randomAction}`);
}, 15000);
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=itsrawlinz/rickyfarmer" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>