docs(i18n): bind trash undo localisation evidence
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# Application trash Undo localisation
|
||||
|
||||
17 November 2026. Source `2e0862aeda17f210ec92f704cf0317f46be5f6ad` on `codex/a3-ui-10`, based on local dialog evidence `f40f3142`.
|
||||
|
||||
Replace the hard-coded Undo toast action with context-specific `jobTableUndo`: English Undo and Bokmål Angre. The original English action passed; Norwegian failed. Final69 affected cases/four suites plus three disjoint catalogue checks PASSED (72 instances/five suites). Tests confirm the same job is deleted/restored through existing endpoints. API is mocked; no actual job deletion or restoration.
|
||||
|
||||
Non-incremental project TypeScript, three-file scoped ESLint, diff check and AST update PASSED (19,300 nodes/47,424 edges). Catalogue checks cover EN/NB key parity, substitution variables and non-empty messages. Source/native/gzip bindings: `evidence/jobs-undo/SOURCE_RECEIPTS.json`.
|
||||
|
||||
This changes only the action label and adds EN/NB catalogue entries; existing feedback, undo callback, restore payload, current selection and source ownership are preserved. Pending mutation locale/lifetime and already-visible toast translation remain separate work. No renderer, dependency, schema, new locale or provider change. Full I18N/A3/security/release and prior failed Next build remain open. Rollback: revert this source commit, no data migration.
|
||||
|
||||
Publication remains pending: after the intervening validated packages, one bounded read-only availability check again returnedHTTP502. No further push was attempted, no remote verification claimed, no Git infrastructure or hooks changed. Last independently verified remote A3 is `13769a19`.
|
||||
@@ -0,0 +1,75 @@
|
||||
{
|
||||
"sourceCommit": "2e0862aeda17f210ec92f704cf0317f46be5f6ad",
|
||||
"sourcesLfSha256": {
|
||||
"job-tracker-ui/src/components/JobTable.tsx": "a807e46dcc4f92ce8e9c0c99374349c419bfb1161a044619c6bde23bb1480d15",
|
||||
"job-tracker-ui/src/i18n/translations.ts": "4223ddbe18cf584281af35e65601d65712899a1f485fdab3c617c3ca9b6d7c5a",
|
||||
"job-tracker-ui/src/jobs-view-integration.test.tsx": "d8ae9bb50468c264893bf8271f6bae1b59efa6dde2cebce6bc4e12bec6ff1946"
|
||||
},
|
||||
"evidenceLfSha256": {
|
||||
"red.json": "4c0583e08d31b2f8d1adb95226eb012282e57a7d88b389216cb88af31ef65619",
|
||||
"red.txt": "0be1e957fa757672ed97a60d04e426791ac4a1cd60444ce322df18a301c8f69a",
|
||||
"green.json": "85edc7dfd1232a28366eda2daa05cc9bc444f0190b01ef5de32255acf16ea4c6",
|
||||
"green.txt": "147d430f41e6c104ae6cee34f16c3dfba4f7094db9ea793db1c3a4f0aa09b6b2",
|
||||
"catalogue.json": "67f3d415dfbb05d42baa44fb6d959414707c0764dc4157349b222095aefbd30d",
|
||||
"catalogue.txt": "acaca6f116550bf93a1a0c71920f2430bf2c5f7e4a90c56f9d092299c5915d60",
|
||||
"typecheck.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"lint.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"graph.txt": "92f2d2dac6f153cf2f3a0266b3fb1d2865d7be34ed7d0e10b6d59b6eec14b248"
|
||||
},
|
||||
"nativeReceipts": [
|
||||
{
|
||||
"path": "red.json",
|
||||
"gzipPath": "red.json.gz",
|
||||
"rawSha256": "4c0583e08d31b2f8d1adb95226eb012282e57a7d88b389216cb88af31ef65619",
|
||||
"gzipSha256": "6d0c8a4dfd43391b9662d188333ae3e5b278d30bf391a7d9d98ce8216e3e67b9"
|
||||
},
|
||||
{
|
||||
"path": "red.txt",
|
||||
"gzipPath": "red.txt.gz",
|
||||
"rawSha256": "57a8480702cbb27fa5b7231d1599536f886df601632fe6f724c799433ab143ec",
|
||||
"gzipSha256": "b6889362e8410acff92b312a57c6355f20ceab69fd79725570a7f131447b8d12"
|
||||
},
|
||||
{
|
||||
"path": "green.json",
|
||||
"gzipPath": "green.json.gz",
|
||||
"rawSha256": "85edc7dfd1232a28366eda2daa05cc9bc444f0190b01ef5de32255acf16ea4c6",
|
||||
"gzipSha256": "622e56a60f1b58532d7644fa7c0cb8b77fd731a2a643835d12e82aa3ece86f7c"
|
||||
},
|
||||
{
|
||||
"path": "green.txt",
|
||||
"gzipPath": "green.txt.gz",
|
||||
"rawSha256": "336e56cee146511e81fbf5cc9b0d0dff4a5300d577cc2b9062e3271ccb738160",
|
||||
"gzipSha256": "f9f4b354224f129f4a8cd5d85f6008324bfef4c26ae4444fc6bc6c3563292531"
|
||||
},
|
||||
{
|
||||
"path": "catalogue.json",
|
||||
"gzipPath": "catalogue.json.gz",
|
||||
"rawSha256": "67f3d415dfbb05d42baa44fb6d959414707c0764dc4157349b222095aefbd30d",
|
||||
"gzipSha256": "3d9788e8edfef7732941acdb1e624a0426e9c2f111c50c33c6eb9692570b3d01"
|
||||
},
|
||||
{
|
||||
"path": "catalogue.txt",
|
||||
"gzipPath": "catalogue.txt.gz",
|
||||
"rawSha256": "3be6187ef9f41eb8d979b06e27ba3bf8bcdfcb94397bfbc148099a02868ef5d2",
|
||||
"gzipSha256": "d47827751eb8d8b43c9c04e08fe7a971a327f17f1f9094f065454de9f25fb56e"
|
||||
},
|
||||
{
|
||||
"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": "61d3fdabe70649239e6e23491018c83fa2b3d0aaf3fc7371fa7b391f80028a79",
|
||||
"gzipSha256": "d6566373a18c898950db977dc43d55aae0c5238e831bc3aa03fb7f71787fb536"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":1,"numPassedTests":3,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":1,"numTotalTests":3,"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":1794899411523,"success":true,"testResults":[{"assertionResults":[{"ancestorTitles":[],"duration":10,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"English and Bokmål expose the same UI message keys","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794899413606,"status":"passed","title":"English and Bokmål expose the same UI message keys"},{"ancestorTitles":[],"duration":4,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Bokmål preserves every English substitution variable","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794899413616,"status":"passed","title":"Bokmål preserves every English substitution variable"},{"ancestorTitles":[],"duration":2,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"supported UI catalogues contain no blank messages","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794899413621,"status":"passed","title":"supported UI catalogues contain no blank messages"}],"endTime":1794899413624,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\translation-catalogue.test.ts","startTime":1794899412329,"status":"passed","summary":""}],"wasInterrupted":false}
|
||||
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
Test Suites: 1 passed, 1 total
|
||||
Tests: 3 passed, 3 total
|
||||
Snapshots: 0 total
|
||||
Time: 2.106 s
|
||||
Ran all test suites matching src/translation-catalogue.test.ts.
|
||||
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\jobs-undo-catalogue.json
|
||||
Binary file not shown.
@@ -0,0 +1,18 @@
|
||||
Re-extracting code files in . (no LLM needed)...
|
||||
[graphify watch] 646 file(s) not classified (no supported extension or shebang), skipped: .dockerignore, .env.example, .git, .gitattributes, .gitignore, 1440-en-dark-converted.gz (+640 more)
|
||||
AST cache: 2574/3025 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: 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, 1188 communities now; renamed 95 community(ies) by their hub). Run `graphify label` to refresh names with the LLM.
|
||||
Graph has 19300 nodes (above 5000 limit). Building aggregated community view...
|
||||
graph.html written (aggregated: 1188 community nodes, 3226 cross-community edges)
|
||||
Tip: run with --obsidian for full node-level detail.
|
||||
[graphify watch] Rebuilt: 19300 nodes, 47424 edges, 1188 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: 69 passed, 69 total
|
||||
Snapshots: 0 total
|
||||
Time: 32.765 s
|
||||
Ran all test suites matching src/jobs-view-integration.test.tsx|src/dialog-text.test.tsx|src/application-workspace-overlay.test.tsx|src/i18n-provider.test.tsx.
|
||||
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\jobs-undo-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,151 @@
|
||||
FAIL src/jobs-view-integration.test.tsx (11.1 s)
|
||||
● trash feedback in nb exposes its translated Angre action and restores the same job
|
||||
|
||||
Unable to find role="button" and name "Angre"
|
||||
|
||||
Ignored nodes: comments, script, style
|
||||
<body
|
||||
style=""
|
||||
>
|
||||
<div>
|
||||
<output
|
||||
aria-label="Route"
|
||||
>
|
||||
/jobs
|
||||
</output>
|
||||
<button>
|
||||
History back
|
||||
</button>
|
||||
<button>
|
||||
History forward
|
||||
</button>
|
||||
<button>
|
||||
Job created
|
||||
</button>
|
||||
<div
|
||||
class="MuiBox-root css-0"
|
||||
>
|
||||
<div
|
||||
class="MuiBox-root css-1g1pux1"
|
||||
>
|
||||
<div
|
||||
aria-label="Jobbvisning"
|
||||
class="MuiBox-root css-1utx3w7"
|
||||
role="group"
|
||||
>
|
||||
<a
|
||||
aria-current="page"
|
||||
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary css-tm237w-MuiButtonBase-root-MuiButton-root"
|
||||
data-discover="true"
|
||||
href="/jobs?view=table"
|
||||
tabindex="0"
|
||||
>
|
||||
Tabell
|
||||
</a>
|
||||
<a
|
||||
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"
|
||||
data-discover="true"
|
||||
href="/jobs?view=board"
|
||||
tabindex="0"
|
||||
>
|
||||
Tavle
|
||||
</a>
|
||||
</div>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"
|
||||
role="status"
|
||||
>
|
||||
27 jobber samsvarer
|
||||
</p>
|
||||
</div>
|
||||
<div
|
||||
class="MuiBox-root css-1eini8u"
|
||||
>
|
||||
<div
|
||||
class="MuiFormControl-root MuiTextField-root css-1lssrpz-MuiFormControl-root-MuiTextField-root"
|
||||
>
|
||||
<label
|
||||
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined css-fluw5i-MuiFormLabel-root-MuiInputLabel-root"
|
||||
data-shrink="true"
|
||||
for="_r_1i_"
|
||||
id="_r_1i_-label"
|
||||
>
|
||||
Søk
|
||||
</label>
|
||||
<div
|
||||
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-sizeSmall MuiInputBase-adornedStart css-71sp51-MuiInputBase-root-MuiOutlinedInput-root"
|
||||
>
|
||||
<div
|
||||
class="MuiInputAdornment-root MuiInputAdornment-positionStart MuiInputAdornment-outlined MuiInputAdornment-sizeSmall css-1nowbqt-MuiInputAdornment-root"
|
||||
>
|
||||
<span
|
||||
aria-hidden="true"
|
||||
class="notranslate"
|
||||
>
|
||||
|
||||
</span>
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-120dh41-MuiSvgIcon-root"
|
||||
data-testid="SearchIcon"
|
||||
focusable="false"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"
|
||||
/>
|
||||
</svg>
|
||||
</div>
|
||||
<input
|
||||
aria-invalid="false"
|
||||
class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall MuiInputBase-inputAdornedStart css-14mk4rm-MuiInputBase-input-MuiOutlinedInput-input"
|
||||
id="_r_1i_"
|
||||
placeholder="Tittel, selskap, notater, meldinger"
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
<fieldset
|
||||
aria-hidden="true"
|
||||
class="MuiOutlinedInput-notchedOutline css-18p5xg2-MuiNotchedOutlined-root-MuiOutlinedInput-notchedOutline"
|
||||
>
|
||||
<legend
|
||||
class="css-ex8a5f-MuiNotchedOutlined-root"
|
||||
>
|
||||
<span>
|
||||
Søk
|
||||
</span>
|
||||
</legend>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="MuiFormControl-root css-1f2y67v-MuiFormControl-root"
|
||||
>
|
||||
<label
|
||||
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiFormLabel-filled MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined css-fluw5i-MuiFormLabel-root-MuiInputLabel-root"
|
||||
data-shrink="true"
|
||||
id="job-table-status-label"
|
||||
>
|
||||
Status
|
||||
</label>
|
||||
<div
|
||||
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-sizeSmall MuiSelect-root css-1n9wzir-MuiInputBase-root-MuiOutlinedInput-root-Mui...
|
||||
|
||||
74 | fireEvent.click(within(dialog).getByRole('button', { name: translations[language].jobTableMove }));
|
||||
75 | await waitFor(() => expect(mockedApi.delete).toHaveBeenCalledWith('/jobapplications/1'));
|
||||
> 76 | fireEvent.click(await screen.findByRole('button', { name: undo }));
|
||||
| ^
|
||||
77 | await waitFor(() => expect(mockedApi.post).toHaveBeenCalledWith('/jobapplications/1/restore'));
|
||||
78 | expect(await screen.findByText(translations[language].jobTableRestored)).toBeVisible();
|
||||
79 | });
|
||||
|
||||
at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:163:27)
|
||||
at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
|
||||
at findByRole (src/jobs-view-integration.test.tsx:76:32)
|
||||
|
||||
Test Suites: 1 failed, 1 total
|
||||
Tests: 1 failed, 22 skipped, 1 passed, 24 total
|
||||
Snapshots: 0 total
|
||||
Time: 12.046 s
|
||||
Ran all test suites matching src/jobs-view-integration.test.tsx with tests matching "trash feedback".
|
||||
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\jobs-undo-red.json
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user