diff --git a/docs/ui-modernisation/ATTACHMENT_PREVIEW_DOWNLOAD.md b/docs/ui-modernisation/ATTACHMENT_PREVIEW_DOWNLOAD.md
new file mode 100644
index 00000000..4bd448bd
--- /dev/null
+++ b/docs/ui-modernisation/ATTACHMENT_PREVIEW_DOWNLOAD.md
@@ -0,0 +1,11 @@
+# Download the actual previewed attachment
+
+17 November 2026. Source `419fd49569b07f545b0d420f954047f564df7a0c`, branch `codex/a3-ui-10`, baseline `3623d1b5`.
+
+The preview dialog reconstructed the attachment with ID0 for Download, requesting `/attachments/download/0`. Retain the previewed attachment ID alongside its existing URL/type/name and pass that ID to the unchanged download handler. No endpoint, session/lifetime guard, blob handling, filename, renderer or storage contract changes.
+
+Both original EN/NB regressions FAILED with the wrong download ID. Final **103 cases/four complete affected suites PASSED**, zero failures/skips; non-incremental TypeScript, two-file lint, diff check and AST update PASSED (19,324 nodes/47,465 edges). Existing preview request ordering and job/session/unmount checks run in the same package. Counts overlap preceding attachment/dialog packages and are not cumulative full regression.
+
+Source/native/gzip bindings: `evidence/attachment-preview-download/SOURCE_RECEIPTS.json`. Blob and anchor clicks are mocked synthetic JSDOM checks; no real files, live API/provider, browser/device or physical PDF qualification. The prior Next build remains FAILED and final A3/security/release gates stay open. Rollback: revert this source commit; no migration.
+
+Follow-up investigation reproduced two separate same-application reload ordering failures after successive renames. Those tests are outside this source/evidence snapshot and need their own fix and verification; metadata write ordering remains unqualified.
diff --git a/docs/ui-modernisation/evidence/attachment-preview-download/SOURCE_RECEIPTS.json b/docs/ui-modernisation/evidence/attachment-preview-download/SOURCE_RECEIPTS.json
new file mode 100644
index 00000000..030206c0
--- /dev/null
+++ b/docs/ui-modernisation/evidence/attachment-preview-download/SOURCE_RECEIPTS.json
@@ -0,0 +1,63 @@
+{
+ "sourceCommit": "419fd49569b07f545b0d420f954047f564df7a0c",
+ "sourcesLfSha256": {
+ "job-tracker-ui/src/components/Attachments.tsx": "4af6e607a79f9749ff3b41a30ab3d43fcd25c78075d6caee2f034f5ecea71c9e",
+ "job-tracker-ui/src/attachment-action-lifetime.test.tsx": "11018367cf0c8bf85ddcb0ff9aaa7893f798db7cd21a8bfa773f36becc268cbf",
+ "job-tracker-ui/src/attachments.test.tsx": "20b023eedce62a660149c8436426bae0c5d2b2410b318069ab7f798fca6bc51b",
+ "job-tracker-ui/src/file-picker-activation.test.tsx": "accb87f94a7b36373eec6583a391a17ede7e7779cf18d81d4a86b43e0bd6afbe",
+ "job-tracker-ui/src/dialog-text.test.tsx": "60db06fb84238d356c6f7be657f6dcf0dc47c0b51cc5e89d001d6f9024fe44fe"
+ },
+ "evidenceLfSha256": {
+ "red.json": "64ea05652ff7c3b303db5ac7eed43c7fc017e410a2a0a28d4c293c14336bb32e",
+ "red.txt": "048e1da13fb9c542ca882f517bb34b2ab7bbd9ee57115bda5f9a5321056d8702",
+ "green.json": "725434427fb475fa01ef25bed01da464714c1756be5ed0fb7600ce6447a2a95f",
+ "green.txt": "187dcf1dd08deb262cd9cbba20d802437e98f62d167b49bf78fc76b5723d725c",
+ "typecheck.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+ "lint.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+ "graph.txt": "a2bfd9d6649fbd08095359780f5e146f2437a8cad6cb189fe5c33e73e0fbfc34"
+ },
+ "nativeReceipts": [
+ {
+ "path": "red.json",
+ "gzipPath": "red.json.gz",
+ "rawSha256": "64ea05652ff7c3b303db5ac7eed43c7fc017e410a2a0a28d4c293c14336bb32e",
+ "gzipSha256": "a8448345431f3aeebca29acac46ea6b37c2900f3a9a9b21d11efd0676c49c740"
+ },
+ {
+ "path": "red.txt",
+ "gzipPath": "red.txt.gz",
+ "rawSha256": "a55b5e4d1e874a0af67dd56f714220259f58d221a1459337bcadfa1a01a80e36",
+ "gzipSha256": "1aa9c1d524f4cddb97afb99f071b8f1620f6393ea209ba10bd33f0cc083b3448"
+ },
+ {
+ "path": "green.json",
+ "gzipPath": "green.json.gz",
+ "rawSha256": "725434427fb475fa01ef25bed01da464714c1756be5ed0fb7600ce6447a2a95f",
+ "gzipSha256": "96b27bce4d52c0b2c7d198cd878d1a54c7cf010b293121961aabb8df6e3119c8"
+ },
+ {
+ "path": "green.txt",
+ "gzipPath": "green.txt.gz",
+ "rawSha256": "e46b198a3ef5a1ae2a3fbbf98eecc382ea5f0c0456ba3b662cc3e38854a8dd8f",
+ "gzipSha256": "2cf7ac38a375f27eeaf2af939c10cd308203467b33ff82ce35f8e1369535421a"
+ },
+ {
+ "path": "typecheck.txt",
+ "gzipPath": "typecheck.txt.gz",
+ "rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+ "gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e"
+ },
+ {
+ "path": "lint.txt",
+ "gzipPath": "lint.txt.gz",
+ "rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+ "gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e"
+ },
+ {
+ "path": "graph.txt",
+ "gzipPath": "graph.txt.gz",
+ "rawSha256": "85cdd3e8b70066329b7ce1de6caceb277be685e1e31e45f4eaeb444b45ceb2cd",
+ "gzipSha256": "234111d71c6bd480736d544dbe064a0feddc573c62b7278041300e592b4463cf"
+ }
+ ]
+}
diff --git a/docs/ui-modernisation/evidence/attachment-preview-download/graph.txt b/docs/ui-modernisation/evidence/attachment-preview-download/graph.txt
new file mode 100644
index 00000000..1ec2fa0b
--- /dev/null
+++ b/docs/ui-modernisation/evidence/attachment-preview-download/graph.txt
@@ -0,0 +1,18 @@
+Re-extracting code files in . (no LLM needed)...
+[graphify watch] 737 file(s) not classified (no supported extension or shebang), skipped: .dockerignore, .env.example, .git, .gitattributes, .gitignore, 1440-en-dark-converted.gz (+731 more)
+ AST cache: 2620/3071 files served from cache (85%); 451 to extract
+ AST extraction: 100/451 uncached files (22%) [16 workers]
+ AST extraction: 200/451 uncached files (44%) [16 workers]
+ AST extraction: 300/451 uncached files (66%) [16 workers]
+ AST extraction: 400/451 uncached files (88%) [16 workers]
+ AST extraction: 451/451 uncached files (100%) [16 workers]
+ warning: 8 .sql file(s) contributed nothing to the graph because a dependency is missing: tree_sitter_sql not installed. Install it with: pip install "graphifyy[sql]" (#1745)
+ warning: 145 code file(s) yielded no symbols (0.15 MB) — a data file, or source this extractor models no symbols for: JobTrackerApi.Tests/PdfBrowserStub/Program.cs, JobTrackerApi/Program.cs, JobTrackerApi/Properties/AssemblyInfo.cs, browser-extension/tests/capture-url.test.mjs, docs/audits/2026-09-07/validation/evidence/b05-excel-probe.ps1 (+140 more)
+[graphify watch] community set changed since labeling (0 saved labels, 1196 communities now; renamed 131 community(ies) by their hub). Run `graphify label` to refresh names with the LLM.
+Graph has 19324 nodes (above 5000 limit). Building aggregated community view...
+graph.html written (aggregated: 1196 community nodes, 3036 cross-community edges)
+Tip: run with --obsidian for full node-level detail.
+[graphify watch] Rebuilt: 19324 nodes, 47465 edges, 1196 communities
+[graphify watch] graph.json, graph.html and GRAPH_REPORT.md updated in graphify-out
+Code graph updated. For doc/paper/image changes run /graphify --update in your AI assistant.
+Tip: set GEMINI_API_KEY or GOOGLE_API_KEY to use Gemini for semantic extraction.
diff --git a/docs/ui-modernisation/evidence/attachment-preview-download/graph.txt.gz b/docs/ui-modernisation/evidence/attachment-preview-download/graph.txt.gz
new file mode 100644
index 00000000..c0cb7ada
Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-preview-download/graph.txt.gz differ
diff --git a/docs/ui-modernisation/evidence/attachment-preview-download/green.json b/docs/ui-modernisation/evidence/attachment-preview-download/green.json
new file mode 100644
index 00000000..83448d48
--- /dev/null
+++ b/docs/ui-modernisation/evidence/attachment-preview-download/green.json
@@ -0,0 +1 @@
+{"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":4,"numPassedTests":103,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":4,"numTotalTests":103,"openHandles":[],"snapshot":{"added":0,"didUpdate":false,"failure":false,"filesAdded":0,"filesRemoved":0,"filesRemovedList":[],"filesUnmatched":0,"filesUpdated":0,"matched":0,"total":0,"unchecked":0,"uncheckedKeysByFile":[],"unmatched":0,"updated":0},"startTime":1794925255569,"success":true,"testResults":[{"assertionResults":[{"ancestorTitles":[],"duration":332,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"preview download keeps the attachment identity and filename (en)","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794925258755,"status":"passed","title":"preview download keeps the attachment identity and filename (en)"},{"ancestorTitles":[],"duration":121,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"preview download keeps the attachment identity and filename (nb)","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794925259087,"status":"passed","title":"preview download keeps the attachment identity and filename (nb)"},{"ancestorTitles":[],"duration":71,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old attachment read resolve cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794925259208,"status":"passed","title":"old attachment read resolve cannot replace the next application"},{"ancestorTitles":[],"duration":76,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old attachment read reject cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794925259279,"status":"passed","title":"old attachment read reject cannot replace the next application"},{"ancestorTitles":[],"duration":235,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-rename read resolve cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794925259355,"status":"passed","title":"old post-rename read resolve cannot replace the next application"},{"ancestorTitles":[],"duration":233,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-rename read reject cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794925259591,"status":"passed","title":"old post-rename read reject cannot replace the next application"},{"ancestorTitles":[],"duration":230,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-delete read resolve cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794925259824,"status":"passed","title":"old post-delete read resolve cannot replace the next application"},{"ancestorTitles":[],"duration":199,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-delete read reject cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794925260054,"status":"passed","title":"old post-delete read reject cannot replace the next application"},{"ancestorTitles":[],"duration":113,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after unmount cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794925260254,"status":"passed","title":"attachment rename decision after unmount cannot mutate the previous context"},{"ancestorTitles":[],"duration":164,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after job change cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794925260367,"status":"passed","title":"attachment rename decision after job change cannot mutate the previous context"},{"ancestorTitles":[],"duration":77,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after session cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794925260532,"status":"passed","title":"attachment rename decision after session cannot mutate the previous context"},{"ancestorTitles":[],"duration":82,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after unmount cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794925260609,"status":"passed","title":"attachment delete decision after unmount cannot mutate the previous context"},{"ancestorTitles":[],"duration":101,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after job change cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794925260691,"status":"passed","title":"attachment delete decision after job change cannot mutate the previous context"},{"ancestorTitles":[],"duration":79,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after session cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794925260792,"status":"passed","title":"attachment delete decision after session cannot mutate the previous context"},{"ancestorTitles":[],"duration":232,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename delayed resolve uses current language","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794925260871,"status":"passed","title":"attachment rename delayed resolve uses current language"},{"ancestorTitles":[],"duration":212,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename delayed reject uses current language","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794925261103,"status":"passed","title":"attachment rename delayed reject uses current language"},{"ancestorTitles":[],"duration":231,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete delayed resolve uses current language","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794925261315,"status":"passed","title":"attachment delete delayed resolve uses current language"},{"ancestorTitles":[],"duration":201,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete delayed reject uses current language","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794925261546,"status":"passed","title":"attachment delete delayed reject uses current language"},{"ancestorTitles":[],"duration":203,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after unmount / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925261747,"status":"passed","title":"late attachment rename after unmount / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":191,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after unmount / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925261950,"status":"passed","title":"late attachment rename after unmount / reject cannot reload or notify"},{"ancestorTitles":[],"duration":248,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after job change / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925262141,"status":"passed","title":"late attachment rename after job change / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":233,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after job change / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925262389,"status":"passed","title":"late attachment rename after job change / reject cannot reload or notify"},{"ancestorTitles":[],"duration":176,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after unmount / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925262622,"status":"passed","title":"late attachment delete after unmount / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":172,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after unmount / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925262798,"status":"passed","title":"late attachment delete after unmount / reject cannot reload or notify"},{"ancestorTitles":[],"duration":232,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after job change / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925262970,"status":"passed","title":"late attachment delete after job change / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":202,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after job change / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925263202,"status":"passed","title":"late attachment delete after job change / reject cannot reload or notify"},{"ancestorTitles":[],"duration":58,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after unmount / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925263405,"status":"passed","title":"late attachment Download after unmount / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":68,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after unmount / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925263463,"status":"passed","title":"late attachment Download after unmount / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":101,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after job change / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925263531,"status":"passed","title":"late attachment Download after job change / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":88,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after job change / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925263632,"status":"passed","title":"late attachment Download after job change / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":40,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after session / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925263720,"status":"passed","title":"late attachment Download after session / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":47,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after session / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925263760,"status":"passed","title":"late attachment Download after session / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":61,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after unmount / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925263808,"status":"passed","title":"late attachment Preview after unmount / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":65,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after unmount / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925263869,"status":"passed","title":"late attachment Preview after unmount / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":129,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after job change / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925263934,"status":"passed","title":"late attachment Preview after job change / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":105,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after job change / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925264063,"status":"passed","title":"late attachment Preview after job change / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":62,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after session / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925264168,"status":"passed","title":"late attachment Preview after session / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":57,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after session / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925264230,"status":"passed","title":"late attachment Preview after session / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":114,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"delayed attachment Download failure uses the current locale","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794925264287,"status":"passed","title":"delayed attachment Download failure uses the current locale"},{"ancestorTitles":[],"duration":92,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"delayed attachment Preview failure uses the current locale","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794925264401,"status":"passed","title":"delayed attachment Preview failure uses the current locale"},{"ancestorTitles":[],"duration":75,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment upload after unmount / resolve has no stale completion","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925264494,"status":"passed","title":"late attachment upload after unmount / resolve has no stale completion"},{"ancestorTitles":[],"duration":37,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment upload after unmount / reject has no stale completion","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925264569,"status":"passed","title":"late attachment upload after unmount / reject has no stale completion"},{"ancestorTitles":[],"duration":73,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment upload after job change / resolve has no stale completion","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925264606,"status":"passed","title":"late attachment upload after job change / resolve has no stale completion"},{"ancestorTitles":[],"duration":62,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment upload after job change / reject has no stale completion","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925264679,"status":"passed","title":"late attachment upload after job change / reject has no stale completion"},{"ancestorTitles":[],"duration":44,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment upload after session / resolve has no stale completion","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925264741,"status":"passed","title":"late attachment upload after session / resolve has no stale completion"},{"ancestorTitles":[],"duration":63,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment upload after session / reject has no stale completion","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925264785,"status":"passed","title":"late attachment upload after session / reject has no stale completion"},{"ancestorTitles":[],"duration":76,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment metadata after unmount / resolve has no stale completion","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925264848,"status":"passed","title":"late attachment metadata after unmount / resolve has no stale completion"},{"ancestorTitles":[],"duration":78,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment metadata after unmount / reject has no stale completion","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925264924,"status":"passed","title":"late attachment metadata after unmount / reject has no stale completion"},{"ancestorTitles":[],"duration":122,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment metadata after job change / resolve has no stale completion","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925265002,"status":"passed","title":"late attachment metadata after job change / resolve has no stale completion"},{"ancestorTitles":[],"duration":121,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment metadata after job change / reject has no stale completion","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925265124,"status":"passed","title":"late attachment metadata after job change / reject has no stale completion"},{"ancestorTitles":[],"duration":80,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment metadata after session / resolve has no stale completion","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925265245,"status":"passed","title":"late attachment metadata after session / resolve has no stale completion"},{"ancestorTitles":[],"duration":78,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment metadata after session / reject has no stale completion","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925265325,"status":"passed","title":"late attachment metadata after session / reject has no stale completion"},{"ancestorTitles":[],"duration":145,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"delayed attachment upload / resolve uses current-language mutation feedback","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794925265403,"status":"passed","title":"delayed attachment upload / resolve uses current-language mutation feedback"},{"ancestorTitles":[],"duration":87,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"delayed attachment upload / reject uses current-language mutation feedback","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794925265548,"status":"passed","title":"delayed attachment upload / reject uses current-language mutation feedback"},{"ancestorTitles":[],"duration":78,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"delayed attachment metadata / resolve uses current-language mutation feedback","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794925265635,"status":"passed","title":"delayed attachment metadata / resolve uses current-language mutation feedback"},{"ancestorTitles":[],"duration":62,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"delayed attachment metadata / reject uses current-language mutation feedback","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794925265713,"status":"passed","title":"delayed attachment metadata / reject uses current-language mutation feedback"},{"ancestorTitles":[],"duration":183,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old upload resolve cannot clear a new application upload busy state","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"startAt":1794925265775,"status":"passed","title":"old upload resolve cannot clear a new application upload busy state"},{"ancestorTitles":[],"duration":232,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old upload reject cannot clear a new application upload busy state","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"startAt":1794925265958,"status":"passed","title":"old upload reject cannot clear a new application upload busy state"},{"ancestorTitles":[],"duration":128,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"switching application clears old attachment actions while the next list is pending","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794925266190,"status":"passed","title":"switching application clears old attachment actions while the next list is pending"},{"ancestorTitles":[],"duration":399,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"switching application closes and releases its already-open attachment preview","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794925266318,"status":"passed","title":"switching application closes and releases its already-open attachment preview"},{"ancestorTitles":[],"duration":105,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"older preview resolve cannot replace or notify over the latest requested file","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794925266717,"status":"passed","title":"older preview resolve cannot replace or notify over the latest requested file"},{"ancestorTitles":[],"duration":142,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"older preview reject cannot replace or notify over the latest requested file","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794925266822,"status":"passed","title":"older preview reject cannot replace or notify over the latest requested file"}],"endTime":1794925266966,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx","startTime":1794925256353,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":74,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment read uses en to nb failure copy without another read","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794925267664,"status":"passed","title":"pending attachment read uses en to nb failure copy without another read"},{"ancestorTitles":[],"duration":45,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment read uses nb to en failure copy without another read","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794925267738,"status":"passed","title":"pending attachment read uses nb to en failure copy without another read"},{"ancestorTitles":[],"duration":415,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment rename follows en to nb without changing file data","invocations":1,"location":null,"numPassingAsserts":13,"retryReasons":[],"startAt":1794925267783,"status":"passed","title":"pending attachment rename follows en to nb without changing file data"},{"ancestorTitles":[],"duration":402,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment rename follows nb to en without changing file data","invocations":1,"location":null,"numPassingAsserts":13,"retryReasons":[],"startAt":1794925268198,"status":"passed","title":"pending attachment rename follows nb to en without changing file data"},{"ancestorTitles":[],"duration":369,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment delete follows en to nb without changing file data","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"startAt":1794925268601,"status":"passed","title":"pending attachment delete follows en to nb without changing file data"},{"ancestorTitles":[],"duration":385,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment delete follows nb to en without changing file data","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"startAt":1794925268971,"status":"passed","title":"pending attachment delete follows nb to en without changing file data"},{"ancestorTitles":[],"duration":60,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment size follows the UI locale (en)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794925269357,"status":"passed","title":"attachment size follows the UI locale (en)"},{"ancestorTitles":[],"duration":46,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment size follows the UI locale (nb)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794925269417,"status":"passed","title":"attachment size follows the UI locale (nb)"},{"ancestorTitles":[],"duration":124,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"PDF preview identifies the document in en","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794925269464,"status":"passed","title":"PDF preview identifies the document in en"},{"ancestorTitles":[],"duration":139,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"PDF preview identifies the document in nb","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794925269588,"status":"passed","title":"PDF preview identifies the document in nb"},{"ancestorTitles":[],"duration":45,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachments empty state renders drag and drop guidance","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794925269727,"status":"passed","title":"attachments empty state renders drag and drop guidance"},{"ancestorTitles":[],"duration":232,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachments metadata controls update purpose and ai usage","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794925269772,"status":"passed","title":"attachments metadata controls update purpose and ai usage"},{"ancestorTitles":[],"duration":61,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment failures remain explicit and retry restores the real empty state","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794925270004,"status":"passed","title":"attachment failures remain explicit and retry restores the real empty state"}],"endTime":1794925270066,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachments.test.tsx","startTime":1794925266975,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":325,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending confirm resolves metadata from en to nb and settles once","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"startAt":1794925270721,"status":"passed","title":"pending confirm resolves metadata from en to nb and settles once"},{"ancestorTitles":[],"duration":290,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending confirm resolves metadata from nb to en and settles once","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"startAt":1794925271046,"status":"passed","title":"pending confirm resolves metadata from nb to en and settles once"},{"ancestorTitles":[],"duration":324,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending prompt resolves metadata from en to nb and settles once","invocations":1,"location":null,"numPassingAsserts":18,"retryReasons":[],"startAt":1794925271336,"status":"passed","title":"pending prompt resolves metadata from en to nb and settles once"},{"ancestorTitles":[],"duration":310,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending prompt resolves metadata from nb to en and settles once","invocations":1,"location":null,"numPassingAsserts":18,"retryReasons":[],"startAt":1794925271661,"status":"passed","title":"pending prompt resolves metadata from nb to en and settles once"},{"ancestorTitles":[],"duration":47,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"confirm metadata falls back to interpolated English without I18n context","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794925271971,"status":"passed","title":"confirm metadata falls back to interpolated English without I18n context"},{"ancestorTitles":[],"duration":121,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prompt metadata falls back to interpolated English without I18n context","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794925272018,"status":"passed","title":"prompt metadata falls back to interpolated English without I18n context"},{"ancestorTitles":[],"duration":77,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"confirm leaves literal \"\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925272139,"status":"passed","title":"confirm leaves literal \"\" verbatim during locale changes"},{"ancestorTitles":[],"duration":110,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prompt leaves literal \"\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925272216,"status":"passed","title":"prompt leaves literal \"\" verbatim during locale changes"},{"ancestorTitles":[],"duration":76,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"confirm leaves literal \"confirmAction\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925272326,"status":"passed","title":"confirm leaves literal \"confirmAction\" verbatim during locale changes"},{"ancestorTitles":[],"duration":123,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prompt leaves literal \"enterValue\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925272402,"status":"passed","title":"prompt leaves literal \"enterValue\" verbatim during locale changes"},{"ancestorTitles":[],"duration":76,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"fallback parameter in pending confirm follows en to nb","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"startAt":1794925272525,"status":"passed","title":"fallback parameter in pending confirm follows en to nb"},{"ancestorTitles":[],"duration":65,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"fallback parameter in pending confirm follows nb to en","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"startAt":1794925272601,"status":"passed","title":"fallback parameter in pending confirm follows nb to en"},{"ancestorTitles":[],"duration":136,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"fallback parameter in pending prompt follows en to nb","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"startAt":1794925272666,"status":"passed","title":"fallback parameter in pending prompt follows en to nb"},{"ancestorTitles":[],"duration":141,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"fallback parameter in pending prompt follows nb to en","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"startAt":1794925272802,"status":"passed","title":"fallback parameter in pending prompt follows nb to en"},{"ancestorTitles":[],"duration":60,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"fallback parameter in confirm resolves English without context","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794925272944,"status":"passed","title":"fallback parameter in confirm resolves English without context"},{"ancestorTitles":[],"duration":121,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"fallback parameter in prompt resolves English without context","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794925273004,"status":"passed","title":"fallback parameter in prompt resolves English without context"},{"ancestorTitles":[],"duration":1,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"fallback parameter preserves primitive \"\" verbatim","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794925273125,"status":"passed","title":"fallback parameter preserves primitive \"\" verbatim"},{"ancestorTitles":[],"duration":0,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"fallback parameter preserves primitive 0 verbatim","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794925273126,"status":"passed","title":"fallback parameter preserves primitive 0 verbatim"},{"ancestorTitles":[],"duration":0,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"fallback parameter preserves primitive \"jobTableCompany\" verbatim","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794925273126,"status":"passed","title":"fallback parameter preserves primitive \"jobTableCompany\" verbatim"},{"ancestorTitles":[],"duration":0,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"fallback parameter preserves primitive \"Søknad 東京 🧑💻
& {count}\" verbatim","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794925273126,"status":"passed","title":"fallback parameter preserves primitive \"Søknad 東京 🧑💻
& {count}\" verbatim"}],"endTime":1794925273127,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\dialog-text.test.tsx","startTime":1794925270074,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":85,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment Upload activates the same native input from Enter, Space and pointer","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794925274362,"status":"passed","title":"attachment Upload activates the same native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":29,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Import JSON activates its own native input from Enter, Space and pointer","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794925274448,"status":"passed","title":"Import JSON activates its own native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":24,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Convert CSV to Import JSON activates its own native input from Enter, Space and pointer","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794925274478,"status":"passed","title":"Convert CSV to Import JSON activates its own native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":383,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Add Job attachment bucket 0 retains keyboard selection and distinct pending files","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794925274502,"status":"passed","title":"Add Job attachment bucket 0 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":294,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Add Job attachment bucket 1 retains keyboard selection and distinct pending files","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794925274885,"status":"passed","title":"Add Job attachment bucket 1 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":233,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Add Job attachment bucket 2 retains keyboard selection and distinct pending files","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794925275179,"status":"passed","title":"Add Job attachment bucket 2 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":366,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Add Job attachment bucket 3 retains keyboard selection and distinct pending files","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794925275413,"status":"passed","title":"Add Job attachment bucket 3 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":114,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment selection retains files and job ownership, disables activation while uploading and clears selection after completion","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794925275779,"status":"passed","title":"attachment selection retains files and job ownership, disables activation while uploading and clears selection after completion"}],"endTime":1794925275894,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\file-picker-activation.test.tsx","startTime":1794925273137,"status":"passed","summary":""}],"wasInterrupted":false}
diff --git a/docs/ui-modernisation/evidence/attachment-preview-download/green.json.gz b/docs/ui-modernisation/evidence/attachment-preview-download/green.json.gz
new file mode 100644
index 00000000..adff0c18
Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-preview-download/green.json.gz differ
diff --git a/docs/ui-modernisation/evidence/attachment-preview-download/green.txt b/docs/ui-modernisation/evidence/attachment-preview-download/green.txt
new file mode 100644
index 00000000..39024fa0
--- /dev/null
+++ b/docs/ui-modernisation/evidence/attachment-preview-download/green.txt
@@ -0,0 +1,7 @@
+
+Test Suites: 4 passed, 4 total
+Tests: 103 passed, 103 total
+Snapshots: 0 total
+Time: 20.329 s
+Ran all test suites matching src/attachment-action-lifetime.test.tsx|src/attachments.test.tsx|src/file-picker-activation.test.tsx|src/dialog-text.test.tsx.
+Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\attachment-preview-download-green.json
diff --git a/docs/ui-modernisation/evidence/attachment-preview-download/green.txt.gz b/docs/ui-modernisation/evidence/attachment-preview-download/green.txt.gz
new file mode 100644
index 00000000..4fee50a4
Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-preview-download/green.txt.gz differ
diff --git a/docs/ui-modernisation/evidence/attachment-preview-download/lint.txt b/docs/ui-modernisation/evidence/attachment-preview-download/lint.txt
new file mode 100644
index 00000000..e69de29b
diff --git a/docs/ui-modernisation/evidence/attachment-preview-download/lint.txt.gz b/docs/ui-modernisation/evidence/attachment-preview-download/lint.txt.gz
new file mode 100644
index 00000000..ae211a2c
Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-preview-download/lint.txt.gz differ
diff --git a/docs/ui-modernisation/evidence/attachment-preview-download/red.json b/docs/ui-modernisation/evidence/attachment-preview-download/red.json
new file mode 100644
index 00000000..e9a318f4
--- /dev/null
+++ b/docs/ui-modernisation/evidence/attachment-preview-download/red.json
@@ -0,0 +1 @@
+{"numFailedTestSuites":1,"numFailedTests":2,"numPassedTestSuites":0,"numPassedTests":0,"numPendingTestSuites":0,"numPendingTests":60,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":1,"numTotalTests":62,"openHandles":[],"snapshot":{"added":0,"didUpdate":false,"failure":false,"filesAdded":0,"filesRemoved":0,"filesRemovedList":[],"filesUnmatched":0,"filesUpdated":0,"matched":0,"total":0,"unchecked":0,"uncheckedKeysByFile":[],"unmatched":0,"updated":0},"startTime":1794925220287,"success":false,"testResults":[{"assertionResults":[{"ancestorTitles":[],"duration":388,"failing":false,"failureDetails":[{"matcherResult":{"actual":["/attachments/download/7","/attachments/download/0"],"expected":["/attachments/download/7","/attachments/download/7"],"message":"expect(received).toEqual(expected) // deep equality\n\n- Expected - 1\n+ Received + 1\n\n Array [\n \"/attachments/download/7\",\n- \"/attachments/download/7\",\n+ \"/attachments/download/0\",\n ]","name":"toEqual","pass":false}}],"failureMessages":["Error: expect(received).toEqual(expected) // deep equality\n\n- Expected - 1\n+ Received + 1\n\n Array [\n \"/attachments/download/7\",\n- \"/attachments/download/7\",\n+ \"/attachments/download/0\",\n ]\n at toEqual (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:60:112)"],"fullName":"preview download keeps the attachment identity and filename (en)","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794925223543,"status":"failed","title":"preview download keeps the attachment identity and filename (en)"},{"ancestorTitles":[],"duration":150,"failing":false,"failureDetails":[{"matcherResult":{"actual":["/attachments/download/7","/attachments/download/0"],"expected":["/attachments/download/7","/attachments/download/7"],"message":"expect(received).toEqual(expected) // deep equality\n\n- Expected - 1\n+ Received + 1\n\n Array [\n \"/attachments/download/7\",\n- \"/attachments/download/7\",\n+ \"/attachments/download/0\",\n ]","name":"toEqual","pass":false}}],"failureMessages":["Error: expect(received).toEqual(expected) // deep equality\n\n- Expected - 1\n+ Received + 1\n\n Array [\n \"/attachments/download/7\",\n- \"/attachments/download/7\",\n+ \"/attachments/download/0\",\n ]\n at toEqual (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:60:112)"],"fullName":"preview download keeps the attachment identity and filename (nb)","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794925223944,"status":"failed","title":"preview download keeps the attachment identity and filename (nb)"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old attachment read resolve cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224094,"status":"pending","title":"old attachment read resolve cannot replace the next application"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old attachment read reject cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224094,"status":"pending","title":"old attachment read reject cannot replace the next application"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-rename read resolve cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224094,"status":"pending","title":"old post-rename read resolve cannot replace the next application"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-rename read reject cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224094,"status":"pending","title":"old post-rename read reject cannot replace the next application"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-delete read resolve cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224094,"status":"pending","title":"old post-delete read resolve cannot replace the next application"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-delete read reject cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224094,"status":"pending","title":"old post-delete read reject cannot replace the next application"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after unmount cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"attachment rename decision after unmount cannot mutate the previous context"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after job change cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"attachment rename decision after job change cannot mutate the previous context"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after session cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"attachment rename decision after session cannot mutate the previous context"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after unmount cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"attachment delete decision after unmount cannot mutate the previous context"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after job change cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"attachment delete decision after job change cannot mutate the previous context"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after session cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"attachment delete decision after session cannot mutate the previous context"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename delayed resolve uses current language","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"attachment rename delayed resolve uses current language"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename delayed reject uses current language","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"attachment rename delayed reject uses current language"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete delayed resolve uses current language","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"attachment delete delayed resolve uses current language"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete delayed reject uses current language","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"attachment delete delayed reject uses current language"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after unmount / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment rename after unmount / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after unmount / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment rename after unmount / reject cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after job change / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment rename after job change / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after job change / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment rename after job change / reject cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after unmount / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment delete after unmount / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after unmount / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment delete after unmount / reject cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after job change / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment delete after job change / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after job change / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment delete after job change / reject cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after unmount / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment Download after unmount / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after unmount / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment Download after unmount / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after job change / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment Download after job change / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after job change / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment Download after job change / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after session / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment Download after session / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after session / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment Download after session / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after unmount / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment Preview after unmount / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after unmount / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment Preview after unmount / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after job change / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment Preview after job change / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after job change / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment Preview after job change / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after session / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment Preview after session / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after session / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment Preview after session / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"delayed attachment Download failure uses the current locale","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"delayed attachment Download failure uses the current locale"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"delayed attachment Preview failure uses the current locale","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"delayed attachment Preview failure uses the current locale"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment upload after unmount / resolve has no stale completion","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment upload after unmount / resolve has no stale completion"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment upload after unmount / reject has no stale completion","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment upload after unmount / reject has no stale completion"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment upload after job change / resolve has no stale completion","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment upload after job change / resolve has no stale completion"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment upload after job change / reject has no stale completion","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224095,"status":"pending","title":"late attachment upload after job change / reject has no stale completion"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment upload after session / resolve has no stale completion","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224096,"status":"pending","title":"late attachment upload after session / resolve has no stale completion"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment upload after session / reject has no stale completion","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224096,"status":"pending","title":"late attachment upload after session / reject has no stale completion"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment metadata after unmount / resolve has no stale completion","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224096,"status":"pending","title":"late attachment metadata after unmount / resolve has no stale completion"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment metadata after unmount / reject has no stale completion","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224096,"status":"pending","title":"late attachment metadata after unmount / reject has no stale completion"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment metadata after job change / resolve has no stale completion","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224096,"status":"pending","title":"late attachment metadata after job change / resolve has no stale completion"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment metadata after job change / reject has no stale completion","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224096,"status":"pending","title":"late attachment metadata after job change / reject has no stale completion"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment metadata after session / resolve has no stale completion","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224096,"status":"pending","title":"late attachment metadata after session / resolve has no stale completion"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment metadata after session / reject has no stale completion","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224096,"status":"pending","title":"late attachment metadata after session / reject has no stale completion"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"delayed attachment upload / resolve uses current-language mutation feedback","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224096,"status":"pending","title":"delayed attachment upload / resolve uses current-language mutation feedback"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"delayed attachment upload / reject uses current-language mutation feedback","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224096,"status":"pending","title":"delayed attachment upload / reject uses current-language mutation feedback"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"delayed attachment metadata / resolve uses current-language mutation feedback","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224096,"status":"pending","title":"delayed attachment metadata / resolve uses current-language mutation feedback"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"delayed attachment metadata / reject uses current-language mutation feedback","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224096,"status":"pending","title":"delayed attachment metadata / reject uses current-language mutation feedback"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old upload resolve cannot clear a new application upload busy state","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224096,"status":"pending","title":"old upload resolve cannot clear a new application upload busy state"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old upload reject cannot clear a new application upload busy state","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224096,"status":"pending","title":"old upload reject cannot clear a new application upload busy state"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"switching application clears old attachment actions while the next list is pending","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224096,"status":"pending","title":"switching application clears old attachment actions while the next list is pending"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"switching application closes and releases its already-open attachment preview","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224096,"status":"pending","title":"switching application closes and releases its already-open attachment preview"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"older preview resolve cannot replace or notify over the latest requested file","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224096,"status":"pending","title":"older preview resolve cannot replace or notify over the latest requested file"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"older preview reject cannot replace or notify over the latest requested file","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794925224096,"status":"pending","title":"older preview reject cannot replace or notify over the latest requested file"}],"endTime":1794925224106,"message":" ● preview download keeps the attachment identity and filename (en)\n\n expect(received).toEqual(expected) // deep equality\n\n - Expected - 1\n + Received + 1\n\n Array [\n \"/attachments/download/7\",\n - \"/attachments/download/7\",\n + \"/attachments/download/0\",\n ]\n\n 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));\n 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));\n > 60 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);\n | ^\n 61 | expect(mockedApi.post).not.toHaveBeenCalled();\n 62 | expect(mockedApi.patch).not.toHaveBeenCalled();\n 63 | expect(mockedApi.delete).not.toHaveBeenCalled();\n\n at toEqual (src/attachment-action-lifetime.test.tsx:60:112)\n\n ● preview download keeps the attachment identity and filename (nb)\n\n expect(received).toEqual(expected) // deep equality\n\n - Expected - 1\n + Received + 1\n\n Array [\n \"/attachments/download/7\",\n - \"/attachments/download/7\",\n + \"/attachments/download/0\",\n ]\n\n 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));\n 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));\n > 60 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);\n | ^\n 61 | expect(mockedApi.post).not.toHaveBeenCalled();\n 62 | expect(mockedApi.patch).not.toHaveBeenCalled();\n 63 | expect(mockedApi.delete).not.toHaveBeenCalled();\n\n at toEqual (src/attachment-action-lifetime.test.tsx:60:112)\n","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx","startTime":1794925221078,"status":"failed","summary":""}],"wasInterrupted":false}
diff --git a/docs/ui-modernisation/evidence/attachment-preview-download/red.json.gz b/docs/ui-modernisation/evidence/attachment-preview-download/red.json.gz
new file mode 100644
index 00000000..dec90ca9
Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-preview-download/red.json.gz differ
diff --git a/docs/ui-modernisation/evidence/attachment-preview-download/red.txt b/docs/ui-modernisation/evidence/attachment-preview-download/red.txt
new file mode 100644
index 00000000..ce7206dd
--- /dev/null
+++ b/docs/ui-modernisation/evidence/attachment-preview-download/red.txt
@@ -0,0 +1,553 @@
+ console.warn
+ A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
+ Stack Trace:
+
+ 54 | const view = render(page());
+ 55 | try {
+ > 56 | fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
+ | ^
+ 57 | const dialog = await screen.findByRole('dialog');
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+
+ Error:
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/dom/dist/wait-for.js:71:16
+ at node_modules/@testing-library/react/dist/act-compat.js:47:24
+ at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
+ at node_modules/@testing-library/react/dist/act-compat.js:46:25
+ at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
+ at node_modules/@testing-library/dom/dist/wait-for.js:65:15
+ at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
+ at node_modules/@testing-library/dom/dist/wait-for.js:164:54
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
+ at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
+ at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
+ at findByRole (src/attachment-action-lifetime.test.tsx:56:34)
+
+ 54 | const view = render(page());
+ 55 | try {
+ > 56 | fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
+ | ^
+ 57 | const dialog = await screen.findByRole('dialog');
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/dom/dist/wait-for.js:71:16
+ at node_modules/@testing-library/react/dist/act-compat.js:47:24
+ at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
+ at node_modules/@testing-library/react/dist/act-compat.js:46:25
+ at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
+ at node_modules/@testing-library/dom/dist/wait-for.js:65:15
+ at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
+ at node_modules/@testing-library/dom/dist/wait-for.js:164:54
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
+ at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
+ at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
+ at findByRole (src/attachment-action-lifetime.test.tsx:56:34)
+
+ console.warn
+ A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
+ Stack Trace:
+
+ 54 | const view = render(page());
+ 55 | try {
+ > 56 | fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
+ | ^
+ 57 | const dialog = await screen.findByRole('dialog');
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+
+ Error:
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/react/dist/pure.js:96:16
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
+ at src/attachment-action-lifetime.test.tsx:56:21
+
+ 54 | const view = render(page());
+ 55 | try {
+ > 56 | fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
+ | ^
+ 57 | const dialog = await screen.findByRole('dialog');
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/react/dist/pure.js:96:16
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
+ at src/attachment-action-lifetime.test.tsx:56:21
+
+ console.warn
+ A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
+ Stack Trace:
+
+ 55 | try {
+ 56 | fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
+ > 57 | const dialog = await screen.findByRole('dialog');
+ | ^
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+ 60 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
+
+ Error:
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/dom/dist/wait-for.js:71:16
+ at node_modules/@testing-library/react/dist/act-compat.js:47:24
+ at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
+ at node_modules/@testing-library/react/dist/act-compat.js:46:25
+ at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
+ at node_modules/@testing-library/dom/dist/wait-for.js:65:15
+ at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
+ at node_modules/@testing-library/dom/dist/wait-for.js:164:54
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
+ at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
+ at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
+ at findByRole (src/attachment-action-lifetime.test.tsx:57:33)
+
+ 55 | try {
+ 56 | fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
+ > 57 | const dialog = await screen.findByRole('dialog');
+ | ^
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+ 60 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
+
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/dom/dist/wait-for.js:71:16
+ at node_modules/@testing-library/react/dist/act-compat.js:47:24
+ at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
+ at node_modules/@testing-library/react/dist/act-compat.js:46:25
+ at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
+ at node_modules/@testing-library/dom/dist/wait-for.js:65:15
+ at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
+ at node_modules/@testing-library/dom/dist/wait-for.js:164:54
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
+ at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
+ at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
+ at findByRole (src/attachment-action-lifetime.test.tsx:57:33)
+
+ console.warn
+ A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
+ Stack Trace:
+
+ 55 | try {
+ 56 | fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
+ > 57 | const dialog = await screen.findByRole('dialog');
+ | ^
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+ 60 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
+
+ Error:
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/react/dist/pure.js:96:16
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
+ at src/attachment-action-lifetime.test.tsx:57:20
+
+ 55 | try {
+ 56 | fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
+ > 57 | const dialog = await screen.findByRole('dialog');
+ | ^
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+ 60 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
+
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/react/dist/pure.js:96:16
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
+ at src/attachment-action-lifetime.test.tsx:57:20
+
+ console.warn
+ A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
+ Stack Trace:
+
+ 57 | const dialog = await screen.findByRole('dialog');
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ > 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+ | ^
+ 60 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
+ 61 | expect(mockedApi.post).not.toHaveBeenCalled();
+ 62 | expect(mockedApi.patch).not.toHaveBeenCalled();
+
+ Error:
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/dom/dist/wait-for.js:71:16
+ at node_modules/@testing-library/react/dist/act-compat.js:47:24
+ at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
+ at node_modules/@testing-library/react/dist/act-compat.js:46:25
+ at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
+ at node_modules/@testing-library/dom/dist/wait-for.js:65:15
+ at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
+ at node_modules/@testing-library/dom/dist/wait-for.js:164:54
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
+ at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
+ at src/attachment-action-lifetime.test.tsx:59:18
+
+ 57 | const dialog = await screen.findByRole('dialog');
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ > 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+ | ^
+ 60 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
+ 61 | expect(mockedApi.post).not.toHaveBeenCalled();
+ 62 | expect(mockedApi.patch).not.toHaveBeenCalled();
+
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/dom/dist/wait-for.js:71:16
+ at node_modules/@testing-library/react/dist/act-compat.js:47:24
+ at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
+ at node_modules/@testing-library/react/dist/act-compat.js:46:25
+ at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
+ at node_modules/@testing-library/dom/dist/wait-for.js:65:15
+ at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
+ at node_modules/@testing-library/dom/dist/wait-for.js:164:54
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
+ at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
+ at src/attachment-action-lifetime.test.tsx:59:18
+
+ console.warn
+ A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
+ Stack Trace:
+
+ 57 | const dialog = await screen.findByRole('dialog');
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ > 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+ | ^
+ 60 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
+ 61 | expect(mockedApi.post).not.toHaveBeenCalled();
+ 62 | expect(mockedApi.patch).not.toHaveBeenCalled();
+
+ Error:
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/react/dist/pure.js:96:16
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
+ at src/attachment-action-lifetime.test.tsx:59:5
+
+ 57 | const dialog = await screen.findByRole('dialog');
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ > 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+ | ^
+ 60 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
+ 61 | expect(mockedApi.post).not.toHaveBeenCalled();
+ 62 | expect(mockedApi.patch).not.toHaveBeenCalled();
+
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/react/dist/pure.js:96:16
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
+ at src/attachment-action-lifetime.test.tsx:59:5
+
+ console.warn
+ A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
+ Stack Trace:
+
+ 54 | const view = render(page());
+ 55 | try {
+ > 56 | fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
+ | ^
+ 57 | const dialog = await screen.findByRole('dialog');
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+
+ Error:
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/dom/dist/wait-for.js:71:16
+ at node_modules/@testing-library/react/dist/act-compat.js:47:24
+ at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
+ at node_modules/@testing-library/react/dist/act-compat.js:46:25
+ at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
+ at node_modules/@testing-library/dom/dist/wait-for.js:65:15
+ at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
+ at node_modules/@testing-library/dom/dist/wait-for.js:164:54
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
+ at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
+ at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
+ at findByRole (src/attachment-action-lifetime.test.tsx:56:34)
+
+ 54 | const view = render(page());
+ 55 | try {
+ > 56 | fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
+ | ^
+ 57 | const dialog = await screen.findByRole('dialog');
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/dom/dist/wait-for.js:71:16
+ at node_modules/@testing-library/react/dist/act-compat.js:47:24
+ at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
+ at node_modules/@testing-library/react/dist/act-compat.js:46:25
+ at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
+ at node_modules/@testing-library/dom/dist/wait-for.js:65:15
+ at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
+ at node_modules/@testing-library/dom/dist/wait-for.js:164:54
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
+ at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
+ at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
+ at findByRole (src/attachment-action-lifetime.test.tsx:56:34)
+
+ console.warn
+ A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
+ Stack Trace:
+
+ 54 | const view = render(page());
+ 55 | try {
+ > 56 | fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
+ | ^
+ 57 | const dialog = await screen.findByRole('dialog');
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+
+ Error:
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/react/dist/pure.js:96:16
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
+ at src/attachment-action-lifetime.test.tsx:56:21
+
+ 54 | const view = render(page());
+ 55 | try {
+ > 56 | fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
+ | ^
+ 57 | const dialog = await screen.findByRole('dialog');
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/react/dist/pure.js:96:16
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
+ at src/attachment-action-lifetime.test.tsx:56:21
+
+ console.warn
+ A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
+ Stack Trace:
+
+ 55 | try {
+ 56 | fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
+ > 57 | const dialog = await screen.findByRole('dialog');
+ | ^
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+ 60 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
+
+ Error:
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/dom/dist/wait-for.js:71:16
+ at node_modules/@testing-library/react/dist/act-compat.js:47:24
+ at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
+ at node_modules/@testing-library/react/dist/act-compat.js:46:25
+ at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
+ at node_modules/@testing-library/dom/dist/wait-for.js:65:15
+ at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
+ at node_modules/@testing-library/dom/dist/wait-for.js:164:54
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
+ at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
+ at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
+ at findByRole (src/attachment-action-lifetime.test.tsx:57:33)
+
+ 55 | try {
+ 56 | fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
+ > 57 | const dialog = await screen.findByRole('dialog');
+ | ^
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+ 60 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
+
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/dom/dist/wait-for.js:71:16
+ at node_modules/@testing-library/react/dist/act-compat.js:47:24
+ at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
+ at node_modules/@testing-library/react/dist/act-compat.js:46:25
+ at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
+ at node_modules/@testing-library/dom/dist/wait-for.js:65:15
+ at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
+ at node_modules/@testing-library/dom/dist/wait-for.js:164:54
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
+ at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
+ at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
+ at findByRole (src/attachment-action-lifetime.test.tsx:57:33)
+
+ console.warn
+ A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
+ Stack Trace:
+
+ 55 | try {
+ 56 | fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
+ > 57 | const dialog = await screen.findByRole('dialog');
+ | ^
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+ 60 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
+
+ Error:
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/react/dist/pure.js:96:16
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
+ at src/attachment-action-lifetime.test.tsx:57:20
+
+ 55 | try {
+ 56 | fireEvent.click(await screen.findByRole('button', { name: `${copy.attachmentsPreview}: ${file.fileName}` }));
+ > 57 | const dialog = await screen.findByRole('dialog');
+ | ^
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+ 60 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
+
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/react/dist/pure.js:96:16
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
+ at src/attachment-action-lifetime.test.tsx:57:20
+
+ console.warn
+ A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
+ Stack Trace:
+
+ 57 | const dialog = await screen.findByRole('dialog');
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ > 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+ | ^
+ 60 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
+ 61 | expect(mockedApi.post).not.toHaveBeenCalled();
+ 62 | expect(mockedApi.patch).not.toHaveBeenCalled();
+
+ Error:
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/dom/dist/wait-for.js:71:16
+ at node_modules/@testing-library/react/dist/act-compat.js:47:24
+ at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
+ at node_modules/@testing-library/react/dist/act-compat.js:46:25
+ at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
+ at node_modules/@testing-library/dom/dist/wait-for.js:65:15
+ at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
+ at node_modules/@testing-library/dom/dist/wait-for.js:164:54
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
+ at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
+ at src/attachment-action-lifetime.test.tsx:59:18
+
+ 57 | const dialog = await screen.findByRole('dialog');
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ > 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+ | ^
+ 60 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
+ 61 | expect(mockedApi.post).not.toHaveBeenCalled();
+ 62 | expect(mockedApi.patch).not.toHaveBeenCalled();
+
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/dom/dist/wait-for.js:71:16
+ at node_modules/@testing-library/react/dist/act-compat.js:47:24
+ at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22)
+ at node_modules/@testing-library/react/dist/act-compat.js:46:25
+ at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35)
+ at node_modules/@testing-library/dom/dist/wait-for.js:65:15
+ at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10)
+ at node_modules/@testing-library/dom/dist/wait-for.js:164:54
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28)
+ at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35)
+ at src/attachment-action-lifetime.test.tsx:59:18
+
+ console.warn
+ A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file.
+ Stack Trace:
+
+ 57 | const dialog = await screen.findByRole('dialog');
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ > 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+ | ^
+ 60 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
+ 61 | expect(mockedApi.post).not.toHaveBeenCalled();
+ 62 | expect(mockedApi.patch).not.toHaveBeenCalled();
+
+ Error:
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/react/dist/pure.js:96:16
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
+ at src/attachment-action-lifetime.test.tsx:59:5
+
+ 57 | const dialog = await screen.findByRole('dialog');
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ > 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+ | ^
+ 60 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
+ 61 | expect(mockedApi.post).not.toHaveBeenCalled();
+ 62 | expect(mockedApi.patch).not.toHaveBeenCalled();
+
+ at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28)
+ at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14)
+ at node_modules/@testing-library/react/dist/pure.js:96:16
+ at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13)
+ at src/attachment-action-lifetime.test.tsx:59:5
+
+FAIL src/attachment-action-lifetime.test.tsx
+ ● preview download keeps the attachment identity and filename (en)
+
+ expect(received).toEqual(expected) // deep equality
+
+ - Expected - 1
+ + Received + 1
+
+ Array [
+ "/attachments/download/7",
+ - "/attachments/download/7",
+ + "/attachments/download/0",
+ ]
+
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+ > 60 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
+ | ^
+ 61 | expect(mockedApi.post).not.toHaveBeenCalled();
+ 62 | expect(mockedApi.patch).not.toHaveBeenCalled();
+ 63 | expect(mockedApi.delete).not.toHaveBeenCalled();
+
+ at toEqual (src/attachment-action-lifetime.test.tsx:60:112)
+
+ ● preview download keeps the attachment identity and filename (nb)
+
+ expect(received).toEqual(expected) // deep equality
+
+ - Expected - 1
+ + Received + 1
+
+ Array [
+ "/attachments/download/7",
+ - "/attachments/download/7",
+ + "/attachments/download/0",
+ ]
+
+ 58 | fireEvent.click(within(dialog).getByRole('button', { name: copy.attachmentsDownload }));
+ 59 | await waitFor(() => expect(downloads).toEqual([file.fileName]));
+ > 60 | expect(mockedApi.get.mock.calls.filter(([url]) => String(url).includes('/download/')).map(([url]) => url)).toEqual(['/attachments/download/7', '/attachments/download/7']);
+ | ^
+ 61 | expect(mockedApi.post).not.toHaveBeenCalled();
+ 62 | expect(mockedApi.patch).not.toHaveBeenCalled();
+ 63 | expect(mockedApi.delete).not.toHaveBeenCalled();
+
+ at toEqual (src/attachment-action-lifetime.test.tsx:60:112)
+
+Test Suites: 1 failed, 1 total
+Tests: 2 failed, 60 skipped, 62 total
+Snapshots: 0 total
+Time: 3.825 s
+Ran all test suites matching src/attachment-action-lifetime.test.tsx with tests matching "preview download keeps".
+Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\attachment-preview-download-red.json
diff --git a/docs/ui-modernisation/evidence/attachment-preview-download/red.txt.gz b/docs/ui-modernisation/evidence/attachment-preview-download/red.txt.gz
new file mode 100644
index 00000000..79dcdb0d
Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-preview-download/red.txt.gz differ
diff --git a/docs/ui-modernisation/evidence/attachment-preview-download/typecheck.txt b/docs/ui-modernisation/evidence/attachment-preview-download/typecheck.txt
new file mode 100644
index 00000000..e69de29b
diff --git a/docs/ui-modernisation/evidence/attachment-preview-download/typecheck.txt.gz b/docs/ui-modernisation/evidence/attachment-preview-download/typecheck.txt.gz
new file mode 100644
index 00000000..ae211a2c
Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-preview-download/typecheck.txt.gz differ