Finish Schoolhouse programming submission flow
This commit is contained in:
@@ -31,6 +31,12 @@ nav a { color: var(--accent); text-decoration: none; }
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.notice-card { margin-bottom: 20px; }
|
||||
.success-card {
|
||||
border-color: #14532d;
|
||||
background: linear-gradient(180deg, rgba(20, 83, 45, 0.28), rgba(17, 24, 39, 0.92));
|
||||
}
|
||||
|
||||
.form-card { max-width: 760px; }
|
||||
.stack { display: grid; gap: 14px; }
|
||||
label { display: grid; gap: 8px; color: var(--muted); }
|
||||
|
||||
@@ -93,7 +93,11 @@ async function loadDashboard() {
|
||||
setText('sync-status', `Last sync: ${data.latest_sync.completed_at || 'unknown'} · ${data.latest_sync.assignment_count || 0} assignment rows`);
|
||||
}
|
||||
renderList('recent-assignments', data.recent_assignments || [], (item) => `<strong>${item.title || 'Untitled'}</strong><small>${item.course_name || ''}</small><small>Status: ${item.status || 'assigned'} · Grade: ${item.grade || '—'}</small>`);
|
||||
renderList('recent-submissions', data.recent_submissions || [], (item) => `<strong>${item.assignment_name || item.original_filename || 'Submission'}</strong><small>${item.class_name || ''}</small><small>Status: ${item.status || 'unknown'} · File: ${item.original_filename || '—'}</small>`);
|
||||
renderList('recent-submissions', data.recent_submissions || [], (item) => {
|
||||
const count = Number(item.file_count || (item.file_manifest_json || []).length || 1);
|
||||
const artifact = item.artifact_kind === 'source_bundle' ? 'Source bundle' : 'File';
|
||||
return `<strong>${item.assignment_name || item.original_filename || 'Submission'}</strong><small>${item.class_name || ''}</small><small>Status: ${item.status || 'unknown'} · ${artifact}: ${item.original_filename || '—'} · ${count} file${count === 1 ? '' : 's'}</small>`;
|
||||
});
|
||||
renderList('recent-recordings', data.recent_recordings || [], (item) => `<strong>${item.original_filename || 'Recording'}</strong><small>${item.session_date || ''}</small><small>Transcription: ${item.transcription_status || '—'} · Summary: ${item.summary_status || '—'}</small>`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user