fix(admin-web): implement debug-session JSON download, remove console.log

This commit is contained in:
saravanakumardb1 2026-03-21 23:13:58 -07:00
parent ead9457345
commit 29605da16d

View File

@ -155,8 +155,14 @@ export default function SessionDetailPage() {
};
const handleDownload = () => {
// TODO: Implement download of session data as JSON
console.log('Download session data');
if (!session) return;
const blob = new Blob([JSON.stringify(session, null, 2)], { type: 'application/json' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = `debug-session-${sessionId}.json`;
a.click();
URL.revokeObjectURL(url);
};
if (loading) {