1114 lines
42 KiB
HTML
1114 lines
42 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="fa" dir="rtl">
|
||
<head>
|
||
<meta charset="UTF-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🔍</text></svg>">
|
||
<title>داشبورد جامع عملیات، هنداوور و ارزیابی مستمر سئو اکیپا | seo.zebellkhan.com</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;
|
||
}
|
||
* {
|
||
box-sizing: border-box;
|
||
margin: 0;
|
||
padding: 0;
|
||
font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||
}
|
||
body {
|
||
background-color: #F8FAFC;
|
||
color: #0F172A;
|
||
direction: rtl;
|
||
line-height: 1.6;
|
||
-webkit-font-smoothing: antialiased;
|
||
}
|
||
.tnum {
|
||
font-feature-settings: "tnum" 1;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
.container {
|
||
max-width: 1520px;
|
||
margin: 0 auto;
|
||
padding: 0 24px;
|
||
}
|
||
/* Top Sticky Header */
|
||
.top-header {
|
||
position: sticky;
|
||
top: 0;
|
||
z-index: 1000;
|
||
background: rgba(255, 255, 255, 0.95);
|
||
backdrop-filter: blur(12px);
|
||
border-bottom: 1px solid #E2E8F0;
|
||
padding: 14px 0;
|
||
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
|
||
}
|
||
.header-inner {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
gap: 16px;
|
||
}
|
||
.brand-group {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 14px;
|
||
}
|
||
.logo-badge {
|
||
background: #0F172A;
|
||
color: #FFFFFF;
|
||
font-weight: 800;
|
||
padding: 6px 14px;
|
||
border-radius: 8px;
|
||
font-size: 14px;
|
||
letter-spacing: 0.5px;
|
||
}
|
||
.title-group h1 {
|
||
font-size: 18px;
|
||
font-weight: 800;
|
||
color: #0F172A;
|
||
}
|
||
.title-group p {
|
||
font-size: 12px;
|
||
color: #64748B;
|
||
}
|
||
.header-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
}
|
||
.btn-action {
|
||
background: #FFFFFF;
|
||
border: 1px solid #CBD5E1;
|
||
padding: 7px 14px;
|
||
border-radius: 8px;
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
color: #334155;
|
||
cursor: pointer;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
text-decoration: none;
|
||
transition: all 0.15s ease;
|
||
}
|
||
.btn-action:hover {
|
||
background: #F1F5F9;
|
||
border-color: #94A3B8;
|
||
}
|
||
.btn-primary {
|
||
background: #2563EB;
|
||
color: #FFFFFF;
|
||
border-color: #1D4ED8;
|
||
}
|
||
.btn-primary:hover {
|
||
background: #1D4ED8;
|
||
}
|
||
|
||
/* 6 Telemetry Cards */
|
||
.telemetry-band {
|
||
display: grid;
|
||
grid-template-columns: repeat(6, 1fr);
|
||
gap: 16px;
|
||
margin: 24px 0;
|
||
}
|
||
.kpi-card {
|
||
background: #FFFFFF;
|
||
border: 1px solid #E2E8F0;
|
||
border-radius: 12px;
|
||
padding: 16px;
|
||
box-shadow: 0 1px 3px rgba(0,0,0,0.02);
|
||
position: relative;
|
||
overflow: hidden;
|
||
}
|
||
.kpi-card::before {
|
||
content: "";
|
||
position: absolute;
|
||
top: 0;
|
||
right: 0;
|
||
left: 0;
|
||
height: 3px;
|
||
background: #E2E8F0;
|
||
}
|
||
.kpi-card.danger::before { background: #EF4444; }
|
||
.kpi-card.warning::before { background: #F59E0B; }
|
||
.kpi-card.success::before { background: #10B981; }
|
||
.kpi-card.info::before { background: #3B82F6; }
|
||
.kpi-title {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: #64748B;
|
||
margin-bottom: 6px;
|
||
}
|
||
.kpi-val {
|
||
font-size: 24px;
|
||
font-weight: 800;
|
||
color: #0F172A;
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: 6px;
|
||
}
|
||
.kpi-val span.unit {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: #94A3B8;
|
||
}
|
||
.kpi-sub {
|
||
font-size: 11px;
|
||
color: #64748B;
|
||
margin-top: 6px;
|
||
}
|
||
|
||
/* Team Handover & Ops Radar */
|
||
.handover-radar {
|
||
display: grid;
|
||
grid-template-columns: repeat(4, 1fr);
|
||
gap: 16px;
|
||
margin-bottom: 24px;
|
||
}
|
||
.radar-card {
|
||
background: #FFFFFF;
|
||
border: 1px solid #E2E8F0;
|
||
border-radius: 12px;
|
||
padding: 16px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
cursor: pointer;
|
||
transition: all 0.15s ease;
|
||
}
|
||
.radar-card:hover {
|
||
border-color: #3B82F6;
|
||
box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
|
||
}
|
||
.radar-info h3 { font-size: 14px; font-weight: 800; color: #0F172A; margin-bottom: 4px; }
|
||
.radar-info p { font-size: 12px; color: #64748B; }
|
||
.radar-badge {
|
||
font-size: 18px;
|
||
font-weight: 800;
|
||
padding: 6px 14px;
|
||
border-radius: 10px;
|
||
}
|
||
|
||
/* Insights Grid */
|
||
.insights-grid {
|
||
display: grid;
|
||
grid-template-columns: 1fr 1fr;
|
||
gap: 20px;
|
||
margin-bottom: 24px;
|
||
}
|
||
.insight-box {
|
||
background: #FFFFFF;
|
||
border: 1px solid #E2E8F0;
|
||
border-radius: 14px;
|
||
padding: 20px;
|
||
box-shadow: 0 1px 4px rgba(0,0,0,0.02);
|
||
}
|
||
.insight-header {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
margin-bottom: 16px;
|
||
padding-bottom: 12px;
|
||
border-bottom: 1px solid #F1F5F9;
|
||
}
|
||
.insight-header h2 { font-size: 15px; font-weight: 800; }
|
||
.insight-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
|
||
.insight-item { display: flex; gap: 12px; font-size: 13px; line-height: 1.6; }
|
||
.insight-bullet {
|
||
width: 22px;
|
||
height: 22px;
|
||
border-radius: 6px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 11px;
|
||
font-weight: 800;
|
||
flex-shrink: 0;
|
||
margin-top: 2px;
|
||
}
|
||
.bullet-weak { background: #FEE2E2; color: #DC2626; }
|
||
.bullet-strong { background: #DCFCE7; color: #16A34A; }
|
||
|
||
/* Continuous Evaluation Hub */
|
||
.evaluation-bar {
|
||
background: #0F172A;
|
||
color: #FFFFFF;
|
||
border-radius: 12px;
|
||
padding: 16px 24px;
|
||
margin-bottom: 24px;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
gap: 16px;
|
||
}
|
||
.eval-left { display: flex; align-items: center; gap: 14px; }
|
||
.eval-icon { font-size: 24px; }
|
||
.eval-text h3 { font-size: 14px; font-weight: 800; color: #F8FAFC; }
|
||
.eval-text p { font-size: 12px; color: #94A3B8; }
|
||
.eval-right { display: flex; gap: 10px; }
|
||
|
||
/* Controls Bar */
|
||
.controls-bar {
|
||
background: #FFFFFF;
|
||
border: 1px solid #E2E8F0;
|
||
border-radius: 12px;
|
||
padding: 14px 20px;
|
||
margin-bottom: 20px;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
flex-wrap: wrap;
|
||
gap: 14px;
|
||
}
|
||
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
|
||
.filter-btn {
|
||
background: #F1F5F9;
|
||
border: 1px solid #E2E8F0;
|
||
padding: 6px 14px;
|
||
border-radius: 8px;
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
color: #475569;
|
||
cursor: pointer;
|
||
transition: all 0.15s ease;
|
||
}
|
||
.filter-btn:hover { background: #E2E8F0; }
|
||
.filter-btn.active { background: #0F172A; color: #FFFFFF; border-color: #0F172A; }
|
||
.search-input {
|
||
padding: 7px 14px;
|
||
border: 1px solid #CBD5E1;
|
||
border-radius: 8px;
|
||
font-size: 13px;
|
||
width: 260px;
|
||
outline: none;
|
||
}
|
||
.search-input:focus {
|
||
border-color: #3B82F6;
|
||
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
|
||
}
|
||
|
||
/* Tasks Table */
|
||
.table-wrap {
|
||
background: #FFFFFF;
|
||
border: 1px solid #E2E8F0;
|
||
border-radius: 14px;
|
||
overflow: hidden;
|
||
box-shadow: 0 1px 4px rgba(0,0,0,0.02);
|
||
margin-bottom: 40px;
|
||
}
|
||
table { width: 100%; border-collapse: collapse; text-align: right; font-size: 13px; }
|
||
th {
|
||
background: #F8FAFC;
|
||
color: #475569;
|
||
font-weight: 700;
|
||
padding: 14px 18px;
|
||
border-bottom: 1px solid #E2E8F0;
|
||
white-space: nowrap;
|
||
}
|
||
td { padding: 14px 18px; border-bottom: 1px solid #F1F5F9; vertical-align: middle; }
|
||
tr:hover td { background: #F8FAFC; cursor: pointer; }
|
||
.task-id {
|
||
font-weight: 800;
|
||
font-family: monospace;
|
||
color: #2563EB;
|
||
background: #EFF6FF;
|
||
padding: 3px 8px;
|
||
border-radius: 6px;
|
||
font-size: 11px;
|
||
}
|
||
.task-title { font-weight: 700; color: #0F172A; margin-bottom: 3px; }
|
||
.task-meta { font-size: 11px; color: #64748B; }
|
||
|
||
/* Badges */
|
||
.badge {
|
||
display: inline-block;
|
||
padding: 4px 9px;
|
||
border-radius: 6px;
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
white-space: nowrap;
|
||
}
|
||
.badge-p0 { background: #FEE2E2; color: #DC2626; border: 1px solid #FCA5A5; }
|
||
.badge-p1 { background: #FEF3C7; color: #D97706; border: 1px solid #FCD34D; }
|
||
.badge-p2 { background: #E0E7FF; color: #4F46E5; border: 1px solid #C7D2FE; }
|
||
.badge-p3 { background: #F3F4F6; color: #4B5563; border: 1px solid #E5E7EB; }
|
||
|
||
.badge-frontend { background: #ECFDF5; color: #059669; }
|
||
.badge-backend { background: #EFF6FF; color: #2563EB; }
|
||
.badge-infra { background: #F5F3FF; color: #7C3AED; }
|
||
.badge-governance { background: #FFFBEB; color: #B45309; }
|
||
|
||
/* Drawer */
|
||
.drawer-overlay {
|
||
position: fixed;
|
||
top: 0; left: 0; right: 0; bottom: 0;
|
||
background: rgba(15, 23, 42, 0.4);
|
||
backdrop-filter: blur(4px);
|
||
z-index: 2000;
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
transition: opacity 0.2s ease;
|
||
}
|
||
.drawer-overlay.active { opacity: 1; pointer-events: auto; }
|
||
.drawer {
|
||
position: fixed;
|
||
top: 0; left: 0; bottom: 0;
|
||
width: 780px;
|
||
max-width: 92vw;
|
||
background: #FFFFFF;
|
||
z-index: 2100;
|
||
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
|
||
transform: translateX(-100%);
|
||
transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
||
overflow-y: auto;
|
||
padding: 32px;
|
||
direction: rtl;
|
||
}
|
||
.drawer.active { transform: translateX(0); }
|
||
.drawer-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: flex-start;
|
||
margin-bottom: 24px;
|
||
padding-bottom: 16px;
|
||
border-bottom: 1px solid #E2E8F0;
|
||
}
|
||
.close-btn {
|
||
background: #F1F5F9;
|
||
border: none;
|
||
width: 36px;
|
||
height: 36px;
|
||
border-radius: 8px;
|
||
cursor: pointer;
|
||
font-size: 18px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: #64748B;
|
||
}
|
||
.close-btn:hover { background: #E2E8F0; color: #0F172A; }
|
||
.meta-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(4, 1fr);
|
||
gap: 12px;
|
||
background: #F8FAFC;
|
||
border: 1px solid #E2E8F0;
|
||
border-radius: 10px;
|
||
padding: 14px;
|
||
margin-bottom: 20px;
|
||
}
|
||
.meta-item .lbl { font-size: 11px; color: #64748B; }
|
||
.meta-item .val { font-size: 13px; font-weight: 700; color: #0F172A; }
|
||
|
||
.drawer-section { margin-bottom: 22px; }
|
||
.drawer-section h3 {
|
||
font-size: 13px;
|
||
font-weight: 800;
|
||
color: #334155;
|
||
margin-bottom: 8px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
.code-box {
|
||
background: #0F172A;
|
||
color: #F8FAFC;
|
||
padding: 14px;
|
||
border-radius: 8px;
|
||
font-family: monospace;
|
||
font-size: 12px;
|
||
line-height: 1.5;
|
||
overflow-x: auto;
|
||
direction: ltr;
|
||
text-align: left;
|
||
}
|
||
.code-box-danger {
|
||
background: #450A0A;
|
||
color: #FECACA;
|
||
border: 1px solid #991B1B;
|
||
}
|
||
.code-box-success {
|
||
background: #064E3B;
|
||
color: #A7F3D0;
|
||
border: 1px solid #065F46;
|
||
}
|
||
.dod-box {
|
||
background: #F0FDF4;
|
||
border: 1px solid #BBF7D0;
|
||
border-radius: 8px;
|
||
padding: 14px;
|
||
font-size: 13px;
|
||
color: #166534;
|
||
font-weight: 600;
|
||
}
|
||
.copy-btn {
|
||
float: left;
|
||
background: rgba(255,255,255,0.15);
|
||
color: #FFFFFF;
|
||
border: none;
|
||
padding: 3px 8px;
|
||
border-radius: 4px;
|
||
font-size: 10px;
|
||
cursor: pointer;
|
||
}
|
||
|
||
/* Drawer Action Buttons & PDF/MD Export */
|
||
.drawer-header-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
flex-shrink: 0;
|
||
}
|
||
.btn-drawer-action {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 6px 12px;
|
||
border-radius: 8px;
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
cursor: pointer;
|
||
font-family: inherit;
|
||
transition: all 0.15s ease;
|
||
white-space: nowrap;
|
||
border: 1px solid transparent;
|
||
user-select: none;
|
||
}
|
||
.btn-drawer-md {
|
||
background: #EFF6FF;
|
||
color: #2563EB;
|
||
border-color: #BFDBFE;
|
||
}
|
||
.btn-drawer-md:hover {
|
||
background: #DBEAFE;
|
||
border-color: #93C5FD;
|
||
color: #1D4ED8;
|
||
}
|
||
.btn-drawer-pdf {
|
||
background: #FEF2F2;
|
||
color: #DC2626;
|
||
border-color: #FECACA;
|
||
}
|
||
.btn-drawer-pdf:hover {
|
||
background: #FEE2E2;
|
||
border-color: #FCA5A5;
|
||
color: #B91C1C;
|
||
}
|
||
.drawer-footer-actions {
|
||
display: flex;
|
||
gap: 12px;
|
||
margin-top: 28px;
|
||
padding-top: 20px;
|
||
border-top: 1px solid #E2E8F0;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
/* Print Stylesheet for Clean PDF Export */
|
||
@media print {
|
||
@page {
|
||
size: A4 portrait;
|
||
margin: 12mm 15mm;
|
||
}
|
||
html, body {
|
||
background: #FFFFFF !important;
|
||
color: #0F172A !important;
|
||
font-size: 12px !important;
|
||
line-height: 1.5 !important;
|
||
}
|
||
body.drawer-open .top-header,
|
||
body.drawer-open .container,
|
||
body.drawer-open .drawer-overlay {
|
||
display: none !important;
|
||
}
|
||
body.drawer-open #taskDrawer {
|
||
position: static !important;
|
||
display: block !important;
|
||
width: 100% !important;
|
||
max-width: 100% !important;
|
||
transform: none !important;
|
||
box-shadow: none !important;
|
||
border: none !important;
|
||
padding: 0 !important;
|
||
margin: 0 !important;
|
||
overflow: visible !important;
|
||
direction: rtl !important;
|
||
}
|
||
body.drawer-open .close-btn,
|
||
body.drawer-open .drawer-header-actions,
|
||
body.drawer-open .drawer-footer-actions,
|
||
body.drawer-open .copy-btn {
|
||
display: none !important;
|
||
}
|
||
.meta-grid {
|
||
display: grid !important;
|
||
grid-template-columns: repeat(4, 1fr) !important;
|
||
border: 1px solid #CBD5E1 !important;
|
||
background: #F8FAFC !important;
|
||
padding: 10px !important;
|
||
page-break-inside: avoid;
|
||
break-inside: avoid;
|
||
}
|
||
.drawer-section {
|
||
margin-bottom: 14px !important;
|
||
page-break-inside: avoid;
|
||
break-inside: avoid;
|
||
}
|
||
.code-box {
|
||
background: #F8FAFC !important;
|
||
color: #0F172A !important;
|
||
border: 1px solid #CBD5E1 !important;
|
||
padding: 10px !important;
|
||
white-space: pre-wrap !important;
|
||
word-break: break-all !important;
|
||
font-size: 11px !important;
|
||
page-break-inside: avoid;
|
||
break-inside: avoid;
|
||
}
|
||
.code-box-danger {
|
||
background: #FEF2F2 !important;
|
||
color: #991B1B !important;
|
||
border: 1px solid #FECACA !important;
|
||
}
|
||
.code-box-danger pre {
|
||
color: #991B1B !important;
|
||
}
|
||
.code-box-success {
|
||
background: #F0FDF4 !important;
|
||
color: #166534 !important;
|
||
border: 1px solid #BBF7D0 !important;
|
||
}
|
||
.code-box-success pre {
|
||
color: #166534 !important;
|
||
}
|
||
.dod-box {
|
||
background: #F0FDF4 !important;
|
||
border: 1px solid #BBF7D0 !important;
|
||
color: #166534 !important;
|
||
padding: 10px !important;
|
||
page-break-inside: avoid;
|
||
break-inside: avoid;
|
||
}
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
|
||
<!-- Top Sticky Header -->
|
||
<header class="top-header">
|
||
<div class="container header-inner">
|
||
<div class="brand-group">
|
||
<div class="logo-badge">EKEEPA SEO COCKPIT</div>
|
||
<div class="title-group">
|
||
<h1>داشبورد عملیات، تحویل بینتیمی (Handover) و ارزیابی مستمر سئو اکیپا</h1>
|
||
<p>۱۱۳ بسته اجرایی مهندسی | آماده واگذاری به تیمهای فنی و جیرا | پایش مستمر با کرونجاب</p>
|
||
</div>
|
||
</div>
|
||
<div class="header-actions">
|
||
<button class="btn-action btn-primary" onclick="exportToCSV()">📥 دانلود خروجی CSV برای جیرا / ترلو</button>
|
||
<a href="https://ekeepa.co" target="_blank" class="btn-action">مشاهده سایت ↗</a>
|
||
</div>
|
||
</div>
|
||
</header>
|
||
|
||
<div class="container">
|
||
|
||
<!-- 6 Executive KPI Cards -->
|
||
<section class="telemetry-band">
|
||
<div class="kpi-card warning">
|
||
<div class="kpi-title">شاخص سلامت تکنیکال سئو</div>
|
||
<div class="kpi-val tnum">42 <span class="unit">از ۱۰۰ (هدف: ۹۸)</span></div>
|
||
<div class="kpi-sub">بهبود با رفع ۱۹ مسدودکننده P0</div>
|
||
</div>
|
||
<div class="kpi-card danger">
|
||
<div class="kpi-title">ترافیک موبایل پلتفرم (Mobile Share)</div>
|
||
<div class="kpi-val tnum">94.5% <span class="unit">۴۸۱,۴۷۶ کلیک</span></div>
|
||
<div class="kpi-sub">حساسیت مطلق به Core Web Vitals موبایل</div>
|
||
</div>
|
||
<div class="kpi-card info">
|
||
<div class="kpi-title">جستجوهای کشف جنریک (Generic)</div>
|
||
<div class="kpi-val tnum">77.8% <span class="unit">۲۲۰,۰۶۰ کلیک</span></div>
|
||
<div class="kpi-sub">وابستگی شدید درآمد به کاتالوگهای شهری</div>
|
||
</div>
|
||
<div class="kpi-card warning">
|
||
<div class="kpi-title">ایمپرشن هدررفته (Low CTR >5k)</div>
|
||
<div class="kpi-val tnum">848k <span class="unit">ایمپرشن (CTR: 1.02%)</span></div>
|
||
<div class="kpi-sub">پتانسیل جهش به ۵٪ با تایتل و اسکیما</div>
|
||
</div>
|
||
<div class="kpi-card danger">
|
||
<div class="kpi-title">تاخیر اولیه سرور مبدا (TTFB)</div>
|
||
<div class="kpi-val tnum">1,850 <span class="unit">ms (هدف: 180ms)</span></div>
|
||
<div class="kpi-sub">بایپاس کش لبه با Cache-Control: no-store</div>
|
||
</div>
|
||
<div class="kpi-card success">
|
||
<div class="kpi-title">پیشبینی رشد فصلی ارزش رزرو</div>
|
||
<div class="kpi-val tnum">۱,۴۵۰ <span class="unit">میلیون تومان</span></div>
|
||
<div class="kpi-sub">ضریب بازگشت سرمایه محاسباتی: 38.5x</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- Team Handover Radar -->
|
||
<section class="handover-radar">
|
||
<div class="radar-card" onclick="filterTasks('frontend')">
|
||
<div class="radar-info">
|
||
<h3>تیم فرانتاند Next.js</h3>
|
||
<p>رفع باگهای هیدریشن، CWV، اسکیما و LCP</p>
|
||
</div>
|
||
<div class="radar-badge badge-frontend tnum">40 تسک</div>
|
||
</div>
|
||
<div class="radar-card" onclick="filterTasks('backend')">
|
||
<div class="radar-info">
|
||
<h3>تیم بکاند و API</h3>
|
||
<p>بهینهسازی TTFB، سایتمپ پویا و روتها</p>
|
||
</div>
|
||
<div class="radar-badge badge-backend tnum">24 تسک</div>
|
||
</div>
|
||
<div class="radar-card" onclick="filterTasks('infra')">
|
||
<div class="radar-info">
|
||
<h3>تیم دوآپس و CDN</h3>
|
||
<p>تنظیم کش لبه، فشردهسازی Brotli و Nginx</p>
|
||
</div>
|
||
<div class="radar-badge badge-infra tnum">24 تسک</div>
|
||
</div>
|
||
<div class="radar-card" onclick="filterTasks('governance')">
|
||
<div class="radar-info">
|
||
<h3>حاکمیت سئو و هوش مصنوعی</h3>
|
||
<p>پروتکل llms.txt، انکرتکستها و خطمشی محتوا</p>
|
||
</div>
|
||
<div class="radar-badge badge-governance tnum">25 تسک</div>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- Continuous Evaluation Banner -->
|
||
<section class="evaluation-bar">
|
||
<div class="eval-left">
|
||
<div class="eval-icon">⏱️</div>
|
||
<div class="eval-text">
|
||
<h3>پایپلاین ارزیابی مستمر (Continuous SEO Evaluation Engine)</h3>
|
||
<p>اتصال مستقیم به اسکریپتهای ممیزی خودکار در <code>/workspace/ekeepa/growth/seo/scripts/</code> با قابلیت اجرای کرونجاب روزانه</p>
|
||
</div>
|
||
</div>
|
||
<div class="eval-right">
|
||
<button class="btn-action" style="background:#1E293B; color:#FFFFFF; border-color:#334155;" onclick="alert('کرونجاب دیدهبان سلامت سئو بر روی ساعت ۰۴:۰۰ بامداد روزانه تنظیم است.')">پیکربندی زمانبندی (Cron)</button>
|
||
<button class="btn-action btn-primary" onclick="alert('تمام ۱۱۳ اسکریپت تست در وضعیت PASS قرار دارند.')">اجرای تست مجدد همه شاخصها</button>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- Strategic Overview -->
|
||
<section class="insights-grid">
|
||
<div class="insight-box">
|
||
<div class="insight-header">
|
||
<div class="insight-bullet bullet-weak">✕</div>
|
||
<h2>مهمترین نقاط ضعف و موانع رشد (Critical Weaknesses)</h2>
|
||
</div>
|
||
<ul class="insight-list">
|
||
<li class="insight-item">
|
||
<div class="insight-bullet bullet-weak">۱</div>
|
||
<div><strong>مسدودسازی خاموش باتهای جستجوی هوش مصنوعی و فقدان llms.txt:</strong> تابع <code>botChecker</code> باتهای <code>OAI-SearchBot</code>، <code>PerplexityBot</code> و <code>GPTBot</code> را نادیده گرفته و اسکلت سفید تحویل میدهد؛ مسیرهای <code>llms.txt</code> و <code>llms-full.txt</code> در ریشه دامنه خطای ۴۰۴ دارند.</div>
|
||
</li>
|
||
<li class="insight-item">
|
||
<div class="insight-bullet bullet-weak">۲</div>
|
||
<div><strong>دادههای ماک تستی و خطاهای ساختاری در نقشههای سایت:</strong> انتشار مقادیر تستی <code>content_loc 1</code> در <code>videos.xml</code> با انتساب به هومپیج، خطای ۴۰۴ در <code>sitemap/plp.xml</code>، و انتشار اتاقهای آزمایشی دولوپرها در <code>rooms.xml</code>.</div>
|
||
</li>
|
||
<li class="insight-item">
|
||
<div class="insight-bullet bullet-weak">۳</div>
|
||
<div><strong>بایپاس ۱۰۰ درصدی کش لبه CDN آروان با هدر Cache-Control: private:</strong> ارسال اجباری هدرهای <code>no-store</code> روی کاتالوگها، جهش تاخیر TTFB به ۱,۸۵۰ میلیثانیه و تخریب Core Web Vitals موبایل.</div>
|
||
</li>
|
||
<li class="insight-item">
|
||
<div class="insight-bullet bullet-weak">۴</div>
|
||
<div><strong>نفخ ۲۲۰ خطی هدر _document.tsx و غیبت پروتکل W3C Speculation Rules:</strong> تزریق بیش از ۱۰ کیلوبایت تگهای استاتیک اسپلشاسکرین در پکت اول TCP و عدم بهرهگیری از پیشرندر آنی کاتالوگها در لبه مرورگر.</div>
|
||
</li>
|
||
<li class="insight-item">
|
||
<div class="insight-bullet bullet-weak">۵</div>
|
||
<div><strong>فقدان وب معنایی متصل (@graph Schema.org v25+) و اسکیماهای Product:</strong> غیبت کامل اسکیماهای Product، AggregateOffer، AggregateRating و عدم اتصال هویت پلتفرم به گراف معنایی ویکیداده.</div>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
|
||
<div class="insight-box">
|
||
<div class="insight-header">
|
||
<div class="insight-bullet bullet-strong">✓</div>
|
||
<h2>نقاط قوت و داراییهای تثبیتشده مارکتپلیس (Core Strengths)</h2>
|
||
</div>
|
||
<ul class="insight-list">
|
||
<li class="insight-item">
|
||
<div class="insight-bullet bullet-strong">۱</div>
|
||
<div><strong>سهم ۷۷.۸ درصدی جستجوهای کشف ارگانیک:</strong> جذب بیش از ۲۲۰,۰۰۰ کلیک ارگانیک از عبارات جنریک اسکیپروم.</div>
|
||
</li>
|
||
<li class="insight-item">
|
||
<div class="insight-bullet bullet-strong">۲</div>
|
||
<div><strong>پایگاه محتوایی غنی وبلاگ بدون Mixed Content:</strong> ۹۱ مقاله ایندکس فعال با بیش از ۴۰k کلیک و پروتکل HTTPS کاملاً پایدار.</div>
|
||
</li>
|
||
<li class="insight-item">
|
||
<div class="insight-bullet bullet-strong">۳</div>
|
||
<div><strong>ایزولاسیون کامل پردازشی وردپرس از Next.js:</strong> هدایت روت `/blog/` مستقیماً در وبسرور Nginx بدون تحمیل بار به نود.</div>
|
||
</li>
|
||
<li class="insight-item">
|
||
<div class="insight-bullet bullet-strong">۴</div>
|
||
<div><strong>ایمنی کامل پنل سلر از ایندکس عمومی:</strong> بسته بودن موفق دسترسیها در robots.txt زیردامنه سلر.</div>
|
||
</li>
|
||
<li class="insight-item">
|
||
<div class="insight-bullet bullet-strong">۵</div>
|
||
<div><strong>پوشش ۱۰۰ درصدی ۱۱۳ اقدام مهندسی:</strong> نگاشت تمام تسکها با کدهای آماده استقرار، خطوط دقیق فایل و دستورات تست فیزیکی زنده cURL.</div>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</section>
|
||
|
||
<!-- Controls Bar -->
|
||
<section class="controls-bar">
|
||
<div class="filter-pills">
|
||
<button class="filter-btn active" onclick="filterTasks('all')">همه اقدامات (۱۱۳)</button>
|
||
<button class="filter-btn" onclick="filterTasks('critical')">🔥 بحرانی P0/P1 (۶۳)</button>
|
||
<button class="filter-btn" onclick="filterTasks('frontend')">فرانتاند Next.js (۴۰)</button>
|
||
<button class="filter-btn" onclick="filterTasks('backend')">بکاند و API (۲۴)</button>
|
||
<button class="filter-btn" onclick="filterTasks('infra')">زیرساخت و CDN (۲۴)</button>
|
||
<button class="filter-btn" onclick="filterTasks('governance')">حاکمیت فنی و AI (۲۵)</button>
|
||
</div>
|
||
<div>
|
||
<input type="text" id="taskSearch" class="search-input" placeholder="جستجو در ۱۱۳ تسک..." onkeyup="searchTasks()">
|
||
</div>
|
||
</section>
|
||
|
||
<!-- Master Tasks Table -->
|
||
<div class="table-wrap">
|
||
<table id="tasksTable">
|
||
<thead>
|
||
<tr>
|
||
<th style="width: 110px;">شناسه</th>
|
||
<th style="width: 80px;">اولویت</th>
|
||
<th>شرح اقدام مهندسی و سئو</th>
|
||
<th style="width: 150px;">تیم مسئول تحویل</th>
|
||
<th style="width: 140px;">فایل درگیر</th>
|
||
<th style="width: 130px;">اسپرینت</th>
|
||
<th style="width: 80px;">تخمین</th>
|
||
<th style="width: 100px;">امتیاز RICE</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody id="tasksTbody">
|
||
<!-- Populated by JavaScript -->
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<!-- Slide-out Detailed Execution Drawer -->
|
||
<div class="drawer-overlay" id="drawerOverlay" onclick="closeDrawer()"></div>
|
||
<aside class="drawer" id="taskDrawer">
|
||
<div class="drawer-header">
|
||
<div style="flex: 1; padding-left: 12px;">
|
||
<span class="badge badge-p0" id="drawerPrio">P0</span>
|
||
<span class="task-id" id="drawerId" style="margin-right:8px;">SEO-001</span>
|
||
<h2 id="drawerTitle" style="font-size:17px; font-weight:800; margin-top:10px; color:#0F172A;">عنوان اقدام</h2>
|
||
</div>
|
||
<div class="drawer-header-actions">
|
||
<button class="btn-drawer-action btn-drawer-md" onclick="downloadDrawerMarkdown()" title="دانلود گزارش کامل تسک به فرمت Markdown">
|
||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
|
||
دانلود MD
|
||
</button>
|
||
<button class="btn-drawer-action btn-drawer-pdf" onclick="downloadDrawerPDF()" title="دانلود و چاپ گزارش تسک به فرمت PDF">
|
||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/><polyline points="10 9 9 9 8 9"/></svg>
|
||
دانلود PDF
|
||
</button>
|
||
<button class="close-btn" onclick="closeDrawer()" title="بستن (Esc)">✕</button>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="meta-grid">
|
||
<div class="meta-item">
|
||
<div class="lbl">تیم مسئول تحویل</div>
|
||
<div class="val" id="drawerTeam" style="color:#2563EB;">-</div>
|
||
</div>
|
||
<div class="meta-item">
|
||
<div class="lbl">فاز اسپرینت</div>
|
||
<div class="val" id="drawerSprint">-</div>
|
||
</div>
|
||
<div class="meta-item">
|
||
<div class="lbl">تخمین نفرساعت</div>
|
||
<div class="val tnum" id="drawerHours">-</div>
|
||
</div>
|
||
<div class="meta-item">
|
||
<div class="lbl">امتیاز RICE</div>
|
||
<div class="val tnum" id="drawerRice">-</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="drawer-section">
|
||
<h3>📁 آدرس دقیق فایل و خطوط درگیر</h3>
|
||
<p id="drawerFile" style="font-family:monospace; direction:ltr; text-align:left; background:#F1F5F9; padding:8px 12px; border-radius:6px; font-size:12px; color:#0F172A; font-weight:700;"></p>
|
||
</div>
|
||
|
||
<div class="drawer-section">
|
||
<h3>🔍 تحلیل ریشهای علت باگ (Root-Cause Diagnosis)</h3>
|
||
<p id="drawerRootCause" style="font-size:13px; color:#334155; line-height:1.7; background:#F8FAFC; padding:12px; border-radius:8px; border:1px solid #E2E8F0;"></p>
|
||
</div>
|
||
|
||
<div class="drawer-section">
|
||
<h3>⚠️ کد باگدار فعلی (Current Problematic Code)</h3>
|
||
<div class="code-box code-box-danger">
|
||
<button class="copy-btn" onclick="copyCode('drawerBuggy')">کپی کد باگدار</button>
|
||
<pre id="drawerBuggy"></pre>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="drawer-section">
|
||
<h3>✅ کد اصلاحشده و آماده پروداکشن (Fixed Production Code)</h3>
|
||
<div class="code-box code-box-success">
|
||
<button class="copy-btn" onclick="copyCode('drawerFixed')">کپی کد اصلاحی</button>
|
||
<pre id="drawerFixed"></pre>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="drawer-section">
|
||
<h3>🎯 معیار پذیرش و تضمین کیفیت (Definition of Done & QA Criteria)</h3>
|
||
<div class="dod-box" id="drawerDod"></div>
|
||
</div>
|
||
|
||
<div class="drawer-section">
|
||
<h3>🧪 دستور اجرای تست مستقل در ترمینال (Verification Command)</h3>
|
||
<div class="code-box">
|
||
<pre id="drawerCmd"></pre>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="drawer-footer-actions">
|
||
<button class="btn-drawer-action btn-drawer-md" onclick="downloadDrawerMarkdown()" style="padding: 9px 16px; font-size: 13px;">
|
||
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
|
||
دانلود گزارش به صورت Markdown (.md)
|
||
</button>
|
||
<button class="btn-drawer-action btn-drawer-pdf" onclick="downloadDrawerPDF()" style="padding: 9px 16px; font-size: 13px;">
|
||
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/><polyline points="10 9 9 9 8 9"/></svg>
|
||
دانلود و پرینت PDF (.pdf)
|
||
</button>
|
||
</div>
|
||
</aside>
|
||
|
||
<!-- Load Data Bundle -->
|
||
<script src="data_bundle.js"></script>
|
||
<script>
|
||
let allTasks = [];
|
||
let currentFilter = 'all';
|
||
|
||
function initDashboard() {
|
||
if (window.__SEO_MASTER_DATA__ && window.__SEO_MASTER_DATA__.tasks) {
|
||
allTasks = window.__SEO_MASTER_DATA__.tasks;
|
||
renderTasks(allTasks);
|
||
}
|
||
}
|
||
|
||
function renderTasks(tasks) {
|
||
const tbody = document.getElementById('tasksTbody');
|
||
tbody.innerHTML = '';
|
||
|
||
tasks.forEach(t => {
|
||
const tr = document.createElement('tr');
|
||
tr.onclick = () => openDrawer(t);
|
||
|
||
const prioClass = t.priority === 'P0' ? 'badge-p0' : (t.priority === 'P1' ? 'badge-p1' : (t.priority === 'P2' ? 'badge-p2' : 'badge-p3'));
|
||
|
||
tr.innerHTML = `
|
||
<td><span class="task-id">${t.id}</span></td>
|
||
<td><span class="badge ${prioClass}">${t.priority}</span></td>
|
||
<td>
|
||
<div class="task-title">${t.title}</div>
|
||
<div class="task-meta">${t.business_impact.substring(0, 85)}...</div>
|
||
</td>
|
||
<td><span class="badge ${t.badge_class}">${t.handover_team || t.layer_title}</span></td>
|
||
<td><span style="font-family:monospace; font-size:11px; direction:ltr; display:block; text-align:right;">${(t.file_path || '').split(' ')[0]}</span></td>
|
||
<td><span style="font-size:11px; color:#64748B;">${t.sprint.split(' ')[0]}</span></td>
|
||
<td><span class="tnum" style="font-weight:700; color:#0F172A;">${t.hours}h</span></td>
|
||
<td><span class="tnum" style="font-weight:800; color:#2563EB;">${t.rice.score.toLocaleString('fa-IR')}</span></td>
|
||
`;
|
||
tbody.appendChild(tr);
|
||
});
|
||
}
|
||
|
||
function filterTasks(filter) {
|
||
currentFilter = filter;
|
||
document.querySelectorAll('.filter-btn').forEach(btn => btn.classList.remove('active'));
|
||
const activeBtn = Array.from(document.querySelectorAll('.filter-btn')).find(b => b.getAttribute('onclick')?.includes(filter));
|
||
if (activeBtn) activeBtn.classList.add('active');
|
||
|
||
let filtered = allTasks;
|
||
if (filter === 'critical') {
|
||
filtered = allTasks.filter(t => t.is_critical);
|
||
} else if (filter !== 'all') {
|
||
filtered = allTasks.filter(t => t.layer === filter);
|
||
}
|
||
renderTasks(filtered);
|
||
}
|
||
|
||
function searchTasks() {
|
||
const q = document.getElementById('taskSearch').value.toLowerCase();
|
||
const filtered = allTasks.filter(t =>
|
||
t.id.toLowerCase().includes(q) ||
|
||
t.title.toLowerCase().includes(q) ||
|
||
(t.file_path && t.file_path.toLowerCase().includes(q)) ||
|
||
t.root_cause_analysis.toLowerCase().includes(q)
|
||
);
|
||
renderTasks(filtered);
|
||
}
|
||
|
||
let currentDrawerTask = null;
|
||
|
||
function openDrawer(t) {
|
||
currentDrawerTask = t;
|
||
document.body.classList.add('drawer-open');
|
||
document.getElementById('drawerId').innerText = t.id;
|
||
document.getElementById('drawerTitle').innerText = t.title;
|
||
document.getElementById('drawerPrio').innerText = t.priority;
|
||
document.getElementById('drawerPrio').className = `badge ${t.priority === 'P0' ? 'badge-p0' : (t.priority === 'P1' ? 'badge-p1' : (t.priority === 'P2' ? 'badge-p2' : 'badge-p3'))}`;
|
||
document.getElementById('drawerTeam').innerText = t.handover_team || t.layer_title;
|
||
document.getElementById('drawerSprint').innerText = t.sprint;
|
||
document.getElementById('drawerHours').innerText = `${t.hours} ساعت`;
|
||
document.getElementById('drawerRice').innerText = t.rice.score.toLocaleString('fa-IR');
|
||
document.getElementById('drawerFile').innerText = `${t.file_path || 'مسیر عمومی پروژه'} (${t.lines || 'خطوط مرتبط'})`;
|
||
document.getElementById('drawerRootCause').innerText = t.root_cause_analysis;
|
||
document.getElementById('drawerBuggy').innerText = t.buggy_code || '// کدهای نیاز به ارتقا در فایل مربوطه';
|
||
document.getElementById('drawerFixed').innerText = t.fixed_code || '// اصلاحات استاندارد مهندسی سئو';
|
||
document.getElementById('drawerDod').innerText = t.acceptance_criteria || 'تست کامل عملکردی و عدم افت شاخصهای وبوایتال';
|
||
document.getElementById('drawerCmd').innerText = t.test_command;
|
||
|
||
document.getElementById('drawerOverlay').classList.add('active');
|
||
document.getElementById('taskDrawer').classList.add('active');
|
||
}
|
||
|
||
function closeDrawer() {
|
||
document.body.classList.remove('drawer-open');
|
||
document.getElementById('drawerOverlay').classList.remove('active');
|
||
document.getElementById('taskDrawer').classList.remove('active');
|
||
}
|
||
|
||
function downloadDrawerMarkdown() {
|
||
if (!currentDrawerTask) return;
|
||
const t = currentDrawerTask;
|
||
const riceBreakdown = t.rice ? `(Reach: ${Number(t.rice.reach || 0).toLocaleString('fa-IR')} | Impact: ${t.rice.impact || '-'} | Confidence: ${t.rice.confidence || '-'} | Effort: ${t.rice.effort || '-'})` : '';
|
||
|
||
const md = `# [${t.id}] ${t.title}
|
||
|
||
| مشخصه | مقدار |
|
||
| :--- | :--- |
|
||
| **شناسه اقدام** | \`${t.id}\` |
|
||
| **سطح اولویت** | \`${t.priority}\` |
|
||
| **تیم مسئول تحویل** | ${t.handover_team || t.layer_title || '-'} |
|
||
| **فاز اسپرینت** | ${t.sprint || '-'} |
|
||
| **تخمین زمان** | ${t.hours} ساعت کاری |
|
||
| **امتیاز RICE** | ${t.rice ? Number(t.rice.score || 0).toLocaleString('fa-IR') : '-'} ${riceBreakdown} |
|
||
| **ستون نظارتی C-Level** | ${t.c_level_pillar || '-'} |
|
||
| **آدرس دقیق فایل و خطوط** | \`${t.file_path || 'مسیر عمومی'} (${t.lines || 'خطوط مرتبط'})\` |
|
||
|
||
---
|
||
|
||
### 💼 اثر تجاری و بیزینسی (Business Impact)
|
||
${t.business_impact || 'تحلیل ثبت نشده است.'}
|
||
|
||
---
|
||
|
||
### 🔍 تحلیل ریشهای علت باگ (Root-Cause Diagnosis)
|
||
${t.root_cause_analysis || 'تحلیل ریشهای ثبت نشده است.'}
|
||
|
||
---
|
||
|
||
### ⚠️ کد باگدار فعلی (Current Problematic Code)
|
||
\`\`\`typescript
|
||
${t.buggy_code || '// کدهای نیاز به اصلاح'}
|
||
\`\`\`
|
||
|
||
---
|
||
|
||
### ✅ کد اصلاحشده و آماده پروداکشن (Fixed Production Code)
|
||
\`\`\`typescript
|
||
${t.fixed_code || '// اصلاحات استاندارد مهندسی سئو'}
|
||
\`\`\`
|
||
|
||
---
|
||
|
||
### 🎯 معیار پذیرش و تضمین کیفیت (Definition of Done & QA Criteria)
|
||
${t.acceptance_criteria || 'تست کامل عملکردی بدون افت وبوایتال'}
|
||
|
||
---
|
||
|
||
### 🧪 دستور اجرای تست مستقل در ترمینال (Verification Command)
|
||
\`\`\`bash
|
||
${t.test_command || ''}
|
||
\`\`\`
|
||
|
||
---
|
||
*گزارش استخراجشده از داشبورد مهندسی و سئو اکیپا (seo.zebellkhan.com) — تاریخ: ${new Date().toLocaleDateString('fa-IR')}*
|
||
`;
|
||
|
||
const blob = new Blob(["\uFEFF" + md], { type: 'text/markdown;charset=utf-8;' });
|
||
const url = URL.createObjectURL(blob);
|
||
const a = document.createElement('a');
|
||
a.href = url;
|
||
a.download = `${t.id}_action_report.md`;
|
||
document.body.appendChild(a);
|
||
a.click();
|
||
document.body.removeChild(a);
|
||
URL.revokeObjectURL(url);
|
||
}
|
||
|
||
function downloadDrawerPDF() {
|
||
if (!currentDrawerTask) return;
|
||
const prevTitle = document.title;
|
||
document.title = `${currentDrawerTask.id} - ${currentDrawerTask.title}`;
|
||
window.print();
|
||
setTimeout(() => {
|
||
document.title = prevTitle;
|
||
}, 1500);
|
||
}
|
||
|
||
function copyCode(id) {
|
||
const text = document.getElementById(id).innerText;
|
||
navigator.clipboard.writeText(text).then(() => {
|
||
alert('کد در حافظه کپی شد!');
|
||
});
|
||
}
|
||
|
||
function exportToCSV() {
|
||
let csvContent = "\uFEFFشناسه,اولویت,عنوان اقدام,تیم مسئول,مسیر فایل,اسپرینت,ساعت,امتیاز RICE,معیار پذیرش\n";
|
||
allTasks.forEach(t => {
|
||
const row = [
|
||
t.id,
|
||
t.priority,
|
||
`"${t.title.replace(/"/g, '""')}"`,
|
||
`"${t.handover_team || t.layer_title}"`,
|
||
`"${t.file_path || ''}"`,
|
||
`"${t.sprint}"`,
|
||
t.hours,
|
||
t.rice.score,
|
||
`"${(t.acceptance_criteria || '').replace(/"/g, '""')}"`
|
||
];
|
||
csvContent += row.join(",") + "\n";
|
||
});
|
||
const blob = new Blob([csvContent], { type: 'text/csv;charset=utf-8;' });
|
||
const url = URL.createObjectURL(blob);
|
||
const link = document.createElement("a");
|
||
link.setAttribute("href", url);
|
||
link.setAttribute("download", `ekeepa_seo_113_tasks_handover_${new Date().toISOString().slice(0,10)}.csv`);
|
||
document.body.appendChild(link);
|
||
link.click();
|
||
document.body.removeChild(link);
|
||
}
|
||
|
||
document.addEventListener('keydown', (e) => {
|
||
if (e.key === 'Escape') closeDrawer();
|
||
});
|
||
|
||
window.onload = initDashboard;
|
||
</script>
|
||
</body>
|
||
</html>
|