docs(attachments): bind latest-preview ordering evidence
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# Attachment preview request ordering
|
||||
|
||||
17 November 2026. Source `7830396a` on `codex/a3-ui-10`, based on local evidence `3b661d12`. Publication is pending afterHTTP502; last independently verified remote A3 is `13769a19`.
|
||||
|
||||
Preview actions capture a monotonically increasing request number alongside the existing session/application guard. An earlier response cannot create an obsolete URL, replace the latest selected file or notify over it. Downloads retain independent action semantics. Current preview URL cleanup, type/filename and display ownership remain unchanged.
|
||||
|
||||
Two original success/failure regressions FAILED; final91 cases/four suites PASSED (89/87/69/55/49 overlap this latest attachment selection). Project TypeScript, scoped ESLint, diff check and AST refresh PASSED (19,296 nodes/47,420 edges). Native/gzip/source evidence: `evidence/attachment-preview-order/SOURCE_RECEIPTS.json`.
|
||||
|
||||
Tests use real UI providers with mocked API/session and synthetic files; no real storage/provider/device/browser/integrated security/release qualification. No performance timing claim from request-count/ordering assertions. Same-context list refresh ordering, metadata write ordering and broader connected workflows remain separate. Prior Next build remains FAILED; formal A3/I18N/Phase10/security/release decisions remain open. Rollback: revert only this source commit; no schema/data migration.
|
||||
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"sourceCommit": "7830396a2b1e48e1649bef32e18feb40c1e81136",
|
||||
"sourcesLfSha256": {
|
||||
"job-tracker-ui/src/attachment-action-lifetime.test.tsx": "a9caa80574def97b0b6a353f1c72290e5c26fc3fe25ef5140a5d1e78463c6d08",
|
||||
"job-tracker-ui/src/components/Attachments.tsx": "ffe32cf4da43e4de18dd452f1e1d06c3bc78efb833b65f3c9c7dc10a1b7fcf97"
|
||||
},
|
||||
"evidenceLfSha256": {
|
||||
"red.json": "43bc58229e413de63c58cf4c845019238d318e9cc85b70987b3c3bcbb7fa5379",
|
||||
"red.txt": "ae79b34e6029e4158a1bdc2c2970e23e4580fd8c0fbbd762c7da72f9c4b9a36a",
|
||||
"green.json": "4dab03ae8604c4b81d84b3a1f84750ea965497e2e968aa7167c6360bcd6c02c9",
|
||||
"green.txt": "a872e38326a83592ad2477a383b8b717cd2808542d7f11d97fecf10ffa9ee983",
|
||||
"typecheck.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"lint.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"graph.txt": "07fead5372ef0f90dfb0c833cc1ac3d7e1b5428ce27481ab4f833b7b7eaae2ce"
|
||||
},
|
||||
"nativeReceipts": [
|
||||
{
|
||||
"path": "red.json",
|
||||
"gzipPath": "red.json.gz",
|
||||
"rawSha256": "43bc58229e413de63c58cf4c845019238d318e9cc85b70987b3c3bcbb7fa5379",
|
||||
"gzipSha256": "e56344a5fcd7706d93e0f2c37170620aae2da294cb63b8d00436d701c02ee5d1"
|
||||
},
|
||||
{
|
||||
"path": "red.txt",
|
||||
"gzipPath": "red.txt.gz",
|
||||
"rawSha256": "964de9365a9e048ae7e94c9ce0e610b62276d65cd19a7813da6899d098053690",
|
||||
"gzipSha256": "5e8b1c98fa932f3062de3b69ee00f4c17144436fa7ffbdb9e8b9e2b13133316a"
|
||||
},
|
||||
{
|
||||
"path": "green.json",
|
||||
"gzipPath": "green.json.gz",
|
||||
"rawSha256": "4dab03ae8604c4b81d84b3a1f84750ea965497e2e968aa7167c6360bcd6c02c9",
|
||||
"gzipSha256": "5f3448048c5fdbd56e42080a918b483895a11a7e138f060e4489b7bd48091920"
|
||||
},
|
||||
{
|
||||
"path": "green.txt",
|
||||
"gzipPath": "green.txt.gz",
|
||||
"rawSha256": "ed2f873e28ee174dfdebce9af95445c44912024944546bff669d1294daccbcbf",
|
||||
"gzipSha256": "188ecdaeb2fd65e42d0f2f6d953c6222760bf4fe054641363cae3cac7faeacad"
|
||||
},
|
||||
{
|
||||
"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": "fec5abcb9695ecc801ab38a02ea9d45d379c1f32fbf33600b511da56672e209a",
|
||||
"gzipSha256": "00f04e2e8b56b2a3e06f5e6c6e587d0f2968176fa232975765842e1f10324205"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
Re-extracting code files in . (no LLM needed)...
|
||||
[graphify watch] 626 file(s) not classified (no supported extension or shebang), skipped: .dockerignore, .env.example, .git, .gitattributes, .gitignore, 1440-en-dark-converted.gz (+620 more)
|
||||
AST cache: 2566/3014 files served from cache (85%); 448 to extract
|
||||
AST extraction: 100/448 uncached files (22%) [16 workers]
|
||||
AST extraction: 200/448 uncached files (44%) [16 workers]
|
||||
AST extraction: 300/448 uncached files (66%) [16 workers]
|
||||
AST extraction: 400/448 uncached files (89%) [16 workers]
|
||||
AST extraction: 448/448 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: 144 code file(s) yielded no symbols (0.14 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 (+139 more)
|
||||
[graphify watch] community set changed since labeling (0 saved labels, 1215 communities now; renamed 98 community(ies) by their hub). Run `graphify label` to refresh names with the LLM.
|
||||
Graph has 19296 nodes (above 5000 limit). Building aggregated community view...
|
||||
graph.html written (aggregated: 1215 community nodes, 3155 cross-community edges)
|
||||
Tip: run with --obsidian for full node-level detail.
|
||||
[graphify watch] Rebuilt: 19296 nodes, 47420 edges, 1215 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.
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
|
||||
Test Suites: 4 passed, 4 total
|
||||
Tests: 91 passed, 91 total
|
||||
Snapshots: 0 total
|
||||
Time: 22.959 s
|
||||
Ran all test suites matching src/attachment-action-lifetime.test.tsx|src/attachments.test.tsx|src/dialog-text.test.tsx|src/file-picker-activation.test.tsx.
|
||||
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\attachment-preview-order-green.json
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -0,0 +1,186 @@
|
||||
FAIL src/attachment-action-lifetime.test.tsx
|
||||
● older preview resolve cannot replace or notify over the latest requested file
|
||||
|
||||
TestingLibraryElementError: Unable to find an element with the title: Preview: Latest.pdf.
|
||||
|
||||
Ignored nodes: comments, script, style
|
||||
<body
|
||||
style="padding-right: 1024px; overflow: hidden;"
|
||||
>
|
||||
<div
|
||||
aria-hidden="true"
|
||||
>
|
||||
<div
|
||||
class="MuiBox-root css-0"
|
||||
>
|
||||
<div
|
||||
class="MuiBox-root css-1owejxv"
|
||||
>
|
||||
<div
|
||||
class="MuiBox-root css-0"
|
||||
>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body1 css-1v8ok63-MuiTypography-root"
|
||||
>
|
||||
Attachments (2)
|
||||
</p>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"
|
||||
>
|
||||
Upload resumes, cover letters, portfolios, and supporting files for this application.
|
||||
</p>
|
||||
<div
|
||||
class="MuiBox-root css-x2j9i8"
|
||||
>
|
||||
<div
|
||||
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
|
||||
>
|
||||
<span
|
||||
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
|
||||
>
|
||||
0 images
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
|
||||
>
|
||||
<span
|
||||
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
|
||||
>
|
||||
2 PDFs
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
|
||||
>
|
||||
<span
|
||||
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
|
||||
>
|
||||
Max 10 MB each
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button
|
||||
class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary css-74b9is-MuiButtonBase-root-MuiButton-root"
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
<span
|
||||
class="MuiButton-icon MuiButton-startIcon MuiButton-iconSizeSmall css-d8i980-MuiButton-startIcon"
|
||||
>
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1umw9bq-MuiSvgIcon-root"
|
||||
data-testid="CloudUploadOutlinedIcon"
|
||||
focusable="false"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"
|
||||
/>
|
||||
</svg>
|
||||
</span>
|
||||
Upload
|
||||
</button>
|
||||
<input
|
||||
hidden=""
|
||||
multiple=""
|
||||
type="file"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="MuiBox-root css-497k9w"
|
||||
>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body1 css-1g7ym63-MuiTypography-root"
|
||||
>
|
||||
Drag and drop files here
|
||||
</p>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body2 css-1moljxt-MuiTypography-root"
|
||||
>
|
||||
or use the upload button to choose documents from your device.
|
||||
</p>
|
||||
</div>
|
||||
<span
|
||||
aria-atomic="true"
|
||||
aria-live="polite"
|
||||
class="MuiBox-root css-ty8jgw"
|
||||
role="status"
|
||||
>
|
||||
Content loaded.
|
||||
</span>
|
||||
<div
|
||||
aria-label="Attachments (2)"
|
||||
class="MuiTableContainer-root css-1sde01b-MuiTableContainer-root"
|
||||
role="region"
|
||||
tabindex="0"
|
||||
>
|
||||
<table
|
||||
aria-label="Current documents"
|
||||
class="MuiTable-root css-1ii7ygr-MuiTable-root"
|
||||
>
|
||||
<thead
|
||||
class="MuiTableHead-root css-1a7iywq-MuiTableHead-root"
|
||||
>
|
||||
<tr
|
||||
class="MuiTableRow-root MuiTableRow-head css-1xtozoh-MuiTableRow-root"
|
||||
>
|
||||
<th
|
||||
class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-10umtgd-MuiTableCell-root"
|
||||
scope="col"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
<th
|
||||
class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-vgdc2f-MuiTableCell-root"
|
||||
scope="col"
|
||||
>
|
||||
Kind
|
||||
</th>
|
||||
<th
|
||||
class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-by61h7-MuiTableCell-root"
|
||||
scope="col"
|
||||
>
|
||||
Type
|
||||
</th>
|
||||
<th
|
||||
class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-1vxk39h-MuiTableC...
|
||||
|
||||
262 | expect(await screen.findByTitle(`Preview: ${other.fileName}`)).toHaveAttribute('src', 'blob:latest-preview');
|
||||
263 | await act(async () => { if (outcome === 'resolve') first.resolve({ data: new Blob(['obsolete'], { type: 'application/pdf' }) }); else first.reject(new Error('obsolete preview failure')); });
|
||||
> 264 | expect(screen.getByTitle(`Preview: ${other.fileName}`)).toHaveAttribute('src', 'blob:latest-preview');
|
||||
| ^
|
||||
265 | expect(URL.createObjectURL).toHaveBeenCalledTimes(1);
|
||||
266 | expect(URL.revokeObjectURL).not.toHaveBeenCalled();
|
||||
267 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument();
|
||||
|
||||
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
|
||||
at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
|
||||
at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
|
||||
at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
|
||||
at getByTitle (src/attachment-action-lifetime.test.tsx:264:19)
|
||||
|
||||
● older preview reject cannot replace or notify over the latest requested file
|
||||
|
||||
expect(element).not.toBeInTheDocument()
|
||||
|
||||
expected document not to contain element, found <div class="MuiAlert-message css-zioonp-MuiAlert-message">Preview failed.</div> instead
|
||||
|
||||
265 | expect(URL.createObjectURL).toHaveBeenCalledTimes(1);
|
||||
266 | expect(URL.revokeObjectURL).not.toHaveBeenCalled();
|
||||
> 267 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument();
|
||||
| ^
|
||||
268 | } finally {
|
||||
269 | view.unmount();
|
||||
270 | URL.createObjectURL = originalCreate; URL.revokeObjectURL = originalRevoke;
|
||||
|
||||
at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:267:78)
|
||||
|
||||
Test Suites: 1 failed, 1 total
|
||||
Tests: 2 failed, 58 skipped, 60 total
|
||||
Snapshots: 0 total
|
||||
Time: 4.868 s
|
||||
Ran all test suites matching src/attachment-action-lifetime.test.tsx with tests matching "older preview".
|
||||
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\attachment-preview-order-red.json
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user