feat(app): export and import through @faunosteo/pdf — snapshot, archived branding and labels, browser rasterizer, imported archive kept in session, explicit rebase with messages; legacy PDF modules removed

This commit is contained in:
bchanot committed 2026-10-11 13:32:14 +02:00
1 parent 20dafc0b00
commit 9bd5173a9c
43 files changed
+1492 -1989

No files matched your search

+12 -8
View File
@@ -3,6 +3,9 @@ import { fr } from '@/i18n/fr'
import { en } from '@/i18n/en'
import { pickLocaleLabel } from '@/i18n/pickLocaleLabel'
// The pdf.* keys left the app dicts with Step 6: the engine owns them
// (@faunosteo/pdf defaultPdfLabels, parity tested there).
const REQUIRED = [
'severity.mild',
'severity.moderate',
@@ -11,14 +14,13 @@ const REQUIRED = [
'home.import.error_invalid_pdf',
'home.import.error_no_attachment',
'home.import.error_generic',
'pdf.section.zones',
'pdf.section.findings_prefix',
'pdf.section.free_findings',
'pdf.section.severity',
'pdf.section.comment',
'pdf.view.general',
'pdf.view.detail_prefix',
'pdf.empty',
'home.import.error_attachment_stripped',
'home.import.archive_ok',
'home.import.snapshot_reason.unsupported_envelope',
'home.import.snapshot_reason.schema',
'home.import.snapshot_reason.caps',
'home.import.snapshot_reason.integrity',
'home.import.snapshot_reason.sheet_mismatch',
'sheet.status.draft',
'sheet.loading',
'vertebra.range_note',
@@ -27,6 +29,8 @@ const REQUIRED = [
const PLACEHOLDERS: Record<string, string> = {
'home.import.error_incompatible_version': '{version}',
'home.import.migrated': '{count}',
'home.import.rebased': '{count}',
'home.import.snapshot_rejected': '{reason}',
'vertebra.extend_to': '{max}',
}