[PR #1221] [MERGED] feat(noodle): 1.5.0 — translate posts automatically and keep translations #1349

Closed
opened 2026-10-21 05:09:21 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1221
Author: @SpicyMarinara
Created: 10/3/2026
Status: ✅ Merged
Merged: 10/3/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/noodle-auto-translate-7013


📝 Commits (2)

  • b93ffc2 feat(noodle): 1.5.0 — translate posts automatically and keep translations
  • 8b729a7 fix(noodle): keep on-screen translations and stop automatic ones when turned off

📊 Changes

20 files changed (+872 additions, -247 deletions)

View changed files

➕ artifacts/noodle-1.5.0.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -0)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -0)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -0)
📝 packages/noodle/CHANGELOG.md (+5 -0)
📝 packages/noodle/README.md (+1 -1)
📝 packages/noodle/client.js (+23 -21)
📝 packages/noodle/manifest.json (+5 -5)
📝 packages/noodle/server.mjs (+135 -135)
📝 packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx (+21 -0)
📝 packages/noodle/src/engine/packages/client/src/components/noodle/NoodlePostCard.tsx (+24 -4)
📝 packages/noodle/src/engine/packages/client/src/components/noodle/noodle-settings-defaults.ts (+4 -2)
📝 packages/noodle/src/engine/packages/client/src/components/noodle/noodle-translation.ts (+219 -43)
📝 packages/noodle/src/engine/packages/client/src/localization/locales/en.json (+3 -0)
📝 packages/noodle/src/engine/packages/server/src/services/storage/noodle.storage.ts (+2 -0)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/package-noodle.e2e.ts (+387 -11)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #1220

Refs Pasta-Devs/Marinara-Engine#7013.

Why this change

Noodle translations disappeared as soon as a post card was shown again: leaving Noodle and coming back, switching views, or reloading. They lived only in each card's React state. Readers also asked for a setting that translates posts without clicking Translate on each one (Engine#7013).

What changed

  • New setting: Settings → General → Translate posts automatically, off by default and saved with the other Noodle settings.
    • It translates posts and comments the user's personas didn't write, two requests at a time, with the translator defaults saved from a chat's Translation settings.
    • Text already in the target language gets no second copy.
    • Turning the switch off stops translations that haven't finished.
    • Screen readers announce only translations the reader asked for.
  • Kept translations: one shared store keeps translations in this browser (localStorage). It holds the newest 300, plus every automatic translation shown since the page loaded. Refresh timeline, leaving Noodle and a reload show them again without a new request.
    • A translation is reused only while the text, provider and language still match.
    • Hide is remembered, including a Hide clicked while the translation was still loading.
    • Reset timeline and Delete All forget them.
  • Package files: README and CHANGELOG updated. Noodle 1.5.0, rebuilt with MARINARA_ENGINE_ROOT at Engine ead04150a, which reproduces the published 1.4.1 byte for byte; a second rebuild is identical. Manifest, payloads, artifacts/noodle-1.5.0.zip and the catalog entries are updated.

Package and security impact

  • Affected package IDs: noodle (1.4.1 → 1.5.0)
  • Engine compatibility impact: none. It uses the existing /api/translate and translator-defaults endpoints. minEngineVersion stays 2.4.6.
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact:
    • One new Noodle setting, autoTranslatePosts, default false.
    • Translations are kept in the browser's localStorage under marinara:noodle:translations. Nothing new is stored on the server.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

Run by the agent:

  • These pass: npm run check (same warnings as before), npm run typecheck:packages, test-catalog-lanes, validate-package-locales, validate-package-locale-keys, validate-catalog, the catalog-release-notes, ui-translation-retention, generatedAt-determinism and vendored-engine regressions, npm run test:security and git diff --check.
  • Noodle browser suite on Engine export ead04150a: the translation tests pass 10/10 on desktop and mobile.
    • New tests cover: a translation surviving a reload and Refresh timeline; automatic translation with one request each; Hide remembered; a language change translating again; persona posts left alone; same-language text; turning the switch off; and the 300-entry limit.
    • Each new or changed test fails on the code before its fix.
    • The rest of the suite: 40 passed, 12 skipped, and 2 failed. "Latest Posts can be added…" fails at the Engine's Home Widgets dialog on both projects, before this change as well.
  • Noodle/NoodleR regressions match staging; the same 5 fail on both.
  • An adversarial review found six real problems, all fixed with test proof: the store kept 150 entries instead of 300, the switch didn't stop queued translations, every automatic translation was announced, duplicate same-language copies, Hide not remembered while loading, and a persona post with a missing account being translated. One overstated claim in the description was corrected.

Still to verify by hand:

  • Update Noodle to 1.5.0 through Marinara Engine. In a chat's Translation settings pick a provider and target language, then turn on Translate posts automatically in Noodle's General settings. New posts and comments show translations without clicking Translate.
  • Leave Noodle and come back, then reload. The translations are still there, with no new translation requests.
  • Hide one translation and reload: it stays hidden.
  • Turn the switch off while posts are still translating. No more translations start.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

packages/noodle/README.md and the package CHANGELOG are updated. The Engine's docs/noodle/settings.md gets the new switch in a small Engine PR.

Summary by CodeRabbit

  • New Features
    • Added an option to automatically translate posts and comments using saved chat translation preferences. Persona-authored content and text already in your language are excluded.
    • Translations and hidden states persist in the same browser across refreshes and navigation. Disabling automatic translation stops pending translations; resetting the timeline or deleting Noodle data clears saved translations.
  • Documentation
    • Updated Noodle’s release notes and help text for version 1.5.0.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/1221 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/3/2026 **Status:** ✅ Merged **Merged:** 10/3/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/noodle-auto-translate-7013` --- ### 📝 Commits (2) - [`b93ffc2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b93ffc2e9448ccbcded6028ba887b26d1c081c1c) feat(noodle): 1.5.0 — translate posts automatically and keep translations - [`8b729a7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8b729a7b615a9efe5d0556963af607373bf0e7a7) fix(noodle): keep on-screen translations and stop automatic ones when turned off ### 📊 Changes **20 files changed** (+872 additions, -247 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/noodle-1.5.0.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -0) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -0) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -0) 📝 `packages/noodle/CHANGELOG.md` (+5 -0) 📝 `packages/noodle/README.md` (+1 -1) 📝 `packages/noodle/client.js` (+23 -21) 📝 `packages/noodle/manifest.json` (+5 -5) 📝 `packages/noodle/server.mjs` (+135 -135) 📝 `packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx` (+21 -0) 📝 `packages/noodle/src/engine/packages/client/src/components/noodle/NoodlePostCard.tsx` (+24 -4) 📝 `packages/noodle/src/engine/packages/client/src/components/noodle/noodle-settings-defaults.ts` (+4 -2) 📝 `packages/noodle/src/engine/packages/client/src/components/noodle/noodle-translation.ts` (+219 -43) 📝 `packages/noodle/src/engine/packages/client/src/localization/locales/en.json` (+3 -0) 📝 `packages/noodle/src/engine/packages/server/src/services/storage/noodle.storage.ts` (+2 -0) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/package-noodle.e2e.ts` (+387 -11) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #1220 Refs Pasta-Devs/Marinara-Engine#7013. ## Why this change Noodle translations disappeared as soon as a post card was shown again: leaving Noodle and coming back, switching views, or reloading. They lived only in each card's React state. Readers also asked for a setting that translates posts without clicking Translate on each one (Engine#7013). ## What changed - **New setting:** **Settings → General → Translate posts automatically**, off by default and saved with the other Noodle settings. - It translates posts and comments the user's personas didn't write, two requests at a time, with the translator defaults saved from a chat's Translation settings. - Text already in the target language gets no second copy. - Turning the switch off stops translations that haven't finished. - Screen readers announce only translations the reader asked for. - **Kept translations:** one shared store keeps translations in this browser (localStorage). It holds the newest 300, plus every automatic translation shown since the page loaded. Refresh timeline, leaving Noodle and a reload show them again without a new request. - A translation is reused only while the text, provider and language still match. - Hide is remembered, including a Hide clicked while the translation was still loading. - Reset timeline and Delete All forget them. - **Package files:** README and CHANGELOG updated. Noodle 1.5.0, rebuilt with `MARINARA_ENGINE_ROOT` at Engine `ead04150a`, which reproduces the published 1.4.1 byte for byte; a second rebuild is identical. Manifest, payloads, `artifacts/noodle-1.5.0.zip` and the catalog entries are updated. ## Package and security impact - Affected package IDs: `noodle` (1.4.1 → 1.5.0) - Engine compatibility impact: none. It uses the existing `/api/translate` and translator-defaults endpoints. `minEngineVersion` stays 2.4.6. - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: - One new Noodle setting, `autoTranslatePosts`, default false. - Translations are kept in the browser's localStorage under `marinara:noodle:translations`. Nothing new is stored on the server. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Run by the agent: - These pass: `npm run check` (same warnings as before), `npm run typecheck:packages`, `test-catalog-lanes`, `validate-package-locales`, `validate-package-locale-keys`, `validate-catalog`, the catalog-release-notes, ui-translation-retention, generatedAt-determinism and vendored-engine regressions, `npm run test:security` and `git diff --check`. - Noodle browser suite on Engine export `ead04150a`: the translation tests pass 10/10 on desktop and mobile. - New tests cover: a translation surviving a reload and Refresh timeline; automatic translation with one request each; Hide remembered; a language change translating again; persona posts left alone; same-language text; turning the switch off; and the 300-entry limit. - Each new or changed test fails on the code before its fix. - The rest of the suite: 40 passed, 12 skipped, and 2 failed. "Latest Posts can be added…" fails at the Engine's Home Widgets dialog on both projects, before this change as well. - Noodle/NoodleR regressions match staging; the same 5 fail on both. - An adversarial review found six real problems, all fixed with test proof: the store kept 150 entries instead of 300, the switch didn't stop queued translations, every automatic translation was announced, duplicate same-language copies, Hide not remembered while loading, and a persona post with a missing account being translated. One overstated claim in the description was corrected. Still to verify by hand: - Update Noodle to 1.5.0 through Marinara Engine. In a chat's Translation settings pick a provider and target language, then turn on **Translate posts automatically** in Noodle's General settings. New posts and comments show translations without clicking Translate. - Leave Noodle and come back, then reload. The translations are still there, with no new translation requests. - Hide one translation and reload: it stays hidden. - Turn the switch off while posts are still translating. No more translations start. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation `packages/noodle/README.md` and the package CHANGELOG are updated. The Engine's `docs/noodle/settings.md` gets the new switch in a small Engine PR. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added an option to automatically translate posts and comments using saved chat translation preferences. Persona-authored content and text already in your language are excluded. * Translations and hidden states persist in the same browser across refreshes and navigation. Disabling automatic translation stops pending translations; resetting the timeline or deleting Noodle data clears saved translations. * **Documentation** * Updated Noodle’s release notes and help text for version 1.5.0. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:09:21 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#1349
No description provided.