Repository navigation
Address post-merge review follow-ups for #795-#798 - #809
Conversation
Translation statusen-US is the source and carries 966 keys.
The links open the strings Weblate marks Needs editing for each language: the machine drafts made before Weblate, plus any string whose English changed since it was translated. See #496. |
Pixnop
left a comment
There was a problem hiding this comment.
I reviewed fc384e66 against dev 8e293f0c: read the commit against the four comments it answers, ran the changed test files at the head, took each guarded line out again to see which test goes red, and merged the branch into dev to rerun typecheck, the locale generator and the touched tests there.
#795: both warn lines and the new cause are pinned. With the warn at worldsHandlers.ts:487 removed, only the test at worldsHandlers.test.ts:846 fails, on its assertion at :900. With the prune warn at :272 removed, only the #620 test at :929 fails (:956). The debug line at :152 is held by the new test at :906, and no caller logs the error, so nothing is logged twice.
#796: the swap during the readFile is a test now. modConfigs.test.ts:1366 fails when I take out the check after the ensureDir (modConfigs.ts:783), and when I take out both checks. The comment at :808-809 says why the folder is checked again. One gap is left, see below.
#797: all four notes are done. The new case at configRecoveryNotice.test.tsx:122 fails when NotificationsContext.tsx:384 becomes !preserved && cause !== "not-an-object". fr-FR has no curly apostrophe left, and both strings at fr-FR.json:1015-1016 say "Votre fichier de réglages". The alias now sits above the doc block (global.d.ts:675), so hovering ConfigRecoveryNotice shows the "Three shapes" text, and the unreadable bullet explains cause. The #797 description now says the notice does not advise editing the copy.
#798: the filtered and offline cases now catch their bugs every time. With the old Update all block back in useBulkUpdateMods.ts, filtered fails. With the onFinish condition reduced to updates === 0, offline fails, on this head and on the merged tree after #806. With the 1.5 s negative wait, those two cases take about 4 s on CI, far under their 12 s timeout.
The branch merges into dev 8e293f0c without conflicts. On the merged tree typecheck passes, the generator leaves translation-status.md as it is, and the four changed test files plus manageModsActionsNetwork.test.tsx pass (243 tests). CI is green.
Approving.
Not blocking
-
The recheck after the verified copy is still not held on its own. If I delete only
modConfigs.ts:807-814, all 79 tests pass, because the swap in:1366happens during thereadFileand the check at:783refuses the entry first. Without that recheck, a folder swapped right after the copy leaves a recovery copy for an entry the write loop then refuses. A second case that swapsswapped/for a link inside afse.copyspy, right after the real copy ofswapped/target.jsonresolves, holds it: assertfailedis[swapped/target.json write-failed]and thatjoin(backupFolder, "swapped", "target.json")does not exist. I tried it: it passes on this head and fails without the recheck. -
A few fr-FR differences remain against the neighbouring strings. Both new strings drop the comma before "et" that en-US and
:1011keep ({{copyName}}, et).:1015says "qui a modifié le format des réglages" where:1011says "ayant changé le format des réglages", andconfigNotAnObjectResetsays "les réglages par défaut sont utilisés" where:1012says "les valeurs par défaut sont utilisées". Optional.
Summary
Address nonblocking review notes left on the merged PRs #795, #796, #797 and #798:
Type
Testing
npm run typecheck: passed.npm run lint:ci: passed with 12 existing React hook warnings and no errors.npm run format:check: passed.npm run test:coverage: 305 files, 5,976 passed, 4 skipped; 95.11% statements, 91.39% branches, 95.84% functions and 97.07% lines.npm run build:unpack: passed with the locked Electron 44.9.3 distribution.Related pull requests
#795, #796, #797 and #798