[PR #682] [MERGED] fix(noodle): restore Load more counts and missing localization keys #1087

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/682
Author: @Gunterlie
Created: 9/1/2026
Status: ✅ Merged
Merged: 9/1/2026
Merged by: @Gunterlie

Base: staging ← Head: fix/noodle-load-more-and-missing-locale-keys


📝 Commits (1)

  • 5e1cc8f fix(noodle): restore Load more counts and missing localization keys

📊 Changes

11 files changed (+106 additions, -35 deletions)

View changed files

➕ artifacts/noodle-1.2.17.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 packages/noodle/client.js (+8 -8)
📝 packages/noodle/manifest.json (+3 -3)
📝 packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx (+6 -3)
📝 packages/noodle/src/engine/packages/client/src/localization/locales/en.json (+25 -1)
📝 packages/noodle/src/engine/packages/client/src/localization/locales/ko.json (+22 -1)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 scripts/validate-package-locales.mjs (+23 -0)

📄 Description

Pull request

Linked issue

Closes #678
Partially addresses #677 (Noodle half; the Slurp half is in #683)

Why this change

  • Load more printed its own placeholders. Both call sites passed no interpolation values, so users saw the literal Load more ({{visible}} of {{total}}). The invite list was worse: raw placeholders and a leftover manual count concatenation from before the string moved into the catalog, rendering ...{{total}})12 of 40) with an unmatched paren. Slurp already does this correctly, so this was Noodle-only drift.
  • The image prompt review modal rendered raw key names. 23 localization keys referenced by the built client.js were absent from the package catalog — 10 of them every string in ImagePromptReviewModal. That component lives in components/ui/ in the Engine and is bundled into the package, but packages own their locale catalog, so a shared component ships with no strings at all.

What changed

  • NoodleHome.tsx:3430 — pass { visible, total }; delete the stray concatenation line and its unmatched paren.
  • NoodleHome.tsx:5247 — the main feed is cursor-paged and has no total, so it now uses a new count-free key ui.noodle.noodlehome.loadMorePosts instead of a key whose value expects counts.
  • en.json +23 keys, ko.json +21. All values come from the Engine catalog; nothing needed translating. The Engine has no de/pl values for these either, so those fall back to English exactly as the Engine does.
  • scripts/validate-package-locales.mjs — the 23 keys added to exactSharedKeys, following the existing precedent (that allowlist already carries ui.characters.charactercliptrimmodal.reset and two other Engine keys for the same reason).
  • Rebuilt noodle 1.2.16 → 1.2.17, with manifest, client.js, artifacts/noodle-1.2.17.zip, and all catalog lanes regenerated.

Package and security impact

  • Affected package IDs: noodle
  • Engine compatibility impact: none — engine.min and maxExclusive unchanged
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none beyond a normal package update

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

Boxes are left unticked deliberately, per AGENTS.md: they are a human verification list, not an agent's self-report. What was actually run, and its result:

  • npm run check — 0 errors, 68 warnings, all pre-existing in Slurp source this PR does not touch.
  • node scripts/test-catalog-lanes.mjs — pass.
  • node scripts/validate-package-locales.mjs — pass (en=1349, de=13, ko=955, pl=13).
  • node scripts/validate-catalog.mjs — pass (v2=36, v3=36).
  • Regression suite — 60 pass.
  • Package rebuilt via scripts/build-feature-packages.mjs noodle; verified in the rebuilt bundle that loadMorePosts resolves to "Load more" and both counted sites now emit {visible, total}.

Not performed: no manual install, restart, or in-app UI check. The button and modal text were verified by inspecting the rebuilt bundle, not by running Marinara.

Pre-existing failures, unrelated to this PR: noodle-all-invited-reliability, noodle-conversation-schedule, noodle-generated-refresh, and noodle-novelai-v5-runtime fail with Cannot find module '@marinara-engine/shared'. Confirmed identical on a clean origin/staging worktree.

Documentation impact

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

No documentation changes are needed: no catalog entry, package name, or user-facing guidance changed.

UI evidence (if applicable)

No screenshots — verified at the bundle level rather than in a running install, as noted above.

Notes for reviewers

How the missing keys were found: extracting "ui.*" literals from the built bundle and diffing against the catalog. A plural-aware check matters — ui.noodle.noodlerwizard.createCount looks missing but resolves through createCount_one/_other, and was a false positive on the first pass.

A validator automating this check ships with #683, because it only passes once both packages are fixed. #683 should merge after this one.

Still open for #677: the review modal's body sentence is assembled from six separate lookups with the plural "s" borrowed from ui.noodle.stageprofileview.s. That is unlocalisable regardless of the keys, and it lives in Engine code rather than this repo, so it is out of scope here.


🔄 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/682 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 9/1/2026 **Status:** ✅ Merged **Merged:** 9/1/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/noodle-load-more-and-missing-locale-keys` --- ### 📝 Commits (1) - [`5e1cc8f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5e1cc8fcadec88817e5d5d9a46c9de4b9b35d838) fix(noodle): restore Load more counts and missing localization keys ### 📊 Changes **11 files changed** (+106 additions, -35 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/noodle-1.2.17.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `packages/noodle/client.js` (+8 -8) 📝 `packages/noodle/manifest.json` (+3 -3) 📝 `packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx` (+6 -3) 📝 `packages/noodle/src/engine/packages/client/src/localization/locales/en.json` (+25 -1) 📝 `packages/noodle/src/engine/packages/client/src/localization/locales/ko.json` (+22 -1) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `scripts/validate-package-locales.mjs` (+23 -0) </details> ### 📄 Description # Pull request ## Linked issue Closes #678 Partially addresses #677 (Noodle half; the Slurp half is in #683) ## Why this change - **Load more printed its own placeholders.** Both call sites passed no interpolation values, so users saw the literal `Load more ({{visible}} of {{total}})`. The invite list was worse: raw placeholders *and* a leftover manual count concatenation from before the string moved into the catalog, rendering `...{{total}})12 of 40)` with an unmatched paren. Slurp already does this correctly, so this was Noodle-only drift. - **The image prompt review modal rendered raw key names.** 23 localization keys referenced by the built `client.js` were absent from the package catalog — 10 of them every string in `ImagePromptReviewModal`. That component lives in `components/ui/` in the Engine and is bundled into the package, but packages own their locale catalog, so a shared component ships with no strings at all. ## What changed - `NoodleHome.tsx:3430` — pass `{ visible, total }`; delete the stray concatenation line and its unmatched paren. - `NoodleHome.tsx:5247` — the main feed is cursor-paged and has no total, so it now uses a new count-free key `ui.noodle.noodlehome.loadMorePosts` instead of a key whose value expects counts. - `en.json` +23 keys, `ko.json` +21. All values come from the Engine catalog; nothing needed translating. The Engine has no `de`/`pl` values for these either, so those fall back to English exactly as the Engine does. - `scripts/validate-package-locales.mjs` — the 23 keys added to `exactSharedKeys`, following the existing precedent (that allowlist already carries `ui.characters.charactercliptrimmodal.reset` and two other Engine keys for the same reason). - Rebuilt `noodle` `1.2.16` → `1.2.17`, with manifest, `client.js`, `artifacts/noodle-1.2.17.zip`, and all catalog lanes regenerated. ## Package and security impact - Affected package IDs: `noodle` - Engine compatibility impact: none — `engine.min` and `maxExclusive` unchanged - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none beyond a normal package update ## 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 Boxes are left unticked deliberately, per `AGENTS.md`: they are a human verification list, not an agent's self-report. What was actually run, and its result: - `npm run check` — 0 errors, 68 warnings, all pre-existing in Slurp source this PR does not touch. - `node scripts/test-catalog-lanes.mjs` — pass. - `node scripts/validate-package-locales.mjs` — pass (`en=1349, de=13, ko=955, pl=13`). - `node scripts/validate-catalog.mjs` — pass (`v2=36, v3=36`). - Regression suite — 60 pass. - Package rebuilt via `scripts/build-feature-packages.mjs noodle`; verified in the rebuilt bundle that `loadMorePosts` resolves to `"Load more"` and both counted sites now emit `{visible, total}`. **Not performed:** no manual install, restart, or in-app UI check. The button and modal text were verified by inspecting the rebuilt bundle, not by running Marinara. **Pre-existing failures, unrelated to this PR:** `noodle-all-invited-reliability`, `noodle-conversation-schedule`, `noodle-generated-refresh`, and `noodle-novelai-v5-runtime` fail with `Cannot find module '@marinara-engine/shared'`. Confirmed identical on a clean `origin/staging` worktree. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation No documentation changes are needed: no catalog entry, package name, or user-facing guidance changed. ## UI evidence (if applicable) No screenshots — verified at the bundle level rather than in a running install, as noted above. ## Notes for reviewers **How the missing keys were found:** extracting `"ui.*"` literals from the built bundle and diffing against the catalog. A plural-aware check matters — `ui.noodle.noodlerwizard.createCount` looks missing but resolves through `createCount_one`/`_other`, and was a false positive on the first pass. A validator automating this check ships with #683, because it only passes once both packages are fixed. **#683 should merge after this one.** **Still open for #677:** the review modal's body sentence is assembled from six separate lookups with the plural "s" borrowed from `ui.noodle.stageprofileview.s`. That is unlocalisable regardless of the keys, and it lives in Engine code rather than this repo, so it is out of scope here. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:02: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#1087
No description provided.