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

1.7 KiB

Attachment download/preview completion context

17 November 2026. Source 0ed7a6cd on codex/a3-ui-10, based on 13769a19.

The shared blob reader checks the captured mounted job/session context before creating an object URL. Download/preview actions capture that context before the request; obsolete failures cannot notify, and current failures use current-language copy. Existing responseType, filenames, preview type, download expiry and current preview cleanup are retained. No server/file data is changed.

Fourteen corrected regressions FAILED on original 13769a19: download/preview success/failure after unmount, job change or session invalidation, plus current-language failures. The first red run also had test cleanup errors from old download expiry timers after URL mocks were restored. The fixture now clears only its recorded5000ms timers before restoring mocks. Original source was temporarily loaded from Git for the corrected red run and fixed source restored byte-for-byte in finally. Both raw runs retained; do not count the first as clean qualification.

Final69 cases/four suites PASSED; earlier69 overlaps. TypeScript, scoped ESLint, diff check and AST update PASSED (19,289 nodes/47,415 edges). Native/gzip/source evidence: evidence/attachment-blob/SOURCE_RECEIPTS.json.

Existing current PDF preview cases passed. Tests use synthetic blob data/mocked API/session, no real private download or provider access. Same-context competing previews, already-open preview on job change, upload/metadata completion and final integrated/browser/device/security/release acceptance remain separate. Prior Next build remains FAILED. Rollback: revert this source commit; no data migration.