Add "Export task as JSON" button in task modal 📤
File: client/src/components/Task/TaskModal.jsx
Power users want to export task data 💀
Maybe to paste into another tool fr!!
Fix: add export button in modal footer:
const handleExportJSON = () => {
const data = JSON.stringify({
title: task.title,
description: task.description,
status: task.status,
priority: task.priority,
tags: task.tags,
snippets: task.snippets,
createdAt: task.createdAt
}, null, 2)
navigator.clipboard.writeText(data)
setExported(true)
setTimeout(() => setExported(false), 2000)
}
{exported ? '✅ Copied!' : '📤 Export JSON'}
~12 lines! No backend needed 🎯
Add "Export task as JSON" button in task modal 📤
File: client/src/components/Task/TaskModal.jsx
Power users want to export task data 💀
Maybe to paste into another tool fr!!
Fix: add export button in modal footer:
const handleExportJSON = () => {
const data = JSON.stringify({
title: task.title,
description: task.description,
status: task.status,
priority: task.priority,
tags: task.tags,
snippets: task.snippets,
createdAt: task.createdAt
}, null, 2)
navigator.clipboard.writeText(data)
setExported(true)
setTimeout(() => setExported(false), 2000)
}
{exported ? '✅ Copied!' : '📤 Export JSON'}
~12 lines! No backend needed 🎯