docs(i18n): retain attachment dialog regression evidence
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# Attachment dialog language continuity
|
||||
|
||||
17 November 2026. Source `19c3ebf1` on `codex/a3-ui-10`, after published dialog contract `67ca1562`.
|
||||
|
||||
Attachment rename/delete now opt into live dialog translation metadata. Filenames stay literal interpolation data and the rename default/draft stays user input. Language changes no longer reload the attachment list: one existing read stays one rather than two. Its delayed failure uses the current translation through the existing ref pattern. Existing upload, file purpose/AI controls, preview/download, delete/rename payloads and confirmation outcome are unchanged.
|
||||
|
||||
Verification: four real caller EN/NB dialog cases first FAILED on snapshot copy. After metadata migration, the same four exposed the pre-existing extra-read dependency; that intermediate failure is retained. Final31 cases/three suites PASSED, including two added pending-read/current-language failure cases. Earlier29-case and25-pass/four-failure receipts overlap; do not add them. Project TypeScript, scoped two-file ESLint and diff check PASSED.
|
||||
|
||||
Tests use synthetic Unicode/markup filenames, real providers and mocked API; they cancel both actions, checking no PATCH/DELETE, preserved input selection and no additional reads. Generic dialog acceptance is covered by the preceding contract package. No real file mutation/provider, native browser/device, final visual/security/release or complete attachment lifetime acceptance is claimed. Post-confirmation mutation feedback/lifetime and already-visible error language changes remain separate work.
|
||||
|
||||
Native outputs and exact gzip copies are in `evidence/attachment-dialog/`; `SOURCE_RECEIPTS.json` binds immutable source and outputs. Rollback: revert this source commit only, without data/schema migration. Next eligible: CV library explicit dialog copy, then remaining attachment action lifetime/current-language completion checks.
|
||||
@@ -0,0 +1,81 @@
|
||||
{
|
||||
"sourceCommit": "19c3ebf11dda33b2a3e7dbebd840588b2517ceb4",
|
||||
"sourcesLfSha256": {
|
||||
"job-tracker-ui/src/attachments.test.tsx": "20b023eedce62a660149c8436426bae0c5d2b2410b318069ab7f798fca6bc51b",
|
||||
"job-tracker-ui/src/components/Attachments.tsx": "dd0b854477ca835e18d630583756e26d253617b705a6488ff0dacec3ca1c0528"
|
||||
},
|
||||
"evidenceLfSha256": {
|
||||
"red.json": "23a2e54d732e1491f3ec2fc172e0a92823549a0e81a51c302b9400f703b90e7c",
|
||||
"red.txt": "90b1c0dc1d256708eb3ff87c581af499966f779aa7e9bbe8d2f8aacfe3054c74",
|
||||
"green.json": "7146c1a9e9c385b91c5dfeae93e8fd201107654b69b9ccbf941a3183b8ec4b61",
|
||||
"green.txt": "1cc7f5792ae9702fe9ae9b3cc5ff4156910309162cec7199164a9f8079ece557",
|
||||
"final.json": "90bab17ac6466165fd35baef455d3469082ea33d2db38d622f0c9beae19e7fa3",
|
||||
"final.txt": "3532f2224a18b598cbf8dbd8157c6565e255405412d696e72ec588ed720ddbc2",
|
||||
"verified.json": "e87f1e17e0751999b1e41231636ff671090990375fbf22038489e36d02ef2418",
|
||||
"verified.txt": "a61cfbddf10a764af4c4921ff8884ecf45a7be21db95f38b6a564dd9ad6191da",
|
||||
"typecheck.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"lint.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
||||
},
|
||||
"nativeReceipts": [
|
||||
{
|
||||
"path": "red.json",
|
||||
"gzipPath": "red.json.gz",
|
||||
"rawSha256": "23a2e54d732e1491f3ec2fc172e0a92823549a0e81a51c302b9400f703b90e7c",
|
||||
"gzipSha256": "e29700ebaea1dd26b8b2a42bbdbcfe79d9f375080d08789b3e44a557a93bc30f"
|
||||
},
|
||||
{
|
||||
"path": "red.txt",
|
||||
"gzipPath": "red.txt.gz",
|
||||
"rawSha256": "25c37610b08b0146a7bbebb3e6a80a9d9ce4e5b78ef33b30ff114beebf0da265",
|
||||
"gzipSha256": "2ff7f2e49a3cbe763480a083366720bc1f6518bafb2dbfe25d9defb8bcd3c980"
|
||||
},
|
||||
{
|
||||
"path": "green.json",
|
||||
"gzipPath": "green.json.gz",
|
||||
"rawSha256": "7146c1a9e9c385b91c5dfeae93e8fd201107654b69b9ccbf941a3183b8ec4b61",
|
||||
"gzipSha256": "a6f06ae85c59f8c37721e87bd67be2ae7004483c6506f2833596d51d48c40d38"
|
||||
},
|
||||
{
|
||||
"path": "green.txt",
|
||||
"gzipPath": "green.txt.gz",
|
||||
"rawSha256": "ae2781b82974a5733c8177499ce76f6d659cb8399f7a875175addba7718c6499",
|
||||
"gzipSha256": "2d4e7c5e90fc3dfb1d42d839b8f985a8b6888d8c51be665597107a6e0096f066"
|
||||
},
|
||||
{
|
||||
"path": "final.json",
|
||||
"gzipPath": "final.json.gz",
|
||||
"rawSha256": "90bab17ac6466165fd35baef455d3469082ea33d2db38d622f0c9beae19e7fa3",
|
||||
"gzipSha256": "a70f652a8785cecc946dd4154cd560a559b0bc223d4ff37042e645a81848f997"
|
||||
},
|
||||
{
|
||||
"path": "final.txt",
|
||||
"gzipPath": "final.txt.gz",
|
||||
"rawSha256": "b4a883d235f3c8f18a96e8a88a7c99b898e8efe5cd44117b6462049458f4ae67",
|
||||
"gzipSha256": "092e2eca279ad9723e5bc91e721a7bfa89b289bab7a259da82c1a4267f7b9c5b"
|
||||
},
|
||||
{
|
||||
"path": "verified.json",
|
||||
"gzipPath": "verified.json.gz",
|
||||
"rawSha256": "e87f1e17e0751999b1e41231636ff671090990375fbf22038489e36d02ef2418",
|
||||
"gzipSha256": "ce932bec7dcdbe22a3204c16f23001fdb473dd990d4b69a8218cbbe096289b08"
|
||||
},
|
||||
{
|
||||
"path": "verified.txt",
|
||||
"gzipPath": "verified.txt.gz",
|
||||
"rawSha256": "fe10ee55ac97ec08da725feaa26ec03187cc8e9dbe72c530249a32881ba05228",
|
||||
"gzipSha256": "057baedc19828239c13e6ff2182665abf28eef114493f91e831d916205faae23"
|
||||
},
|
||||
{
|
||||
"path": "typecheck.txt",
|
||||
"gzipPath": "typecheck.txt.gz",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e"
|
||||
},
|
||||
{
|
||||
"path": "lint.txt",
|
||||
"gzipPath": "lint.txt.gz",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
|
||||
Test Suites: 3 passed, 3 total
|
||||
Tests: 29 passed, 29 total
|
||||
Snapshots: 0 total
|
||||
Time: 17.838 s
|
||||
Ran all test suites matching 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-dialog-final.json
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -0,0 +1,76 @@
|
||||
FAIL src/attachments.test.tsx
|
||||
● pending attachment rename follows en to nb without changing file data
|
||||
|
||||
expect(jest.fn()).toHaveBeenCalledTimes(expected)
|
||||
|
||||
Expected number of calls: 1
|
||||
Received number of calls: 2
|
||||
|
||||
57 | }
|
||||
58 | expect(dialog.querySelector('draft')).toBeNull();
|
||||
> 59 | expect(mockedApi.get).toHaveBeenCalledTimes(reads);
|
||||
| ^
|
||||
60 | fireEvent.click(within(dialog).getByRole('button', { name: translations[to].cancel }));
|
||||
61 | await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument());
|
||||
62 | expect(mockedApi.patch).not.toHaveBeenCalled();
|
||||
|
||||
at toHaveBeenCalledTimes (src/attachments.test.tsx:59:27)
|
||||
|
||||
● pending attachment rename follows nb to en without changing file data
|
||||
|
||||
expect(jest.fn()).toHaveBeenCalledTimes(expected)
|
||||
|
||||
Expected number of calls: 1
|
||||
Received number of calls: 2
|
||||
|
||||
57 | }
|
||||
58 | expect(dialog.querySelector('draft')).toBeNull();
|
||||
> 59 | expect(mockedApi.get).toHaveBeenCalledTimes(reads);
|
||||
| ^
|
||||
60 | fireEvent.click(within(dialog).getByRole('button', { name: translations[to].cancel }));
|
||||
61 | await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument());
|
||||
62 | expect(mockedApi.patch).not.toHaveBeenCalled();
|
||||
|
||||
at toHaveBeenCalledTimes (src/attachments.test.tsx:59:27)
|
||||
|
||||
● pending attachment delete follows en to nb without changing file data
|
||||
|
||||
expect(jest.fn()).toHaveBeenCalledTimes(expected)
|
||||
|
||||
Expected number of calls: 1
|
||||
Received number of calls: 2
|
||||
|
||||
57 | }
|
||||
58 | expect(dialog.querySelector('draft')).toBeNull();
|
||||
> 59 | expect(mockedApi.get).toHaveBeenCalledTimes(reads);
|
||||
| ^
|
||||
60 | fireEvent.click(within(dialog).getByRole('button', { name: translations[to].cancel }));
|
||||
61 | await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument());
|
||||
62 | expect(mockedApi.patch).not.toHaveBeenCalled();
|
||||
|
||||
at toHaveBeenCalledTimes (src/attachments.test.tsx:59:27)
|
||||
|
||||
● pending attachment delete follows nb to en without changing file data
|
||||
|
||||
expect(jest.fn()).toHaveBeenCalledTimes(expected)
|
||||
|
||||
Expected number of calls: 1
|
||||
Received number of calls: 2
|
||||
|
||||
57 | }
|
||||
58 | expect(dialog.querySelector('draft')).toBeNull();
|
||||
> 59 | expect(mockedApi.get).toHaveBeenCalledTimes(reads);
|
||||
| ^
|
||||
60 | fireEvent.click(within(dialog).getByRole('button', { name: translations[to].cancel }));
|
||||
61 | await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument());
|
||||
62 | expect(mockedApi.patch).not.toHaveBeenCalled();
|
||||
|
||||
at toHaveBeenCalledTimes (src/attachments.test.tsx:59:27)
|
||||
|
||||
|
||||
Test Suites: 1 failed, 2 passed, 3 total
|
||||
Tests: 4 failed, 25 passed, 29 total
|
||||
Snapshots: 0 total
|
||||
Time: 11.698 s
|
||||
Ran all test suites matching 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-dialog-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.
File diff suppressed because it is too large
Load Diff
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,7 @@
|
||||
|
||||
Test Suites: 3 passed, 3 total
|
||||
Tests: 31 passed, 31 total
|
||||
Snapshots: 0 total
|
||||
Time: 13.314 s
|
||||
Ran all test suites matching 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-dialog-verified.json
|
||||
Binary file not shown.
Reference in New Issue
Block a user