feat: submitted column + bug fixes

This commit is contained in:
SethBurkart123
2025-06-06 12:21:46 +10:00
parent c202af9688
commit a009f40ac2
3 changed files with 31 additions and 10 deletions
+14 -2
View File
@@ -114,6 +114,7 @@ export function renderGrid(container: HTMLElement, data: any) {
'UPCOMING': [] as any[],
'DUE_SOON': [] as any[],
'OVERDUE': [] as any[],
'SUBMITTED': [] as any[],
'MARKS_RELEASED': [] as any[]
};
@@ -146,6 +147,12 @@ export function renderGrid(container: HTMLElement, data: any) {
className: 'column-overdue',
icon: '🚨'
},
{
key: 'SUBMITTED',
title: 'Submitted',
className: 'column-submitted',
icon: '📝'
},
{
key: 'MARKS_RELEASED',
title: 'Marked',
@@ -155,14 +162,19 @@ export function renderGrid(container: HTMLElement, data: any) {
];
columns.forEach(column => {
const assessmentList = statusGroups[column.key as keyof typeof statusGroups];
// Skip SUBMITTED column if it's empty
if (column.key === 'SUBMITTED' && assessmentList.length === 0) {
return;
}
const columnParentEl = document.createElement('div');
columnParentEl.className = 'kanban-column-parent';
const columnEl = document.createElement('div');
columnEl.className = `kanban-column ${column.className}`;
const assessmentList = statusGroups[column.key as keyof typeof statusGroups];
columnEl.innerHTML = /* html */`
<div class="column-header">
<div class="column-title">