FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Export all tasks as CSV file 📊 · Issue #454 · anoopcodehack/DevBoard · GitHub

Export all tasks as CSV file 📊 #454

Description

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!! ✅

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL