mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 11:44:40 +00:00
feat: submitted column + bug fixes
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user