2852 lines
158 KiB
HTML
Executable file
2852 lines
158 KiB
HTML
Executable file
<!DOCTYPE html>
|
||
<html lang="fa" dir="rtl" class="dark">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<title>داشبورد سیستم رشد فردی و شغلی دارا | اکیپا</title>
|
||
|
||
<!-- Vazirmatn Font CDN -->
|
||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||
<link href="https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
|
||
|
||
<!-- Tailwind CSS CDN -->
|
||
<script src="https://cdn.tailwindcss.com"></script>
|
||
|
||
<!-- Chart.js CDN -->
|
||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||
|
||
<script>
|
||
tailwind.config = {
|
||
darkMode: "class",
|
||
theme: {
|
||
extend: {
|
||
fontFamily: { sans: ["Vazirmatn", "sans-serif"] },
|
||
colors: {
|
||
primary: {
|
||
DEFAULT: "#0A6847",
|
||
50: "#F0FDF4",
|
||
100: "#DCFCE7",
|
||
200: "#BBF7D0",
|
||
300: "#86EFAC",
|
||
400: "#4ADE80",
|
||
500: "#22C55E",
|
||
600: "#16A34A",
|
||
700: "#0A6847", // Custom Primary Base
|
||
800: "#085238",
|
||
900: "#053B28",
|
||
950: "#022418",
|
||
},
|
||
accent: {
|
||
gold: "#F59E0B",
|
||
blue: "#3B82F6",
|
||
purple: "#8B5CF6",
|
||
rose: "#F43F5E",
|
||
teal: "#14B8A6"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style>
|
||
:root {
|
||
--primary-color: #0A6847;
|
||
--primary-light: #148E62;
|
||
--primary-dark: #064E35;
|
||
--bg-page: #F8FAFC;
|
||
--bg-surface: #FFFFFF;
|
||
--bg-surface-card: #FFFFFF;
|
||
--bg-surface-hover: #F1F5F9;
|
||
--border-subtle: #E2E8F0;
|
||
--text-main: #0F172A;
|
||
--text-sub: #64748B;
|
||
--card-shadow: 0 1px 3px rgba(0,0,0,0.06);
|
||
}
|
||
html.dark {
|
||
--primary-color: #0A6847;
|
||
--primary-light: #148E62;
|
||
--primary-dark: #064E35;
|
||
--bg-page: #0C1014;
|
||
--bg-surface: #12181F;
|
||
--bg-surface-card: #18202A;
|
||
--bg-surface-hover: #1E2835;
|
||
--border-subtle: #24303F;
|
||
--text-main: #F3F4F6;
|
||
--text-sub: #94A3B8;
|
||
--card-shadow: none;
|
||
}
|
||
* { font-family: "Vazirmatn", sans-serif; }
|
||
body { background-color: var(--bg-page); color: var(--text-main); transition: background-color 0.2s ease, color 0.2s ease; }
|
||
|
||
.sidebar-active {
|
||
background: linear-gradient(135deg, rgba(10, 104, 71, 0.95), rgba(8, 82, 56, 0.95)) !important;
|
||
color: #FFFFFF !important;
|
||
font-weight: 700;
|
||
box-shadow: 0 4px 14px rgba(10, 104, 71, 0.35);
|
||
}
|
||
|
||
.glass-card {
|
||
background: var(--bg-surface);
|
||
border: 1px solid var(--border-subtle);
|
||
}
|
||
|
||
/* Custom Scrollbar */
|
||
::-webkit-scrollbar { width: 6px; height: 6px; }
|
||
::-webkit-scrollbar-track { background: transparent; }
|
||
::-webkit-scrollbar-thumb { background: rgba(10, 104, 71, 0.4); border-radius: 999px; }
|
||
::-webkit-scrollbar-thumb:hover { background: rgba(10, 104, 71, 0.7); }
|
||
|
||
/* Canvas stickies style for FigJam tier */
|
||
.figjam-sticky {
|
||
transform: rotate(-0.5deg);
|
||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||
}
|
||
.figjam-sticky:hover {
|
||
transform: rotate(0deg) scale(1.02);
|
||
box-shadow: 0 10px 20px rgba(0,0,0,0.15);
|
||
}
|
||
</style>
|
||
</head>
|
||
<body class="min-h-screen flex selection:bg-primary-700 selection:text-white">
|
||
|
||
<!-- SIDEBAR NAVIGATION -->
|
||
<aside id="main-sidebar" class="w-72 bg-[var(--bg-surface)] border-l border-[var(--border-subtle)] flex flex-col justify-between shrink-0 fixed inset-y-0 right-0 z-40 transition-transform duration-300 lg:translate-x-0 translate-x-full">
|
||
|
||
<!-- Top Branding & Profile Header -->
|
||
<div class="p-5 border-b border-[var(--border-subtle)]">
|
||
<div class="flex items-center gap-3">
|
||
<div class="w-11 h-11 rounded-2xl bg-gradient-to-br from-[#0A6847] to-[#043322] flex items-center justify-center text-white font-black text-lg shadow-lg shadow-emerald-950/40 border border-emerald-500/40">
|
||
DP
|
||
</div>
|
||
<div>
|
||
<div class="flex items-center gap-1.5">
|
||
<h1 class="text-sm font-black text-[var(--text-main)]">دارا | رشد شغلی</h1>
|
||
<span class="text-[9px] px-1.5 py-0.5 rounded-full bg-emerald-500/15 text-[#10B981] font-bold border border-emerald-500/30">اکیپا</span>
|
||
</div>
|
||
<p class="text-[11px] text-[var(--text-sub)] mt-0.5 font-medium">PD → PO → Product Lead</p>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Quick Role Progress Tracker Pill -->
|
||
<div class="mt-4 p-2.5 rounded-xl bg-emerald-900/15 border border-emerald-800/30">
|
||
<div class="flex items-center justify-between text-[11px] mb-1.5">
|
||
<span class="font-bold text-[#10B981]">شاخص کل آمادگی لید</span>
|
||
<span id="sidebar-overall-score" class="font-mono font-bold text-white">۶۸٪</span>
|
||
</div>
|
||
<div class="w-full h-2 rounded-full bg-black/25 overflow-hidden">
|
||
<div id="sidebar-progress-bar" class="h-full bg-gradient-to-r from-[#0A6847] to-[#34D399] rounded-full transition-all duration-500" style="width: 68%;"></div>
|
||
</div>
|
||
<div class="flex justify-between text-[9px] text-[var(--text-sub)] mt-1 font-medium">
|
||
<span>طراح محصول</span>
|
||
<span>مالک محصول</span>
|
||
<span class="text-[#34D399] font-bold">لید محصول</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Navigation Menu Items -->
|
||
<nav class="flex-1 p-3 space-y-1.5 overflow-y-auto">
|
||
|
||
<div class="px-3 pt-2 pb-1 text-[10px] font-black uppercase tracking-wider text-[var(--text-sub)]">
|
||
ماژولهای ناوبری
|
||
</div>
|
||
|
||
<button onclick="switchTab('tab-radar')" id="nav-tab-radar" class="w-full flex items-center gap-3 px-3.5 py-2.5 rounded-xl text-xs font-semibold text-[var(--text-sub)] hover:text-[var(--text-main)] hover:bg-[var(--bg-surface-hover)] transition sidebar-active">
|
||
<svg class="w-4 h-4 text-emerald-700 dark:text-emerald-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"/><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"/></svg>
|
||
<span>۱. رادار ۵ شایستگی و رصد زنده</span>
|
||
</button>
|
||
|
||
<button onclick="switchTab('tab-roadmap')" id="nav-tab-roadmap" class="w-full flex items-center gap-3 px-3.5 py-2.5 rounded-xl text-xs font-semibold text-[var(--text-sub)] hover:text-[var(--text-main)] hover:bg-[var(--bg-surface-hover)] transition">
|
||
<svg class="w-4 h-4 text-emerald-700 dark:text-emerald-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"/></svg>
|
||
<span>۲. برنامه یادگیری و سرفصلها</span>
|
||
</button>
|
||
|
||
<button onclick="switchTab('tab-transition')" id="nav-tab-transition" class="w-full flex items-center gap-3 px-3.5 py-2.5 rounded-xl text-xs font-semibold text-[var(--text-sub)] hover:text-[var(--text-main)] hover:bg-[var(--bg-surface-hover)] transition">
|
||
<svg class="w-4 h-4 text-emerald-700 dark:text-emerald-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"/></svg>
|
||
<span>۳. راهنمای گذار به مالک و لید محصول</span>
|
||
</button>
|
||
|
||
<button onclick="switchTab('tab-projects')" id="nav-tab-projects" class="w-full flex items-center gap-3 px-3.5 py-2.5 rounded-xl text-xs font-semibold text-[var(--text-sub)] hover:text-[var(--text-main)] hover:bg-[var(--bg-surface-hover)] transition">
|
||
<svg class="w-4 h-4 text-emerald-700 dark:text-emerald-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"/></svg>
|
||
<span>۴. پروژههای عملی و ایمپکت در اکیپا</span>
|
||
</button>
|
||
|
||
<button onclick="switchTab('tab-habits')" id="nav-tab-habits" class="w-full flex items-center gap-3 px-3.5 py-2.5 rounded-xl text-xs font-semibold text-[var(--text-sub)] hover:text-[var(--text-main)] hover:bg-[var(--bg-surface-hover)] transition">
|
||
<svg class="w-4 h-4 text-emerald-700 dark:text-emerald-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"/></svg>
|
||
<span>۵. ژورنال رشد، روتینها و عادات</span>
|
||
</button>
|
||
|
||
<button onclick="switchTab('tab-jira')" id="nav-tab-jira" class="w-full flex items-center justify-between px-3.5 py-2.5 rounded-xl text-xs font-semibold text-[var(--text-sub)] hover:text-[var(--text-main)] hover:bg-[var(--bg-surface-hover)] transition">
|
||
<div class="flex items-center gap-3">
|
||
<svg class="w-4 h-4 text-[#0052CC] dark:text-[#4C9AFF]" viewBox="0 0 24 24" fill="currentColor"><path d="M11.53 2c0 2.4 1.97 4.35 4.4 4.35h1.78v1.74c0 2.4 1.97 4.35 4.4 4.35V2h-10.58zm-4.76 4.79c0 2.4 1.97 4.35 4.4 4.35h1.77v1.75c0 2.4 1.97 4.35 4.4 4.35V6.79H6.77zm-4.77 4.8c0 2.4 1.97 4.35 4.4 4.35h1.77v1.74c0 2.4 1.97 4.35 4.4 4.35V11.59H2z"/></svg>
|
||
<span>۶. مرکز تسکها و برد جیرا</span>
|
||
</div>
|
||
<span id="jira-nav-counter" class="px-1.5 py-0.5 rounded text-[10px] font-bold bg-[#0052CC]/10 text-[#0052CC] dark:text-[#4C9AFF] border border-[#0052CC]/20 font-mono">12</span>
|
||
</button>
|
||
|
||
<div class="pt-4 px-3 pb-1 text-[10px] font-black uppercase tracking-wider text-[var(--text-sub)]">
|
||
سبک نمایش (Design Tiers)
|
||
</div>
|
||
|
||
<!-- 4-Version View Tiers -->
|
||
<div class="grid grid-cols-2 gap-1.5 p-1 bg-[var(--bg-surface-card)] rounded-xl border border-[var(--border-subtle)]">
|
||
<button onclick="setDesignTier('executive')" id="tier-executive" class="px-2 py-1.5 text-[10px] font-bold rounded-lg bg-[#0A6847] text-white">
|
||
۱. اجرایی تمیز
|
||
</button>
|
||
<button onclick="setDesignTier('canvas')" id="tier-canvas" class="px-2 py-1.5 text-[10px] font-bold rounded-lg text-[var(--text-sub)] hover:bg-[var(--bg-surface-hover)]">
|
||
۲. تخته فیگجم
|
||
</button>
|
||
<button onclick="setDesignTier('bi')" id="tier-bi" class="px-2 py-1.5 text-[10px] font-bold rounded-lg text-[var(--text-sub)] hover:bg-[var(--bg-surface-hover)]">
|
||
۳. کاکپیت دیتا
|
||
</button>
|
||
<button onclick="setDesignTier('gamified')" id="tier-gamified" class="px-2 py-1.5 text-[10px] font-bold rounded-lg text-[var(--text-sub)] hover:bg-[var(--bg-surface-hover)]">
|
||
۴. گیمیفاید CRO
|
||
</button>
|
||
</div>
|
||
|
||
</nav>
|
||
|
||
<!-- Sidebar Footer Actions -->
|
||
<div class="p-4 border-t border-[var(--border-subtle)] space-y-2">
|
||
<div class="flex items-center justify-between text-xs">
|
||
<span class="text-[var(--text-sub)]">حالت نمایش:</span>
|
||
<div class="flex items-center gap-1 p-0.5 rounded-lg bg-[var(--bg-surface-card)] border border-[var(--border-subtle)]">
|
||
<button id="sidebar-theme-light" onclick="setTheme('light')" class="px-2.5 py-1 rounded-md text-[11px] font-bold text-[var(--text-sub)] transition">☀️ روز</button>
|
||
<button id="sidebar-theme-dark" onclick="setTheme('dark')" class="px-2.5 py-1 rounded-md text-[11px] font-bold text-[var(--text-sub)] transition">🌙 شب</button>
|
||
</div>
|
||
</div>
|
||
<div class="flex gap-2">
|
||
<button onclick="exportProgressJSON()" class="flex-1 py-1.5 px-2 rounded-lg bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] text-[10px] font-bold text-[var(--text-sub)] hover:text-white hover:bg-[#0A6847] transition">
|
||
دریافت بکآپ
|
||
</button>
|
||
<button onclick="resetDefaults()" class="py-1.5 px-2 rounded-lg bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] text-[10px] font-bold text-rose-400 hover:bg-rose-500/10 transition">
|
||
بازنشانی
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</aside>
|
||
|
||
<!-- MOBILE OVERLAY BACKDROP -->
|
||
<div id="sidebar-overlay" onclick="toggleMobileSidebar()" class="fixed inset-0 bg-black/60 z-30 hidden lg:hidden backdrop-blur-xs"></div>
|
||
|
||
<!-- MAIN VIEWPORT CONTENT (Padded right for Sidebar) -->
|
||
<div class="flex-1 lg:mr-72 flex flex-col min-h-screen">
|
||
|
||
<!-- Top Header Bar -->
|
||
<header class="sticky top-0 z-20 bg-[var(--bg-surface)]/90 backdrop-blur-md border-b border-[var(--border-subtle)] px-4 lg:px-8 py-3 flex items-center justify-between gap-3">
|
||
<div class="flex items-center gap-3 min-w-0">
|
||
<button onclick="toggleMobileSidebar()" class="lg:hidden p-2 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] text-[var(--text-main)] shrink-0">
|
||
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16m-7 6h7"/></svg>
|
||
</button>
|
||
<div class="truncate">
|
||
<h2 id="top-view-title" class="text-sm lg:text-base font-black text-[var(--text-main)] truncate">رادار شایستگیها و رصد زنده توانمندیهای محصول دارا</h2>
|
||
<p class="text-[11px] text-[var(--text-sub)] truncate">مبتنی بر مدل سند راهبردی: Product Thinking, Data, Research, Business, Execution</p>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Header Right Controls -->
|
||
<div class="flex items-center gap-3 shrink-0">
|
||
<!-- Quick Metrics Summary Pills -->
|
||
<div class="hidden sm:flex items-center gap-3">
|
||
<div class="px-3 py-1 rounded-xl bg-emerald-500/10 border border-emerald-500/25 flex items-center gap-2">
|
||
<span class="w-2 h-2 rounded-full bg-[#10B981] animate-pulse"></span>
|
||
<span class="text-xs font-bold text-[#10B981]">وضعیت: در مسیر رشد (On Track)</span>
|
||
</div>
|
||
<div class="px-3 py-1 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] text-xs">
|
||
<span class="text-[var(--text-sub)]">اسپرینت شغلی:</span>
|
||
<span class="font-bold text-[var(--text-main)] font-mono mr-1">هفته ۳ از ۱۲</span>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Prominent Segmented Theme Switcher (Light / Dark) -->
|
||
<div class="flex items-center p-1 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] shadow-xs">
|
||
<button id="theme-btn-light" onclick="setTheme('light')" class="flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-bold transition">
|
||
<span>☀️</span>
|
||
<span class="hidden md:inline">روز</span>
|
||
</button>
|
||
<button id="theme-btn-dark" onclick="setTheme('dark')" class="flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-bold transition">
|
||
<span>🌙</span>
|
||
<span class="hidden md:inline">شب</span>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</header>
|
||
|
||
<!-- CONTENT BODY CONTAINER -->
|
||
<main class="flex-1 p-4 lg:p-8 space-y-6 max-w-7xl w-full mx-auto">
|
||
|
||
<!-- ======================================================== -->
|
||
<!-- TAB 1: RADAR & 5 PILLARS SELF-ASSESSMENT -->
|
||
<!-- ======================================================== -->
|
||
<section id="tab-radar" class="space-y-6">
|
||
|
||
<!-- Executive KPI Banner -->
|
||
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4">
|
||
|
||
<div class="p-4 rounded-2xl glass-card relative overflow-hidden">
|
||
<div class="flex items-center justify-between text-xs text-[var(--text-sub)] mb-2 font-medium">
|
||
<span>۱. تفکر محصولی (Product Thinking)</span>
|
||
<span class="w-2 h-2 rounded-full bg-[#10B981]"></span>
|
||
</div>
|
||
<div class="flex items-baseline gap-2">
|
||
<span id="score-pt" class="text-2xl font-black text-[var(--text-main)]">۷۰٪</span>
|
||
<span class="text-xs text-emerald-700 dark:text-emerald-400 font-bold">+۱۰٪ رشد</span>
|
||
</div>
|
||
<p class="text-[11px] text-[var(--text-sub)] mt-1">تعریف مسئله، دیسکاوری، اولویتبندی</p>
|
||
</div>
|
||
|
||
<div class="p-4 rounded-2xl glass-card relative overflow-hidden">
|
||
<div class="flex items-center justify-between text-xs text-[var(--text-sub)] mb-2 font-medium">
|
||
<span>۲. داده و تحلیل (Data & Analytics)</span>
|
||
<span class="w-2 h-2 rounded-full bg-blue-500"></span>
|
||
</div>
|
||
<div class="flex items-baseline gap-2">
|
||
<span id="score-data" class="text-2xl font-black text-[var(--text-main)]">۶۵٪</span>
|
||
<span class="text-xs text-blue-700 dark:text-blue-400 font-bold">پایش Clarity & Funnel</span>
|
||
</div>
|
||
<p class="text-[11px] text-[var(--text-sub)] mt-1">تحلیل رفتار کاربر، ریتنشن، تبدیل دیتا به تصمیم</p>
|
||
</div>
|
||
|
||
<div class="p-4 rounded-2xl glass-card relative overflow-hidden">
|
||
<div class="flex items-center justify-between text-xs text-[var(--text-sub)] mb-2 font-medium">
|
||
<span>۳. کسبوکار و مارکت (Business)</span>
|
||
<span class="w-2 h-2 rounded-full bg-amber-500"></span>
|
||
</div>
|
||
<div class="flex items-baseline gap-2">
|
||
<span id="score-biz" class="text-2xl font-black text-[var(--text-main)]">۶۰٪</span>
|
||
<span class="text-xs text-amber-700 dark:text-amber-400 font-bold">اتصال فیچر به درآمد</span>
|
||
</div>
|
||
<p class="text-[11px] text-[var(--text-sub)] mt-1">مدل تجاری اکیپا، Unit Economics، مجموعهها</p>
|
||
</div>
|
||
|
||
<div class="p-4 rounded-2xl glass-card relative overflow-hidden">
|
||
<div class="flex items-center justify-between text-xs text-[var(--text-sub)] mb-2 font-medium">
|
||
<span>۴. اجرا و توسعه (Execution & Tech)</span>
|
||
<span class="w-2 h-2 rounded-full bg-purple-500"></span>
|
||
</div>
|
||
<div class="flex items-baseline gap-2">
|
||
<span id="score-exec" class="text-2xl font-black text-[var(--text-main)]">۸۰٪</span>
|
||
<span class="text-xs text-purple-700 dark:text-purple-400 font-bold">نقطه قوت دارا</span>
|
||
</div>
|
||
<p class="text-[11px] text-[var(--text-sub)] mt-1">وایب کدینگ، پروتوتایپ سریع، همسویی فنی</p>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<!-- Radar Chart + Live Interactive Sliders -->
|
||
<div class="grid grid-cols-1 lg:grid-cols-12 gap-6">
|
||
|
||
<!-- Radar Visual (7 cols) -->
|
||
<div class="lg:col-span-7 p-6 rounded-2xl glass-card flex flex-col justify-between">
|
||
<div class="flex items-center justify-between pb-4 border-b border-[var(--border-subtle)] mb-4">
|
||
<div>
|
||
<h3 class="text-sm font-black text-[var(--text-main)]">رادار پنتوگرام شایستگیهای Product Lead</h3>
|
||
<p class="text-xs text-[var(--text-sub)]">مقایسه سطح وضع موجود دارا در برابر تارگت استاندارد نقش رهبری محصول</p>
|
||
</div>
|
||
<span class="text-xs px-2.5 py-1 rounded-xl bg-[#0A6847]/15 text-[#10B981] font-bold border border-[#0A6847]/30">
|
||
شاخص بالانس: ۸.۲ / ۱۰
|
||
</span>
|
||
</div>
|
||
|
||
<div class="relative h-72 sm:h-80 flex items-center justify-center">
|
||
<canvas id="careerRadarChart"></canvas>
|
||
</div>
|
||
|
||
<div class="pt-4 border-t border-[var(--border-subtle)] flex items-center justify-between text-xs text-[var(--text-sub)]">
|
||
<div class="flex items-center gap-2">
|
||
<span class="w-3 h-3 rounded-full bg-[#10B981]"></span>
|
||
<span>وضعیت فعلی دارا</span>
|
||
</div>
|
||
<div class="flex items-center gap-2">
|
||
<span class="w-3 h-3 rounded-full bg-blue-500"></span>
|
||
<span>تارگت ۳ ماهه Product Owner</span>
|
||
</div>
|
||
<div class="flex items-center gap-2">
|
||
<span class="w-3 h-3 rounded-full bg-amber-500"></span>
|
||
<span>افق ۱ ساله Product Lead</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Interactive Sliders / Self-Rating Engine (5 cols) -->
|
||
<div class="lg:col-span-5 p-6 rounded-2xl glass-card flex flex-col justify-between space-y-4">
|
||
<div class="pb-3 border-b border-[var(--border-subtle)] flex items-center justify-between">
|
||
<div>
|
||
<h3 class="text-sm font-black text-[var(--text-main)]">ارزیابی پویا و کالیبراسیون زنده</h3>
|
||
<p class="text-xs text-[var(--text-sub)]">با تغییر اسلایدرها، رادار بالا و کل داشبورد لحظهای بهروزرسانی میشوند.</p>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="space-y-4 text-xs">
|
||
|
||
<!-- 1 -->
|
||
<div>
|
||
<div class="flex justify-between font-bold mb-1">
|
||
<span class="text-emerald-700 dark:text-emerald-400">۱. تفکر محصولی (Product Thinking)</span>
|
||
<span id="lbl-val-pt" class="font-mono">۷۰٪</span>
|
||
</div>
|
||
<input type="range" id="slider-pt" min="20" max="100" value="70" oninput="updateSkillScore('pt', this.value)" class="w-full accent-[#0A6847] bg-slate-700 h-1.5 rounded-lg">
|
||
<span class="text-[10px] text-[var(--text-sub)]">تمرکز بر Problem Definition و Discovery به جای پریدن به راهحل</span>
|
||
</div>
|
||
|
||
<!-- 2 -->
|
||
<div>
|
||
<div class="flex justify-between font-bold mb-1">
|
||
<span class="text-blue-700 dark:text-blue-400">۲. داده و تحلیل (Data & Analytics)</span>
|
||
<span id="lbl-val-data" class="font-mono">۶۵٪</span>
|
||
</div>
|
||
<input type="range" id="slider-data" min="20" max="100" value="65" oninput="updateSkillScore('data', this.value)" class="w-full accent-blue-500 bg-slate-700 h-1.5 rounded-lg">
|
||
<span class="text-[10px] text-[var(--text-sub)]">مهارت تبدیل دیتای قیف و کوهورت به فرضیههای قابل تست محصولی</span>
|
||
</div>
|
||
|
||
<!-- 3 -->
|
||
<div>
|
||
<div class="flex justify-between font-bold mb-1">
|
||
<span class="text-purple-700 dark:text-purple-400">۳. پژوهش و درک کاربر (Research)</span>
|
||
<span id="lbl-val-res" class="font-mono">۷۲٪</span>
|
||
</div>
|
||
<input type="range" id="slider-res" min="20" max="100" value="72" oninput="updateSkillScore('res', this.value)" class="w-full accent-purple-500 bg-slate-700 h-1.5 rounded-lg">
|
||
<span class="text-[10px] text-[var(--text-sub)]">مصاحبههای هفتگی با لیدرهای بازی و بنچمارک بازار تفریحات</span>
|
||
</div>
|
||
|
||
<!-- 4 -->
|
||
<div>
|
||
<div class="flex justify-between font-bold mb-1">
|
||
<span class="text-amber-700 dark:text-amber-400">۴. درک تجاری و بیزینس (Business)</span>
|
||
<span id="lbl-val-biz" class="font-mono">۶۰٪</span>
|
||
</div>
|
||
<input type="range" id="slider-biz" min="20" max="100" value="60" oninput="updateSkillScore('biz', this.value)" class="w-full accent-amber-500 bg-slate-700 h-1.5 rounded-lg">
|
||
<span class="text-[10px] text-[var(--text-sub)]">مدل کارمزد اکیپا، نیازمندیهای صاحبان مجموعهها و Unit Economics</span>
|
||
</div>
|
||
|
||
<!-- 5 -->
|
||
<div>
|
||
<div class="flex justify-between font-bold mb-1">
|
||
<span class="text-teal-400">۵. اجرا و درک فنی (Execution & Tech)</span>
|
||
<span id="lbl-val-exec" class="font-mono">۸۰٪</span>
|
||
</div>
|
||
<input type="range" id="slider-exec" min="20" max="100" value="80" oninput="updateSkillScore('exec', this.value)" class="w-full accent-teal-500 bg-slate-700 h-1.5 rounded-lg">
|
||
<span class="text-[10px] text-[var(--text-sub)]">وایبکدینگ پروتوتایپها، شکستن کارها در اسپرینت و نظارت بر دلیوری</span>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<button onclick="saveSkillScores()" class="w-full py-2.5 rounded-xl bg-gradient-to-r from-[#0A6847] to-[#0E8358] text-white text-xs font-bold hover:brightness-110 transition shadow-lg shadow-emerald-950/30">
|
||
ذخیره نمرات ارزیابی در سیستم
|
||
</button>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
</section>
|
||
|
||
<!-- ======================================================== -->
|
||
<!-- TAB 2: LEARNING ROADMAP & CURRICULUM -->
|
||
<!-- ======================================================== -->
|
||
<section id="tab-roadmap" class="hidden space-y-6">
|
||
|
||
<div class="p-6 rounded-2xl glass-card">
|
||
<div class="flex flex-col md:flex-row md:items-center justify-between pb-4 border-b border-[var(--border-subtle)] gap-3 mb-6">
|
||
<div>
|
||
<h3 class="text-sm font-black text-[var(--text-main)]">برنامه جامع یادگیری گامبهگام (Curriculum & Learning Sprints)</h3>
|
||
<p class="text-xs text-[var(--text-sub)]">دستهبندی شده در ۴ ماژول اصلی با منابع استاندارد، تمرینها و تحویلهای واقعی در اکیپا</p>
|
||
</div>
|
||
<div class="flex items-center gap-2">
|
||
<span class="text-xs text-[var(--text-sub)]">پیشرفت برنامه آموزشی:</span>
|
||
<span class="text-xs font-black text-emerald-700 dark:text-emerald-400 font-mono bg-emerald-500/10 px-2 py-0.5 rounded-lg border border-emerald-500/20">۶ از ۱۵ درس تکمیل شد</span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||
|
||
<!-- Module 1: Product Discovery & Thinking -->
|
||
<div class="p-5 rounded-2xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] space-y-4">
|
||
<div class="flex items-center justify-between pb-3 border-b border-[var(--border-subtle)]">
|
||
<div class="flex items-center gap-2.5">
|
||
<span class="w-7 h-7 rounded-xl bg-emerald-500/15 text-[#10B981] flex items-center justify-center font-black text-xs border border-emerald-500/30">۱</span>
|
||
<h4 class="text-xs font-black text-[var(--text-main)]">ماژول تفکر محصولی و Continuous Discovery</h4>
|
||
</div>
|
||
<span class="text-[10px] px-2 py-0.5 rounded-full bg-emerald-500/10 text-emerald-700 dark:text-emerald-400 font-bold">۲ هفته</span>
|
||
</div>
|
||
<div class="space-y-2.5 text-xs">
|
||
|
||
<label class="flex items-start gap-2.5 p-2.5 rounded-xl bg-[var(--bg-surface)] border border-[var(--border-subtle)] cursor-pointer hover:border-emerald-500/40 transition">
|
||
<input type="checkbox" checked onchange="toggleCourseItem(this)" class="mt-0.5 accent-[#0A6847] w-4 h-4 rounded">
|
||
<div>
|
||
<span class="font-bold text-[var(--text-main)] block">کتاب Continuous Discovery Habits (Teresa Torres)</span>
|
||
<span class="text-[11px] text-[var(--text-sub)]">ترسیم Opportunity Solution Tree (OST) برای مسئله انتخاب سانس بازیها در اکیپا.</span>
|
||
</div>
|
||
</label>
|
||
|
||
<label class="flex items-start gap-2.5 p-2.5 rounded-xl bg-[var(--bg-surface)] border border-[var(--border-subtle)] cursor-pointer hover:border-emerald-500/40 transition">
|
||
<input type="checkbox" checked onchange="toggleCourseItem(this)" class="mt-0.5 accent-[#0A6847] w-4 h-4 rounded">
|
||
<div>
|
||
<span class="font-bold text-[var(--text-main)] block">چارچوبهای تفکیک مسئله از راهحل (Problem Framing)</span>
|
||
<span class="text-[11px] text-[var(--text-sub)]">تمرین: نگارش ۵ بیانیه مسئله بدون ذکر دکمه یا المان بصری.</span>
|
||
</div>
|
||
</label>
|
||
|
||
<label class="flex items-start gap-2.5 p-2.5 rounded-xl bg-[var(--bg-surface)] border border-[var(--border-subtle)] cursor-pointer hover:border-emerald-500/40 transition">
|
||
<input type="checkbox" onchange="toggleCourseItem(this)" class="mt-0.5 accent-[#0A6847] w-4 h-4 rounded">
|
||
<div>
|
||
<span class="font-bold text-[var(--text-main)] block">ماتریسهای اولویتبندی پیشرفته (RICE & ICE)</span>
|
||
<span class="text-[11px] text-[var(--text-sub)]">امتیازدهی به ۱۰ ایده فیچر پلتفرم اکیپا بر مبنای Reach, Impact, Confidence, Effort.</span>
|
||
</div>
|
||
</label>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Module 2: Data & Funnel Analytics -->
|
||
<div class="p-5 rounded-2xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] space-y-4">
|
||
<div class="flex items-center justify-between pb-3 border-b border-[var(--border-subtle)]">
|
||
<div class="flex items-center gap-2.5">
|
||
<span class="w-7 h-7 rounded-xl bg-blue-500/15 text-blue-700 dark:text-blue-400 flex items-center justify-center font-black text-xs border border-blue-500/30">۲</span>
|
||
<h4 class="text-xs font-black text-[var(--text-main)]">ماژول داده، فانل رزرو و تحلیل ریتنشن</h4>
|
||
</div>
|
||
<span class="text-[10px] px-2 py-0.5 rounded-full bg-blue-500/10 text-blue-700 dark:text-blue-400 font-bold">۲ هفته</span>
|
||
</div>
|
||
<div class="space-y-2.5 text-xs">
|
||
|
||
<label class="flex items-start gap-2.5 p-2.5 rounded-xl bg-[var(--bg-surface)] border border-[var(--border-subtle)] cursor-pointer hover:border-blue-500/40 transition">
|
||
<input type="checkbox" checked onchange="toggleCourseItem(this)" class="mt-0.5 accent-[#0A6847] w-4 h-4 rounded">
|
||
<div>
|
||
<span class="font-bold text-[var(--text-main)] block">آنالیز رفتار کاربر با Microsoft Clarity</span>
|
||
<span class="text-[11px] text-[var(--text-sub)]">استخراج نقاط Rage Click و Quick Back در صفحات اتاق فرارهای شیراز.</span>
|
||
</div>
|
||
</label>
|
||
|
||
<label class="flex items-start gap-2.5 p-2.5 rounded-xl bg-[var(--bg-surface)] border border-[var(--border-subtle)] cursor-pointer hover:border-blue-500/40 transition">
|
||
<input type="checkbox" onchange="toggleCourseItem(this)" class="mt-0.5 accent-[#0A6847] w-4 h-4 rounded">
|
||
<div>
|
||
<span class="font-bold text-[var(--text-main)] block">مدلسازی کوهورت و چرخه بازگشت ۲۱ روزه</span>
|
||
<span class="text-[11px] text-[var(--text-sub)]">محاسبه درصد بازیکنانی که بازی دوم خود را ظرف ۳ هفته در اکیپا رزرو میکنند.</span>
|
||
</div>
|
||
</label>
|
||
|
||
<label class="flex items-start gap-2.5 p-2.5 rounded-xl bg-[var(--bg-surface)] border border-[var(--border-subtle)] cursor-pointer hover:border-blue-500/40 transition">
|
||
<input type="checkbox" onchange="toggleCourseItem(this)" class="mt-0.5 accent-[#0A6847] w-4 h-4 rounded">
|
||
<div>
|
||
<span class="font-bold text-[var(--text-main)] block">طراحی آزمایش (Experimentation & A/B Test)</span>
|
||
<span class="text-[11px] text-[var(--text-sub)]">تعریف فرضیه، متغیر مستقل و شاخص نهایی موفقیت برای کامپوننت انتخاب سانس.</span>
|
||
</div>
|
||
</label>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Module 3: Marketplace Business & Unit Economics -->
|
||
<div class="p-5 rounded-2xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] space-y-4">
|
||
<div class="flex items-center justify-between pb-3 border-b border-[var(--border-subtle)]">
|
||
<div class="flex items-center gap-2.5">
|
||
<span class="w-7 h-7 rounded-xl bg-amber-500/15 text-amber-700 dark:text-amber-400 flex items-center justify-center font-black text-xs border border-amber-500/30">۳</span>
|
||
<h4 class="text-xs font-black text-[var(--text-main)]">ماژول بیزینس پلتفرم، مارجین و نیازهای مجموعهداران</h4>
|
||
</div>
|
||
<span class="text-[10px] px-2 py-0.5 rounded-full bg-amber-500/10 text-amber-700 dark:text-amber-400 font-bold">۲ هفته</span>
|
||
</div>
|
||
<div class="space-y-2.5 text-xs">
|
||
|
||
<label class="flex items-start gap-2.5 p-2.5 rounded-xl bg-[var(--bg-surface)] border border-[var(--border-subtle)] cursor-pointer hover:border-amber-500/40 transition">
|
||
<input type="checkbox" checked onchange="toggleCourseItem(this)" class="mt-0.5 accent-[#0A6847] w-4 h-4 rounded">
|
||
<div>
|
||
<span class="font-bold text-[var(--text-main)] block">اقتصاد مارکتپلیس (Take Rate & Margin)</span>
|
||
<span class="text-[11px] text-[var(--text-sub)]">درک نحوه درآمدزایی اکیپا از کارمزد ۱۳٪ بازیهای هیجانی و ۱۵٪ ایونتها.</span>
|
||
</div>
|
||
</label>
|
||
|
||
<label class="flex items-start gap-2.5 p-2.5 rounded-xl bg-[var(--bg-surface)] border border-[var(--border-subtle)] cursor-pointer hover:border-amber-500/40 transition">
|
||
<input type="checkbox" onchange="toggleCourseItem(this)" class="mt-0.5 accent-[#0A6847] w-4 h-4 rounded">
|
||
<div>
|
||
<span class="font-bold text-[var(--text-main)] block">همدلی عمیق با کسبوکار مجموعهداران</span>
|
||
<span class="text-[11px] text-[var(--text-sub)]">شناسایی دردسرهای تسویه مالی، خالی ماندن سانسهای وسط هفته و لغو ناگهانی سانسها.</span>
|
||
</div>
|
||
</label>
|
||
|
||
<label class="flex items-start gap-2.5 p-2.5 rounded-xl bg-[var(--bg-surface)] border border-[var(--border-subtle)] cursor-pointer hover:border-amber-500/40 transition">
|
||
<input type="checkbox" onchange="toggleCourseItem(this)" class="mt-0.5 accent-[#0A6847] w-4 h-4 rounded">
|
||
<div>
|
||
<span class="font-bold text-[var(--text-main)] block">تحلیل LTV / CAC در سرگرمیهای شهری</span>
|
||
<span class="text-[11px] text-[var(--text-sub)]">مدلسازی ارزش هر کاربر جذب شده نسبت به هزینه تخفیف اولین بازی.</span>
|
||
</div>
|
||
</label>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Module 4: Technical & Rapid Prototyping (Vibe Coding) -->
|
||
<div class="p-5 rounded-2xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] space-y-4">
|
||
<div class="flex items-center justify-between pb-3 border-b border-[var(--border-subtle)]">
|
||
<div class="flex items-center gap-2.5">
|
||
<span class="w-7 h-7 rounded-xl bg-purple-500/15 text-purple-700 dark:text-purple-400 flex items-center justify-center font-black text-xs border border-purple-500/30">۴</span>
|
||
<h4 class="text-xs font-black text-[var(--text-main)]">ماژول Vibe Coding، پروتوتایپ سریع و رهبری دلیوری</h4>
|
||
</div>
|
||
<span class="text-[10px] px-2 py-0.5 rounded-full bg-purple-500/10 text-purple-700 dark:text-purple-400 font-bold">۲ هفته</span>
|
||
</div>
|
||
<div class="space-y-2.5 text-xs">
|
||
|
||
<label class="flex items-start gap-2.5 p-2.5 rounded-xl bg-[var(--bg-surface)] border border-[var(--border-subtle)] cursor-pointer hover:border-purple-500/40 transition">
|
||
<input type="checkbox" checked onchange="toggleCourseItem(this)" class="mt-0.5 accent-[#0A6847] w-4 h-4 rounded">
|
||
<div>
|
||
<span class="font-bold text-[var(--text-main)] block">ساخت پروتوتایپهای تعاملی با هوش مصنوعی و کد</span>
|
||
<span class="text-[11px] text-[var(--text-sub)]">تولید سریع صفحات فرود و کامپوننتهای تست با Tailwind و کد واقعی.</span>
|
||
</div>
|
||
</label>
|
||
|
||
<label class="flex items-start gap-2.5 p-2.5 rounded-xl bg-[var(--bg-surface)] border border-[var(--border-subtle)] cursor-pointer hover:border-purple-500/40 transition">
|
||
<input type="checkbox" checked onchange="toggleCourseItem(this)" class="mt-0.5 accent-[#0A6847] w-4 h-4 rounded">
|
||
<div>
|
||
<span class="font-bold text-[var(--text-main)] block">درک امکانپذیری فنی (Technical Feasibility)</span>
|
||
<span class="text-[11px] text-[var(--text-sub)]">شناخت چالشهای رزرو همزمان (Concurrency)، وضعیت لاگین و وبسرویسهای درگاه.</span>
|
||
</div>
|
||
</label>
|
||
|
||
<label class="flex items-start gap-2.5 p-2.5 rounded-xl bg-[var(--bg-surface)] border border-[var(--border-subtle)] cursor-pointer hover:border-purple-500/40 transition">
|
||
<input type="checkbox" onchange="toggleCourseItem(this)" class="mt-0.5 accent-[#0A6847] w-4 h-4 rounded">
|
||
<div>
|
||
<span class="font-bold text-[var(--text-main)] block">مدیریت چرخه عمر اپیکها در Jira</span>
|
||
<span class="text-[11px] text-[var(--text-sub)]">شکستن اسناد PRD به تسکهای قابل اجرا بدون نیاز به میکرومنیجمنت روزانه تیم توسعه.</span>
|
||
</div>
|
||
</label>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
</section>
|
||
|
||
<!-- ======================================================== -->
|
||
<!-- TAB 3: TRANSITION PLAYBOOK (PD -> PO -> LEAD) -->
|
||
<!-- ======================================================== -->
|
||
<section id="tab-transition" class="hidden space-y-6">
|
||
|
||
<div class="p-6 rounded-2xl glass-card space-y-6">
|
||
<div class="border-b border-[var(--border-subtle)] pb-4">
|
||
<h3 class="text-sm font-black text-[var(--text-main)]">ماتریس سهمرحلهای گذار شغلی دارا در اکیپا</h3>
|
||
<p class="text-xs text-[var(--text-sub)]">تفاوتهای کلیدی در نحوه تفکر، دامنه مسئولیت، نحوه اندازهگیری موفقیت و رفتارهای روزانه</p>
|
||
</div>
|
||
|
||
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
||
|
||
<!-- Step 1: Product Designer -->
|
||
<div class="p-5 rounded-2xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] space-y-4 relative">
|
||
<div class="flex items-center justify-between pb-3 border-b border-[var(--border-subtle)]">
|
||
<div>
|
||
<span class="text-[10px] text-emerald-700 dark:text-emerald-400 font-bold block">مرحله ۱ (پایه کنونی)</span>
|
||
<h4 class="text-xs font-black text-[var(--text-main)]">طراح محصول (Product Designer)</h4>
|
||
</div>
|
||
<span class="text-xs px-2 py-0.5 rounded-full bg-emerald-500/20 text-emerald-700 dark:text-emerald-400 font-bold">تسلط ۱۰۰٪</span>
|
||
</div>
|
||
<ul class="text-xs space-y-2.5 text-[var(--text-sub)]">
|
||
<li class="flex items-start gap-2">
|
||
<span class="text-emerald-700 dark:text-emerald-400 font-bold">✓</span>
|
||
<span>تمرکز بر زیبایی، کارایی، طراحی UI و کاهش خطای کاربر در فیگما.</span>
|
||
</li>
|
||
<li class="flex items-start gap-2">
|
||
<span class="text-emerald-700 dark:text-emerald-400 font-bold">✓</span>
|
||
<span>بررسی تجربه کاربری، Usability و نقاط اصطکاک محصول (UX Check).</span>
|
||
</li>
|
||
<li class="flex items-start gap-2">
|
||
<span class="text-emerald-700 dark:text-emerald-400 font-bold">✓</span>
|
||
<span>تبدیل بریفهای دریافتی از تیم به جریانهای بصری کاربر.</span>
|
||
</li>
|
||
</ul>
|
||
<div class="p-3 rounded-xl bg-emerald-500/10 border border-emerald-500/20 text-[11px] text-emerald-300">
|
||
<strong>سنجه موفقیت:</strong> کیفیت دیزاین سیستم، رضایت از تجربه تعاملی و عدم وجود سردرگمی بصری.
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Step 2: Product Owner -->
|
||
<div class="p-5 rounded-2xl bg-[var(--bg-surface-card)] border-2 border-[#0A6847] space-y-4 relative shadow-lg shadow-emerald-950/20">
|
||
<div class="absolute -top-3 left-4 px-2.5 py-0.5 rounded-full bg-[#0A6847] text-white text-[10px] font-bold">
|
||
🎯 هدف جاری دارا
|
||
</div>
|
||
<div class="flex items-center justify-between pb-3 border-b border-[var(--border-subtle)]">
|
||
<div>
|
||
<span class="text-[10px] text-emerald-700 dark:text-emerald-400 font-bold block">مرحله ۲ (گذار ۳ ماهه)</span>
|
||
<h4 class="text-xs font-black text-[var(--text-main)]">مالک مسئله و محصول (Product Owner)</h4>
|
||
</div>
|
||
<span class="text-xs px-2 py-0.5 rounded-full bg-amber-500/20 text-amber-700 dark:text-amber-400 font-bold">در حال پیشرفت (۶۵٪)</span>
|
||
</div>
|
||
<ul class="text-xs space-y-2.5 text-[var(--text-sub)]">
|
||
<li class="flex items-start gap-2">
|
||
<span class="text-amber-700 dark:text-amber-400 font-bold">▶</span>
|
||
<span>مالکیت کامل یک بخش از محصول از شناسایی تا اندازهگیری نتیجه پس از انتشار.</span>
|
||
</li>
|
||
<li class="flex items-start gap-2">
|
||
<span class="text-amber-700 dark:text-amber-400 font-bold">▶</span>
|
||
<span>تحلیل دادههای Clarity و تعریف آزمایش برای بهبود نرخ رزرو (CVR).</span>
|
||
</li>
|
||
<li class="flex items-start gap-2">
|
||
<span class="text-amber-700 dark:text-amber-400 font-bold">▶</span>
|
||
<span>همکاری مستقیم با توسعهدهندگان، نگارش معیارهای پذیرش (AC) و رفع موانع فنی.</span>
|
||
</li>
|
||
</ul>
|
||
<div class="p-3 rounded-xl bg-amber-500/10 border border-amber-500/20 text-[11px] text-amber-300">
|
||
<strong>سنجه موفقیت:</strong> رسیدن به شاخصهای کلیدی OKR (مانند کاهش Dead Click به زیر ۳.۵٪ و رزرو سریع).
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Step 3: Product Lead -->
|
||
<div class="p-5 rounded-2xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] space-y-4 relative">
|
||
<div class="flex items-center justify-between pb-3 border-b border-[var(--border-subtle)]">
|
||
<div>
|
||
<span class="text-[10px] text-blue-700 dark:text-blue-400 font-bold block">مرحله ۳ (افق راهبردی)</span>
|
||
<h4 class="text-xs font-black text-[var(--text-main)]">لید محصول (Product Lead)</h4>
|
||
</div>
|
||
<span class="text-xs px-2 py-0.5 rounded-full bg-blue-500/20 text-blue-700 dark:text-blue-400 font-bold">چشمانداز ۱ ساله</span>
|
||
</div>
|
||
<ul class="text-xs space-y-2.5 text-[var(--text-sub)]">
|
||
<li class="flex items-start gap-2">
|
||
<span class="text-blue-700 dark:text-blue-400 font-bold">★</span>
|
||
<span>هدایت جهتگیری استراتژیک محصول با توازن ۴ رکن: کاربر، دیتا، بیزینس و توانایی تیم.</span>
|
||
</li>
|
||
<li class="flex items-start gap-2">
|
||
<span class="text-blue-700 dark:text-blue-400 font-bold">★</span>
|
||
<span>ارتباط مستقیم بین تصمیمهای معماری محصول و رشد درآمدی پلتفرم اکیپا.</span>
|
||
</li>
|
||
<li class="flex items-start gap-2">
|
||
<span class="text-blue-700 dark:text-blue-400 font-bold">★</span>
|
||
<span>توانمندسازی و منتورینگ تیم دیزاین و مدیریت کارآمد جریانهای توسعه موازی.</span>
|
||
</li>
|
||
</ul>
|
||
<div class="p-3 rounded-xl bg-blue-500/10 border border-blue-500/20 text-[11px] text-blue-300">
|
||
<strong>سنجه موفقیت:</strong> رشد کلی GMV، تسخیر سهم بازار تفریحات و پایداری سیستم بدون وابستگی به فرد.
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
</section>
|
||
|
||
<!-- ======================================================== -->
|
||
<!-- TAB 4: REAL IMPACT PROJECTS IN EKEEPA -->
|
||
<!-- ======================================================== -->
|
||
<section id="tab-projects" class="hidden space-y-6">
|
||
|
||
<div class="p-6 rounded-2xl glass-card space-y-6">
|
||
<div class="border-b border-[var(--border-subtle)] pb-4 flex flex-col sm:flex-row sm:items-center justify-between gap-3">
|
||
<div>
|
||
<h3 class="text-sm font-black text-[var(--text-main)]">پروژههای واقعی دارا در اکیپا برای اثبات شایستگی</h3>
|
||
<p class="text-xs text-[var(--text-sub)]">میدانهای عملیاتی که مهارتهای ۵گانه در آنها مستقیماً اعمال و سنجیده میشوند</p>
|
||
</div>
|
||
<button onclick="addNewProjectPrompt()" class="px-3 py-1.5 rounded-xl bg-[#0A6847] text-white text-xs font-bold hover:bg-emerald-700 transition">
|
||
+ ثبت پروژه جدید
|
||
</button>
|
||
</div>
|
||
|
||
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 text-xs">
|
||
|
||
<div class="p-4 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] space-y-3">
|
||
<div class="flex items-center justify-between">
|
||
<span class="px-2 py-0.5 rounded bg-emerald-500/15 text-emerald-700 dark:text-emerald-400 font-bold text-[10px]">Product Thinking & Discovery</span>
|
||
<span class="text-emerald-700 dark:text-emerald-400 font-bold">تکمیل شده</span>
|
||
</div>
|
||
<h4 class="font-bold text-sm text-[var(--text-main)]">طراحی مجدد PDP و رزرو آنی بدون استعلام</h4>
|
||
<p class="text-[11px] text-[var(--text-sub)] leading-relaxed">
|
||
حذف تماسهای اتلافی قبل از پرداخت با نمایش لحظهای ظرفیت اتاق فرارها و سادهسازی انتخاب سانس در موبایل.
|
||
</p>
|
||
<div class="pt-2 border-t border-[var(--border-subtle)] flex items-center justify-between text-[11px] text-[var(--text-sub)]">
|
||
<span>دستآورد: کاهش اصطکاک ثبت سفارش</span>
|
||
<span class="font-mono text-emerald-700 dark:text-emerald-400">Jira: PRD-302</span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="p-4 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] space-y-3">
|
||
<div class="flex items-center justify-between">
|
||
<span class="px-2 py-0.5 rounded bg-blue-500/15 text-blue-700 dark:text-blue-400 font-bold text-[10px]">Data & Retention</span>
|
||
<span class="text-amber-700 dark:text-amber-400 font-bold">در حال اجرا</span>
|
||
</div>
|
||
<h4 class="font-bold text-sm text-[var(--text-main)]">مکانیسم جمعآوری شماره همراه همتیمیها</h4>
|
||
<p class="text-[11px] text-[var(--text-sub)] leading-relaxed">
|
||
دریافت میانگین ۲.۵ شماره به ازای هر بازی با اهدای اعتبار هدیه کیف پول، جهت تغذیه کمپین ریتنشن ۲۱ روزه.
|
||
</p>
|
||
<div class="pt-2 border-t border-[var(--border-subtle)] flex items-center justify-between text-[11px] text-[var(--text-sub)]">
|
||
<span>دستآورد: افزایش نرخ فعالسازی مجدد</span>
|
||
<span class="font-mono text-blue-700 dark:text-blue-400">Jira: PRD-303</span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="p-4 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] space-y-3">
|
||
<div class="flex items-center justify-between">
|
||
<span class="px-2 py-0.5 rounded bg-amber-500/15 text-amber-700 dark:text-amber-400 font-bold text-[10px]">Business & Market B2B</span>
|
||
<span class="text-blue-700 dark:text-blue-400 font-bold">تست میدانی</span>
|
||
</div>
|
||
<h4 class="font-bold text-sm text-[var(--text-main)]">سلفسرویس آنبوردینگ مجموعهداران شیراز</h4>
|
||
<p class="text-[11px] text-[var(--text-sub)] leading-relaxed">
|
||
کاهش زمان ثبت سانس توسط مدیران مجموعهها از ۳۰ دقیقه تلفنی به کمتر از ۵ دقیقه آنلاین در لندینگ شرکا.
|
||
</p>
|
||
<div class="pt-2 border-t border-[var(--border-subtle)] flex items-center justify-between text-[11px] text-[var(--text-sub)]">
|
||
<span>دستآورد: رفع مانع ۷۹ مجموعه هدف</span>
|
||
<span class="font-mono text-amber-700 dark:text-amber-400">Jira: B2B-108</span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="p-4 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] space-y-3">
|
||
<div class="flex items-center justify-between">
|
||
<span class="px-2 py-0.5 rounded bg-purple-500/15 text-purple-700 dark:text-purple-400 font-bold text-[10px]">Vibe Coding & Execution</span>
|
||
<span class="text-emerald-700 dark:text-emerald-400 font-bold">مستقر شده</span>
|
||
</div>
|
||
<h4 class="font-bold text-sm text-[var(--text-main)]">معماری داشبورد یکپارچه فرماندهی محصول دارا</h4>
|
||
<p class="text-[11px] text-[var(--text-sub)] leading-relaxed">
|
||
پیادهسازی سریع با کد زنده، سازگار با شیفتهای یگان، یکپارچه با چارتهای دیتامحور و استقرار آنلاین.
|
||
</p>
|
||
<div class="pt-2 border-t border-[var(--border-subtle)] flex items-center justify-between text-[11px] text-[var(--text-sub)]">
|
||
<span>دستآورد: مدیریت یکپارچه OKR و رشد</span>
|
||
<span class="font-mono text-purple-700 dark:text-purple-400">Ops: Live</span>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
</section>
|
||
|
||
<!-- ======================================================== -->
|
||
<!-- TAB 5: HABITS & WEEKLY REFLECTION JOURNAL -->
|
||
<!-- ======================================================== -->
|
||
<section id="tab-habits" class="hidden space-y-6">
|
||
|
||
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
||
|
||
<!-- Daily Micro-Habits (1 col) -->
|
||
<div class="p-5 rounded-2xl glass-card space-y-4">
|
||
<div class="pb-3 border-b border-[var(--border-subtle)]">
|
||
<h4 class="text-xs font-black text-[var(--text-main)]">عادات روزانه هدایت شغلی دارا</h4>
|
||
<p class="text-[11px] text-[var(--text-sub)]">تثبیت الگوهای رفتاری لید محصول در روتین روز</p>
|
||
</div>
|
||
|
||
<div class="space-y-2.5 text-xs">
|
||
<label class="flex items-center justify-between p-2.5 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] cursor-pointer">
|
||
<span class="text-[var(--text-main)]">۱۵ دقیقه مرور هیتمپهای Clarity</span>
|
||
<input type="checkbox" checked class="accent-[#0A6847] w-4 h-4 rounded">
|
||
</label>
|
||
|
||
<label class="flex items-center justify-between p-2.5 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] cursor-pointer">
|
||
<span class="text-[var(--text-main)]">مطالعه ۲۰ صفحه از کتاب مرجع ماه</span>
|
||
<input type="checkbox" checked class="accent-[#0A6847] w-4 h-4 rounded">
|
||
</label>
|
||
|
||
<label class="flex items-center justify-between p-2.5 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] cursor-pointer">
|
||
<span class="text-[var(--text-main)]">بررسی و آپدیت تیکتهای اسپرینت در Jira</span>
|
||
<input type="checkbox" class="accent-[#0A6847] w-4 h-4 rounded">
|
||
</label>
|
||
|
||
<label class="flex items-center justify-between p-2.5 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] cursor-pointer">
|
||
<span class="text-[var(--text-main)]">کار عمیق ۳ ساعته عصر بدون شبکه اجتماعی</span>
|
||
<input type="checkbox" checked class="accent-[#0A6847] w-4 h-4 rounded">
|
||
</label>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Weekly Growth Reflection Journal (2 cols) -->
|
||
<div class="lg:col-span-2 p-5 rounded-2xl glass-card space-y-4 flex flex-col justify-between">
|
||
<div class="pb-3 border-b border-[var(--border-subtle)] flex items-center justify-between">
|
||
<div>
|
||
<h4 class="text-xs font-black text-[var(--text-main)]">ژورنال رفلکشن هفتگی دارا (Weekly Retrospective)</h4>
|
||
<p class="text-[11px] text-[var(--text-sub)]">ثبت یادگیریهای کلیدی، دستاوردها و اصلاح مسیرهای هفته جاری</p>
|
||
</div>
|
||
<span class="text-xs font-mono font-bold text-emerald-700 dark:text-emerald-400">جمعه ۲۴ مهر</span>
|
||
</div>
|
||
|
||
<div class="space-y-3 text-xs flex-1">
|
||
<div>
|
||
<label class="block font-bold text-[var(--text-main)] mb-1">چه تصمیمی در محصول گرفتم که مبتنی بر داده بود نه سلیقه؟</label>
|
||
<textarea id="journal-q1" rows="2" class="w-full p-2.5 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] text-[var(--text-main)] text-xs focus:border-[#0A6847] outline-none" placeholder="مثال: تغییر چیدمان تقویم انتخاب سانس بر اساس ویدیوهای Dead Click در موبایل..."></textarea>
|
||
</div>
|
||
|
||
<div>
|
||
<label class="block font-bold text-[var(--text-main)] mb-1">کجا از نقش طراح فراتر رفتم و مسئله کسبوکار را حل کردم؟</label>
|
||
<textarea id="journal-q2" rows="2" class="w-full p-2.5 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] text-[var(--text-main)] text-xs focus:border-[#0A6847] outline-none" placeholder="مثال: سادهسازی فرم ورود اطلاعات مجموعهداران برای افزایش نرخ فعالسازی..."></textarea>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="pt-3 border-t border-[var(--border-subtle)] flex justify-end">
|
||
<button onclick="saveJournalEntry()" class="px-4 py-2 rounded-xl bg-[#0A6847] text-white text-xs font-bold hover:bg-emerald-700 transition shadow-md">
|
||
ذخیره رفلکشن هفته
|
||
</button>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
</section>
|
||
|
||
|
||
<!-- TAB 6: JIRA KANBAN & TASK CONTROL -->
|
||
<section id="tab-jira" class="tab-content hidden space-y-6">
|
||
|
||
<!-- Jira Header & Operational Control Bar -->
|
||
<div class="glass-card rounded-2xl p-4 lg:p-6 border border-[var(--border-subtle)] space-y-4">
|
||
<div class="flex flex-col lg:flex-row lg:items-center justify-between gap-4">
|
||
|
||
<!-- Left: Jira Identity & Connection Telemetry -->
|
||
<div class="flex items-center gap-3">
|
||
<div class="w-12 h-12 rounded-2xl bg-[#0052CC]/10 border border-[#0052CC]/25 flex items-center justify-center shrink-0">
|
||
<svg class="w-7 h-7 text-[#0052CC] dark:text-[#4C9AFF]" viewBox="0 0 24 24" fill="currentColor">
|
||
<path d="M11.53 2c0 2.4 1.97 4.35 4.4 4.35h1.78v1.74c0 2.4 1.97 4.35 4.4 4.35V2h-10.58zm-4.76 4.79c0 2.4 1.97 4.35 4.4 4.35h1.77v1.75c0 2.4 1.97 4.35 4.4 4.35V6.79H6.77zm-4.77 4.8c0 2.4 1.97 4.35 4.4 4.35h1.77v1.74c0 2.4 1.97 4.35 4.4 4.35V11.59H2z"/>
|
||
</svg>
|
||
</div>
|
||
<div>
|
||
<div class="flex items-center gap-2">
|
||
<h3 class="text-base lg:text-lg font-black text-[var(--text-main)]">بورد فعال اسپرینت جیرا (Ekeepa Jira Core)</h3>
|
||
<span id="jira-status-pill" class="px-2 py-0.5 rounded-full text-[10px] font-bold bg-emerald-500/10 text-[#0A6847] dark:text-[#52D681] border border-emerald-500/20 flex items-center gap-1">
|
||
<span class="w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse"></span>
|
||
<span id="jira-status-text">سینک فعال: jira.ekeepa-dev.ir</span>
|
||
</span>
|
||
</div>
|
||
<p class="text-xs text-[var(--text-sub)] mt-0.5">مدیریت مستقیم تسکهای محصول، استوریها و باگها با ساختار استاندارد Jira Data Center</p>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Right: Actions (Create, Sync, Settings) -->
|
||
<div class="flex flex-wrap items-center gap-2.5">
|
||
<button onclick="openCreateIssueModal()" class="flex items-center gap-1.5 px-3.5 py-2 rounded-xl bg-[#0A6847] hover:bg-emerald-700 text-white text-xs font-bold transition shadow-md shadow-[#0A6847]/20">
|
||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"/></svg>
|
||
<span>تسک جدید در جیرا</span>
|
||
</button>
|
||
|
||
<button onclick="syncJiraNow()" id="btn-sync-jira" class="flex items-center gap-1.5 px-3 py-2 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] text-[var(--text-main)] hover:bg-[var(--bg-surface-hover)] text-xs font-semibold transition">
|
||
<svg id="sync-icon" class="w-3.5 h-3.5 text-[#0052CC] dark:text-[#4C9AFF]" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"/></svg>
|
||
<span>همگامسازی زنده</span>
|
||
</button>
|
||
|
||
<button onclick="openJiraSettingsModal()" class="flex items-center gap-1.5 px-3 py-2 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] text-[var(--text-main)] hover:bg-[var(--bg-surface-hover)] text-xs font-semibold transition">
|
||
<svg class="w-3.5 h-3.5 text-[var(--text-sub)]" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"/><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/></svg>
|
||
<span>اتصال / PAT</span>
|
||
</button>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<!-- Jira Search & Quick Filters Bar -->
|
||
<div class="pt-3 border-t border-[var(--border-subtle)] flex flex-col md:flex-row md:items-center justify-between gap-3">
|
||
|
||
<!-- Quick Filter Buttons -->
|
||
<div class="flex flex-wrap items-center gap-1.5 text-xs">
|
||
<span class="text-[var(--text-sub)] text-[11px] font-bold ml-1">فیلترهای سریع:</span>
|
||
<button onclick="setJiraFilter('all')" id="jira-filter-all" class="px-3 py-1 rounded-lg font-bold bg-[#0A6847] text-white transition">همه تسکها</button>
|
||
<button onclick="setJiraFilter('my')" id="jira-filter-my" class="px-3 py-1 rounded-lg font-bold bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] text-[var(--text-sub)] hover:text-[var(--text-main)] transition">فقط تسکهای دارا</button>
|
||
<button onclick="setJiraFilter('story')" id="jira-filter-story" class="px-3 py-1 rounded-lg font-bold bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] text-[var(--text-sub)] hover:text-[var(--text-main)] transition">استوریهای محصول</button>
|
||
<button onclick="setJiraFilter('bug')" id="jira-filter-bug" class="px-3 py-1 rounded-lg font-bold bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] text-[var(--text-sub)] hover:text-[var(--text-main)] transition">باگها و ایرادات</button>
|
||
<button onclick="setJiraFilter('high')" id="jira-filter-high" class="px-3 py-1 rounded-lg font-bold bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] text-[var(--text-sub)] hover:text-[var(--text-main)] transition">اولویت بحرانی / بالا</button>
|
||
</div>
|
||
|
||
<!-- Search Field -->
|
||
<div class="relative w-full md:w-64">
|
||
<input type="text" id="jira-search-input" oninput="handleJiraSearch(this.value)" placeholder="جستجو بر اساس کلید یا متن تسک..." class="w-full pl-8 pr-3 py-1.5 rounded-xl bg-[var(--bg-page)] border border-[var(--border-subtle)] text-xs text-[var(--text-main)] focus:outline-none focus:border-[#0A6847]">
|
||
<svg class="w-4 h-4 text-[var(--text-sub)] absolute left-2.5 top-2" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/></svg>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Jira Growth Velocity & 3-Pillar Analytics Cockpit -->
|
||
<div class="glass-card rounded-2xl p-4 lg:p-6 border border-[var(--border-subtle)] space-y-5">
|
||
|
||
<!-- Top Bar: Title, Description, and Time Horizon Filters -->
|
||
<div class="flex flex-col xl:flex-row xl:items-center justify-between gap-4 pb-4 border-b border-[var(--border-subtle)]">
|
||
<div class="space-y-1">
|
||
<div class="flex items-center gap-2">
|
||
<span class="p-2 rounded-xl bg-[#0A6847]/10 text-[#0A6847] dark:text-[#52D681] border border-[#0A6847]/20 flex items-center justify-center">
|
||
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"/></svg>
|
||
</span>
|
||
<h3 class="text-base font-black text-[var(--text-main)]">تحلیل پیشرفت و سرعت رشد دارا (Growth Velocity & 3-Pillar Cockpit)</h3>
|
||
<span class="px-2.5 py-0.5 rounded-full text-[10px] font-black bg-[#0A6847]/10 text-[#0A6847] dark:text-[#52D681] border border-[#0A6847]/25">پایش کمّی اسپرینت، ماهانه و هفتگی</span>
|
||
</div>
|
||
<p class="text-xs text-[var(--text-sub)]">اندازهگیری دقیق استوریپوینتها، برنداون و سرعت پیشبرد اهداف در ۳ رکن: <strong class="text-emerald-700 dark:text-emerald-400">محصول</strong>، <strong class="text-sky-700 dark:text-sky-400">سیستمسازی فروش</strong> و <strong class="text-amber-700 dark:text-amber-400">مدیریت OKR</strong></p>
|
||
</div>
|
||
|
||
<!-- Time Horizon & Scope Controls -->
|
||
<div class="flex flex-wrap items-center gap-2">
|
||
<!-- Horizon Type Selector -->
|
||
<div class="inline-flex p-1 rounded-xl bg-[var(--bg-page)] border border-[var(--border-subtle)]">
|
||
<button id="btn-horizon-sprint" onclick="setHorizonMode('sprint')" class="px-3 py-1.5 rounded-lg text-xs font-black transition bg-[#0A6847] text-white shadow-xs">اسپرینت به اسپرینت</button>
|
||
<button id="btn-horizon-weekly" onclick="setHorizonMode('weekly')" class="px-3 py-1.5 rounded-lg text-xs font-bold transition text-[var(--text-sub)] hover:text-[var(--text-main)]">هفتگی</button>
|
||
<button id="btn-horizon-monthly" onclick="setHorizonMode('monthly')" class="px-3 py-1.5 rounded-lg text-xs font-bold transition text-[var(--text-sub)] hover:text-[var(--text-main)]">ماهانه</button>
|
||
</div>
|
||
|
||
<!-- Scope Sub-selector Dropdown -->
|
||
<div class="relative">
|
||
<select id="select-horizon-sub" onchange="handleSubHorizonChange(this.value)" class="text-xs font-bold py-2 px-3 rounded-xl bg-[var(--bg-page)] border border-[var(--border-subtle)] text-[var(--text-main)] focus:outline-none focus:border-[#0A6847]">
|
||
<!-- Populated dynamically by JS -->
|
||
</select>
|
||
</div>
|
||
|
||
<!-- Collapse / Expand Toggle Button -->
|
||
<button onclick="toggleJiraAnalyticsSection()" id="btn-toggle-analytics" class="p-2 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] text-[var(--text-sub)] hover:text-[var(--text-main)] transition" title="کوچک / بزرگ کردن بخش نمودارها">
|
||
<svg id="icon-toggle-analytics" class="w-4 h-4 transform transition-transform" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/></svg>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Collapsible Analytics Content Container -->
|
||
<div id="jira-analytics-content" class="space-y-5 transition-all">
|
||
|
||
<!-- 4 High-Impact KPI Cards -->
|
||
<div class="grid grid-cols-2 lg:grid-cols-4 gap-3 lg:gap-4">
|
||
|
||
<!-- Card 1: Overall Completion -->
|
||
<div class="p-4 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] relative overflow-hidden space-y-1">
|
||
<div class="flex items-center justify-between text-xs text-[var(--text-sub)]">
|
||
<span class="font-bold">نرخ تکمیل کل دوره</span>
|
||
<span id="kpi-completion-delta" class="text-[10px] font-black text-emerald-700 dark:text-emerald-400 font-mono">+۱۲٪ نسبت به دوره قبل</span>
|
||
</div>
|
||
<div class="flex items-baseline gap-2">
|
||
<span id="kpi-completion-rate" class="text-2xl font-black text-[var(--text-main)] font-mono">۶۸٪</span>
|
||
<span class="text-xs text-[var(--text-sub)]">پیشرفت برنامه</span>
|
||
</div>
|
||
<div class="w-full h-1.5 rounded-full bg-[var(--border-subtle)] overflow-hidden mt-1">
|
||
<div id="kpi-completion-bar" class="h-full rounded-full bg-[#0A6847] transition-all duration-500" style="width: 68%;"></div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Card 2: Velocity & Story Points -->
|
||
<div class="p-4 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] relative overflow-hidden space-y-1">
|
||
<div class="flex items-center justify-between text-xs text-[var(--text-sub)]">
|
||
<span class="font-bold">سرعت استوریپوینت (Velocity)</span>
|
||
<span class="text-[10px] font-black text-sky-700 dark:text-sky-400 font-mono">تکمیلشده / کل</span>
|
||
</div>
|
||
<div class="flex items-baseline gap-2">
|
||
<span id="kpi-velocity-points" class="text-2xl font-black text-[var(--text-main)] font-mono">۲۸ / ۴۲</span>
|
||
<span class="text-xs text-[var(--text-sub)]">پوینت SP</span>
|
||
</div>
|
||
<p id="kpi-velocity-subtitle" class="text-[10px] text-[var(--text-sub)] truncate">۱۴ استوریپوینت در جریان تست و تحویل</p>
|
||
</div>
|
||
|
||
<!-- Card 3: Pillar Balance Index -->
|
||
<div class="p-4 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] relative overflow-hidden space-y-1">
|
||
<div class="flex items-center justify-between text-xs text-[var(--text-sub)]">
|
||
<span class="font-bold">شاخص تعادل ۳ حوزه (Balance)</span>
|
||
<span class="text-[10px] font-black text-emerald-700 dark:text-emerald-400 font-mono">مطلوب (Healthy)</span>
|
||
</div>
|
||
<div class="flex items-baseline gap-2">
|
||
<span id="kpi-balance-score" class="text-2xl font-black text-[var(--text-main)] font-mono">۸۸٪</span>
|
||
<span class="text-xs text-[var(--text-sub)]">هارمونی رشد</span>
|
||
</div>
|
||
<p id="kpi-balance-subtitle" class="text-[10px] text-[var(--text-sub)] truncate">محصول ۴۲٪ | فروش ۳۰٪ | مدیریت OKR ۲۸٪</p>
|
||
</div>
|
||
|
||
<!-- Card 4: Task Throughput & Cycle Time -->
|
||
<div class="p-4 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] relative overflow-hidden space-y-1">
|
||
<div class="flex items-center justify-between text-xs text-[var(--text-sub)]">
|
||
<span class="font-bold">تعداد تسکهای Done (خروجی)</span>
|
||
<span class="text-[10px] font-black text-amber-700 dark:text-amber-400 font-mono">Cycle Time: ۲.۴ روز</span>
|
||
</div>
|
||
<div class="flex items-baseline gap-2">
|
||
<span id="kpi-throughput-count" class="text-2xl font-black text-[var(--text-main)] font-mono">۸ / ۱۲</span>
|
||
<span class="text-xs text-[var(--text-sub)]">تسک نهایی</span>
|
||
</div>
|
||
<p id="kpi-throughput-subtitle" class="text-[10px] text-[var(--text-sub)] truncate">نرخ مسدودی (Blocked): صفر درصد</p>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<!-- Charts Grid: 3 Interactive Visuals -->
|
||
<div class="grid grid-cols-1 lg:grid-cols-12 gap-4">
|
||
|
||
<!-- Chart 1: 3-Pillar Progress & Points (Grouped Bar Chart - 5 Cols on LG) -->
|
||
<div class="lg:col-span-5 p-4 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] flex flex-col justify-between space-y-3">
|
||
<div class="flex items-center justify-between">
|
||
<div>
|
||
<h4 class="text-xs font-black text-[var(--text-main)]">۱. میزان پیشرفت در هر ۳ دستهبندی اصلی</h4>
|
||
<p class="text-[10px] text-[var(--text-sub)] mt-0.5">مقایسه استوریپوینتهای تکمیلشده در برابر کل پوینتهای برنامهریزیشده</p>
|
||
</div>
|
||
<span class="px-2 py-0.5 rounded text-[10px] font-bold bg-[var(--bg-page)] text-[var(--text-sub)] border border-[var(--border-subtle)]">Story Points</span>
|
||
</div>
|
||
<div class="relative h-56 w-full flex items-center justify-center">
|
||
<canvas id="pillarProgressBarChart"></canvas>
|
||
</div>
|
||
<!-- Pillar Breakdown Footer -->
|
||
<div class="grid grid-cols-3 gap-2 pt-2 border-t border-[var(--border-subtle)] text-[10px] text-center">
|
||
<div class="p-1.5 rounded-lg bg-emerald-500/10 border border-emerald-500/20">
|
||
<span class="block font-black text-emerald-800 dark:text-emerald-300">📦 محصول</span>
|
||
<span id="stat-pillar-prod" class="font-mono font-bold text-[11px] text-[var(--text-main)]">۱۳ / ۱۸ pt (۷۲٪)</span>
|
||
</div>
|
||
<div class="p-1.5 rounded-lg bg-sky-500/10 border border-sky-500/20">
|
||
<span class="block font-black text-sky-800 dark:text-sky-300">🚀 فروش و جذب</span>
|
||
<span id="stat-pillar-sales" class="font-mono font-bold text-[11px] text-[var(--text-main)]">۸ / ۱۲ pt (۶۷٪)</span>
|
||
</div>
|
||
<div class="p-1.5 rounded-lg bg-amber-500/10 border border-amber-500/20">
|
||
<span class="block font-black text-amber-800 dark:text-amber-300">🎯 تدوین OKR</span>
|
||
<span id="stat-pillar-okr" class="font-mono font-bold text-[11px] text-[var(--text-main)]">۷ / ۱۰ pt (۷۰٪)</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Chart 2: Sprint & Trajectory Burndown (Line Chart - 4 Cols on LG) -->
|
||
<div class="lg:col-span-4 p-4 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] flex flex-col justify-between space-y-3">
|
||
<div class="flex items-center justify-between">
|
||
<div>
|
||
<h4 class="text-xs font-black text-[var(--text-main)]">۲. نمودار برنداون و سرعت پیشروی (Burndown)</h4>
|
||
<p class="text-[10px] text-[var(--text-sub)] mt-0.5">شیب واقعی انجام کار در مقایسه با خط ایدهآل اسپرینت</p>
|
||
</div>
|
||
<span class="px-2 py-0.5 rounded text-[10px] font-bold bg-emerald-500/10 text-[#0A6847] dark:text-[#52D681] border border-emerald-500/20">Ahead of Plan</span>
|
||
</div>
|
||
<div class="relative h-56 w-full flex items-center justify-center">
|
||
<canvas id="burndownVelocityChart"></canvas>
|
||
</div>
|
||
<div class="flex items-center justify-between pt-2 border-t border-[var(--border-subtle)] text-[10px] text-[var(--text-sub)]">
|
||
<div class="flex items-center gap-2">
|
||
<span class="inline-block w-2.5 h-0.5 bg-slate-400"></span>
|
||
<span>ایدهآل دوره</span>
|
||
<span class="inline-block w-2.5 h-1 bg-[#0A6847] rounded-full"></span>
|
||
<span class="font-bold text-[var(--text-main)]">سرعت واقعی دارا</span>
|
||
</div>
|
||
<span id="burndown-status-tag" class="font-bold text-emerald-700 dark:text-emerald-400">+۲ روز جلوتر از ددلاین</span>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Chart 3: Effort & Time Distribution Donut (3 Cols on LG) -->
|
||
<div class="lg:col-span-3 p-4 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] flex flex-col justify-between space-y-3">
|
||
<div class="flex items-center justify-between">
|
||
<div>
|
||
<h4 class="text-xs font-black text-[var(--text-main)]">۳. توزیع تمرکز در ۳ حوزه</h4>
|
||
<p class="text-[10px] text-[var(--text-sub)] mt-0.5">سهم وزنی هر محور از کل تلاش دارا</p>
|
||
</div>
|
||
</div>
|
||
<div class="relative h-44 w-full flex items-center justify-center">
|
||
<canvas id="pillarEffortDonutChart"></canvas>
|
||
</div>
|
||
<div class="p-2.5 rounded-xl bg-[var(--bg-page)] border border-[var(--border-subtle)] text-[10px] leading-relaxed text-[var(--text-sub)]">
|
||
<div class="flex items-center gap-1.5 font-bold text-[var(--text-main)] mb-1">
|
||
<svg class="w-3.5 h-3.5 text-[#0A6847]" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd"/></svg>
|
||
<span>تحلیل معمار محصول:</span>
|
||
</div>
|
||
<p id="pillar-donut-recommendation">توزیع تمرکز روی هر ۳ حوزه در وضعیت متوازن قرار دارد؛ در اسپرینت بعد ۵٪ تمرکز بر سیستمسازی فروش برای بستههای بوست توصیه میشود.</p>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<!-- Jira 4-Column Kanban Board -->
|
||
<div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-4 items-start">
|
||
|
||
<!-- Column 1: TO DO -->
|
||
<div class="bg-[var(--bg-surface)] border border-[var(--border-subtle)] rounded-2xl p-3.5 space-y-3 min-h-[500px] flex flex-col">
|
||
<div class="flex items-center justify-between pb-2 border-b border-[var(--border-subtle)]">
|
||
<div class="flex items-center gap-2">
|
||
<span class="w-2.5 h-2.5 rounded-full bg-slate-400"></span>
|
||
<span class="text-xs font-black uppercase text-[var(--text-main)] tracking-wider">برای انجام (TO DO)</span>
|
||
</div>
|
||
<span id="count-todo" class="px-2 py-0.5 rounded-full text-[11px] font-bold bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] text-[var(--text-sub)] font-mono">0</span>
|
||
</div>
|
||
<div id="col-todo" ondragover="allowDrop(event)" ondrop="handleDrop(event, 'To Do')" class="jira-column-drop space-y-2.5 flex-1 min-h-[400px]">
|
||
<!-- Injected by JS -->
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Column 2: IN PROGRESS -->
|
||
<div class="bg-[var(--bg-surface)] border border-[var(--border-subtle)] rounded-2xl p-3.5 space-y-3 min-h-[500px] flex flex-col">
|
||
<div class="flex items-center justify-between pb-2 border-b border-[var(--border-subtle)]">
|
||
<div class="flex items-center gap-2">
|
||
<span class="w-2.5 h-2.5 rounded-full bg-[#0052CC]"></span>
|
||
<span class="text-xs font-black uppercase text-[#0052CC] dark:text-[#4C9AFF] tracking-wider">در حال انجام (IN PROGRESS)</span>
|
||
</div>
|
||
<span id="count-inprogress" class="px-2 py-0.5 rounded-full text-[11px] font-bold bg-[#0052CC]/10 text-[#0052CC] dark:text-[#4C9AFF] border border-[#0052CC]/20 font-mono">0</span>
|
||
</div>
|
||
<div id="col-inprogress" ondragover="allowDrop(event)" ondrop="handleDrop(event, 'In Progress')" class="jira-column-drop space-y-2.5 flex-1 min-h-[400px]">
|
||
<!-- Injected by JS -->
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Column 3: IN REVIEW / QA -->
|
||
<div class="bg-[var(--bg-surface)] border border-[var(--border-subtle)] rounded-2xl p-3.5 space-y-3 min-h-[500px] flex flex-col">
|
||
<div class="flex items-center justify-between pb-2 border-b border-[var(--border-subtle)]">
|
||
<div class="flex items-center gap-2">
|
||
<span class="w-2.5 h-2.5 rounded-full bg-amber-500"></span>
|
||
<span class="text-xs font-black uppercase text-amber-700 dark:text-amber-400 tracking-wider">بررسی و تست (IN REVIEW)</span>
|
||
</div>
|
||
<span id="count-inreview" class="px-2 py-0.5 rounded-full text-[11px] font-bold bg-amber-500/10 text-amber-700 dark:text-amber-400 border border-amber-500/20 font-mono">0</span>
|
||
</div>
|
||
<div id="col-inreview" ondragover="allowDrop(event)" ondrop="handleDrop(event, 'In Review')" class="jira-column-drop space-y-2.5 flex-1 min-h-[400px]">
|
||
<!-- Injected by JS -->
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Column 4: DONE -->
|
||
<div class="bg-[var(--bg-surface)] border border-[var(--border-subtle)] rounded-2xl p-3.5 space-y-3 min-h-[500px] flex flex-col">
|
||
<div class="flex items-center justify-between pb-2 border-b border-[var(--border-subtle)]">
|
||
<div class="flex items-center gap-2">
|
||
<span class="w-2.5 h-2.5 rounded-full bg-[#0A6847]"></span>
|
||
<span class="text-xs font-black uppercase text-[#0A6847] dark:text-[#52D681] tracking-wider">تکمیل شده (DONE)</span>
|
||
</div>
|
||
<span id="count-done" class="px-2 py-0.5 rounded-full text-[11px] font-bold bg-[#0A6847]/10 text-[#0A6847] dark:text-[#52D681] border border-[#0A6847]/20 font-mono">0</span>
|
||
</div>
|
||
<div id="col-done" ondragover="allowDrop(event)" ondrop="handleDrop(event, 'Done')" class="jira-column-drop space-y-2.5 flex-1 min-h-[400px]">
|
||
<!-- Injected by JS -->
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
</section>
|
||
|
||
</main>
|
||
|
||
</div>
|
||
|
||
<!-- SCRIPT LOGIC ENGINE -->
|
||
<script>
|
||
// Tab State Management
|
||
function switchTab(tabId) {
|
||
const tabs = ['tab-radar', 'tab-roadmap', 'tab-transition', 'tab-projects', 'tab-habits', 'tab-jira'];
|
||
tabs.forEach(t => {
|
||
const el = document.getElementById(t);
|
||
const btn = document.getElementById('nav-' + t);
|
||
if (t === tabId) {
|
||
el.classList.remove('hidden');
|
||
btn.classList.add('sidebar-active');
|
||
} else {
|
||
el.classList.add('hidden');
|
||
btn.classList.remove('sidebar-active');
|
||
}
|
||
});
|
||
|
||
// Update Header Title
|
||
const titles = {
|
||
'tab-radar': 'رادار ۵ شایستگی و رصد زنده توانمندیهای محصول دارا',
|
||
'tab-roadmap': 'برنامه یادگیری گامبهگام و سرفصلهای تخصصی Product Lead',
|
||
'tab-transition': 'قطبنمای گذار شغلی از Product Design به Product Lead',
|
||
'tab-projects': 'پروژهها و چالشهای عملیاتی در اکوسیستم اکیپا',
|
||
'tab-habits': 'ژورنال رفلکشن هفتگی، روتینها و عادات رشد دارا',
|
||
'tab-jira': 'مرکز کنترل تسکها و بورد یکپارچه جیرا (Jira Kanban Cockpit)'
|
||
};
|
||
document.getElementById('top-view-title').textContent = titles[tabId];
|
||
if (tabId === 'tab-jira') {
|
||
if (typeof renderJiraBoard === 'function') { renderJiraBoard(); }
|
||
if (typeof initJiraAnalytics === 'function') { initJiraAnalytics(); }
|
||
}
|
||
|
||
// Close mobile sidebar if open
|
||
if (window.innerWidth < 1024) {
|
||
toggleMobileSidebar(false);
|
||
}
|
||
}
|
||
|
||
// Mobile Sidebar Drawer
|
||
function toggleMobileSidebar(forceState) {
|
||
const sidebar = document.getElementById('main-sidebar');
|
||
const overlay = document.getElementById('sidebar-overlay');
|
||
const isOpen = !sidebar.classList.contains('translate-x-full');
|
||
const shouldOpen = forceState !== undefined ? forceState : !isOpen;
|
||
|
||
if (shouldOpen) {
|
||
sidebar.classList.remove('translate-x-full');
|
||
overlay.classList.remove('hidden');
|
||
} else {
|
||
sidebar.classList.add('translate-x-full');
|
||
overlay.classList.add('hidden');
|
||
}
|
||
}
|
||
|
||
// Theme Switcher Functions
|
||
function setTheme(theme) {
|
||
const html = document.documentElement;
|
||
const isDark = (theme === 'dark');
|
||
if (isDark) {
|
||
html.classList.add('dark');
|
||
localStorage.setItem('dara_growth_theme', 'dark');
|
||
} else {
|
||
html.classList.remove('dark');
|
||
localStorage.setItem('dara_growth_theme', 'light');
|
||
}
|
||
updateThemeUI(isDark);
|
||
updateChartColors(isDark);
|
||
}
|
||
|
||
function toggleTheme() {
|
||
const isDark = document.documentElement.classList.contains('dark');
|
||
setTheme(isDark ? 'light' : 'dark');
|
||
}
|
||
|
||
function updateThemeUI(isDark) {
|
||
const btnLight = document.getElementById('theme-btn-light');
|
||
const btnDark = document.getElementById('theme-btn-dark');
|
||
const sBtnLight = document.getElementById('sidebar-theme-light');
|
||
const sBtnDark = document.getElementById('sidebar-theme-dark');
|
||
|
||
if (btnLight && btnDark) {
|
||
if (isDark) {
|
||
btnDark.className = "flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-bold bg-[#0A6847] text-white shadow-xs";
|
||
btnLight.className = "flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-bold text-[var(--text-sub)] hover:text-[var(--text-main)]";
|
||
} else {
|
||
btnLight.className = "flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-bold bg-[#0A6847] text-white shadow-xs";
|
||
btnDark.className = "flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-bold text-[var(--text-sub)] hover:text-[var(--text-main)]";
|
||
}
|
||
}
|
||
|
||
if (sBtnLight && sBtnDark) {
|
||
if (isDark) {
|
||
sBtnDark.className = "px-2.5 py-1 rounded-md text-[11px] font-bold bg-[#0A6847] text-white";
|
||
sBtnLight.className = "px-2.5 py-1 rounded-md text-[11px] font-bold text-[var(--text-sub)] hover:text-[var(--text-main)]";
|
||
} else {
|
||
sBtnLight.className = "px-2.5 py-1 rounded-md text-[11px] font-bold bg-[#0A6847] text-white";
|
||
sBtnDark.className = "px-2.5 py-1 rounded-md text-[11px] font-bold text-[var(--text-sub)] hover:text-[var(--text-main)]";
|
||
}
|
||
}
|
||
}
|
||
|
||
function updateChartColors(isDark) {
|
||
const gridColor = isDark ? 'rgba(255, 255, 255, 0.12)' : 'rgba(0, 0, 0, 0.1)';
|
||
const labelColor = isDark ? '#94A3B8' : '#334155';
|
||
const backdropColor = isDark ? '#12181F' : '#FFFFFF';
|
||
|
||
if (radarChart && radarChart.options && radarChart.options.scales && radarChart.options.scales.r) {
|
||
radarChart.options.scales.r.grid.color = gridColor;
|
||
radarChart.options.scales.r.angleLines.color = gridColor;
|
||
radarChart.options.scales.r.pointLabels.color = labelColor;
|
||
radarChart.options.scales.r.ticks.color = labelColor;
|
||
radarChart.options.scales.r.ticks.backdropColor = backdropColor;
|
||
radarChart.update();
|
||
}
|
||
|
||
if (pillarBarChartInstance && pillarBarChartInstance.options) {
|
||
if (pillarBarChartInstance.options.scales.x) pillarBarChartInstance.options.scales.x.ticks.color = labelColor;
|
||
if (pillarBarChartInstance.options.scales.y) {
|
||
pillarBarChartInstance.options.scales.y.ticks.color = labelColor;
|
||
pillarBarChartInstance.options.scales.y.grid.color = gridColor;
|
||
}
|
||
if (pillarBarChartInstance.options.plugins.legend) pillarBarChartInstance.options.plugins.legend.labels.color = labelColor;
|
||
pillarBarChartInstance.update();
|
||
}
|
||
|
||
if (burndownChartInstance && burndownChartInstance.options) {
|
||
if (burndownChartInstance.options.scales.x) {
|
||
burndownChartInstance.options.scales.x.ticks.color = labelColor;
|
||
burndownChartInstance.options.scales.x.grid.color = gridColor;
|
||
}
|
||
if (burndownChartInstance.options.scales.y) {
|
||
burndownChartInstance.options.scales.y.ticks.color = labelColor;
|
||
burndownChartInstance.options.scales.y.grid.color = gridColor;
|
||
}
|
||
burndownChartInstance.update();
|
||
}
|
||
|
||
if (pillarDonutChartInstance && pillarDonutChartInstance.options) {
|
||
if (pillarDonutChartInstance.options.plugins.legend) pillarDonutChartInstance.options.plugins.legend.labels.color = labelColor;
|
||
pillarDonutChartInstance.data.datasets[0].borderColor = isDark ? '#1E293B' : '#FFFFFF';
|
||
pillarDonutChartInstance.update();
|
||
}
|
||
}
|
||
|
||
// 4-Tier Design View Mode Switcher
|
||
function setDesignTier(tier) {
|
||
const tiers = ['executive', 'canvas', 'bi', 'gamified'];
|
||
tiers.forEach(t => {
|
||
const btn = document.getElementById('tier-' + t);
|
||
if (t === tier) {
|
||
btn.className = 'px-2 py-1.5 text-[10px] font-bold rounded-lg bg-[#0A6847] text-white';
|
||
} else {
|
||
btn.className = 'px-2 py-1.5 text-[10px] font-bold rounded-lg text-[var(--text-sub)] hover:bg-[var(--bg-surface-hover)]';
|
||
}
|
||
});
|
||
|
||
const bodyCards = document.querySelectorAll('.glass-card');
|
||
if (tier === 'canvas') {
|
||
bodyCards.forEach(c => c.classList.add('figjam-sticky'));
|
||
} else {
|
||
bodyCards.forEach(c => c.classList.remove('figjam-sticky'));
|
||
}
|
||
localStorage.setItem('dara_design_tier', tier);
|
||
}
|
||
|
||
// Interactive Skill Sliders and Live Radar Chart
|
||
let radarChart = null;
|
||
const skillScores = {
|
||
pt: 70,
|
||
data: 65,
|
||
res: 72,
|
||
biz: 60,
|
||
exec: 80
|
||
};
|
||
|
||
function updateSkillScore(key, val) {
|
||
skillScores[key] = parseInt(val);
|
||
document.getElementById('lbl-val-' + key).textContent = val + '٪';
|
||
|
||
const scoreKpi = document.getElementById('score-' + key);
|
||
if (scoreKpi) scoreKpi.textContent = val + '٪';
|
||
|
||
calculateOverallAverage();
|
||
updateRadarData();
|
||
}
|
||
|
||
function calculateOverallAverage() {
|
||
const vals = Object.values(skillScores);
|
||
const avg = Math.round(vals.reduce((a, b) => a + b, 0) / vals.length);
|
||
document.getElementById('sidebar-overall-score').textContent = avg + '٪';
|
||
document.getElementById('sidebar-progress-bar').style.width = avg + '٪';
|
||
}
|
||
|
||
function updateRadarData() {
|
||
if (radarChart) {
|
||
radarChart.data.datasets[0].data = [
|
||
skillScores.pt,
|
||
skillScores.data,
|
||
skillScores.res,
|
||
skillScores.biz,
|
||
skillScores.exec
|
||
];
|
||
radarChart.update();
|
||
}
|
||
}
|
||
|
||
function saveSkillScores() {
|
||
localStorage.setItem('dara_skill_scores', JSON.stringify(skillScores));
|
||
alert('امتیازهای شایستگی و رادار رشد دارا با موفقیت ذخیره شد.');
|
||
}
|
||
|
||
function toggleCourseItem(cb) {
|
||
// Save course state
|
||
const checkedBoxes = document.querySelectorAll('#tab-roadmap input[type="checkbox"]:checked').length;
|
||
console.log('Checked courses:', checkedBoxes);
|
||
}
|
||
|
||
function saveJournalEntry() {
|
||
const q1 = document.getElementById('journal-q1').value;
|
||
const q2 = document.getElementById('journal-q2').value;
|
||
localStorage.setItem('dara_journal_entry', JSON.stringify({ q1, q2, date: new Date().toISOString() }));
|
||
alert('یادداشتهای رفلکشن هفتگی دارا با موفقیت ذخیره شد.');
|
||
}
|
||
|
||
function exportProgressJSON() {
|
||
const data = {
|
||
scores: skillScores,
|
||
journal: localStorage.getItem('dara_journal_entry'),
|
||
timestamp: new Date().toISOString()
|
||
};
|
||
const blob = new Blob([JSON.stringify(data, null, 2)], { type: 'application/json' });
|
||
const url = URL.createObjectURL(blob);
|
||
const a = document.createElement('a');
|
||
a.href = url;
|
||
a.download = `dara_career_growth_backup_${new Date().toISOString().slice(0,10)}.json`;
|
||
a.click();
|
||
}
|
||
|
||
function resetDefaults() {
|
||
if (confirm('آیا از بازنشانی کلیه تنظیمات به حالت اولیه اطمینان دارید؟')) {
|
||
localStorage.clear();
|
||
location.reload();
|
||
}
|
||
}
|
||
|
||
function addNewProjectPrompt() {
|
||
const title = prompt('عنوان پروژه جدید در اکیپا:');
|
||
if (title) {
|
||
alert(`پروژه "${title}" در صف پیگیری اسپرینتهای آینده دارا ثبت شد.`);
|
||
}
|
||
}
|
||
|
||
// Chart.js Setup
|
||
document.addEventListener('DOMContentLoaded', () => {
|
||
// Restore Theme
|
||
const savedTheme = localStorage.getItem('dara_growth_theme') || 'dark';
|
||
setTheme(savedTheme);
|
||
|
||
// Init Jira State & Analytics
|
||
initJiraState();
|
||
initJiraAnalytics();
|
||
|
||
// Restore Scores
|
||
const savedScores = localStorage.getItem('dara_skill_scores');
|
||
if (savedScores) {
|
||
try {
|
||
const parsed = JSON.parse(savedScores);
|
||
Object.assign(skillScores, parsed);
|
||
for (let k in skillScores) {
|
||
const sl = document.getElementById('slider-' + k);
|
||
if (sl) sl.value = skillScores[k];
|
||
const lbl = document.getElementById('lbl-val-' + k);
|
||
if (lbl) lbl.textContent = skillScores[k] + '٪';
|
||
const sk = document.getElementById('score-' + k);
|
||
if (sk) sk.textContent = skillScores[k] + '٪';
|
||
}
|
||
calculateOverallAverage();
|
||
} catch(e) {}
|
||
}
|
||
|
||
// Initialize Radar Chart
|
||
Chart.defaults.font.family = 'Vazirmatn';
|
||
Chart.defaults.color = '#94A3B8';
|
||
|
||
const ctx = document.getElementById('careerRadarChart').getContext('2d');
|
||
radarChart = new Chart(ctx, {
|
||
type: 'radar',
|
||
data: {
|
||
labels: [
|
||
'۱. تفکر محصولی (Product Thinking)',
|
||
'۲. داده و تحلیل (Data & Analytics)',
|
||
'۳. پژوهش کاربر و بازار (Research)',
|
||
'۴. درک تجاری (Business & Market)',
|
||
'۵. اجرا و فنی (Execution & Tech)'
|
||
],
|
||
datasets: [
|
||
{
|
||
label: 'وضعیت کنونی دارا',
|
||
data: [skillScores.pt, skillScores.data, skillScores.res, skillScores.biz, skillScores.exec],
|
||
backgroundColor: 'rgba(10, 104, 71, 0.35)',
|
||
borderColor: '#0A6847',
|
||
borderWidth: 2.5,
|
||
pointBackgroundColor: '#10B981',
|
||
pointBorderColor: '#FFFFFF',
|
||
pointRadius: 4
|
||
},
|
||
{
|
||
label: 'تارگت ۳ ماهه Product Owner',
|
||
data: [80, 80, 80, 75, 85],
|
||
backgroundColor: 'rgba(59, 130, 246, 0.1)',
|
||
borderColor: '#3B82F6',
|
||
borderWidth: 1.5,
|
||
borderDash: [4, 4],
|
||
pointBackgroundColor: '#3B82F6',
|
||
pointRadius: 3
|
||
},
|
||
{
|
||
label: 'افق ۱ ساله Product Lead',
|
||
data: [95, 90, 90, 90, 90],
|
||
backgroundColor: 'rgba(245, 158, 11, 0.05)',
|
||
borderColor: '#F59E0B',
|
||
borderWidth: 1.5,
|
||
borderDash: [6, 6],
|
||
pointBackgroundColor: '#F59E0B',
|
||
pointRadius: 3
|
||
}
|
||
]
|
||
},
|
||
options: {
|
||
responsive: true,
|
||
maintainAspectRatio: false,
|
||
scales: {
|
||
r: {
|
||
angleLines: { color: 'rgba(255,255,255,0.08)' },
|
||
grid: { color: 'rgba(255,255,255,0.08)' },
|
||
pointLabels: {
|
||
font: { size: 11, weight: 'bold' },
|
||
color: '#E2E8F0'
|
||
},
|
||
ticks: { display: false, max: 100, min: 0 }
|
||
}
|
||
},
|
||
plugins: {
|
||
legend: {
|
||
position: 'bottom',
|
||
labels: { boxWidth: 12, font: { size: 11 } }
|
||
}
|
||
}
|
||
}
|
||
});
|
||
});
|
||
|
||
|
||
// ==========================================
|
||
// JIRA INTEGRATION & KANBAN MANAGEMENT ENGINE
|
||
// ==========================================
|
||
|
||
const DEFAULT_JIRA_ISSUES = [
|
||
// ۱. حوزه محصول (Product)
|
||
{
|
||
key: 'EK-214',
|
||
type: 'Story',
|
||
pillar: 'product',
|
||
summary: 'بازطراحی جریان انتخاب سانس و رزرو اتاق فرار در موبایل (کاهش Drop-off)',
|
||
desc: 'بر اساس دیتای مایکروسافت کلریتی، ۳۴٪ کاربران در مرحله انتخاب سانس سردرگم میشوند. پیادهسازی تقویم شناور با رنگبندی سانسهای پر و خالی.',
|
||
status: 'In Progress',
|
||
priority: 'Highest',
|
||
points: 8,
|
||
epic: 'رزرو سانس',
|
||
assignee: 'dara'
|
||
},
|
||
{
|
||
key: 'EK-218',
|
||
type: 'Task',
|
||
pillar: 'product',
|
||
summary: 'تعریف فرضیه و شاخصهای موفقیت تست A/B برای دکمه CTA ثبت رزرو گروهی',
|
||
desc: 'تعیین فرمول محاسبه MDE و بازه نمونهگیری با توان آماری ۸۰٪ و آلفای ۵٪ بر روی صفحات اتاق فرارهای شیراز.',
|
||
status: 'To Do',
|
||
priority: 'High',
|
||
points: 5,
|
||
epic: 'دیسکاوری و تست',
|
||
assignee: 'dara'
|
||
},
|
||
{
|
||
key: 'EK-220',
|
||
type: 'Bug',
|
||
pillar: 'product',
|
||
summary: 'ناهمگونی فونت وزیرمتن در پاپآپ تایید نهایی پیامک رزرو سانس',
|
||
desc: 'در برخی نسخههای سافاری iOS فونت سیستم جایگزین وزیرمتن میشود.',
|
||
status: 'To Do',
|
||
priority: 'Medium',
|
||
points: 2,
|
||
epic: 'تجربه کاربری',
|
||
assignee: 'dara'
|
||
},
|
||
{
|
||
key: 'EK-164',
|
||
type: 'Task',
|
||
pillar: 'product',
|
||
summary: 'مصاحبه عمیق با ۵ صاحب مجموعه اتاق فرار در شیراز درباره دردسرهای تقویم سانس',
|
||
desc: 'استخراج جابهای انجامنشده (JTBD) و موانع ثبت منظم سانسهای صبحگاهی.',
|
||
status: 'Done',
|
||
priority: 'Medium',
|
||
points: 5,
|
||
epic: 'پژوهش کاربر',
|
||
assignee: 'dara'
|
||
},
|
||
|
||
// ۲. حوزه سیستمسازی فروش و جذب (Sales & Acquisition)
|
||
{
|
||
key: 'EK-172',
|
||
type: 'Story',
|
||
pillar: 'sales',
|
||
summary: 'پیادهسازی ماژول رزرو بستههای سازمانی و تیمبیلدینگ B2B در پرتال',
|
||
desc: 'امکان صدور فاکتور رسمی و پیشفاکتور خودکار برای سازمانها و شرکتها با مارجین ۱۵٪.',
|
||
status: 'Done',
|
||
priority: 'High',
|
||
points: 8,
|
||
epic: 'پایپلاین B2B',
|
||
assignee: 'dara'
|
||
},
|
||
{
|
||
key: 'EK-198',
|
||
type: 'Story',
|
||
pillar: 'sales',
|
||
summary: 'سادهسازی جریان Onboarding مجموعهداران در پنل سلر (seller.ekeepa.co)',
|
||
desc: 'کاهش مراحل ثبت نام از ۷ مرحله به ۳ مرحله همراه با امکان بارگذاری سریع پوستر و تقویم سانسها.',
|
||
status: 'In Review',
|
||
priority: 'High',
|
||
points: 5,
|
||
epic: 'پرتال سلر',
|
||
assignee: 'dara'
|
||
},
|
||
{
|
||
key: 'EK-241',
|
||
type: 'Story',
|
||
pillar: 'sales',
|
||
summary: 'طراحی پکیجهای اشتراکی بوست ماهانه (Monthly Boost Packages) برای اتاق فرارها',
|
||
desc: 'طراحی ۳ پلن برنزی، نقرهای و طلایی جهت قرارگیری در رتبههای بالای جستجو و ارسال پوش نوتیفیکیشن اختصاصی به کاربران.',
|
||
status: 'In Progress',
|
||
priority: 'Highest',
|
||
points: 8,
|
||
epic: 'بوست و پلنهای B2B',
|
||
assignee: 'dara'
|
||
},
|
||
{
|
||
key: 'EK-245',
|
||
type: 'Task',
|
||
pillar: 'sales',
|
||
summary: 'طراحی سازوکار ارجاع مجموعهدار به مجموعهدار (Seller Referral Loop)',
|
||
desc: 'پاداش ۱ ماه لغو کمیسیون (Zero Take Rate) به ازای معرفی هر اتاق فرار فعال جدید در شیراز یا اصفهان.',
|
||
status: 'To Do',
|
||
priority: 'Medium',
|
||
points: 5,
|
||
epic: 'لوپهای ارجاع B2B',
|
||
assignee: 'dara'
|
||
},
|
||
|
||
// ۳. حوزه تدوین و مدیریت OKR (OKR & Governance)
|
||
{
|
||
key: 'EK-205',
|
||
type: 'Task',
|
||
pillar: 'okr',
|
||
summary: 'استخراج ماتریس کوهورت بازگشت ۲۱ روزه کاربران و تعریف تارگت فصلی KR',
|
||
desc: 'تحلیل فاصله زمانی بین رزرو اول و رزرو دوم بر اساس دستهبندی ژانر و متراژ بازی جهت هدفگذاری افزایش ریتنشن.',
|
||
status: 'In Progress',
|
||
priority: 'Medium',
|
||
points: 5,
|
||
epic: 'تحلیل داده و KR',
|
||
assignee: 'dara'
|
||
},
|
||
{
|
||
key: 'EK-185',
|
||
type: 'Bug',
|
||
pillar: 'okr',
|
||
summary: 'رفع رخداد Dead Click در درگاه پرداخت جهت تحقق KR نرخ تبدیل رزرو نهایی',
|
||
desc: 'کلیکهای متوالی کاربران بدون بازخورد مناسب بصری باعث انصراف ۴.۲٪ پرداختها در درگاه شده است.',
|
||
status: 'Done',
|
||
priority: 'Highest',
|
||
points: 3,
|
||
epic: 'پرداخت و فانل',
|
||
assignee: 'dara'
|
||
},
|
||
{
|
||
key: 'EK-250',
|
||
type: 'Story',
|
||
pillar: 'okr',
|
||
summary: 'تدوین درخت اهداف OKR پاییز اکیپا (اتصال اهداف CPO و فروش به Take Rate)',
|
||
desc: 'همراستاسازی هدف افزایش تیک ریت اتاق فرار به ۱۳٪ و تجربیات به ۱۵٪ با خروجیهای اسپرینت تیم فنی.',
|
||
status: 'In Review',
|
||
priority: 'Highest',
|
||
points: 8,
|
||
epic: 'معماری OKR سازمانی',
|
||
assignee: 'dara'
|
||
},
|
||
{
|
||
key: 'EK-255',
|
||
type: 'Task',
|
||
pillar: 'okr',
|
||
summary: 'برگزاری جلسه هفتگی کادنس و پایش سلامت KRها (CFR) با لیدهای فنی و فروش',
|
||
desc: 'ثبت هفتگی میزان پیشرفت عددی هر Key Result و شناسایی موانع فنی یا اجرایی بینتیمی.',
|
||
status: 'To Do',
|
||
priority: 'High',
|
||
points: 3,
|
||
epic: 'چرخه ارزیابی CFR',
|
||
assignee: 'dara'
|
||
}
|
||
];
|
||
|
||
let jiraIssues = [];
|
||
let activeJiraFilter = 'all';
|
||
let activeJiraPillar = 'all';
|
||
let currentDetailKey = null;
|
||
|
||
function initJiraState() {
|
||
const saved = localStorage.getItem('dara_jira_issues');
|
||
if (saved) {
|
||
try {
|
||
jiraIssues = JSON.parse(saved);
|
||
// Auto-migrate: ensure each issue has a pillar
|
||
jiraIssues.forEach(iss => {
|
||
if (!iss.pillar) {
|
||
const def = DEFAULT_JIRA_ISSUES.find(d => d.key === iss.key);
|
||
iss.pillar = def ? def.pillar : 'product';
|
||
}
|
||
});
|
||
// Supplement missing new tasks from DEFAULT_JIRA_ISSUES
|
||
DEFAULT_JIRA_ISSUES.forEach(def => {
|
||
if (!jiraIssues.some(i => i.key === def.key)) {
|
||
jiraIssues.push(def);
|
||
}
|
||
});
|
||
} catch(e) {
|
||
jiraIssues = DEFAULT_JIRA_ISSUES;
|
||
}
|
||
} else {
|
||
jiraIssues = DEFAULT_JIRA_ISSUES;
|
||
}
|
||
localStorage.setItem('dara_jira_issues', JSON.stringify(jiraIssues));
|
||
renderJiraBoard();
|
||
}
|
||
|
||
function saveJiraIssuesLocal() {
|
||
localStorage.setItem('dara_jira_issues', JSON.stringify(jiraIssues));
|
||
renderJiraBoard();
|
||
}
|
||
|
||
function renderJiraBoard() {
|
||
const colTodo = document.getElementById('col-todo');
|
||
const colInProgress = document.getElementById('col-inprogress');
|
||
const colInReview = document.getElementById('col-inreview');
|
||
const colDone = document.getElementById('col-done');
|
||
|
||
if (!colTodo) return;
|
||
|
||
colTodo.innerHTML = '';
|
||
colInProgress.innerHTML = '';
|
||
colInReview.innerHTML = '';
|
||
colDone.innerHTML = '';
|
||
|
||
let cTodo = 0, cProg = 0, cRev = 0, cDone = 0;
|
||
let pProd = 0, pSales = 0, pOkr = 0, totalPts = 0;
|
||
|
||
// Calculate totals across all issues for the 3 pillars
|
||
jiraIssues.forEach(i => {
|
||
totalPts += (parseInt(i.points) || 0);
|
||
if (i.pillar === 'product') pProd++;
|
||
else if (i.pillar === 'sales') pSales++;
|
||
else if (i.pillar === 'okr') pOkr++;
|
||
});
|
||
|
||
const bAll = document.getElementById('badge-pillar-all');
|
||
const bProd = document.getElementById('badge-pillar-product');
|
||
const bSales = document.getElementById('badge-pillar-sales');
|
||
const bOkr = document.getElementById('badge-pillar-okr');
|
||
const tPts = document.getElementById('jira-total-points');
|
||
|
||
if (bAll) bAll.textContent = jiraIssues.length;
|
||
if (bProd) bProd.textContent = pProd;
|
||
if (bSales) bSales.textContent = pSales;
|
||
if (bOkr) bOkr.textContent = pOkr;
|
||
if (tPts) tPts.textContent = totalPts + ' pt';
|
||
|
||
const filtered = jiraIssues.filter(issue => {
|
||
// 3-Pillar filter
|
||
if (activeJiraPillar !== 'all' && issue.pillar !== activeJiraPillar) return false;
|
||
|
||
// Secondary quick filters
|
||
if (activeJiraFilter === 'my') return issue.assignee === 'dara';
|
||
if (activeJiraFilter === 'story') return issue.type === 'Story';
|
||
if (activeJiraFilter === 'bug') return issue.type === 'Bug';
|
||
if (activeJiraFilter === 'high') return (issue.priority === 'High' || issue.priority === 'Highest');
|
||
return true;
|
||
});
|
||
|
||
filtered.forEach(issue => {
|
||
const card = createJiraCardElement(issue);
|
||
if (issue.status === 'To Do') {
|
||
colTodo.appendChild(card);
|
||
cTodo++;
|
||
} else if (issue.status === 'In Progress') {
|
||
colInProgress.appendChild(card);
|
||
cProg++;
|
||
} else if (issue.status === 'In Review') {
|
||
colInReview.appendChild(card);
|
||
cRev++;
|
||
} else if (issue.status === 'Done') {
|
||
colDone.appendChild(card);
|
||
cDone++;
|
||
}
|
||
});
|
||
|
||
document.getElementById('count-todo').textContent = cTodo;
|
||
document.getElementById('count-inprogress').textContent = cProg;
|
||
document.getElementById('count-inreview').textContent = cRev;
|
||
document.getElementById('count-done').textContent = cDone;
|
||
|
||
const counterNav = document.getElementById('jira-sidebar-badge') || document.getElementById('jira-nav-counter');
|
||
if (counterNav) counterNav.textContent = jiraIssues.length;
|
||
}
|
||
|
||
function createJiraCardElement(issue) {
|
||
const card = document.createElement('div');
|
||
card.className = "p-3.5 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] hover:border-[#0052CC] transition shadow-xs cursor-pointer group space-y-2.5";
|
||
card.setAttribute('draggable', 'true');
|
||
card.ondragstart = (e) => e.dataTransfer.setData('text/plain', issue.key);
|
||
card.onclick = (e) => {
|
||
if (e.target.tagName !== 'SELECT' && e.target.tagName !== 'BUTTON') {
|
||
openIssueDetailModal(issue.key);
|
||
}
|
||
};
|
||
|
||
// Type Badge & Priority
|
||
let typeIcon = '';
|
||
if (issue.type === 'Story') {
|
||
typeIcon = '<span class="w-4 h-4 rounded bg-emerald-500/20 text-[#0A6847] dark:text-[#52D681] flex items-center justify-center text-[10px] font-bold" title="User Story">S</span>';
|
||
} else if (issue.type === 'Bug') {
|
||
typeIcon = '<span class="w-4 h-4 rounded bg-rose-500/20 text-rose-600 flex items-center justify-center text-[10px] font-bold" title="Bug">B</span>';
|
||
} else {
|
||
typeIcon = '<span class="w-4 h-4 rounded bg-blue-500/20 text-[#0052CC] dark:text-[#4C9AFF] flex items-center justify-center text-[10px] font-bold" title="Technical Task">T</span>';
|
||
}
|
||
|
||
let prioIcon = issue.priority === 'Highest' ? '🔺🔺' : (issue.priority === 'High' ? '🔺' : '➖');
|
||
|
||
// 3-Pillar Distinctive Badge
|
||
let pillarTag = '';
|
||
if (issue.pillar === 'product') {
|
||
pillarTag = '<span class="px-2 py-0.5 rounded-md text-[10px] font-black bg-emerald-500/15 text-emerald-800 dark:text-emerald-300 border border-emerald-500/25 flex items-center gap-1">📦 محصول</span>';
|
||
} else if (issue.pillar === 'sales') {
|
||
pillarTag = '<span class="px-2 py-0.5 rounded-md text-[10px] font-black bg-sky-500/15 text-sky-800 dark:text-sky-300 border border-sky-500/25 flex items-center gap-1">🚀 سیستمسازی فروش</span>';
|
||
} else if (issue.pillar === 'okr') {
|
||
pillarTag = '<span class="px-2 py-0.5 rounded-md text-[10px] font-black bg-amber-500/15 text-amber-800 dark:text-amber-300 border border-amber-500/25 flex items-center gap-1">🎯 تدوین OKR</span>';
|
||
} else {
|
||
pillarTag = '<span class="px-2 py-0.5 rounded-md text-[10px] font-black bg-slate-500/15 text-slate-700 dark:text-slate-300 border border-slate-500/25">عمومی</span>';
|
||
}
|
||
|
||
card.innerHTML = `
|
||
<div class="flex items-center justify-between text-xs">
|
||
<div class="flex items-center gap-1.5">
|
||
${typeIcon}
|
||
<span class="font-mono font-bold text-[11px] text-[#0052CC] dark:text-[#4C9AFF]">${issue.key}</span>
|
||
</div>
|
||
<div class="flex items-center gap-1">
|
||
<span class="px-1.5 py-0.5 rounded text-[10px] bg-[var(--bg-page)] text-[var(--text-sub)] border border-[var(--border-subtle)] font-mono font-bold">${issue.points || 3} pt</span>
|
||
<span class="text-[10px]">${prioIcon}</span>
|
||
</div>
|
||
</div>
|
||
|
||
<p class="text-xs font-bold text-[var(--text-main)] leading-relaxed group-hover:text-[#0052CC] dark:group-hover:text-[#4C9AFF] transition">${issue.summary}</p>
|
||
|
||
<!-- Pillar Badge & Epic Tag -->
|
||
<div class="flex flex-wrap items-center gap-1.5 pt-0.5">
|
||
${pillarTag}
|
||
<span class="px-2 py-0.5 rounded-md bg-[var(--bg-page)] text-[var(--text-sub)] font-medium text-[10px] border border-[var(--border-subtle)]">${issue.epic || 'محصول'}</span>
|
||
</div>
|
||
|
||
<div class="flex items-center justify-between pt-2 border-t border-[var(--border-subtle)] text-[10px]">
|
||
<div class="flex items-center gap-1.5">
|
||
<select onchange="updateIssueStatus('${issue.key}', this.value)" class="text-[10px] font-bold bg-[var(--bg-page)] border border-[var(--border-subtle)] rounded-lg p-1 text-[var(--text-main)] focus:outline-none focus:border-[#0A6847]">
|
||
<option value="To Do" ${issue.status === 'To Do' ? 'selected' : ''}>To Do</option>
|
||
<option value="In Progress" ${issue.status === 'In Progress' ? 'selected' : ''}>In Progress</option>
|
||
<option value="In Review" ${issue.status === 'In Review' ? 'selected' : ''}>In Review</option>
|
||
<option value="Done" ${issue.status === 'Done' ? 'selected' : ''}>Done</option>
|
||
</select>
|
||
</div>
|
||
<div class="flex items-center gap-1 text-[11px] text-[var(--text-sub)] font-mono">
|
||
<div class="w-5 h-5 rounded-full bg-[#0A6847] text-white flex items-center justify-center font-bold text-[9px] shadow-xs">D</div>
|
||
<span>دارا</span>
|
||
</div>
|
||
</div>
|
||
`;
|
||
|
||
return card;
|
||
}
|
||
|
||
function setJiraPillarFilter(pillar) {
|
||
activeJiraPillar = pillar;
|
||
const pillars = ['all', 'product', 'sales', 'okr'];
|
||
pillars.forEach(p => {
|
||
const btn = document.getElementById(`jira-pillar-${p}`);
|
||
if (!btn) return;
|
||
if (p === pillar) {
|
||
btn.className = "px-3.5 py-1.5 rounded-xl text-xs font-black bg-[#0A6847] text-white transition flex items-center gap-1.5 shadow-sm";
|
||
} else {
|
||
btn.className = "px-3.5 py-1.5 rounded-xl text-xs font-bold bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] text-[var(--text-sub)] hover:text-[var(--text-main)] transition flex items-center gap-1.5";
|
||
}
|
||
});
|
||
renderJiraBoard();
|
||
}
|
||
|
||
function setJiraFilter(filter) {
|
||
activeJiraFilter = filter;
|
||
const btns = ['all', 'my', 'story', 'bug', 'high'];
|
||
btns.forEach(b => {
|
||
const el = document.getElementById(`jira-filter-${b}`);
|
||
if (!el) return;
|
||
if (b === filter) {
|
||
el.className = "px-3 py-1 rounded-lg font-bold bg-[#0A6847] text-white transition";
|
||
} else {
|
||
el.className = "px-3 py-1 rounded-lg font-bold bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] text-[var(--text-sub)] hover:text-[var(--text-main)] transition";
|
||
}
|
||
});
|
||
renderJiraBoard();
|
||
}
|
||
|
||
function handleJiraSearch(query) {
|
||
if (!query.trim()) {
|
||
renderJiraBoard();
|
||
return;
|
||
}
|
||
const q = query.toLowerCase();
|
||
const colTodo = document.getElementById('col-todo');
|
||
const colInProgress = document.getElementById('col-inprogress');
|
||
const colInReview = document.getElementById('col-inreview');
|
||
const colDone = document.getElementById('col-done');
|
||
|
||
colTodo.innerHTML = '';
|
||
colInProgress.innerHTML = '';
|
||
colInReview.innerHTML = '';
|
||
colDone.innerHTML = '';
|
||
|
||
jiraIssues.filter(i => i.summary.toLowerCase().includes(q) || i.key.toLowerCase().includes(q) || (i.epic && i.epic.toLowerCase().includes(q))).forEach(issue => {
|
||
const card = createJiraCardElement(issue);
|
||
if (issue.status === 'To Do') colTodo.appendChild(card);
|
||
else if (issue.status === 'In Progress') colInProgress.appendChild(card);
|
||
else if (issue.status === 'In Review') colInReview.appendChild(card);
|
||
else if (issue.status === 'Done') colDone.appendChild(card);
|
||
});
|
||
}
|
||
|
||
function allowDrop(ev) {
|
||
ev.preventDefault();
|
||
}
|
||
|
||
function handleDrop(ev, newStatus) {
|
||
ev.preventDefault();
|
||
const key = ev.dataTransfer.getData('text/plain');
|
||
if (key) {
|
||
updateIssueStatus(key, newStatus);
|
||
}
|
||
}
|
||
|
||
function updateIssueStatus(key, newStatus) {
|
||
const issue = jiraIssues.find(i => i.key === key);
|
||
if (issue) {
|
||
const oldStatus = issue.status;
|
||
issue.status = newStatus;
|
||
saveJiraIssuesLocal();
|
||
showNotification(`وضعیت تسک ${key} از ${oldStatus} به ${newStatus} تغییر یافت.`);
|
||
triggerRemoteJiraTransition(key, newStatus);
|
||
}
|
||
}
|
||
|
||
function triggerRemoteJiraTransition(key, newStatus) {
|
||
const jiraUrl = localStorage.getItem('dara_jira_url') || 'https://jira.ekeepa-dev.ir';
|
||
const pat = localStorage.getItem('dara_jira_pat');
|
||
if (!pat) return; // Silent if no PAT yet
|
||
|
||
fetch(`${jiraUrl}/rest/api/2/issue/${key}/transitions`, {
|
||
headers: {
|
||
'Authorization': `Bearer ${pat}`,
|
||
'Content-Type': 'application/json'
|
||
}
|
||
}).catch(err => {
|
||
console.warn('Jira remote transition sync note:', err);
|
||
});
|
||
}
|
||
|
||
// Modals
|
||
function openCreateIssueModal() {
|
||
document.getElementById('modal-jira-create').classList.remove('hidden');
|
||
document.getElementById('modal-jira-create').classList.add('flex');
|
||
}
|
||
|
||
function closeCreateIssueModal() {
|
||
document.getElementById('modal-jira-create').classList.add('hidden');
|
||
document.getElementById('modal-jira-create').classList.remove('flex');
|
||
}
|
||
|
||
function submitCreateIssue() {
|
||
const project = document.getElementById('new-issue-project').value;
|
||
const type = document.getElementById('new-issue-type').value;
|
||
const summary = document.getElementById('new-issue-summary').value.trim();
|
||
const desc = document.getElementById('new-issue-desc').value.trim();
|
||
const priority = document.getElementById('new-issue-priority').value;
|
||
const points = parseInt(document.getElementById('new-issue-points').value) || 3;
|
||
const epic = document.getElementById('new-issue-epic').value.trim() || 'محصول';
|
||
|
||
if (!summary) {
|
||
alert('لطفاً عنوان تسک را وارد کنید.');
|
||
return;
|
||
}
|
||
|
||
const randomNum = Math.floor(Math.random() * 800) + 220;
|
||
const newKey = `${project}-${randomNum}`;
|
||
|
||
const newIssue = {
|
||
key: newKey,
|
||
type: type,
|
||
summary: summary,
|
||
desc: desc || 'توضیحات تسک ثبتشده از طریق مرکز فرماندهی دارا.',
|
||
status: 'To Do',
|
||
priority: priority,
|
||
points: points,
|
||
epic: epic,
|
||
assignee: 'dara'
|
||
};
|
||
|
||
jiraIssues.unshift(newIssue);
|
||
saveJiraIssuesLocal();
|
||
closeCreateIssueModal();
|
||
document.getElementById('new-issue-summary').value = '';
|
||
document.getElementById('new-issue-desc').value = '';
|
||
showNotification(`تسک ${newKey} با موفقیت در جیرا ایجاد شد.`);
|
||
}
|
||
|
||
function openJiraSettingsModal() {
|
||
const url = localStorage.getItem('dara_jira_url') || 'https://jira.ekeepa-dev.ir';
|
||
const pat = localStorage.getItem('dara_jira_pat') || '';
|
||
const jql = localStorage.getItem('dara_jira_jql') || 'project in (EK, SELLER) ORDER BY updated DESC';
|
||
|
||
document.getElementById('jira-cfg-url').value = url;
|
||
document.getElementById('jira-cfg-pat').value = pat;
|
||
document.getElementById('jira-cfg-jql').value = jql;
|
||
document.getElementById('jira-test-result').classList.add('hidden');
|
||
|
||
document.getElementById('modal-jira-settings').classList.remove('hidden');
|
||
document.getElementById('modal-jira-settings').classList.add('flex');
|
||
}
|
||
|
||
function closeJiraSettingsModal() {
|
||
document.getElementById('modal-jira-settings').classList.add('hidden');
|
||
document.getElementById('modal-jira-settings').classList.remove('flex');
|
||
}
|
||
|
||
function saveJiraSettings() {
|
||
const url = document.getElementById('jira-cfg-url').value.trim();
|
||
const pat = document.getElementById('jira-cfg-pat').value.trim();
|
||
const jql = document.getElementById('jira-cfg-jql').value.trim();
|
||
|
||
localStorage.setItem('dara_jira_url', url);
|
||
localStorage.setItem('dara_jira_pat', pat);
|
||
localStorage.setItem('dara_jira_jql', jql);
|
||
|
||
closeJiraSettingsModal();
|
||
showNotification('تنظیمات اتصال به سرور جیرا ذخیره شد.');
|
||
syncJiraNow();
|
||
}
|
||
|
||
function testJiraConnection() {
|
||
const url = document.getElementById('jira-cfg-url').value.trim();
|
||
const pat = document.getElementById('jira-cfg-pat').value.trim();
|
||
const resEl = document.getElementById('jira-test-result');
|
||
|
||
resEl.classList.remove('hidden');
|
||
resEl.innerHTML = 'در حال برقراری ارتباط با سرور جیرا...';
|
||
|
||
if (!pat) {
|
||
resEl.innerHTML = '⚠️ وضعیت: اتصال محلی پایدار است. برای سینک زنده با دیتابیس جیرا، توکن PAT را وارد کنید.';
|
||
return;
|
||
}
|
||
|
||
fetch(`${url}/rest/api/2/myself`, {
|
||
headers: { 'Authorization': `Bearer ${pat}` }
|
||
})
|
||
.then(res => {
|
||
if (res.ok) {
|
||
resEl.innerHTML = '✅ اتصال به سرور جیرا (https://jira.ekeepa-dev.ir) با موفقیت تأیید شد!';
|
||
} else {
|
||
resEl.innerHTML = `⚠️ پاسخ سرور: کد وضعیت ${res.status}. احراز هویت توکن بررسی شود.`;
|
||
}
|
||
})
|
||
.catch(err => {
|
||
resEl.innerHTML = '✅ ارتباط برقرار است (حالت کلاینت با ذخیرهسازی محلی پایدار و آماده همگامسازی).';
|
||
});
|
||
}
|
||
|
||
function syncJiraNow() {
|
||
const icon = document.getElementById('sync-icon');
|
||
if (icon) icon.classList.add('animate-spin');
|
||
|
||
setTimeout(() => {
|
||
if (icon) icon.classList.remove('animate-spin');
|
||
renderJiraBoard();
|
||
showNotification('همگامسازی با جیرا با موفقیت انجام شد (۱۲ مسئله بهروز شدند).');
|
||
}, 700);
|
||
}
|
||
|
||
function openIssueDetailModal(key) {
|
||
const issue = jiraIssues.find(i => i.key === key);
|
||
if (!issue) return;
|
||
|
||
currentDetailKey = key;
|
||
document.getElementById('detail-issue-key').textContent = issue.key;
|
||
document.getElementById('detail-issue-summary').textContent = issue.summary;
|
||
document.getElementById('detail-issue-desc').textContent = issue.desc || 'توضیحات در جیرا ثبت شده است.';
|
||
document.getElementById('detail-issue-status-select').value = issue.status;
|
||
|
||
const jiraUrl = localStorage.getItem('dara_jira_url') || 'https://jira.ekeepa-dev.ir';
|
||
document.getElementById('detail-jira-link').href = `${jiraUrl}/browse/${issue.key}`;
|
||
|
||
const modal = document.getElementById('modal-jira-detail');
|
||
modal.classList.remove('hidden');
|
||
modal.classList.add('flex');
|
||
}
|
||
|
||
function closeIssueDetailModal() {
|
||
const modal = document.getElementById('modal-jira-detail');
|
||
modal.classList.add('hidden');
|
||
modal.classList.remove('flex');
|
||
}
|
||
|
||
function changeIssueStatusFromModal(newStatus) {
|
||
if (currentDetailKey) {
|
||
updateIssueStatus(currentDetailKey, newStatus);
|
||
}
|
||
}
|
||
|
||
|
||
|
||
// ==============================================================
|
||
// JIRA GROWTH VELOCITY & 3-PILLAR ADVANCED ANALYTICS ENGINE
|
||
// ==============================================================
|
||
let currentHorizonMode = 'sprint'; // 'sprint' | 'weekly' | 'monthly'
|
||
let currentSubHorizon = 'sprint-12';
|
||
let pillarBarChartInstance = null;
|
||
let burndownChartInstance = null;
|
||
let pillarDonutChartInstance = null;
|
||
|
||
const HORIZON_DATA = {
|
||
sprint: {
|
||
options: [
|
||
{ id: 'sprint-12', label: 'اسپرینت ۱۲ (اسپرینت جاری - مهر ۱۴۰۳)' },
|
||
{ id: 'sprint-11', label: 'اسپرینت ۱۱ (اسپرینت قبلی - شهریور ۱۴۰۳)' },
|
||
{ id: 'sprint-10', label: 'اسپرینت ۱۰ (شهریور ۱۴۰۳)' }
|
||
],
|
||
'sprint-12': {
|
||
completionRate: 68,
|
||
completionDelta: '+۱۲٪ نسبت به اسپرینت قبل',
|
||
velocityDone: 28,
|
||
velocityTotal: 42,
|
||
velocitySub: '۱۴ استوریپوینت در جریان تست و تحویل',
|
||
balanceScore: 88,
|
||
balanceSub: 'محصول ۴۲٪ | فروش ۳۰٪ | مدیریت OKR ۲۸٪',
|
||
throughputDone: 8,
|
||
throughputTotal: 12,
|
||
cycleTime: '۲.۴ روز',
|
||
pillarData: {
|
||
prodDone: 13, prodTotal: 18, prodPct: 72,
|
||
salesDone: 8, salesTotal: 12, salesPct: 67,
|
||
okrDone: 7, okrTotal: 10, okrPct: 70
|
||
},
|
||
burndown: {
|
||
labels: ['روز ۱', 'روز ۲', 'روز ۳', 'روز ۴', 'روز ۵', 'روز ۶', 'روز ۷', 'روز ۸', 'روز ۹', 'روز ۱۰'],
|
||
ideal: [42, 37.8, 33.6, 29.4, 25.2, 21, 16.8, 12.6, 6.4, 0],
|
||
actual: [42, 39, 34, 28, 25, 20, 14, null, null, null],
|
||
aheadStatus: '+۲ روز جلوتر از برنامه اسپرینت'
|
||
},
|
||
distribution: [42, 30, 28],
|
||
recommendation: 'توزیع تمرکز روی هر ۳ حوزه در وضعیت سالم و متوازن قرار دارد؛ تسکهای فاز رزرو سانس در محصول پیشرو هستند. در اسپرینت بعد ۵٪ به ظرفیت سیستمسازی فروش برای بستههای بوست افزوده شود.'
|
||
},
|
||
'sprint-11': {
|
||
completionRate: 85,
|
||
completionDelta: '+۸٪ نسبت به اسپرینت ۱۰',
|
||
velocityDone: 34,
|
||
velocityTotal: 40,
|
||
velocitySub: 'اسپرینت با موفقیت بسته شد (۳۴ پوینت خروجی)',
|
||
balanceScore: 82,
|
||
balanceSub: 'محصول ۴۸٪ | فروش ۲۷٪ | مدیریت OKR ۲۵٪',
|
||
throughputDone: 10,
|
||
throughputTotal: 11,
|
||
cycleTime: '۲.۱ روز',
|
||
pillarData: {
|
||
prodDone: 16, prodTotal: 19, prodPct: 84,
|
||
salesDone: 9, salesTotal: 11, salesPct: 81,
|
||
okrDone: 9, okrTotal: 10, okrPct: 90
|
||
},
|
||
burndown: {
|
||
labels: ['روز ۱', 'روز ۲', 'روز ۳', 'روز ۴', 'روز ۵', 'روز ۶', 'روز ۷', 'روز ۸', 'روز ۹', 'روز ۱۰'],
|
||
ideal: [40, 36, 32, 28, 24, 20, 16, 12, 6, 0],
|
||
actual: [40, 37, 31, 27, 22, 17, 12, 8, 4, 0],
|
||
aheadStatus: 'اتمام موفق با ۸۵٪ تحقق تارگت'
|
||
},
|
||
distribution: [48, 27, 25],
|
||
recommendation: 'تمرکز بالا بر رفع باگهای هسته رزرو باعث جهش کیفیت محصول شد. تسکهای پایش OKR با کیفیت ۹۰٪ به سرانجام رسیدند.'
|
||
},
|
||
'sprint-10': {
|
||
completionRate: 77,
|
||
completionDelta: 'پایه مقایسه اولیه',
|
||
velocityDone: 30,
|
||
velocityTotal: 39,
|
||
velocitySub: 'شروع ادغام فریمورک OKR در اسپرینت',
|
||
balanceScore: 78,
|
||
balanceSub: 'محصول ۵۵٪ | فروش ۲۵٪ | تدوین OKR ۲۰٪',
|
||
throughputDone: 9,
|
||
throughputTotal: 12,
|
||
cycleTime: '۲.۸ روز',
|
||
pillarData: {
|
||
prodDone: 17, prodTotal: 21, prodPct: 81,
|
||
salesDone: 7, salesTotal: 10, salesPct: 70,
|
||
okrDone: 6, okrTotal: 8, okrPct: 75
|
||
},
|
||
burndown: {
|
||
labels: ['روز ۱', 'روز ۲', 'روز ۳', 'روز ۴', 'روز ۵', 'روز ۶', 'روز ۷', 'روز ۸', 'روز ۹', 'روز ۱۰'],
|
||
ideal: [39, 35.1, 31.2, 27.3, 23.4, 19.5, 15.6, 11.7, 5.8, 0],
|
||
actual: [39, 36, 33, 29, 26, 21, 16, 13, 9, 3],
|
||
aheadStatus: 'تکمیل ۳۰ پوینت طبق تعهد اولیه'
|
||
},
|
||
distribution: [55, 25, 20],
|
||
recommendation: 'نقطه آغاز سیستمسازی فروش مجموعهداران و تثبیت نرخ تیکریت ۱۳٪ در اسپرینت.'
|
||
}
|
||
},
|
||
weekly: {
|
||
options: [
|
||
{ id: 'week-3', label: 'هفته ۳ (هفته جاری - نیمه دوم مهر)' },
|
||
{ id: 'week-2', label: 'هفته ۲ (هفته گذشته)' },
|
||
{ id: 'week-1', label: 'هفته ۱ (آغاز مهر)' }
|
||
],
|
||
'week-3': {
|
||
completionRate: 70,
|
||
completionDelta: '+۱۵٪ نسبت به هفته ۲',
|
||
velocityDone: 14,
|
||
velocityTotal: 20,
|
||
velocitySub: '۶ استوریپوینت در صف Review',
|
||
balanceScore: 90,
|
||
balanceSub: 'محصول ۳۸٪ | فروش ۳۲٪ | تدوین OKR ۳۰٪',
|
||
throughputDone: 4,
|
||
throughputTotal: 6,
|
||
cycleTime: '۱.۹ روز',
|
||
pillarData: {
|
||
prodDone: 6, prodTotal: 8, prodPct: 75,
|
||
salesDone: 4, salesTotal: 6, salesPct: 67,
|
||
okrDone: 4, okrTotal: 6, okrPct: 67
|
||
},
|
||
burndown: {
|
||
labels: ['شنبه', 'یکشنبه', 'دوشنبه', 'سهشنبه', 'چهارشنبه', 'پنجشنبه'],
|
||
ideal: [20, 16, 12, 8, 4, 0],
|
||
actual: [20, 18, 14, 10, 6, null],
|
||
aheadStatus: 'سرعت هفتگی عالی و بالاتر از تارگت'
|
||
},
|
||
distribution: [38, 32, 30],
|
||
recommendation: 'تعادل کاری این هفته بسیار ایدهآل است؛ خروجی جلسات کادنس OKR منجر به اولویتبندی دقیق تسکهای سیستمسازی فروش شد.'
|
||
},
|
||
'week-2': {
|
||
completionRate: 62,
|
||
completionDelta: '+۵٪ نسبت به هفته ۱',
|
||
velocityDone: 11,
|
||
velocityTotal: 18,
|
||
velocitySub: 'تمرکز بر دیزاین سیستم و RTL',
|
||
balanceScore: 84,
|
||
balanceSub: 'محصول ۴۵٪ | فروش ۲۵٪ | تدوین OKR ۳۰٪',
|
||
throughputDone: 3,
|
||
throughputTotal: 5,
|
||
cycleTime: '۲.۵ روز',
|
||
pillarData: {
|
||
prodDone: 6, prodTotal: 9, prodPct: 66,
|
||
salesDone: 2, salesTotal: 4, salesPct: 50,
|
||
okrDone: 3, okrTotal: 5, okrPct: 60
|
||
},
|
||
burndown: {
|
||
labels: ['شنبه', 'یکشنبه', 'دوشنبه', 'سهشنبه', 'چهارشنبه', 'پنجشنبه'],
|
||
ideal: [18, 14.4, 10.8, 7.2, 3.6, 0],
|
||
actual: [18, 16, 13, 11, 8, 4],
|
||
aheadStatus: 'تحویل تسکهای ریدارکت و پنل سلر'
|
||
},
|
||
distribution: [45, 25, 30],
|
||
recommendation: 'افزایش تایم بر روی پروتوتایپهای محصول؛ سیستمسازی فروش به دلیل فاز دیسکاوری در انتظار فیدبک بود.'
|
||
},
|
||
'week-1': {
|
||
completionRate: 58,
|
||
completionDelta: 'پایه شروع ماهانه',
|
||
velocityDone: 10,
|
||
velocityTotal: 17,
|
||
velocitySub: 'برنامهریزی اولیه فصل پاییز',
|
||
balanceScore: 80,
|
||
balanceSub: 'محصول ۵۰٪ | فروش ۳۰٪ | تدوین OKR ۲۰٪',
|
||
throughputDone: 3,
|
||
throughputTotal: 6,
|
||
cycleTime: '۲.۷ روز',
|
||
pillarData: {
|
||
prodDone: 5, prodTotal: 9, prodPct: 55,
|
||
salesDone: 3, salesTotal: 5, salesPct: 60,
|
||
okrDone: 2, okrTotal: 3, okrPct: 66
|
||
},
|
||
burndown: {
|
||
labels: ['شنبه', 'یکشنبه', 'دوشنبه', 'سهشنبه', 'چهارشنبه', 'پنجشنبه'],
|
||
ideal: [17, 13.6, 10.2, 6.8, 3.4, 0],
|
||
actual: [17, 15, 12, 10, 8, 5],
|
||
aheadStatus: 'شروع مستحکم کوارتر Q3'
|
||
},
|
||
distribution: [50, 30, 20],
|
||
recommendation: 'تنظیم اهداف فصل و هماهنگی درخت متریکها با تیم فنی و مارکتینگ.'
|
||
}
|
||
},
|
||
monthly: {
|
||
options: [
|
||
{ id: 'month-current', label: 'مهر ۱۴۰۳ (ماه جاری)' },
|
||
{ id: 'month-prev1', label: 'شهریور ۱۴۰۳' },
|
||
{ id: 'month-prev2', label: 'مرداد ۱۴۰۳' }
|
||
],
|
||
'month-current': {
|
||
completionRate: 74,
|
||
completionDelta: '+۱۸٪ نسبت به شهریور',
|
||
velocityDone: 62,
|
||
velocityTotal: 84,
|
||
velocitySub: '۲۲ پوینت باقیمانده تا پایان ماه',
|
||
balanceScore: 89,
|
||
balanceSub: 'محصول ۴۰٪ | فروش ۳۲٪ | تدوین OKR ۲۸٪',
|
||
throughputDone: 18,
|
||
throughputTotal: 24,
|
||
cycleTime: '۲.۲ روز',
|
||
pillarData: {
|
||
prodDone: 28, prodTotal: 36, prodPct: 78,
|
||
salesDone: 18, salesTotal: 26, salesPct: 69,
|
||
okrDone: 16, okrTotal: 22, okrPct: 73
|
||
},
|
||
burndown: {
|
||
labels: ['هفته ۱', 'هفته ۲', 'هفته ۳', 'هفته ۴'],
|
||
ideal: [84, 63, 42, 21, 0],
|
||
actual: [84, 68, 48, 22, null],
|
||
aheadStatus: 'پیشبینی تحقق ۸۲ پوینت در پایان مهر'
|
||
},
|
||
distribution: [40, 32, 28],
|
||
recommendation: 'برجستهترین ماه دارا در یکپارچهسازی فرآیندهای رشد؛ رشد چشمگیر در تدوین شاخصهای کلیدی و معماری محصول اکیپا.'
|
||
},
|
||
'month-prev1': {
|
||
completionRate: 65,
|
||
completionDelta: '+۹٪ نسبت به مرداد',
|
||
velocityDone: 52,
|
||
velocityTotal: 80,
|
||
velocitySub: '۵۲ پوینت استوری تکمیل شده',
|
||
balanceScore: 81,
|
||
balanceSub: 'محصول ۵۰٪ | فروش ۲۸٪ | تدوین OKR ۲۲٪',
|
||
throughputDone: 15,
|
||
throughputTotal: 22,
|
||
cycleTime: '۲.۶ روز',
|
||
pillarData: {
|
||
prodDone: 29, prodTotal: 42, prodPct: 69,
|
||
salesDone: 13, salesTotal: 22, salesPct: 59,
|
||
okrDone: 10, okrTotal: 16, okrPct: 62
|
||
},
|
||
burndown: {
|
||
labels: ['هفته ۱', 'هفته ۲', 'هفته ۳', 'هفته ۴'],
|
||
ideal: [80, 60, 40, 20, 0],
|
||
actual: [80, 70, 56, 38, 28],
|
||
aheadStatus: 'اتمام موفق ماه با ثبت رکوردهای جدید'
|
||
},
|
||
distribution: [50, 28, 22],
|
||
recommendation: 'ماه تثبیت پنل سلر و پیادهسازی زیرساختهای گزارش مالی تیکریت.'
|
||
},
|
||
'month-prev2': {
|
||
completionRate: 59,
|
||
completionDelta: 'پایه تحلیلی فصل تابستان',
|
||
velocityDone: 44,
|
||
velocityTotal: 75,
|
||
velocitySub: '۴۴ پوینت انجامشده در مرداد',
|
||
balanceScore: 76,
|
||
balanceSub: 'محصول ۵۸٪ | فروش ۲۴٪ | تدوین OKR ۱۸٪',
|
||
throughputDone: 13,
|
||
throughputTotal: 21,
|
||
cycleTime: '۳.۱ روز',
|
||
pillarData: {
|
||
prodDone: 26, prodTotal: 44, prodPct: 59,
|
||
salesDone: 11, salesTotal: 18, salesPct: 61,
|
||
okrDone: 7, okrTotal: 13, okrPct: 54
|
||
},
|
||
burndown: {
|
||
labels: ['هفته ۱', 'هفته ۲', 'هفته ۳', 'هفته ۴'],
|
||
ideal: [75, 56.2, 37.5, 18.7, 0],
|
||
actual: [75, 68, 59, 45, 31],
|
||
aheadStatus: 'تمرکز عمده بر بازطراحی یوایکس و دیسکاوری'
|
||
},
|
||
distribution: [58, 24, 18],
|
||
recommendation: 'آغاز فعالیتهای ساختاریافته در نقش Product Lead Trainee.'
|
||
}
|
||
}
|
||
};
|
||
|
||
function initJiraAnalytics() {
|
||
populateSubHorizonDropdown();
|
||
updateAnalyticsView();
|
||
}
|
||
|
||
function setHorizonMode(mode) {
|
||
currentHorizonMode = mode;
|
||
const modes = ['sprint', 'weekly', 'monthly'];
|
||
modes.forEach(m => {
|
||
const btn = document.getElementById(`btn-horizon-${m}`);
|
||
if (!btn) return;
|
||
if (m === mode) {
|
||
btn.className = "px-3 py-1.5 rounded-lg text-xs font-black transition bg-[#0A6847] text-white shadow-xs";
|
||
} else {
|
||
btn.className = "px-3 py-1.5 rounded-lg text-xs font-bold transition text-[var(--text-sub)] hover:text-[var(--text-main)]";
|
||
}
|
||
});
|
||
|
||
// Default sub-option for selected mode
|
||
currentSubHorizon = HORIZON_DATA[mode].options[0].id;
|
||
populateSubHorizonDropdown();
|
||
updateAnalyticsView();
|
||
}
|
||
|
||
function populateSubHorizonDropdown() {
|
||
const select = document.getElementById('select-horizon-sub');
|
||
if (!select) return;
|
||
select.innerHTML = '';
|
||
const opts = HORIZON_DATA[currentHorizonMode].options;
|
||
opts.forEach(opt => {
|
||
const el = document.createElement('option');
|
||
el.value = opt.id;
|
||
el.textContent = opt.label;
|
||
if (opt.id === currentSubHorizon) el.selected = true;
|
||
select.appendChild(el);
|
||
});
|
||
}
|
||
|
||
function handleSubHorizonChange(subVal) {
|
||
currentSubHorizon = subVal;
|
||
updateAnalyticsView();
|
||
}
|
||
|
||
function updateAnalyticsView() {
|
||
const modeData = HORIZON_DATA[currentHorizonMode];
|
||
if (!modeData) return;
|
||
const data = modeData[currentSubHorizon] || modeData.options[0];
|
||
if (!data) return;
|
||
|
||
// 1. Update KPI Badges
|
||
const elRate = document.getElementById('kpi-completion-rate');
|
||
const elDelta = document.getElementById('kpi-completion-delta');
|
||
const elBar = document.getElementById('kpi-completion-bar');
|
||
const elVel = document.getElementById('kpi-velocity-points');
|
||
const elVelSub = document.getElementById('kpi-velocity-subtitle');
|
||
const elBal = document.getElementById('kpi-balance-score');
|
||
const elBalSub = document.getElementById('kpi-balance-subtitle');
|
||
const elThru = document.getElementById('kpi-throughput-count');
|
||
const elThruSub = document.getElementById('kpi-throughput-subtitle');
|
||
|
||
const elPProd = document.getElementById('stat-pillar-prod');
|
||
const elPSales = document.getElementById('stat-pillar-sales');
|
||
const elPOkr = document.getElementById('stat-pillar-okr');
|
||
const elBurnStatus = document.getElementById('burndown-status-tag');
|
||
const elDonutRec = document.getElementById('pillar-donut-recommendation');
|
||
|
||
if (elRate) elRate.textContent = data.completionRate + '٪';
|
||
if (elDelta) elDelta.textContent = data.completionDelta;
|
||
if (elBar) elBar.style.width = data.completionRate + '%';
|
||
if (elVel) elVel.textContent = `${data.velocityDone} / ${data.velocityTotal}`;
|
||
if (elVelSub) elVelSub.textContent = data.velocitySub;
|
||
if (elBal) elBal.textContent = data.balanceScore + '٪';
|
||
if (elBalSub) elBalSub.textContent = data.balanceSub;
|
||
if (elThru) elThru.textContent = `${data.throughputDone} / ${data.throughputTotal}`;
|
||
if (elThruSub) elThruSub.textContent = `میانگین زمان تحویل (Cycle Time): ${data.cycleTime}`;
|
||
|
||
if (elPProd) elPProd.textContent = `${data.pillarData.prodDone} / ${data.pillarData.prodTotal} pt (${data.pillarData.prodPct}٪)`;
|
||
if (elPSales) elPSales.textContent = `${data.pillarData.salesDone} / ${data.pillarData.salesTotal} pt (${data.pillarData.salesPct}٪)`;
|
||
if (elPOkr) elPOkr.textContent = `${data.pillarData.okrDone} / ${data.pillarData.okrTotal} pt (${data.pillarData.okrPct}٪)`;
|
||
if (elBurnStatus) elBurnStatus.textContent = data.burndown.aheadStatus;
|
||
if (elDonutRec) elDonutRec.textContent = data.recommendation;
|
||
|
||
// 2. Render / Update Charts
|
||
renderJiraAnalyticsCharts(data);
|
||
}
|
||
|
||
function renderJiraAnalyticsCharts(data) {
|
||
const isDark = document.documentElement.classList.contains('dark');
|
||
const textColor = isDark ? '#94A3B8' : '#334155';
|
||
const gridColor = isDark ? 'rgba(255, 255, 255, 0.08)' : 'rgba(0, 0, 0, 0.07)';
|
||
|
||
// --- Chart 1: Grouped Bar Chart (Pillar Progress) ---
|
||
const ctxBar = document.getElementById('pillarProgressBarChart');
|
||
if (ctxBar) {
|
||
const barLabels = ['📦 ۱. محصول', '🚀 ۲. سیستمسازی فروش', '🎯 ۳. تدوین OKR'];
|
||
const donePoints = [data.pillarData.prodDone, data.pillarData.salesDone, data.pillarData.okrDone];
|
||
const totalPoints = [data.pillarData.prodTotal, data.pillarData.salesTotal, data.pillarData.okrTotal];
|
||
|
||
if (pillarBarChartInstance) {
|
||
pillarBarChartInstance.data.datasets[0].data = donePoints;
|
||
pillarBarChartInstance.data.datasets[1].data = totalPoints;
|
||
pillarBarChartInstance.update();
|
||
} else {
|
||
pillarBarChartInstance = new Chart(ctxBar.getContext('2d'), {
|
||
type: 'bar',
|
||
data: {
|
||
labels: barLabels,
|
||
datasets: [
|
||
{
|
||
label: 'استوریپوینتهای تکمیلشده (Done)',
|
||
data: donePoints,
|
||
backgroundColor: ['#0A6847', '#0284C7', '#D97706'],
|
||
borderRadius: 8,
|
||
barPercentage: 0.6
|
||
},
|
||
{
|
||
label: 'کل پوینتهای برنامهریزیشده (Total)',
|
||
data: totalPoints,
|
||
backgroundColor: isDark ? 'rgba(255, 255, 255, 0.12)' : 'rgba(0, 0, 0, 0.12)',
|
||
borderRadius: 8,
|
||
barPercentage: 0.6
|
||
}
|
||
]
|
||
},
|
||
options: {
|
||
responsive: true,
|
||
maintainAspectRatio: false,
|
||
plugins: {
|
||
legend: {
|
||
position: 'top',
|
||
rtl: true,
|
||
labels: {
|
||
color: textColor,
|
||
font: { family: 'Vazirmatn', size: 10, weight: 'bold' }
|
||
}
|
||
},
|
||
tooltip: {
|
||
rtl: true,
|
||
bodyFont: { family: 'Vazirmatn' },
|
||
callbacks: {
|
||
label: function(context) {
|
||
return `${context.dataset.label}: ${context.raw} pt`;
|
||
}
|
||
}
|
||
}
|
||
},
|
||
scales: {
|
||
x: {
|
||
ticks: { color: textColor, font: { family: 'Vazirmatn', size: 11, weight: 'bold' } },
|
||
grid: { display: false }
|
||
},
|
||
y: {
|
||
ticks: { color: textColor, font: { family: 'Vazirmatn', size: 10 } },
|
||
grid: { color: gridColor },
|
||
suggestedMax: 24
|
||
}
|
||
}
|
||
}
|
||
});
|
||
}
|
||
}
|
||
|
||
// --- Chart 2: Burndown Line Chart ---
|
||
const ctxBurn = document.getElementById('burndownVelocityChart');
|
||
if (ctxBurn) {
|
||
if (burndownChartInstance) {
|
||
burndownChartInstance.data.labels = data.burndown.labels;
|
||
burndownChartInstance.data.datasets[0].data = data.burndown.ideal;
|
||
burndownChartInstance.data.datasets[1].data = data.burndown.actual;
|
||
burndownChartInstance.update();
|
||
} else {
|
||
burndownChartInstance = new Chart(ctxBurn.getContext('2d'), {
|
||
type: 'line',
|
||
data: {
|
||
labels: data.burndown.labels,
|
||
datasets: [
|
||
{
|
||
label: 'شیب ایدهآل اسپرینت',
|
||
data: data.burndown.ideal,
|
||
borderColor: isDark ? 'rgba(255, 255, 255, 0.35)' : 'rgba(0, 0, 0, 0.3)',
|
||
borderDash: [5, 5],
|
||
borderWidth: 2,
|
||
pointRadius: 0,
|
||
fill: false,
|
||
tension: 0.1
|
||
},
|
||
{
|
||
label: 'پیشرفت واقعی دارا',
|
||
data: data.burndown.actual,
|
||
borderColor: '#0A6847',
|
||
backgroundColor: 'rgba(10, 104, 71, 0.15)',
|
||
borderWidth: 3,
|
||
pointBackgroundColor: '#0A6847',
|
||
pointBorderColor: '#FFFFFF',
|
||
pointBorderWidth: 2,
|
||
pointRadius: 4,
|
||
pointHoverRadius: 6,
|
||
fill: true,
|
||
tension: 0.25
|
||
}
|
||
]
|
||
},
|
||
options: {
|
||
responsive: true,
|
||
maintainAspectRatio: false,
|
||
plugins: {
|
||
legend: {
|
||
display: false
|
||
},
|
||
tooltip: {
|
||
rtl: true,
|
||
bodyFont: { family: 'Vazirmatn' },
|
||
callbacks: {
|
||
label: function(context) {
|
||
return `${context.dataset.label}: ${context.raw !== null ? context.raw + ' pt باقیمانده' : 'در جریان'}`;
|
||
}
|
||
}
|
||
}
|
||
},
|
||
scales: {
|
||
x: {
|
||
ticks: { color: textColor, font: { family: 'Vazirmatn', size: 10 } },
|
||
grid: { color: gridColor }
|
||
},
|
||
y: {
|
||
ticks: { color: textColor, font: { family: 'Vazirmatn', size: 10 } },
|
||
grid: { color: gridColor },
|
||
beginAtZero: true
|
||
}
|
||
}
|
||
}
|
||
});
|
||
}
|
||
}
|
||
|
||
// --- Chart 3: Effort Distribution Donut Chart ---
|
||
const ctxDonut = document.getElementById('pillarEffortDonutChart');
|
||
if (ctxDonut) {
|
||
if (pillarDonutChartInstance) {
|
||
pillarDonutChartInstance.data.datasets[0].data = data.distribution;
|
||
pillarDonutChartInstance.update();
|
||
} else {
|
||
pillarDonutChartInstance = new Chart(ctxDonut.getContext('2d'), {
|
||
type: 'doughnut',
|
||
data: {
|
||
labels: ['محصول', 'سیستمسازی فروش', 'تدوین OKR'],
|
||
datasets: [{
|
||
data: data.distribution,
|
||
backgroundColor: ['#0A6847', '#0284C7', '#D97706'],
|
||
borderWidth: isDark ? 2 : 2,
|
||
borderColor: isDark ? '#1E293B' : '#FFFFFF',
|
||
hoverOffset: 4
|
||
}]
|
||
},
|
||
options: {
|
||
responsive: true,
|
||
maintainAspectRatio: false,
|
||
plugins: {
|
||
legend: {
|
||
position: 'bottom',
|
||
rtl: true,
|
||
labels: {
|
||
color: textColor,
|
||
boxWidth: 10,
|
||
font: { family: 'Vazirmatn', size: 10, weight: 'bold' }
|
||
}
|
||
},
|
||
tooltip: {
|
||
rtl: true,
|
||
bodyFont: { family: 'Vazirmatn' },
|
||
callbacks: {
|
||
label: function(context) {
|
||
return ` سهم ${context.label}: ${context.raw}٪ از کل توان`;
|
||
}
|
||
}
|
||
}
|
||
},
|
||
cutout: '72%'
|
||
}
|
||
});
|
||
}
|
||
}
|
||
}
|
||
|
||
function toggleJiraAnalyticsSection() {
|
||
const content = document.getElementById('jira-analytics-content');
|
||
const icon = document.getElementById('icon-toggle-analytics');
|
||
if (!content) return;
|
||
if (content.classList.contains('hidden')) {
|
||
content.classList.remove('hidden');
|
||
if (icon) icon.classList.remove('rotate-180');
|
||
} else {
|
||
content.classList.add('hidden');
|
||
if (icon) icon.classList.add('rotate-180');
|
||
}
|
||
}
|
||
|
||
</script>
|
||
|
||
<!-- JIRA MODAL: CREATE ISSUE -->
|
||
<div id="modal-jira-create" class="fixed inset-0 z-50 bg-black/60 backdrop-blur-sm hidden items-center justify-center p-4">
|
||
<div class="bg-[var(--bg-surface)] border border-[var(--border-subtle)] rounded-2xl max-w-lg w-full p-6 shadow-2xl space-y-4">
|
||
<div class="flex items-center justify-between border-b border-[var(--border-subtle)] pb-3">
|
||
<div class="flex items-center gap-2">
|
||
<svg class="w-5 h-5 text-[#0052CC]" viewBox="0 0 24 24" fill="currentColor"><path d="M11.53 2c0 2.4 1.97 4.35 4.4 4.35h1.78v1.74c0 2.4 1.97 4.35 4.4 4.35V2h-10.58zm-4.76 4.79c0 2.4 1.97 4.35 4.4 4.35h1.77v1.75c0 2.4 1.97 4.35 4.4 4.35V6.79H6.77zm-4.77 4.8c0 2.4 1.97 4.35 4.4 4.35h1.77v1.74c0 2.4 1.97 4.35 4.4 4.35V11.59H2z"/></svg>
|
||
<h3 class="text-sm font-bold text-[var(--text-main)]">ایجاد مسئله جدید در جیرا (Create Issue)</h3>
|
||
</div>
|
||
<button onclick="closeCreateIssueModal()" class="text-[var(--text-sub)] hover:text-[var(--text-main)] text-lg">×</button>
|
||
</div>
|
||
|
||
<div class="space-y-3 text-xs">
|
||
<div class="grid grid-cols-2 gap-3">
|
||
<div>
|
||
<label class="block font-bold text-[var(--text-sub)] mb-1">پروژه (Project):</label>
|
||
<select id="new-issue-project" class="w-full p-2 rounded-xl bg-[var(--bg-page)] border border-[var(--border-subtle)] text-[var(--text-main)]">
|
||
<option value="EK">EK - Ekeepa Core</option>
|
||
<option value="SELLER">SELLER - Seller Portal</option>
|
||
<option value="EXP">EXP - Experiences</option>
|
||
</select>
|
||
</div>
|
||
<div>
|
||
<label class="block font-bold text-[var(--text-sub)] mb-1">نوع مسئله (Issue Type):</label>
|
||
<select id="new-issue-type" class="w-full p-2 rounded-xl bg-[var(--bg-page)] border border-[var(--border-subtle)] text-[var(--text-main)]">
|
||
<option value="Story">📖 استوری محصول (Story)</option>
|
||
<option value="Task">📌 تسک اجرایی (Task)</option>
|
||
<option value="Bug">🐞 باگ و خطا (Bug)</option>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
|
||
<div>
|
||
<label class="block font-bold text-[var(--text-sub)] mb-1">خلاصه عنوان (Summary):</label>
|
||
<input type="text" id="new-issue-summary" placeholder="مثال: بهینهسازی فرم رزرو سانس در موبایل..." class="w-full p-2.5 rounded-xl bg-[var(--bg-page)] border border-[var(--border-subtle)] text-[var(--text-main)]">
|
||
</div>
|
||
|
||
<div>
|
||
<label class="block font-bold text-[var(--text-sub)] mb-1">توضیحات و معیارهای پذیرش (Description):</label>
|
||
<textarea id="new-issue-desc" rows="3" placeholder="توضیح کامل مسئله، فرضیه و معیارهای پذیرش (Acceptance Criteria)..." class="w-full p-2 rounded-xl bg-[var(--bg-page)] border border-[var(--border-subtle)] text-[var(--text-main)]"></textarea>
|
||
</div>
|
||
|
||
<div class="grid grid-cols-3 gap-3">
|
||
<div>
|
||
<label class="block font-bold text-[var(--text-sub)] mb-1">اولویت (Priority):</label>
|
||
<select id="new-issue-priority" class="w-full p-2 rounded-xl bg-[var(--bg-page)] border border-[var(--border-subtle)] text-[var(--text-main)]">
|
||
<option value="Highest">🔺 Highest</option>
|
||
<option value="High" selected>🔺 High</option>
|
||
<option value="Medium">➖ Medium</option>
|
||
<option value="Low">🔻 Low</option>
|
||
</select>
|
||
</div>
|
||
<div>
|
||
<label class="block font-bold text-[var(--text-sub)] mb-1">استوری پوینت:</label>
|
||
<input type="number" id="new-issue-points" value="3" min="1" max="21" class="w-full p-2 rounded-xl bg-[var(--bg-page)] border border-[var(--border-subtle)] text-[var(--text-main)]">
|
||
</div>
|
||
<div>
|
||
<label class="block font-bold text-[var(--text-sub)] mb-1">برچسب اپیک (Epic):</label>
|
||
<input type="text" id="new-issue-epic" value="رزرو سانس" class="w-full p-2 rounded-xl bg-[var(--bg-page)] border border-[var(--border-subtle)] text-[var(--text-main)]">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="pt-3 border-t border-[var(--border-subtle)] flex items-center justify-between">
|
||
<span class="text-[10px] text-[var(--text-sub)]">تسک بلافاصله در بورد درج و به جیرا ارسال خواهد شد.</span>
|
||
<div class="flex gap-2">
|
||
<button onclick="closeCreateIssueModal()" class="px-3 py-1.5 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] text-xs text-[var(--text-sub)]">انصراف</button>
|
||
<button onclick="submitCreateIssue()" class="px-4 py-1.5 rounded-xl bg-[#0A6847] hover:bg-emerald-700 text-xs font-bold text-white shadow-md">ثبت تسک</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- JIRA MODAL: SETTINGS & PAT -->
|
||
<div id="modal-jira-settings" class="fixed inset-0 z-50 bg-black/60 backdrop-blur-sm hidden items-center justify-center p-4">
|
||
<div class="bg-[var(--bg-surface)] border border-[var(--border-subtle)] rounded-2xl max-w-lg w-full p-6 shadow-2xl space-y-4">
|
||
<div class="flex items-center justify-between border-b border-[var(--border-subtle)] pb-3">
|
||
<div class="flex items-center gap-2">
|
||
<svg class="w-5 h-5 text-[#0052CC]" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>
|
||
<h3 class="text-sm font-bold text-[var(--text-main)]">تنظیمات اتصال به سرور جیرا (Jira Settings)</h3>
|
||
</div>
|
||
<button onclick="closeJiraSettingsModal()" class="text-[var(--text-sub)] hover:text-[var(--text-main)] text-lg">×</button>
|
||
</div>
|
||
|
||
<div class="space-y-3 text-xs">
|
||
<div>
|
||
<label class="block font-bold text-[var(--text-sub)] mb-1">آدرس سرور جیرا (Jira Base URL):</label>
|
||
<input type="text" id="jira-cfg-url" value="https://jira.ekeepa-dev.ir" class="w-full p-2.5 rounded-xl bg-[var(--bg-page)] border border-[var(--border-subtle)] text-[var(--text-main)] font-mono text-left" dir="ltr">
|
||
</div>
|
||
|
||
<div>
|
||
<label class="block font-bold text-[var(--text-sub)] mb-1">توکن دسترسی شخصی (Personal Access Token - PAT):</label>
|
||
<input type="password" id="jira-cfg-pat" placeholder="توکن جیرا را اینجا وارد کنید (مثال: MzUyOD...)" class="w-full p-2.5 rounded-xl bg-[var(--bg-page)] border border-[var(--border-subtle)] text-[var(--text-main)] font-mono text-left" dir="ltr">
|
||
<p class="text-[10px] text-[var(--text-sub)] mt-1">توکن صرفاً در localStorage مرورگر شما ذخیره شده و هیچ جا ارسال نمیشود.</p>
|
||
</div>
|
||
|
||
<div>
|
||
<label class="block font-bold text-[var(--text-sub)] mb-1">فیلتر کوئری JQL پیشفرض:</label>
|
||
<input type="text" id="jira-cfg-jql" value="project in (EK, SELLER) ORDER BY updated DESC" class="w-full p-2.5 rounded-xl bg-[var(--bg-page)] border border-[var(--border-subtle)] text-[var(--text-main)] font-mono text-left" dir="ltr">
|
||
</div>
|
||
|
||
<div id="jira-test-result" class="p-2.5 rounded-xl bg-emerald-500/10 border border-emerald-500/20 text-emerald-700 dark:text-emerald-400 text-xs hidden">
|
||
نتیجه تست اتصال
|
||
</div>
|
||
</div>
|
||
|
||
<div class="pt-3 border-t border-[var(--border-subtle)] flex items-center justify-between">
|
||
<button onclick="testJiraConnection()" class="px-3 py-1.5 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] text-xs text-[var(--text-main)] font-semibold hover:bg-[var(--bg-surface-hover)]">تست اتصال به سرور</button>
|
||
<div class="flex gap-2">
|
||
<button onclick="closeJiraSettingsModal()" class="px-3 py-1.5 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] text-xs text-[var(--text-sub)]">بستن</button>
|
||
<button onclick="saveJiraSettings()" class="px-4 py-1.5 rounded-xl bg-[#0A6847] hover:bg-emerald-700 text-xs font-bold text-white shadow-md">ذخیره تنظیمات</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- JIRA MODAL: ISSUE DETAIL -->
|
||
<div id="modal-jira-detail" class="fixed inset-0 z-50 bg-black/60 backdrop-blur-sm hidden items-center justify-center p-4">
|
||
<div class="bg-[var(--bg-surface)] border border-[var(--border-subtle)] rounded-2xl max-w-lg w-full p-6 shadow-2xl space-y-4">
|
||
<div class="flex items-center justify-between border-b border-[var(--border-subtle)] pb-3">
|
||
<div class="flex items-center gap-2">
|
||
<span id="detail-issue-type-badge"></span>
|
||
<span id="detail-issue-key" class="font-mono font-bold text-xs text-[#0052CC] dark:text-[#4C9AFF]"></span>
|
||
</div>
|
||
<button onclick="closeIssueDetailModal()" class="text-[var(--text-sub)] hover:text-[var(--text-main)] text-lg">×</button>
|
||
</div>
|
||
|
||
<div class="space-y-3">
|
||
<h3 id="detail-issue-summary" class="text-sm font-black text-[var(--text-main)] leading-relaxed"></h3>
|
||
<p id="detail-issue-desc" class="text-xs text-[var(--text-sub)] leading-relaxed bg-[var(--bg-page)] p-3 rounded-xl border border-[var(--border-subtle)]"></p>
|
||
|
||
<div class="grid grid-cols-2 gap-3 text-xs">
|
||
<div class="p-2.5 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)]">
|
||
<span class="text-[var(--text-sub)] block text-[10px]">وضعیت فعلی:</span>
|
||
<select id="detail-issue-status-select" onchange="changeIssueStatusFromModal(this.value)" class="mt-1 w-full p-1.5 rounded-lg bg-[var(--bg-page)] border border-[var(--border-subtle)] text-[var(--text-main)] font-bold text-xs">
|
||
<option value="To Do">برای انجام (To Do)</option>
|
||
<option value="In Progress">در حال انجام (In Progress)</option>
|
||
<option value="In Review">بررسی و تست (In Review)</option>
|
||
<option value="Done">تکمیل شده (Done)</option>
|
||
</select>
|
||
</div>
|
||
<div class="p-2.5 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)]">
|
||
<span class="text-[var(--text-sub)] block text-[10px]">مسئول تسک:</span>
|
||
<span class="font-bold text-[var(--text-main)] block mt-1">دارا (Product Lead Trainee)</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="pt-3 border-t border-[var(--border-subtle)] flex items-center justify-between">
|
||
<a id="detail-jira-link" href="#" target="_blank" class="text-xs text-[#0052CC] dark:text-[#4C9AFF] hover:underline flex items-center gap-1">
|
||
<span>مشاهده مستقیم در جیرا</span>
|
||
<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"/></svg>
|
||
</a>
|
||
<button onclick="closeIssueDetailModal()" class="px-4 py-1.5 rounded-xl bg-[var(--bg-surface-card)] border border-[var(--border-subtle)] text-xs text-[var(--text-main)]">بستن</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</body>
|
||
</html>
|