feat: add data export/import feature#38
Merged
NexaFlowFrance merged 1 commit intoNexaFlowFrance:mainfrom Mar 8, 2026
Merged
Conversation
- Add GET /api/data/export: dumps all user data (budget, tasks, recipes, meal plans, shopping, appointments, schedule) as a versioned JSON file - Add POST /api/data/import: restores data from an export file inside a transaction; inserts are idempotent (ON CONFLICT DO NOTHING) - Import order respects FK constraints (family_members and recipes first) - Add Settings page with Export and Import UI cards - Register /settings route and add entry in sidebar navigation Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /api/data/export: dumps all user data (family members, tasks, recipes, meal plans, budget entries & limits, shopping items, appointments, schedule entries) as a versioned JSON filePOST /api/data/import: restores data from an export file inside a transaction; inserts are idempotent (ON CONFLICT DO NOTHING) so existing data is never overwrittenfamily_membersandrecipesfirst)/settings) with Export and Import UI cards/settingsroute and add entry in sidebar navigationUse cases
Export format
{ "version": "1.0", "exportedAt": "2026-03-08T12:00:00.000Z", "family_members": [...], "tasks": [...], "recipes": [...], "meal_plans": [...], "budget_entries": [...], "budget_limits": [...], "shopping_items": [...], "appointments": [...], "schedule_entries": [...] }Test plan
🤖 Generated with Claude Code