This commit is contained in:
2026-09-18 03:56:32 +03:30
parent c461517b63
commit 1d2dae695e
9 changed files with 56853 additions and 41 deletions
@@ -28,6 +28,7 @@
--danger: #e53e3e; --danger: #e53e3e;
--warning: #dd6b20; --warning: #dd6b20;
--info: #3182ce; --info: #3182ce;
--column-bg: #edf2f7;
--shadow: --shadow:
0 4px 6px rgba(0, 0, 0, 0.08), 0 10px 20px rgba(26, 54, 93, 0.1); 0 4px 6px rgba(0, 0, 0, 0.08), 0 10px 20px rgba(26, 54, 93, 0.1);
--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06); --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
@@ -50,6 +51,7 @@
--text: #e2e8f0; --text: #e2e8f0;
--text-muted: #cbd5e0; --text-muted: #cbd5e0;
--text-light: #a0aec0; --text-light: #a0aec0;
--column-bg: #374151;
--border: #4a5568; --border: #4a5568;
--border-light: #374151; --border-light: #374151;
--shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.4); --shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.4);
@@ -2156,6 +2158,322 @@
opacity: 0.3; opacity: 0.3;
margin-bottom: 20px; margin-bottom: 20px;
} }
/* ═══════════════════════════════════════════════════
🎴 Kanban Columns & Cards (Release Boards)
═══════════════════════════════════════════════════ */
/* ── ستون‌ها ── */
.column {
border-radius: var(--radius);
min-width: 300px;
max-width: 300px;
max-height: calc(100% - 20px);
display: flex;
flex-direction: column;
box-shadow: var(--shadow-sm);
border: 1px solid var(--border);
transition: all 0.2s;
background: var(--column-bg);
}
.column-header {
padding: 12px 14px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--border);
background: linear-gradient(
to bottom,
rgba(255, 255, 255, 0.3),
transparent
);
border-radius: var(--radius) var(--radius) 0 0;
}
.column-title {
font-weight: 700;
font-size: 14px;
display: flex;
align-items: center;
gap: 8px;
flex: 1;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.column-count {
font-size: 11px;
padding: 2px 8px;
border-radius: 10px;
font-weight: 700;
background: rgba(0, 0, 0, 0.15);
color: inherit;
flex-shrink: 0;
}
.column-actions {
display: flex;
gap: 4px;
flex-shrink: 0;
}
.column-action-btn {
background: transparent;
border: none;
cursor: pointer;
color: inherit;
opacity: 0.7;
padding: 4px 6px;
border-radius: 4px;
font-size: 14px;
transition: all 0.2s;
}
.column-action-btn:hover {
background: rgba(0, 0, 0, 0.1);
opacity: 1;
}
.column-body {
padding: 10px;
overflow-y: auto;
flex: 1;
min-height: 60px;
}
.column-body::-webkit-scrollbar {
width: 6px;
}
.column-body::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.15);
border-radius: 3px;
}
.column-footer {
padding: 8px;
border-top: 1px solid var(--border);
}
/* ── دکمه افزودن کارت ── */
.add-card-btn {
width: 100%;
background: transparent;
border: 1px dashed var(--border);
color: var(--text-muted);
padding: 8px;
border-radius: var(--radius-sm);
cursor: pointer;
font-family: inherit;
font-size: 13px;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
transition: all 0.2s;
}
.add-card-btn:hover {
background: var(--card-bg);
border-color: var(--accent);
color: var(--accent-dark);
}
/* ── دکمه افزودن ستون ── */
.add-column-btn {
background: rgba(255, 255, 255, 0.5);
border: 2px dashed var(--border);
border-radius: var(--radius);
min-width: 280px;
min-height: 100px;
cursor: pointer;
color: var(--text-muted);
font-family: inherit;
font-size: 14px;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: all 0.2s;
flex-shrink: 0;
}
[data-theme="dark"] .add-column-btn {
background: rgba(255, 255, 255, 0.05);
}
.add-column-btn:hover {
background: var(--card-bg);
border-color: var(--accent);
color: var(--accent-dark);
}
/* ── کارت‌ها ── */
.card {
background: var(--card-bg);
border-radius: 8px;
padding: 12px;
margin-bottom: 8px;
box-shadow: var(--shadow-sm);
cursor: pointer;
border: 1px solid var(--border);
transition: all 0.15s;
position: relative;
}
.card:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
transform: translateY(-1px);
border-color: var(--accent);
}
.card:active {
cursor: grabbing;
}
/* ── تگ‌های کارت ── */
.card-tags {
display: flex;
flex-wrap: wrap;
gap: 4px;
margin-bottom: 8px;
}
.card-tag {
font-size: 10px;
padding: 2px 8px;
border-radius: 10px;
font-weight: 600;
color: white;
display: inline-block;
}
/* ── عنوان و توضیحات کارت ── */
.card-title {
font-weight: 700;
font-size: 13px;
margin-bottom: 6px;
line-height: 1.5;
color: var(--text);
}
.card-desc {
font-size: 12px;
margin-bottom: 8px;
line-height: 1.6;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
opacity: 0.85;
color: var(--text-muted);
}
/* ── متادیتای کارت ── */
.card-meta {
display: flex;
flex-wrap: wrap;
gap: 6px;
font-size: 11px;
align-items: center;
opacity: 0.9;
margin-top: 6px;
}
.card-meta-item {
display: inline-flex;
align-items: center;
gap: 3px;
background: rgba(0, 0, 0, 0.08);
padding: 2px 6px;
border-radius: 4px;
color: var(--text-muted);
}
[data-theme="dark"] .card-meta-item {
background: rgba(255, 255, 255, 0.15);
color: var(--text);
}
.card-meta-item.overdue {
background: #fed7d7;
color: var(--danger);
font-weight: 600;
opacity: 1;
}
.card-meta-item.soon {
background: #fef5e7;
color: var(--warning);
font-weight: 600;
opacity: 1;
}
[data-theme="dark"] .card-meta-item.overdue {
background: rgba(229, 62, 62, 0.3);
color: #feb2b2;
}
[data-theme="dark"] .card-meta-item.soon {
background: rgba(221, 107, 32, 0.3);
color: #fbd38d;
}
/* ── نوار پیشرفت چک‌لیست ── */
.card-checklist-progress {
width: 100%;
height: 4px;
background: rgba(0, 0, 0, 0.1);
border-radius: 2px;
overflow: hidden;
margin-top: 8px;
}
[data-theme="dark"] .card-checklist-progress {
background: rgba(255, 255, 255, 0.15);
}
.card-checklist-bar {
height: 100%;
background: linear-gradient(90deg, var(--success), #48bb78);
transition: width 0.3s;
}
/* ── چیپ‌های تگ (برای مودال ویرایش) ── */
.tag-chip {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 10px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
color: white;
transition: all 0.15s;
border: 2px solid transparent;
user-select: none;
}
.tag-chip.selected {
border-color: var(--primary);
transform: scale(1.05);
box-shadow:
0 0 0 2px var(--card-bg),
0 0 0 4px var(--primary);
}
.tag-chip:hover {
opacity: 0.85;
}
/* ── حالت خالی ستون ── */
.rb-board-area .empty-state {
text-align: center;
padding: 20px 10px;
color: var(--text-muted);
font-size: 12px;
}
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 8px; width: 8px;
@@ -7582,13 +7900,14 @@
wrapper.style.display = "flex"; wrapper.style.display = "flex";
boardArea.style.background = board.backgroundColor || ""; boardArea.style.background = board.backgroundColor || "";
// ✅ رندر ستون‌ها + دکمه افزودن ستون
wrapper.innerHTML = wrapper.innerHTML =
board.columns.map((col) => this.renderColumn(col)).join("") + board.columns.map((col) => this.renderColumn(col)).join("") +
` `
<button class="add-column-btn" onclick="ReleaseBoardsManager.openNewColumnModal()" style="min-width:280px;min-height:100px;"> <button class="add-column-btn" onclick="ReleaseBoardsManager.openNewColumnModal()">
➕ افزودن ستون جدید ➕ افزودن ستون جدید
</button> </button>
`; `;
}, },
renderColumn(col) { renderColumn(col) {
@@ -7599,34 +7918,34 @@
if (col.textColor) style.push(`color:${col.textColor};`); if (col.textColor) style.push(`color:${col.textColor};`);
return ` return `
<div class="column" data-column-id="${col.id}" style="${style.join("")}"> <div class="column" data-column-id="${col.id}" style="${style.join(" ")}">
<div class="column-header"> <div class="column-header">
<div class="column-title"> <div class="column-title">
<span>${this.escapeHtml(col.title)}</span> <span>${this.escapeHtml(col.title)}</span>
<span class="column-count">${cardCount}</span> <span class="column-count">${cardCount}</span>
</div>
<div class="column-actions">
<button class="column-action-btn" onclick="ReleaseBoardsManager.openEditColumnModal('${col.id}')" title="ویرایش">✏️</button>
<button class="column-action-btn" onclick="ReleaseBoardsManager.deleteColumn('${col.id}')" title="حذف">🗑️</button>
</div>
</div> </div>
<div class="column-body" data-column-id="${col.id}"> <div class="column-actions">
${ <button class="column-action-btn" onclick="ReleaseBoardsManager.openEditColumnModal('${col.id}')" title="ویرایش">✏️</button>
col.cards.length === 0 <button class="column-action-btn" onclick="ReleaseBoardsManager.deleteColumn('${col.id}')" title="حذف">🗑️</button>
? `
<div class="empty-state" style="padding:20px 10px;">
<div style="font-size:30px;opacity:0.3;">📭</div>
<div style="font-size:11px;margin-top:6px;">کارتی وجود ندارد</div>
</div>
`
: col.cards.map((card) => this.renderCard(card)).join("")
}
</div>
<div class="column-footer">
<button class="add-card-btn" onclick="ReleaseBoardsManager.openNewCardModal('${col.id}')">➕ افزودن کارت</button>
</div> </div>
</div> </div>
`; <div class="column-body" data-column-id="${col.id}">
${
col.cards.length === 0
? `
<div class="empty-state">
<div style="font-size:30px;opacity:0.3;">📭</div>
<div style="font-size:11px;margin-top:6px;">کارتی وجود ندارد</div>
</div>
`
: col.cards.map((card) => this.renderCard(card)).join("")
}
</div>
<div class="column-footer">
<button class="add-card-btn" onclick="ReleaseBoardsManager.openNewCardModal('${col.id}')">➕ افزودن کارت</button>
</div>
</div>
`;
}, },
renderCard(card) { renderCard(card) {
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+5 -1
View File
@@ -1 +1,5 @@
- پس از هر تغییر مهم، مثلا ثبت تغییرات، افزودن پروژه ها، درج وابستگی، ویرایش و یا پاکسازی، یا بازیابی فایل، اطلاعات باید بروزرسانی شوند که این اتفاق نمی افتد. این موارد رو بررسی کن و پروژه رو با رفع این مشکل بروزرسانی کن سپس کد کامل پروژه رو ارائه بده ... آخرین نسخه تایید شده
- در گروه بردها از ابزارها یک گزینه بنام "مدیریت تگ ها" اضافه کن و در صورت انتخاب کاربر مودال مدیریت تگ ها را نمایش بده.
- قابلیت فیلتر کارت‌ها بر اساس تگ در مودال بردها اضافه شود.
- قابلیت Drag & Drop ستونها و کارت‌ها بین ستون‌ها پیاده‌سازی شود.
- قابلیت جستجوی کارت‌ها در برد فعال اضافه شود.
File diff suppressed because it is too large Load Diff
+2801 -11
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff