[PR #1188] [MERGED] fix(noodle): camera for post pictures, translate posts and comments (1.4.0) #1336

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

📋 Pull Request Information

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

Base: staging ← Head: fix/noodle-camera-translate


📝 Commits (8)

  • 38c4585 fix(noodle): offer the camera when adding a picture on Android
  • 0d74f78 feat(noodle): translate posts and comments
  • 7fcee87 docs(noodle): describe Noodle in plain words
  • dad1260 chore(noodle): release 1.4.0
  • 4442c35 fix(noodle): ignore late translation answers after a hide
  • 69d4b51 Merge remote-tracking branch 'origin/staging' into fix/noodle-camera-translate
  • b18f31a docs(noodle): say the camera option is for Chrome on Android
  • c359b0a Merge remote-tracking branch 'origin/staging' into fix/noodle-camera-translate

📊 Changes

22 files changed (+640 additions, -277 deletions)

View changed files

📝 README.md (+1 -1)
➕ artifacts/noodle-1.4.0.zip (+0 -0)
📝 catalog/catalog.json (+11 -11)
📝 catalog/notes.json (+6 -0)
📝 catalog/v2/catalog.json (+11 -11)
📝 catalog/v2/notes.json (+6 -0)
📝 catalog/v3/catalog.json (+11 -11)
📝 catalog/v3/notes.json (+6 -0)
📝 packages/noodle/CHANGELOG.md (+6 -0)
📝 packages/noodle/README.md (+2 -0)
📝 packages/noodle/agents.json (+1 -1)
📝 packages/noodle/client.js (+22 -21)
📝 packages/noodle/locales/en.json (+2 -2)
📝 packages/noodle/manifest.json (+8 -8)
📝 packages/noodle/server.mjs (+205 -201)
📝 packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx (+9 -3)
📝 packages/noodle/src/engine/packages/client/src/components/noodle/NoodleImageComposer.tsx (+6 -0)
📝 packages/noodle/src/engine/packages/client/src/components/noodle/NoodlePostCard.tsx (+67 -2)
➕ packages/noodle/src/engine/packages/client/src/components/noodle/noodle-translation.ts (+87 -0)
📝 packages/noodle/src/engine/packages/client/src/localization/locales/en.json (+6 -0)

...and 2 more files

📄 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 #1189. Fixes Pasta-Devs/Marinara-Engine#6939 and Pasta-Devs/Marinara-Engine#6940. The description change is part of #1187.

Why this change

  • #6939: On Android, adding a picture to a Noodle post only let you pick an existing photo; there was no camera option. Noodle's pickers already used accept="image/*", but on Android 13+ Chrome opens its photo picker for image-only inputs, and that picker has no camera.
  • #6940: You couldn't translate Noodle posts and comments, even though chats can.
  • #1187: Noodle's description, "Explore the Noodle public timeline as an optional local social world", didn't say what Noodle is.

What changed

  • Camera: all three post image pickers now use image/*,android/allowCamera. Chrome then shows the chooser with Camera and Files, and Files still lists only images. I checked this against Chromium's SelectFileDialog.java. A ponytail: comment explains the trick and the fallback, a separate "Take photo" button.
  • Translation:
    • Every post menu, your own posts included, gets Translate / Hide translation, and every comment gets a translate button.
    • It uses the same translation settings you saved from a chat ("Save translator defaults") through the Engine's existing /api/translate, so no Engine change is needed.
    • With nothing saved, it uses Google Translate into English, like a new chat does.
    • Translations show under the original and aren't stored.
  • Description: "A pretend social network where your characters post, share photos, and talk about your chats."
  • Release: Noodle 1.4.0, above the highest published version (1.3.1), with a CHANGELOG entry, the rebuilt zip and catalogs.

Package and security impact

  • Affected package IDs: noodle
  • Engine compatibility impact: none; it uses endpoints that exist in Engine 2.4.6, Noodle's minimum.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: a normal package update. Translations aren't saved.

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

What I ran (not a replacement for the checklist):

  • New browser tests in tests/package-noodle.e2e.ts:

    • all three pickers' accept values;
    • translating a post and a comment: the request sent, show and hide, and the error message.
    • They pass on desktop and mobile, and fail against the published 1.3.1.
  • Other package checks pass: npm run check, typecheck:packages, test:security, the catalog and locale validators, the release-note tests and git diff --check. A second rebuild is byte-identical.

  • Noodle source regressions: five fail on clean staging too, and the same five fail here. "Latest Posts" fails in CI on staging as well, because the Engine's widget dialog now folds Noodle's widgets away.

  • Local CodeRabbit: two rounds. Round 1 found a race: a late translation answer or error could overwrite a newer one after Hide. It's fixed with a per-request token, and a new e2e test failed before the fix. Round 2 noted the release notes promised the camera on every Android phone; they now say Chrome on Android, since the app's WebView is #6953.

  • Staging merged: after merging staging (LTM 1.3.35/1.3.36), the Noodle rebuild changed nothing, and the catalog checks pass.

To check by hand:

  • On an Android phone in Chrome, start a Noodle post, tap the picture button, and confirm Camera is offered.
  • Translate a post, a comment and one of your own posts, and hide them again.

Known gap: the Marinara Android app's WebView never offers a camera, for Noodle or chats. That's Engine code (MainActivity.java onShowFileChooser), tracked in Pasta-Devs/Marinara-Engine#6953.

Summary by CodeRabbit

  • New Features
    • Translate Noodle posts and comments using your saved chat translation settings. If none are saved, translations default to Google Translate in English. Show or hide translations beneath the original text.
    • Use camera access to add images in Chrome on Android. Camera access is not available in the Marinara Android app.
  • Updates
    • Noodle is now version 1.4.0, with an updated description of its character posts, photo sharing, and chat discussions.

🔄 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/1188 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/1/2026 **Status:** ✅ Merged **Merged:** 10/2/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/noodle-camera-translate` --- ### 📝 Commits (8) - [`38c4585`](https://github.com/Pasta-Devs/Marinara-Agents/commit/38c45856aa7009d7c3e015386751a712023ebf89) fix(noodle): offer the camera when adding a picture on Android - [`0d74f78`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0d74f78fdddf6a400b50ade880ea02851aab15b3) feat(noodle): translate posts and comments - [`7fcee87`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7fcee875a08100951ddd14b5f8ad53ae8e60bcb2) docs(noodle): describe Noodle in plain words - [`dad1260`](https://github.com/Pasta-Devs/Marinara-Agents/commit/dad12609fb583b8b2fe23085681d3847ebd776db) chore(noodle): release 1.4.0 - [`4442c35`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4442c35bd9adbc79532c20f35b1b52b6121f49d5) fix(noodle): ignore late translation answers after a hide - [`69d4b51`](https://github.com/Pasta-Devs/Marinara-Agents/commit/69d4b51c372e7b4d87d3866814fbd2dadcb05cc7) Merge remote-tracking branch 'origin/staging' into fix/noodle-camera-translate - [`b18f31a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b18f31a33815622ff09f6843c16a2205cf49c3e6) docs(noodle): say the camera option is for Chrome on Android - [`c359b0a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c359b0a4c63c89314b8fcfb88656df4ef20c9ca2) Merge remote-tracking branch 'origin/staging' into fix/noodle-camera-translate ### 📊 Changes **22 files changed** (+640 additions, -277 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -1) ➕ `artifacts/noodle-1.4.0.zip` (+0 -0) 📝 `catalog/catalog.json` (+11 -11) 📝 `catalog/notes.json` (+6 -0) 📝 `catalog/v2/catalog.json` (+11 -11) 📝 `catalog/v2/notes.json` (+6 -0) 📝 `catalog/v3/catalog.json` (+11 -11) 📝 `catalog/v3/notes.json` (+6 -0) 📝 `packages/noodle/CHANGELOG.md` (+6 -0) 📝 `packages/noodle/README.md` (+2 -0) 📝 `packages/noodle/agents.json` (+1 -1) 📝 `packages/noodle/client.js` (+22 -21) 📝 `packages/noodle/locales/en.json` (+2 -2) 📝 `packages/noodle/manifest.json` (+8 -8) 📝 `packages/noodle/server.mjs` (+205 -201) 📝 `packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx` (+9 -3) 📝 `packages/noodle/src/engine/packages/client/src/components/noodle/NoodleImageComposer.tsx` (+6 -0) 📝 `packages/noodle/src/engine/packages/client/src/components/noodle/NoodlePostCard.tsx` (+67 -2) ➕ `packages/noodle/src/engine/packages/client/src/components/noodle/noodle-translation.ts` (+87 -0) 📝 `packages/noodle/src/engine/packages/client/src/localization/locales/en.json` (+6 -0) _...and 2 more files_ </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 #1189. Fixes Pasta-Devs/Marinara-Engine#6939 and Pasta-Devs/Marinara-Engine#6940. The description change is part of #1187. ## Why this change - **#6939:** On Android, adding a picture to a Noodle post only let you pick an existing photo; there was no camera option. Noodle's pickers already used `accept="image/*"`, but on Android 13+ Chrome opens its photo picker for image-only inputs, and that picker has no camera. - **#6940:** You couldn't translate Noodle posts and comments, even though chats can. - **#1187:** Noodle's description, "Explore the Noodle public timeline as an optional local social world", didn't say what Noodle is. ## What changed - **Camera:** all three post image pickers now use `image/*,android/allowCamera`. Chrome then shows the chooser with **Camera** and **Files**, and Files still lists only images. I checked this against Chromium's `SelectFileDialog.java`. A `ponytail:` comment explains the trick and the fallback, a separate "Take photo" button. - **Translation:** - Every post menu, your own posts included, gets **Translate** / **Hide translation**, and every comment gets a translate button. - It uses the same translation settings you saved from a chat ("Save translator defaults") through the Engine's existing `/api/translate`, so no Engine change is needed. - With nothing saved, it uses Google Translate into English, like a new chat does. - Translations show under the original and aren't stored. - **Description:** "A pretend social network where your characters post, share photos, and talk about your chats." - **Release:** Noodle 1.4.0, above the highest published version (1.3.1), with a CHANGELOG entry, the rebuilt zip and catalogs. ## Package and security impact - Affected package IDs: `noodle` - Engine compatibility impact: none; it uses endpoints that exist in Engine 2.4.6, Noodle's minimum. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: a normal package update. Translations aren't saved. ## 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 What I ran (not a replacement for the checklist): - **New browser tests** in `tests/package-noodle.e2e.ts`: - all three pickers' `accept` values; - translating a post and a comment: the request sent, show and hide, and the error message. - They pass on desktop and mobile, and fail against the published 1.3.1. - **Other package checks pass:** `npm run check`, `typecheck:packages`, `test:security`, the catalog and locale validators, the release-note tests and `git diff --check`. A second rebuild is byte-identical. - **Noodle source regressions:** five fail on clean `staging` too, and the same five fail here. "Latest Posts" fails in CI on `staging` as well, because the Engine's widget dialog now folds Noodle's widgets away. - **Local CodeRabbit:** two rounds. Round 1 found a race: a late translation answer or error could overwrite a newer one after Hide. It's fixed with a per-request token, and a new e2e test failed before the fix. Round 2 noted the release notes promised the camera on every Android phone; they now say Chrome on Android, since the app's WebView is #6953. - **Staging merged:** after merging staging (LTM 1.3.35/1.3.36), the Noodle rebuild changed nothing, and the catalog checks pass. To check by hand: - On an Android phone in Chrome, start a Noodle post, tap the picture button, and confirm **Camera** is offered. - Translate a post, a comment and one of your own posts, and hide them again. Known gap: the Marinara Android app's WebView never offers a camera, for Noodle or chats. That's Engine code (`MainActivity.java` `onShowFileChooser`), tracked in Pasta-Devs/Marinara-Engine#6953. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Translate Noodle posts and comments using your saved chat translation settings. If none are saved, translations default to Google Translate in English. Show or hide translations beneath the original text. * Use camera access to add images in Chrome on Android. Camera access is not available in the Marinara Android app. * **Updates** * Noodle is now version 1.4.0, with an updated description of its character posts, photo sharing, and chat discussions. <!-- 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:08 +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#1336
No description provided.