Export all tasks as CSV file 📊
File: client/src/pages/Dashboard.jsx
No way to export board data to Excel 💀
Project managers always want this fr!!
Fix: add export CSV button in navbar:
const handleExportCSV = () => {
const headers = ['Title','Status','Priority','Tags','Created']
const rows = tasks.map(t => [
t.title,
t.status,
t.priority,
t.tags?.join(';') || '',
new Date(t.createdAt).toLocaleDateString()
])
const csv = [headers, ...rows]
.map(r => r.map(v => "${v}").join(','))
.join('\n')
const blob = new Blob([csv], { type: 'text/csv' })
const url = URL.createObjectURL(blob)
const a = document.createElement('a')
a.href = url
a.download = 'devboard-tasks.csv'
a.click()
URL.revokeObjectURL(url)
}
📊 Export CSV
~18 lines! No backend needed 🎯
No packages — native Blob API!! ✅
Export all tasks as CSV file 📊
File: client/src/pages/Dashboard.jsx
No way to export board data to Excel 💀
Project managers always want this fr!!
Fix: add export CSV button in navbar:
const handleExportCSV = () => {
const headers = ['Title','Status','Priority','Tags','Created']
const rows = tasks.map(t => [
t.title,
t.status,
t.priority,
t.tags?.join(';') || '',
new Date(t.createdAt).toLocaleDateString()
])
const csv = [headers, ...rows]
.map(r => r.map(v => "${v}").join(','))
.join('\n')
const blob = new Blob([csv], { type: 'text/csv' })
const url = URL.createObjectURL(blob)
const a = document.createElement('a')
a.href = url
a.download = 'devboard-tasks.csv'
a.click()
URL.revokeObjectURL(url)
}
📊 Export CSV
~18 lines! No backend needed 🎯
No packages — native Blob API!! ✅