19 lines
1.0 KiB
Markdown
19 lines
1.0 KiB
Markdown
# Phase 1: Import/Export
|
|
|
|
**Status:** ⬜ Not Started
|
|
**Parent plan:** [PLAN.md](./PLAN.md)
|
|
**Domain:** fullstack
|
|
|
|
## Tasks
|
|
- [ ] Task 1: Create `src/lib/server/services/exportService.ts` — export all data (apps, boards, sections, widgets, groups, settings) as JSON
|
|
- [ ] Task 2: Create `src/lib/server/services/importService.ts` — import JSON with conflict resolution (skip/overwrite)
|
|
- [ ] Task 3: Create `src/routes/api/admin/export/+server.ts` — GET endpoint, returns JSON file download
|
|
- [ ] Task 4: Create `src/routes/api/admin/import/+server.ts` — POST endpoint, accepts JSON upload
|
|
- [ ] Task 5: Update admin settings page — add Import/Export section with download button and file upload
|
|
- [ ] Task 6: Create `src/lib/components/admin/ImportExportPanel.svelte` — UI with export button, file picker, preview, and import button
|
|
- [ ] Task 7: Add Zod schema for validating import data structure
|
|
- [ ] Task 8: Add i18n translations for import/export strings (EN/RU)
|
|
|
|
## Handoff to Next Phase
|
|
<!-- Filled in after completion -->
|