wyuc db7f187106
feat: classroom export and import (ZIP) (#408) (#418)
* feat(export): add classroom ZIP manifest type definitions

* feat(i18n): add classroom export/import translation keys for all locales

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(export): add classroom ZIP utilities and unit tests

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(export): add useExportClassroom hook for ZIP export

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(import): add useImportClassroom hook for ZIP import

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(ui): add Export Classroom ZIP option to header dropdown

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(ui): add Import Classroom button to home page

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* test(export): add integration tests and fix lint issues

* fix(ui): improve import button placement and read appVersion from package.json

* chore: fix prettier formatting

* fix: address PR review feedback

- Read appVersion from process.env.npm_package_version instead of hardcoding
- Remove unused buildIdMap export and its tests
- Add forward-compat comment on ManifestAgent.voiceConfig
- Add file size warning for large ZIP imports
- Distinguish storage quota errors from parse errors in import
- Move poster check before first DB put to avoid redundant write
- Use CLASSROOM_ZIP_EXTENSION constant in export hook
- Add storageFull i18n key for all 4 locales

* fix: adapt to language→languageDirective rename from #412

* fix(ui): widen import button hover expand to prevent text truncation

* fix(ui): use grid 0fr→1fr for import button expand instead of fixed max-w

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 22:17:18 +08:00
..