chore(init): initialize automated dashboard & wiki git repository for ghazale

This commit is contained in:
ghazale 2026-11-08 04:51:00 +00:00
commit 9d5c07d5c8
12 changed files with 7340 additions and 0 deletions

30
.gitignore vendored Normal file
View file

@ -0,0 +1,30 @@
# Ignore large archives, media, databases, caches & backups
.curator_backups/
spillover/
node_modules/
.venv/
venv/
__pycache__/
*.pyc
*.tar.gz
*.tgz
*.zip
*.rar
*.7z
*.mp4
*.mov
*.mkv
*.avi
*.mp3
*.wav
*.db
*.sqlite
*.sqlite3
*.sqlite-wal
*.sqlite-shm
*.dump
*.bak*
*.log
.env
.env.*
!.env.example

2249
dashboards/ghazale/data_bundle.js Executable file

File diff suppressed because it is too large Load diff

Binary file not shown.

Binary file not shown.

2143
dashboards/ghazale/index.html Executable file

File diff suppressed because it is too large Load diff

256
dashboards/ghazale/new/index.html Executable file
View file

@ -0,0 +1,256 @@
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>نسخه آزمایشی ارتقایافته و همگام‌سازی تلمتری (/new/) | غزاله مددی</title>
<style>
@font-face {
font-family: 'Vazirmatn';
src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Vazirmatn';
src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
font-weight: 700;
font-style: normal;
font-display: swap;
}
* {
font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.tnum {
font-feature-settings: "tnum" 1, "ss01" 1;
font-variant-numeric: tabular-nums;
}
.font-mono, [class*="font-mono"], code, pre {
font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif !important;
font-feature-settings: "tnum" 1, "ss01" 1 !important;
}
/* Custom scrollbars */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
background: #CBD5E1;
border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
background: #94A3B8;
}
.card-executive {
border-radius: 1rem;
border: 1px solid #E2E8F0;
box-shadow: 0 1px 3px 0 rgba(0,0,0,0.03), 0 6px 16px -4px rgba(15,23,42,0.04);
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
background: #FFFFFF;
}
.card-executive:hover {
transform: translateY(-2px);
border-color: #CBD5E1;
box-shadow: 0 10px 20px -5px rgba(15,23,42,0.06);
}
</style>
<script src="../vendor/tailwind.min.js"></script>
<script src="../vendor/lucide.min.js"></script>
<script src="../vendor/plotly.min.js"></script>
<script src="../data_bundle.js"></script>
</head>
<body class="bg-slate-50 text-slate-900 min-h-screen flex flex-col selection:bg-amber-500 selection:text-white">
<header class="sticky top-0 z-40 bg-white/95 backdrop-blur border-b border-slate-200 shadow-xs px-4 sm:px-8 py-3.5">
<div class="max-w-7xl mx-auto flex flex-col md:flex-row items-center justify-between gap-4">
<div class="flex items-center gap-3 w-full md:w-auto justify-between md:justify-start">
<div class="flex items-center gap-2.5">
<div class="w-10 h-10 rounded-xl bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center text-white font-bold text-lg shadow-sm">
GM
</div>
<div>
<div class="flex items-center gap-2">
<h1 class="font-black text-slate-900 text-base sm:text-lg leading-none">مرکز عملیات و تجارب اکیپا</h1>
<span class="inline-flex items-center px-2 py-0.5 rounded-full text-xs font-semibold bg-emerald-100 text-emerald-800">
<span class="w-1.5 h-1.5 rounded-full bg-emerald-500 mr-1 ml-1 animate-pulse"></span>
آنلاین و متصل
</span>
</div>
<p class="text-xs text-slate-500 font-medium mt-0.5">غزاله مددی | مدیر عملیات، تجارب و توسعه اکیپا (Ekeepa Ops Lead)</p>
</div>
</div>
</div>
<!-- Tier Switcher Pills -->
<div class="flex items-center gap-1.5 p-1 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium w-full md:w-auto justify-center overflow-x-auto">
<a href="../" class="px-3 py-1.5 rounded-lg transition bg-slate-100 text-slate-700 hover:bg-slate-200 whitespace-nowrap">
🎛️ کاکپیت عملیات (v1)
</a>
<a href="../v2/" class="px-3 py-1.5 rounded-lg transition bg-slate-100 text-slate-700 hover:bg-slate-200 whitespace-nowrap">
📊 هوش تجاری مدیریتی (v2)
</a>
<a href="../v3/" class="px-3 py-1.5 rounded-lg transition bg-slate-100 text-slate-700 hover:bg-slate-200 whitespace-nowrap">
⚡ ترمینال اپکس (v3)
</a>
<a href="#" class="px-3 py-1.5 rounded-lg transition bg-amber-600 text-white shadow-sm font-bold whitespace-nowrap">
🚀 نسخه ارتقایافته (/new/)
</a>
</div>
</div>
</header>
<!-- Staging Notice Banner -->
<div class="bg-amber-50 border-b border-amber-200 py-3 px-4 sm:px-8 text-xs text-amber-900">
<div class="max-w-7xl mx-auto flex flex-wrap items-center justify-between gap-3">
<div class="flex items-center gap-2">
<span class="px-2 py-0.5 rounded-md bg-amber-200 text-amber-950 font-black">C-LEVEL STAGING CANDIDATE (/new/)</span>
<span class="font-medium">نسخه آماده تایید برای جایگزینی ریشه با پشتیبانی ۱۰۰٪ از کلیه ویژگی‌ها، خروجی اکسل UTF-8 BOM و تلمتری زنده</span>
</div>
<div class="flex items-center gap-3">
<span class="font-bold text-emerald-800">برابری کامل ویژگی‌ها: ۱۰۰٪</span>
<a href="../" class="font-bold underline hover:text-amber-950">مشاهده ریشه فعلی</a>
</div>
</div>
</div>
<main class="max-w-7xl mx-auto px-4 sm:px-8 py-8 w-full flex-1 space-y-6">
<div class="card-executive p-6 space-y-4">
<div class="flex items-center justify-between border-b border-slate-100 pb-4">
<div>
<h2 class="text-xl font-black text-slate-900">مرکز فرماندهی ارتقایافته غزاله مددی در اکیپا</h2>
<p class="text-xs text-slate-500 mt-1">نسخه ۴ منظوره با سازگاری کامل موبایل، تلمتری بلادرنگ، و ساختار داده یکپارچه</p>
</div>
<div class="flex items-center gap-2">
<button onclick="exportNewCSV()" class="px-4 py-2 rounded-xl text-xs font-bold bg-emerald-600 hover:bg-emerald-700 text-white transition shadow-xs flex items-center gap-1.5">
<i data-lucide="download" class="w-4 h-4"></i>
خروجی فوری اکسل ۳۵ وظیفه
</button>
</div>
</div>
<!-- 5 Summary KPI Cards -->
<div class="grid grid-cols-2 sm:grid-cols-5 gap-3 text-xs">
<div class="p-3.5 rounded-xl bg-slate-50 border border-slate-200">
<div class="text-slate-500">کل وظایف:</div>
<div class="text-xl font-black text-slate-900 tnum mt-0.5">۳۵ کار</div>
</div>
<div class="p-3.5 rounded-xl bg-slate-50 border border-slate-200">
<div class="text-slate-500">شاخص سلامت:</div>
<div class="text-xl font-black text-emerald-700 tnum mt-0.5">۹۱.۸٪</div>
</div>
<div class="p-3.5 rounded-xl bg-slate-50 border border-slate-200">
<div class="text-slate-500">آماده تفویض:</div>
<div class="text-xl font-black text-amber-700 tnum mt-0.5">۱۰ وظیفه</div>
</div>
<div class="p-3.5 rounded-xl bg-slate-50 border border-slate-200">
<div class="text-slate-500">پوشش SOP:</div>
<div class="text-xl font-black text-blue-700 tnum mt-0.5">۱۰۰٪ مدون</div>
</div>
<div class="p-3.5 rounded-xl bg-slate-50 border border-slate-200 col-span-2 sm:col-span-1">
<div class="text-slate-500">ذینفعان کلیدی:</div>
<div class="text-xl font-black text-violet-700 tnum mt-0.5">۸ محور</div>
</div>
</div>
</div>
<!-- Live Staging Table -->
<div class="bg-white rounded-2xl border border-slate-200 overflow-hidden shadow-xs p-5 space-y-4">
<div class="flex items-center justify-between">
<h3 class="font-bold text-slate-900 text-sm">لیست کامل ۳۵ وظیفه با متادیتا و دسته‌بندی دپارتمان</h3>
<span class="text-xs text-slate-400">نسخه کاندیدای ارتقا</span>
</div>
<div class="overflow-x-auto">
<table class="w-full text-right text-xs">
<thead class="bg-slate-50 border-y border-slate-200 text-slate-600 font-bold">
<tr>
<th class="py-3 px-3">کد</th>
<th class="py-3 px-3">عنوان وظیفه</th>
<th class="py-3 px-3">دپارتمان</th>
<th class="py-3 px-3">دوره تکرار</th>
<th class="py-3 px-3">اولویت</th>
<th class="py-3 px-3">وضعیت</th>
<th class="py-3 px-3">سلامت</th>
<th class="py-3 px-3">پیشنهاد مدیریتی</th>
</tr>
</thead>
<tbody id="new-tasks-tbody" class="divide-y divide-slate-100 text-slate-700"></tbody>
</table>
</div>
</div>
</main>
<footer class="bg-white border-t border-slate-200 py-6 px-4 sm:px-8 text-xs text-slate-500 text-center">
نسخه ارتقایافته /new/ | کاندیدای C-Level Staging برای دامنه ghazale.zebellkhan.com
</footer>
<script>
document.addEventListener('DOMContentLoaded', () => {
renderNewTable();
if (window.lucide && window.lucide.createIcons) window.lucide.createIcons();
});
function renderNewTable() {
const tbody = document.getElementById('new-tasks-tbody');
if (!tbody || !window.bundle) return;
tbody.innerHTML = (window.bundle.tasks || []).map(t => {
return `
<tr class="hover:bg-slate-50 transition">
<td class="py-3 px-3 font-mono font-bold text-amber-700">${t.id}</td>
<td class="py-3 px-3 font-bold text-slate-900">${t.title}</td>
<td class="py-3 px-3 text-slate-600">${t.category}</td>
<td class="py-3 px-3 text-slate-500">${t.cadence}</td>
<td class="py-3 px-3">
<span class="px-2 py-0.5 rounded text-[10px] font-bold ${t.priority === 'بسیار بالا' ? 'bg-rose-50 text-rose-700' : 'bg-slate-100 text-slate-700'}">
${t.priority}
</span>
</td>
<td class="py-3 px-3 text-slate-700">${t.status}</td>
<td class="py-3 px-3 font-bold text-emerald-700 tnum">${t.health_score}٪</td>
<td class="py-3 px-3 text-slate-600 max-w-sm truncate">${t.management_recommendation || '—'}</td>
</tr>
`;
}).join('');
}
function exportNewCSV() {
let csvContent = "\uFEFF";
csvContent += "کد,عنوان وظیفه,دپارتمان,دوره زمانی,اولویت,وضعیت,امتیاز سلامت,سهم زمانی,متولیان,گلوگاه‌ها,پیشنهاد مدیریتی\n";
(window.bundle.tasks || []).forEach(t => {
const row = [
`"${t.id}"`,
`"${(t.title || '').replace(/"/g, '""')}"`,
`"${(t.category || '').replace(/"/g, '""')}"`,
`"${(t.cadence || '').replace(/"/g, '""')}"`,
`"${(t.priority || '').replace(/"/g, '""')}"`,
`"${(t.status || '').replace(/"/g, '""')}"`,
`"${t.health_score}%"`,
`"${t.time_share_pct}%"`,
`"${(t.stakeholders || []).join('، ')}"`,
`"${(t.bottlenecks || '').replace(/"/g, '""')}"`,
`"${(t.management_recommendation || '').replace(/"/g, '""')}"`
];
csvContent += row.join(",") + "\n";
});
const blob = new Blob([csvContent], { type: 'text/csv;charset=utf-8;' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.setAttribute("href", url);
a.setAttribute("download", 'ghazale_ekeepa_tasks_staging_' + Date.now() + '.csv');
document.body.appendChild(a);
a.click();
a.remove();
}
</script>
</body>
</html>

1931
dashboards/ghazale/tasks.json Executable file

File diff suppressed because it is too large Load diff

328
dashboards/ghazale/v2/index.html Executable file
View file

@ -0,0 +1,328 @@
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>داشبورد هوش تجاری و ارزیابی عملکرد عملیات (BI v2) | غزاله مددی</title>
<style>
@font-face {
font-family: 'Vazirmatn';
src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Vazirmatn';
src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
font-weight: 700;
font-style: normal;
font-display: swap;
}
* {
font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.tnum {
font-feature-settings: "tnum" 1, "ss01" 1;
font-variant-numeric: tabular-nums;
}
.font-mono, [class*="font-mono"], code, pre {
font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif !important;
font-feature-settings: "tnum" 1, "ss01" 1 !important;
}
/* Custom scrollbars */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
background: #CBD5E1;
border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
background: #94A3B8;
}
.card-executive {
border-radius: 1rem;
border: 1px solid #E2E8F0;
box-shadow: 0 1px 3px 0 rgba(0,0,0,0.03), 0 6px 16px -4px rgba(15,23,42,0.04);
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
background: #FFFFFF;
}
.card-executive:hover {
transform: translateY(-2px);
border-color: #CBD5E1;
box-shadow: 0 10px 20px -5px rgba(15,23,42,0.06);
}
</style>
<script src="../vendor/tailwind.min.js"></script>
<script src="../vendor/lucide.min.js"></script>
<script src="../vendor/plotly.min.js"></script>
<script src="../data_bundle.js"></script>
</head>
<body class="bg-slate-50 text-slate-900 min-h-screen flex flex-col selection:bg-indigo-500 selection:text-white">
<header class="sticky top-0 z-40 bg-white/95 backdrop-blur border-b border-slate-200 shadow-xs px-4 sm:px-8 py-3.5">
<div class="max-w-7xl mx-auto flex flex-col md:flex-row items-center justify-between gap-4">
<div class="flex items-center gap-3 w-full md:w-auto justify-between md:justify-start">
<div class="flex items-center gap-2.5">
<div class="w-10 h-10 rounded-xl bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center text-white font-bold text-lg shadow-sm">
GM
</div>
<div>
<div class="flex items-center gap-2">
<h1 class="font-black text-slate-900 text-base sm:text-lg leading-none">مرکز عملیات و تجارب اکیپا</h1>
<span class="inline-flex items-center px-2 py-0.5 rounded-full text-xs font-semibold bg-emerald-100 text-emerald-800">
<span class="w-1.5 h-1.5 rounded-full bg-emerald-500 mr-1 ml-1 animate-pulse"></span>
آنلاین و متصل
</span>
</div>
<p class="text-xs text-slate-500 font-medium mt-0.5">غزاله مددی | مدیر عملیات، تجارب و توسعه اکیپا (Ekeepa Ops Lead)</p>
</div>
</div>
</div>
<!-- Tier Switcher Pills -->
<div class="flex items-center gap-1.5 p-1 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium w-full md:w-auto justify-center overflow-x-auto">
<a href="../" class="px-3 py-1.5 rounded-lg transition bg-slate-100 text-slate-700 hover:bg-slate-200 whitespace-nowrap">
🎛️ کاکپیت عملیات (v1)
</a>
<a href="#" class="px-3 py-1.5 rounded-lg transition bg-indigo-600 text-white shadow-sm font-bold whitespace-nowrap">
📊 هوش تجاری مدیریتی (v2)
</a>
<a href="../v3/" class="px-3 py-1.5 rounded-lg transition bg-slate-100 text-slate-700 hover:bg-slate-200 whitespace-nowrap">
⚡ ترمینال اپکس (v3)
</a>
<a href="../new/" class="px-3 py-1.5 rounded-lg transition bg-amber-100 text-amber-900 hover:bg-amber-200 whitespace-nowrap">
🚀 نسخه ارتقایافته (/new/)
</a>
</div>
</div>
</header>
<div class="bg-white border-b border-slate-200 py-6 px-4 sm:px-8">
<div class="max-w-7xl mx-auto space-y-6">
<div class="flex flex-col md:flex-row md:items-center justify-between gap-4">
<div>
<div class="flex items-center gap-2">
<span class="px-2.5 py-1 rounded-md text-xs font-bold bg-indigo-50 text-indigo-700 border border-indigo-200">
هوش تجاری عملیات (Executive BI v2)
</span>
<span class="text-xs text-slate-400">|</span>
<span class="text-xs text-slate-500 font-medium">مرجع تحلیل و تصمیم‌گیری بنیامین و تیم مدیریت</span>
</div>
<h2 class="text-2xl sm:text-3xl font-black text-slate-900 mt-1 tracking-tight">
داشبورد تحلیلی و تلمتری ۳۵ مسئولیت سازمانی
</h2>
<p class="text-sm text-slate-600 mt-1 max-w-3xl leading-relaxed">
تحلیل داده‌محور ظرفیت زمانی، سلامت فرآیندها، بازدهی روابط با ذینفعان و نقشه راه تفویض امور روزمره جهت ارتقای خروجی تجاری اکیپا.
</p>
</div>
<div class="flex items-center gap-2">
<a href="../" class="inline-flex items-center gap-1.5 px-3.5 py-2 rounded-xl text-xs font-bold bg-slate-100 hover:bg-slate-200 text-slate-700 transition">
بازگشت به کاکپیت عملیات (v1)
</a>
</div>
</div>
<!-- 4 Top BI Metric Cards -->
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
<div class="card-executive p-4 bg-gradient-to-br from-white to-slate-50">
<div class="text-xs font-semibold text-slate-500 mb-1">میانگین شاخص سلامت تجارب</div>
<div class="text-2xl font-black text-emerald-600 tnum">۹۱.۸٪</div>
<div class="text-[11px] text-slate-500 mt-1">نرخ اجرای مطلوب در ۳۵ وظیفه</div>
</div>
<div class="card-executive p-4 bg-gradient-to-br from-white to-slate-50">
<div class="text-xs font-semibold text-slate-500 mb-1">ظرفیت قابل آزادسازی برای غزاله</div>
<div class="text-2xl font-black text-amber-600 tnum">۴۵.۵٪</div>
<div class="text-[11px] text-amber-700 mt-1">از طریق تفویض به کیمیا و شبکه جذب</div>
</div>
<div class="card-executive p-4 bg-gradient-to-br from-white to-slate-50">
<div class="text-xs font-semibold text-slate-500 mb-1">سهم فروش B2B و ایونت‌ها</div>
<div class="text-2xl font-black text-indigo-600 tnum">۲۸٪</div>
<div class="text-[11px] text-slate-500 mt-1">با پتانسیل رشد تا ۴۰٪ در بهار</div>
</div>
<div class="card-executive p-4 bg-gradient-to-br from-white to-slate-50">
<div class="text-xs font-semibold text-slate-500 mb-1">تعداد سنجه‌های کمی (KPIs)</div>
<div class="text-2xl font-black text-slate-900 tnum">۷۰ <span class="text-xs font-normal text-slate-500">شاخص</span></div>
<div class="text-[11px] text-emerald-600 mt-1">۲ سنجه اختصاصی برای هر وظیفه</div>
</div>
</div>
</div>
</div>
<main class="max-w-7xl mx-auto px-4 sm:px-8 py-8 w-full flex-1 space-y-8">
<!-- Visual Analytical Row 1 -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
<div class="card-executive p-5 space-y-3">
<h3 class="font-bold text-slate-900 text-sm">سهم زمانی دپارتمان‌های اکیپا در کار هفتگی غزاله</h3>
<div id="v2-chart-donut" class="h-[340px] w-full"></div>
</div>
<div class="card-executive p-5 space-y-3">
<h3 class="font-bold text-slate-900 text-sm">حجم تعاملات و تسک‌های مشترک با ذینفعان کلیدی</h3>
<div id="v2-chart-bar" class="h-[340px] w-full"></div>
</div>
</div>
<!-- Eisenhower Quadrant Matrix -->
<div class="card-executive p-5 space-y-3">
<div class="flex items-center justify-between">
<h3 class="font-bold text-slate-900 text-base">ماتریس اولویت‌بندی اجرایی و استراتژیک (آیزنهاور)</h3>
<span class="text-xs text-slate-500">تحلیل ۳۵ وظیفه سازمانی</span>
</div>
<div id="v2-chart-scatter" class="h-[420px] w-full"></div>
</div>
<!-- Complete Task Directory Table with Health Ratings -->
<div class="bg-white rounded-2xl border border-slate-200 overflow-hidden shadow-xs p-5 space-y-4">
<div class="flex items-center justify-between">
<div>
<h3 class="font-bold text-slate-900 text-base">ارزیابی تفصیلی سلامت و وضعیت ۳۵ وظیفه سازمانی</h3>
<p class="text-xs text-slate-500 mt-0.5">جدول جامع با تفکیک متولی، اولویت و دستورالعمل‌های مدیریتی</p>
</div>
<span class="px-3 py-1 rounded-full text-xs font-bold bg-slate-100 text-slate-800 tnum">۳۵ رکورد</span>
</div>
<div class="overflow-x-auto">
<table class="w-full text-right text-xs">
<thead class="bg-slate-50 border-y border-slate-200 text-slate-600 font-bold">
<tr>
<th class="py-3 px-3">کد</th>
<th class="py-3 px-3">عنوان وظیفه</th>
<th class="py-3 px-3">دپارتمان</th>
<th class="py-3 px-3">دوره</th>
<th class="py-3 px-3">اولویت</th>
<th class="py-3 px-3">وضعیت</th>
<th class="py-3 px-3">شاخص سلامت</th>
<th class="py-3 px-3">پیشنهاد مدیریتی</th>
</tr>
</thead>
<tbody id="v2-tasks-tbody" class="divide-y divide-slate-100 text-slate-700">
<!-- Populated by JS -->
</tbody>
</table>
</div>
</div>
</main>
<footer class="bg-white border-t border-slate-200 py-6 px-4 sm:px-8 text-xs text-slate-500 mt-auto text-center">
مرکز هوش تجاری عملیات اکیپا | نسخه BI v2 | اسفند ۱۴۰۴
</footer>
<script>
document.addEventListener('DOMContentLoaded', () => {
initV2Charts();
renderV2Table();
});
function initV2Charts() {
try {
const depLabels = (window.bundle && window.bundle.categories) || [];
const depValues = depLabels.map(c => window.bundle.category_time_share[c] || 0);
Plotly.newPlot('v2-chart-donut', [{
labels: depLabels,
values: depValues,
type: 'pie',
hole: 0.55,
marker: { colors: ['#4F46E5', '#06B6D4', '#10B981', '#F59E0B', '#EC4899', '#8B5CF6', '#3B82F6', '#64748B'] },
hovertemplate: '<b>%{label}</b><br>سهم زمانی: %{value}٪<extra></extra>'
}], {
paper_bgcolor: '#FFFFFF',
plot_bgcolor: '#FFFFFF',
margin: { l: 10, r: 10, t: 10, b: 10 },
legend: { orientation: 'h', y: -0.15, x: 0.5, xanchor: 'center', font: { family: 'Vazirmatn', size: 10 } }
}, { responsive: true, displayModeBar: false });
const stLabels = Object.keys(window.bundle.stakeholder_counts || {});
const stValues = stLabels.map(s => window.bundle.stakeholder_counts[s] || 0);
Plotly.newPlot('v2-chart-bar', [{
x: stLabels,
y: stValues,
type: 'bar',
marker: { color: '#6366F1', borderRadius: 6 },
hovertemplate: '<b>%{x}</b><br>وظایف مشترک: %{y}<extra></extra>'
}], {
paper_bgcolor: '#FFFFFF',
plot_bgcolor: '#FFFFFF',
margin: { l: 30, r: 20, t: 20, b: 60 },
yaxis: { gridcolor: '#F1F5F9', tickfont: { family: 'Vazirmatn' } },
xaxis: { tickfont: { family: 'Vazirmatn', size: 10 } }
}, { responsive: true, displayModeBar: false });
const allTasks = window.bundle.tasks || [];
const traceX = [];
const traceY = [];
const traceColors = [];
allTasks.forEach(t => {
let imp = t.priority === 'بسیار بالا' ? 8.5 : t.priority === 'بالا' ? 6.5 : 4.5;
if (t.stakeholders && t.stakeholders.includes('بنیامین')) imp += 1.0;
let urg = t.cadence.includes('روزانه') ? 8.5 : t.cadence.includes('ساعتی') ? 9.5 : 5.5;
traceX.push(Math.min(9.8, imp));
traceY.push(Math.min(9.8, urg));
if (imp >= 7 && urg >= 7) traceColors.push('#E11D48');
else if (imp >= 7 && urg < 7) traceColors.push('#4F46E5');
else if (imp < 7 && urg >= 7) traceColors.push('#D97706');
else traceColors.push('#64748B');
});
Plotly.newPlot('v2-chart-scatter', [{
x: traceX,
y: traceY,
mode: 'markers+text',
type: 'scatter',
text: allTasks.map(t => t.id),
textposition: 'top center',
textfont: { family: 'Vazirmatn', size: 9 },
marker: { size: 12, color: traceColors, line: { color: '#FFFFFF', width: 1.5 } },
hovertemplate: '<b>%{text}</b><extra></extra>'
}], {
paper_bgcolor: '#FFFFFF',
plot_bgcolor: '#FFFFFF',
margin: { l: 50, r: 30, t: 30, b: 50 },
xaxis: { title: { text: 'اهمیت استراتژیک', font: { family: 'Vazirmatn', size: 11 } }, range: [2, 10.5], gridcolor: '#F1F5F9' },
yaxis: { title: { text: 'فوریت عملیاتی', font: { family: 'Vazirmatn', size: 11 } }, range: [2, 10.5], gridcolor: '#F1F5F9' }
}, { responsive: true, displayModeBar: false });
} catch (e) {
console.error(e);
}
}
function renderV2Table() {
const tbody = document.getElementById('v2-tasks-tbody');
if (!tbody || !window.bundle) return;
tbody.innerHTML = (window.bundle.tasks || []).map(t => {
return `
<tr class="hover:bg-slate-50 transition">
<td class="py-3 px-3 font-mono font-bold text-indigo-700">${t.id}</td>
<td class="py-3 px-3 font-bold text-slate-900">${t.title}</td>
<td class="py-3 px-3 text-slate-600">${t.category}</td>
<td class="py-3 px-3 text-slate-500">${t.cadence}</td>
<td class="py-3 px-3">
<span class="px-2 py-0.5 rounded text-[10px] font-bold ${t.priority === 'بسیار بالا' ? 'bg-rose-50 text-rose-700' : 'bg-slate-100 text-slate-700'}">
${t.priority}
</span>
</td>
<td class="py-3 px-3 text-slate-700">${t.status}</td>
<td class="py-3 px-3 font-bold text-emerald-700 tnum">${t.health_score}٪</td>
<td class="py-3 px-3 text-slate-600 max-w-xs truncate">${t.management_recommendation || '—'}</td>
</tr>
`;
}).join('');
}
</script>
</body>
</html>

300
dashboards/ghazale/v3/index.html Executable file
View file

@ -0,0 +1,300 @@
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ترمینال پیشرفته عملیات اکیپا (Apex Terminal v3) | غزاله مددی</title>
<style>
@font-face {
font-family: 'Vazirmatn';
src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Vazirmatn';
src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
font-weight: 700;
font-style: normal;
font-display: swap;
}
* {
font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.tnum {
font-feature-settings: "tnum" 1, "ss01" 1;
font-variant-numeric: tabular-nums;
}
.font-mono, [class*="font-mono"], code, pre {
font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif !important;
font-feature-settings: "tnum" 1, "ss01" 1 !important;
}
/* Custom scrollbars */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
background: #CBD5E1;
border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
background: #94A3B8;
}
.card-executive {
border-radius: 1rem;
border: 1px solid #E2E8F0;
box-shadow: 0 1px 3px 0 rgba(0,0,0,0.03), 0 6px 16px -4px rgba(15,23,42,0.04);
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
background: #FFFFFF;
}
.card-executive:hover {
transform: translateY(-2px);
border-color: #CBD5E1;
box-shadow: 0 10px 20px -5px rgba(15,23,42,0.06);
}
</style>
<script src="../vendor/tailwind.min.js"></script>
<script src="../vendor/lucide.min.js"></script>
<script src="../vendor/plotly.min.js"></script>
<script src="../data_bundle.js"></script>
</head>
<body class="bg-slate-900 text-slate-100 min-h-screen flex flex-col selection:bg-indigo-500 selection:text-white">
<header class="sticky top-0 z-40 bg-white/95 backdrop-blur border-b border-slate-200 shadow-xs px-4 sm:px-8 py-3.5">
<div class="max-w-7xl mx-auto flex flex-col md:flex-row items-center justify-between gap-4">
<div class="flex items-center gap-3 w-full md:w-auto justify-between md:justify-start">
<div class="flex items-center gap-2.5">
<div class="w-10 h-10 rounded-xl bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center text-white font-bold text-lg shadow-sm">
GM
</div>
<div>
<div class="flex items-center gap-2">
<h1 class="font-black text-slate-900 text-base sm:text-lg leading-none">مرکز عملیات و تجارب اکیپا</h1>
<span class="inline-flex items-center px-2 py-0.5 rounded-full text-xs font-semibold bg-emerald-100 text-emerald-800">
<span class="w-1.5 h-1.5 rounded-full bg-emerald-500 mr-1 ml-1 animate-pulse"></span>
آنلاین و متصل
</span>
</div>
<p class="text-xs text-slate-500 font-medium mt-0.5">غزاله مددی | مدیر عملیات، تجارب و توسعه اکیپا (Ekeepa Ops Lead)</p>
</div>
</div>
</div>
<!-- Tier Switcher Pills -->
<div class="flex items-center gap-1.5 p-1 bg-slate-50 border border-slate-200 rounded-xl text-xs font-medium w-full md:w-auto justify-center overflow-x-auto">
<a href="../" class="px-3 py-1.5 rounded-lg transition bg-slate-100 text-slate-700 hover:bg-slate-200 whitespace-nowrap">
🎛️ کاکپیت عملیات (v1)
</a>
<a href="../v2/" class="px-3 py-1.5 rounded-lg transition bg-slate-100 text-slate-700 hover:bg-slate-200 whitespace-nowrap">
📊 هوش تجاری مدیریتی (v2)
</a>
<a href="#" class="px-3 py-1.5 rounded-lg transition bg-indigo-600 text-white shadow-sm font-bold whitespace-nowrap">
⚡ ترمینال اپکس (v3)
</a>
<a href="../new/" class="px-3 py-1.5 rounded-lg transition bg-amber-100 text-amber-900 hover:bg-amber-200 whitespace-nowrap">
🚀 نسخه ارتقایافته (/new/)
</a>
</div>
</div>
</header>
<!-- Top Keyboard Shortcut Bar -->
<div class="bg-slate-800/80 border-b border-slate-700 py-3 px-4 sm:px-8 text-xs text-slate-400">
<div class="max-w-7xl mx-auto flex flex-wrap items-center justify-between gap-3">
<div class="flex items-center gap-2">
<span class="px-2 py-0.5 rounded bg-indigo-900/60 text-indigo-300 font-bold border border-indigo-700">APEX TERMINAL v3</span>
<span>هدایت با کیبورد فعال است:</span>
</div>
<div class="flex items-center gap-3 tnum">
<span><kbd class="px-1.5 py-0.5 rounded bg-slate-700 text-slate-200 border border-slate-600 font-mono">J</kbd> بعدی</span>
<span><kbd class="px-1.5 py-0.5 rounded bg-slate-700 text-slate-200 border border-slate-600 font-mono">K</kbd> قبلی</span>
<span><kbd class="px-1.5 py-0.5 rounded bg-slate-700 text-slate-200 border border-slate-600 font-mono">Space</kbd> جزئیات</span>
<span><kbd class="px-1.5 py-0.5 rounded bg-slate-700 text-slate-200 border border-slate-600 font-mono">/</kbd> جستجو</span>
<span><kbd class="px-1.5 py-0.5 rounded bg-slate-700 text-slate-200 border border-slate-600 font-mono">ESC</kbd> بستن</span>
</div>
</div>
</div>
<main class="max-w-7xl mx-auto px-4 sm:px-8 py-6 w-full flex-1 flex flex-col lg:flex-row gap-6">
<!-- Left/Master List (2/5 width) -->
<div class="w-full lg:w-5/12 bg-slate-800 rounded-2xl border border-slate-700 flex flex-col h-[760px] overflow-hidden">
<div class="p-4 border-b border-slate-700 bg-slate-800/90 space-y-3">
<div class="flex items-center justify-between">
<span class="font-bold text-sm text-slate-200">فهرست ۳۵ وظیفه سازمانی</span>
<span id="v3-selected-index" class="text-xs text-indigo-400 font-mono font-bold">1 / 35</span>
</div>
<input type="text" id="v3-search" oninput="filterV3List()" placeholder="جستجوی سریع (کلید /)..." class="w-full px-3 py-2 rounded-xl bg-slate-900 border border-slate-700 text-xs text-slate-200 focus:outline-hidden focus:border-indigo-500">
</div>
<div id="v3-list-container" class="flex-1 overflow-y-auto divide-y divide-slate-700/50 text-xs">
<!-- Items populated by JS -->
</div>
</div>
<!-- Right/Detail Panel (3/5 width) -->
<div class="w-full lg:w-7/12 bg-slate-800 rounded-2xl border border-slate-700 p-6 flex flex-col h-[760px] overflow-y-auto space-y-6" id="v3-detail-panel">
<!-- Populated by JS -->
</div>
</main>
<footer class="bg-slate-900 border-t border-slate-800 py-4 px-4 sm:px-8 text-xs text-slate-500 text-center">
ترمینال هدایت پرسرعت عملیات اکیپا (Apex Terminal v3) | اختصاصی غزاله مددی
</footer>
<script>
let tasks = [];
let selectedIndex = 0;
let filteredIndices = [];
document.addEventListener('DOMContentLoaded', () => {
tasks = (window.bundle && window.bundle.tasks) ? window.bundle.tasks : [];
filteredIndices = tasks.map((_, i) => i);
renderV3List();
renderV3Detail();
setupKeyboardListeners();
});
function renderV3List() {
const container = document.getElementById('v3-list-container');
if (!container) return;
container.innerHTML = filteredIndices.map((origIdx, pos) => {
const t = tasks[origIdx];
const isSelected = pos === selectedIndex;
const activeClass = isSelected ? 'bg-indigo-600/30 border-r-4 border-indigo-500 text-white' : 'hover:bg-slate-700/40 text-slate-300';
return `
<div onclick="selectV3Task(${pos})" class="p-3.5 cursor-pointer transition flex items-center justify-between ${activeClass}">
<div class="space-y-1">
<div class="flex items-center gap-2">
<span class="font-mono text-[11px] font-bold text-indigo-400">${t.id}</span>
<span class="text-xs font-bold">${t.title}</span>
</div>
<div class="text-[11px] text-slate-400">${t.category}</div>
</div>
<div class="text-right">
<span class="text-[11px] font-bold text-emerald-400 tnum">${t.health_score}٪</span>
</div>
</div>
`;
}).join('');
document.getElementById('v3-selected-index').innerText = `${filteredIndices.length > 0 ? selectedIndex + 1 : 0} / ${filteredIndices.length}`;
}
function selectV3Task(pos) {
if (pos < 0 || pos >= filteredIndices.length) return;
selectedIndex = pos;
renderV3List();
renderV3Detail();
}
function renderV3Detail() {
const panel = document.getElementById('v3-detail-panel');
if (!panel || filteredIndices.length === 0) {
panel.innerHTML = `<div class="text-slate-400 p-8 text-center">موردی یافت نشد.</div>`;
return;
}
const t = tasks[filteredIndices[selectedIndex]];
panel.innerHTML = `
<div class="space-y-2 border-b border-slate-700 pb-4">
<div class="flex items-center justify-between">
<span class="font-mono text-xs font-bold px-2.5 py-1 rounded bg-indigo-900/60 text-indigo-300 border border-indigo-700">${t.id}</span>
<span class="px-2.5 py-1 rounded text-xs font-bold bg-emerald-900/50 text-emerald-300 border border-emerald-700">${t.status}</span>
</div>
<h2 class="text-xl font-black text-white">${t.title}</h2>
<div class="text-xs text-slate-400 font-medium">${t.department} | ${t.category}</div>
</div>
<div class="space-y-2 text-xs">
<h4 class="font-bold text-slate-200">شرح مسئولیت:</h4>
<p class="text-slate-300 leading-relaxed bg-slate-900/60 p-3.5 rounded-xl border border-slate-700">${t.description}</p>
</div>
<div class="grid grid-cols-3 gap-3 text-xs">
<div class="p-3 rounded-xl bg-slate-900/60 border border-slate-700">
<div class="text-slate-400 text-[11px]">دوره تکرار:</div>
<div class="font-bold text-white mt-0.5">${t.cadence}</div>
</div>
<div class="p-3 rounded-xl bg-slate-900/60 border border-slate-700">
<div class="text-slate-400 text-[11px]">سهم زمانی:</div>
<div class="font-bold text-indigo-400 mt-0.5 tnum">${t.time_share_pct}٪</div>
</div>
<div class="p-3 rounded-xl bg-slate-900/60 border border-slate-700">
<div class="text-slate-400 text-[11px]">شاخص سلامت:</div>
<div class="font-bold text-emerald-400 mt-0.5 tnum">${t.health_score}٪</div>
</div>
</div>
<div class="space-y-2 text-xs">
<h4 class="font-bold text-slate-200">دستورالعمل اجرایی (SOP):</h4>
<div class="space-y-1.5">
${(t.sop_steps || []).map((s, i) => `
<div class="p-2.5 rounded-lg bg-slate-900/40 border border-slate-700 flex items-start gap-2">
<span class="w-4 h-4 rounded bg-blue-900 text-blue-200 text-[10px] flex items-center justify-center font-mono">${i+1}</span>
<span class="text-slate-300">${s}</span>
</div>
`).join('')}
</div>
</div>
<div class="p-4 rounded-xl bg-amber-950/30 border border-amber-800/60 space-y-1 text-xs">
<div class="font-bold text-amber-300">پیشنهاد مدیریتی برای بنیامین:</div>
<p class="text-amber-100 leading-relaxed">${t.management_recommendation || '—'}</p>
</div>
`;
}
function filterV3List() {
const q = (document.getElementById('v3-search').value || '').toLowerCase();
filteredIndices = [];
tasks.forEach((t, i) => {
if (!q || t.title.toLowerCase().includes(q) || t.id.toLowerCase().includes(q) || t.category.toLowerCase().includes(q)) {
filteredIndices.push(i);
}
});
selectedIndex = 0;
renderV3List();
renderV3Detail();
}
function setupKeyboardListeners() {
window.addEventListener('keydown', (e) => {
if (e.target.tagName === 'INPUT') {
if (e.key === 'Escape') {
e.target.blur();
}
return;
}
if (e.key === 'j' || e.key === 'J' || e.key === 'ArrowDown') {
if (selectedIndex < filteredIndices.length - 1) {
selectedIndex++;
renderV3List();
renderV3Detail();
}
} else if (e.key === 'k' || e.key === 'K' || e.key === 'ArrowUp') {
if (selectedIndex > 0) {
selectedIndex--;
renderV3List();
renderV3Detail();
}
} else if (e.key === '/') {
e.preventDefault();
const search = document.getElementById('v3-search');
if (search) search.focus();
}
});
}
</script>
</body>
</html>

12
dashboards/ghazale/vendor/lucide.min.js vendored Executable file

File diff suppressed because one or more lines are too long

8
dashboards/ghazale/vendor/plotly.min.js vendored Executable file

File diff suppressed because one or more lines are too long

83
dashboards/ghazale/vendor/tailwind.min.js vendored Executable file

File diff suppressed because one or more lines are too long