Import and export administration
Source-aligned technical reference (25 November 2026). Taken from application
mainat33dc846915ad. For installation use the published alpha instructions.
Import / Export administration
Section titled “Import / Export administration”The administrator portal presents Import / Export as a single tab after Backups. Import appears first, followed by Export. Existing Alpine managers remain independent within this view, with their original form controls and API calls.
Navigation and compatibility
Section titled “Navigation and compatibility”- The canonical URL is
/?view=admin§ion=import-export. - Old
?section=importsand?section=exportsURLs (including browser history) resolve to the combined tab and are replaced with the canonical URL. - Saved administrator tab state from older releases is normalized.
- Other administration tabs retain their original relative order.
Retained API contracts
Section titled “Retained API contracts”GET /api/admin/exports?components=...generates the same ZIP archive.POST /api/admin/imports/previewvalidates an archive before changes.POST /api/admin/imports/applyapplies only a reviewed, approved import.- Export component selection, archive-size limit, conflict checks, confirmation prompt, authorization rules and existing file formats are unchanged.
- This UI consolidation does not change the backend or database schema.
Verification
Section titled “Verification”The browser smoke test now checks:
- Exact navigation order and single combined tab in light and dark mode.
- Legacy imports/exports URLs and visible Import and Export headings.
- ZIP export download and reuse of that archive via import preview.
- Validation errors for invalid ZIP data and truncated ZIP headers.
- Clearing file selection disables validation and resets the preview.
- Responsive layout checks on desktop and mobile.
The existing tests/test_admin_export.py and tests/test_admin_import.py
continue to cover the archive format and import processing.
Run node --check static/js/portal.js, node --check tests/browser_smoke.cjs,
and the repository CI test/browser workflows. Browser and backend tests are
not claimed as passed until those checks have executed.
