Skip to content

Address post-merge review follow-ups for #795-#798 - #809

Merged
Zaldaryon merged 4 commits into
devfrom
fix/review-followups-795-798-publish
Nov 16, 2026
Merged

Zaldaryon merged 4 commits into
devfrom
fix/review-followups-795-798-publish

Conversation

@Zaldaryon

Copy link
Copy Markdown
Collaborator

Summary

Address nonblocking review notes left on the merged PRs #795, #796, #797 and #798:

  • Log the error caught while removing a world backup, and pin the backup deletion and pruning warnings in tests.
  • Cover a ModConfig folder changing to a link during file reading, and explain why the path is checked again after copying its recovery file.
  • Test the unsaved configuration recovery notice, clarify its type documentation, and align the French message with neighboring strings. The description on fix(config): replace unusable pre-migration backup and clarify non-object recovery notice (#625) #797 was also corrected to match the shipped notice.
  • Wait for the notification exit animation in the filtered and offline startup-update tests, so they fail if the notice closes unexpectedly.

Type

  • Bug fix
  • Feature
  • Performance
  • Refactor or cleanup
  • Tests only
  • Docs or build

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.
  • Focused IPC and renderer tests: 230 passed.

Related pull requests

#795, #796, #797 and #798

@Zaldaryon
Zaldaryon requested a review from Pixnop November 11, 2026 01:23
@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Translation status

en-US is the source and carries 966 keys.

Locale Keys Missing Stale To review on Weblate
be-BY 882 123 0 Needs editing
de-DE 855 111 0 Needs editing
es-ES 882 123 0 Needs editing
fr-FR 1005 0 0 Needs editing
hu-HU 855 111 0 Needs editing
it-IT 882 123 0 Needs editing
nl-NL 855 111 0 Needs editing
pl-PL 882 123 0 Needs editing
pt-BR 883 122 0 Needs editing
pt-PT 882 123 0 Needs editing
ru-RU 996 11 2 Needs editing
uk-UA 882 123 0 Needs editing
zh-CN 828 99 0 Needs editing

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 Pixnop left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  1. 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 :1366 happens during the readFile and the check at :783 refuses 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 swaps swapped/ for a link inside a fse.copy spy, right after the real copy of swapped/target.json resolves, holds it: assert failed is [swapped/target.json write-failed] and that join(backupFolder, "swapped", "target.json") does not exist. I tried it: it passes on this head and fails without the recheck.

  2. A few fr-FR differences remain against the neighbouring strings. Both new strings drop the comma before "et" that en-US and :1011 keep ({{copyName}}, et). :1015 says "qui a modifié le format des réglages" where :1011 says "ayant changé le format des réglages", and configNotAnObjectReset says "les réglages par défaut sont utilisés" where :1012 says "les valeurs par défaut sont utilisées". Optional.

@Zaldaryon
Zaldaryon requested a review from Pixnop November 11, 2026 11:22
@Zaldaryon
Zaldaryon merged commit 30322d6 into dev Nov 16, 2026
12 checks passed
@Zaldaryon
Zaldaryon deleted the fix/review-followups-795-798-publish branch November 16, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants