Files
jobtrackingapp/docs/ui-modernisation/LETTER_RESTORE_DIALOG.md
T

10 lines
1.5 KiB
Markdown

# Cover-letter history restore confirmation
17 November 2026. Source `e8658b5d` on `codex/a3-ui-10`, baseline `f2fc49cc`.
Restore-discard confirmation uses existing live translation descriptors. No restore/cancel decision, busy guard, job/version/revision, text/design draft, endpoint, renderer, schema or storage behavior changed.
Two corrected EN/NB tests reproduced stale pending copy. Initial red used the tooltip key instead of the accessible version-number key; initial green reached a wrong expected endpoint in the new tests. Those setup failures are retained separately. Tests now assert the actual existing `/jobapplications/7/cover-letter/versions/1/restore` request with `expectedVersion:7`; application code was not changed for either assertion correction. Final **73 cases/two complete affected suites PASSED**, zero failures/skips. Non-incremental TypeScript, two-file lint, source diff and combined AST refresh19,339 nodes/47,487 edges passed. Source/native gzip receipts: `evidence/letter-restore-dialog/SOURCE_RECEIPTS.json`.
Cancellation retains both unsaved letter text and document subject; language switch adds no read/write, and explicit approval sends one original restore request. Synthetic JSDOM/API tests only, no real restoration, browser/device or physical PDF work. Existing accepted PDF evidence was not reopened. Prior Next build remains FAILED; final A3/European localisation/security/recovery/release acceptance remains open. Native failure-log bytes/whitespace are preserved. Rollback: revert this source commit; no migration.