Skip to content

feat: add CSV export for donation data#4

Merged
jacuzzicoding merged 1 commit into
mainfrom
feature/csv-export
Apr 14, 2026
Merged

feat: add CSV export for donation data#4
jacuzzicoding merged 1 commit into
mainfrom
feature/csv-export

Conversation

@jacuzzicoding
Copy link
Copy Markdown
Owner

Changes

  • New CSV export utility (src/lib/csvExport.ts): Comprehensive CSV generation and download functionality that exports donation data in three sections:

    • Donation Activity Log (sorted by date)
    • Category Completion statistics (counts and percentages)
    • Monthly Activity breakdown by category
  • Export button in UI (src/components/ACCanvas.tsx): Added "Export CSV" button to the Museum Header with styled download icon, integrated with the export handler

Features

  • CSV format mirrors iOS AnimalCrossingGCN-Tracker ExportService
  • Proper CSV escaping for special characters
  • Automatic file naming with town name and export date
  • Includes metadata header (town, player, export timestamp)
  • Handles missing/undefined dates gracefully

Adds a Download button to the museum header that exports the active
town's donation data as a structured CSV file. Format mirrors the iOS
AnimalCrossingGCN-Tracker ExportService with three sections:
- Donation Activity Log (item, category, date donated)
- Category Completion (counts and % for fish/bugs/fossils/art)
- Monthly Activity (per-month breakdown by category)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jacuzzicoding jacuzzicoding merged commit a65a2f3 into main Apr 14, 2026
1 check failed
@jacuzzicoding jacuzzicoding deleted the feature/csv-export branch April 16, 2026 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant