[PR #311] [MERGED] fix(noodle): NoodleR follow-ups from #307 and a mobile UI pass #908

Closed
opened 2026-10-20 17:32:12 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/311
Author: @Gunterlie
Created: 8/12/2026
Status: ✅ Merged
Merged: 8/12/2026
Merged by: @Gunterlie

Base: staging ← Head: agent/307-noodler-followups


📝 Commits (10+)

  • e57f6e5 fix(noodle): harden NoodleR identity handling (#307)
  • f1789dc fix(noodle): make NoodleR write paths atomic and explicit (#307)
  • 2a68c85 fix(noodle): resolve sampling defaults per parameter (#307)
  • 257747b test(noodle): cover the invited flag and the evaluator failure paths (#307)
  • 9821b35 fix(noodle): fix the creator row layout and its delete confirmation
  • 34acb33 fix(noodle): render the package's own confirmation dialogs
  • 2542ffa fix(noodle): match the NoodleR phone header and auto-hide both sticky bars
  • ba2af11 fix(noodle): lay the composer button row out for a phone
  • 2152cda fix(noodle): move the sticky header with the scroll instead of toggling it
  • a46c5df fix(noodle): drop the account avatar from the phone header

📊 Changes

40 files changed (+1532 additions, -640 deletions)

View changed files

➕ artifacts/noodle-1.0.6.zip (+0 -0)
📝 catalog/catalog.json (+9 -9)
📝 catalog/v2/catalog.json (+9 -9)
📝 catalog/v3/catalog.json (+9 -9)
📝 packages/noodle/client.js (+35 -23)
📝 packages/noodle/manifest.json (+5 -5)
📝 packages/noodle/server.mjs (+209 -208)
📝 packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx (+75 -66)
📝 packages/noodle/src/engine/packages/client/src/components/noodle/NoodlePostCard.tsx (+28 -12)
📝 packages/noodle/src/engine/packages/client/src/components/noodle/NoodleShell.tsx (+193 -14)
📝 packages/noodle/src/engine/packages/client/src/components/noodle/NoodlerHome.tsx (+102 -33)
📝 packages/noodle/src/engine/packages/client/src/components/noodle/NoodlerPublishingSettings.tsx (+26 -31)
📝 packages/noodle/src/engine/packages/client/src/localization/locales/en.json (+4 -1)
📝 packages/noodle/src/engine/packages/client/src/localization/locales/ko.json (+46 -0)
📝 packages/noodle/src/engine/packages/client/src/noodle-package-entry.tsx (+6 -0)
📝 packages/noodle/src/engine/packages/server/src/routes/noodle.routes.ts (+38 -19)
📝 packages/noodle/src/engine/packages/server/src/services/noodle/noodle-ambient-profile-generation.service.ts (+13 -4)
📝 packages/noodle/src/engine/packages/server/src/services/noodle/noodle-invited-post-draft.service.ts (+14 -7)
📝 packages/noodle/src/engine/packages/server/src/services/noodle/noodle-noodler-fan-activity.service.ts (+10 -4)
📝 packages/noodle/src/engine/packages/server/src/services/noodle/noodle-noodler-generation.service.ts (+38 -36)

...and 20 more files

📄 Description

Pull request

Linked issue

Closes #312
Closes #307

Why this change

  • #307 collected the CodeRabbit findings deliberately left out of #305: privacy hardening, atomicity on the NoodleR write paths, sampling precedence, and test gaps. Several are Major findings on pre-existing code.
  • Testing those on the dev Engine surfaced #312. The worst of it: every confirmation dialog in the package was dead, so the Creator delete button and several other destructive actions did nothing at all. Deleting a Creator profile also removed the linked character from Noodle, which it should never have done.
  • The NoodleR surface had no phone header, the composer scattered its buttons at phone widths, and returning to Noodle from NoodleR was visibly slow while the trip out was instant.

What changed

#307 follow-ups

  • Audience projection built from an explicit allow-list instead of stripping the owner object.
  • Stored hinted/secret source revisions use a salted HMAC; legacy unsalted tokens fail the format test on purpose so storage re-minimizes them.
  • Disclosure review returns { code, count, label }; the avatar confirmation matches a stable code, not an English literal.
  • Invited-post prompt sends the six fields the draft needs, not the whole character record.
  • A post and its linked locked follow-up are written in one transaction; a request carrying both an existing and a new follow-up is rejected.
  • PATCH /noodler/image-connections is serialized against lost updates, validates creatorId, and rejects a half-specified patch.
  • A disclosure downgrade reports discardedPreparedPostCount instead of discarding reserve posts silently.
  • Sampling defaults resolve per parameter at all eight call sites: a user-set connection value wins, the package default fills the rest.
  • Tests: non-boolean invited coverage, and a regression driving every rejection path and failing gate of the generation evaluator.
  • 43 missing ko.json keys from #305.

#312 fixes

  • AppDialogRenderer mounts inside the package tree, so showConfirmDialog resolves and every confirmation works again.
  • Deleting a Creator profile touches only the Creator profile.
  • Creator rows, the composer button row, the NoodleR phone header, scroll-following sticky bars, a collapsible Discover section, and a bottom bar that stays populated in NoodleR settings.
  • The post Markdown parse is memoized, which is what made returning to Noodle slow.

Deliberately not done: the shared guidance constant (still not importable by both bundles) and the POSIX-only test loop. Reasons are in the commits.

Package and security impact

  • Affected package IDs: noodle
  • Engine compatibility impact: none. No new Engine APIs; AppDialogRenderer is vendored into sources/engine alongside the Modal and dialog.store already there.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: version 1.0.6, so existing 1.0.5 installs see the update.

Legacy revision-token migration. Existing unsalted revision:<digest> tokens fail isMinimizedNoodlerSourceSnapshot on purpose. listNoodlerStageProfiles already re-minimizes any hinted or secret baseline that fails that test and persists the result, so an existing database heals itself on the first Creator listing after the update — including when the linked source account is gone, which is handled by the in-place branch added in #305. No migration step, no data loss, and no window in which a private field is exposed. The first listing after the update reports every hinted/secret profile's source as current, since the new baseline is written from the current source.

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

Built with MARINARA_ENGINE_ROOT pointing at an origin/staging Engine worktree, then deployed to the dev-marinara test Engine by copying the artifact payload into the container and restarting it. The committed bundles are byte-identical to the ones that ran there.

Exercised by hand on that Engine, on a phone: Creator profile delete and its confirmation, the creator row layout, the NoodleR and Noodle headers, scroll behaviour on both feeds, the composer row, the bottom bar in every view including NoodleR settings, and the mode switch in both directions.

Also run locally: npm run test:noodle:regressions, validate-package-locales, test-catalog-lanes, and the package boundary regression.

Not verified locally: npm run test:browser:noodle cannot run in this sandbox — headless Chromium needs libnspr4 and installing it needs root. The CI browser job is the only automated browser coverage for this work. Uninstall cleanup was not re-checked; nothing here changes the uninstall path.

Documentation impact

  • No documentation changes needed

UI evidence (if applicable)

No screenshots. The sandbox cannot drive a browser, and the manual testing was done on a phone against the dev Engine.

Summary by CodeRabbit

  • New Features

    • Added scroll-aware sticky headers that hide and reappear while browsing.
    • Added animated mobile switching between Noodle and NoodleR modes.
    • Improved mobile navigation, search, notifications, profile access, and creator discovery.
    • Added Korean translations and expanded guidance and settings text.
    • Added responsive creator controls, image automation settings, and touch-friendly deletion.
  • Bug Fixes

    • Improved dialog display, post rendering performance, and responsive composer layouts.
    • Creator deletion no longer removes linked characters.
    • Improved generation reliability, privacy disclosures, and prepared-post handling.
  • Version

    • Updated Noodle to version 1.0.6.

🔄 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/311 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/12/2026 **Status:** ✅ Merged **Merged:** 8/12/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `agent/307-noodler-followups` --- ### 📝 Commits (10+) - [`e57f6e5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e57f6e5d9c0fb2d83f2407b382ff317d28177de3) fix(noodle): harden NoodleR identity handling (#307) - [`f1789dc`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f1789dc7d994050cec41e8d27309cd8d265964eb) fix(noodle): make NoodleR write paths atomic and explicit (#307) - [`2a68c85`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2a68c85b1a1763f0ef4e9677ecccf29074a2fcef) fix(noodle): resolve sampling defaults per parameter (#307) - [`257747b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/257747bd35b7ed34440df281dd28afe3f5dabfe8) test(noodle): cover the invited flag and the evaluator failure paths (#307) - [`9821b35`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9821b35cdd816d1456e37827a8a52f3d3be6e642) fix(noodle): fix the creator row layout and its delete confirmation - [`34acb33`](https://github.com/Pasta-Devs/Marinara-Agents/commit/34acb333475868938e2ed07f7f03b031fa20fcf7) fix(noodle): render the package's own confirmation dialogs - [`2542ffa`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2542ffab119119f3140fba482afeb17f7dafc306) fix(noodle): match the NoodleR phone header and auto-hide both sticky bars - [`ba2af11`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ba2af11e9450656b65156f531cdb8feea064912a) fix(noodle): lay the composer button row out for a phone - [`2152cda`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2152cda4d5cabcf4af9d62e64f7c8e0da48bacae) fix(noodle): move the sticky header with the scroll instead of toggling it - [`a46c5df`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a46c5df9c1d08d9c7fcde17411eff444d59c35dc) fix(noodle): drop the account avatar from the phone header ### 📊 Changes **40 files changed** (+1532 additions, -640 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/noodle-1.0.6.zip` (+0 -0) 📝 `catalog/catalog.json` (+9 -9) 📝 `catalog/v2/catalog.json` (+9 -9) 📝 `catalog/v3/catalog.json` (+9 -9) 📝 `packages/noodle/client.js` (+35 -23) 📝 `packages/noodle/manifest.json` (+5 -5) 📝 `packages/noodle/server.mjs` (+209 -208) 📝 `packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx` (+75 -66) 📝 `packages/noodle/src/engine/packages/client/src/components/noodle/NoodlePostCard.tsx` (+28 -12) 📝 `packages/noodle/src/engine/packages/client/src/components/noodle/NoodleShell.tsx` (+193 -14) 📝 `packages/noodle/src/engine/packages/client/src/components/noodle/NoodlerHome.tsx` (+102 -33) 📝 `packages/noodle/src/engine/packages/client/src/components/noodle/NoodlerPublishingSettings.tsx` (+26 -31) 📝 `packages/noodle/src/engine/packages/client/src/localization/locales/en.json` (+4 -1) 📝 `packages/noodle/src/engine/packages/client/src/localization/locales/ko.json` (+46 -0) 📝 `packages/noodle/src/engine/packages/client/src/noodle-package-entry.tsx` (+6 -0) 📝 `packages/noodle/src/engine/packages/server/src/routes/noodle.routes.ts` (+38 -19) 📝 `packages/noodle/src/engine/packages/server/src/services/noodle/noodle-ambient-profile-generation.service.ts` (+13 -4) 📝 `packages/noodle/src/engine/packages/server/src/services/noodle/noodle-invited-post-draft.service.ts` (+14 -7) 📝 `packages/noodle/src/engine/packages/server/src/services/noodle/noodle-noodler-fan-activity.service.ts` (+10 -4) 📝 `packages/noodle/src/engine/packages/server/src/services/noodle/noodle-noodler-generation.service.ts` (+38 -36) _...and 20 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #312 Closes #307 ## Why this change - #307 collected the CodeRabbit findings deliberately left out of #305: privacy hardening, atomicity on the NoodleR write paths, sampling precedence, and test gaps. Several are Major findings on pre-existing code. - Testing those on the dev Engine surfaced #312. The worst of it: every confirmation dialog in the package was dead, so the Creator delete button and several other destructive actions did nothing at all. Deleting a Creator profile also removed the linked character from Noodle, which it should never have done. - The NoodleR surface had no phone header, the composer scattered its buttons at phone widths, and returning to Noodle from NoodleR was visibly slow while the trip out was instant. ## What changed **#307 follow-ups** - Audience projection built from an explicit allow-list instead of stripping the owner object. - Stored hinted/secret source revisions use a salted HMAC; legacy unsalted tokens fail the format test on purpose so storage re-minimizes them. - Disclosure review returns `{ code, count, label }`; the avatar confirmation matches a stable code, not an English literal. - Invited-post prompt sends the six fields the draft needs, not the whole character record. - A post and its linked locked follow-up are written in one transaction; a request carrying both an existing and a new follow-up is rejected. - `PATCH /noodler/image-connections` is serialized against lost updates, validates `creatorId`, and rejects a half-specified patch. - A disclosure downgrade reports `discardedPreparedPostCount` instead of discarding reserve posts silently. - Sampling defaults resolve per parameter at all eight call sites: a user-set connection value wins, the package default fills the rest. - Tests: non-boolean `invited` coverage, and a regression driving every rejection path and failing gate of the generation evaluator. - 43 missing `ko.json` keys from #305. **#312 fixes** - `AppDialogRenderer` mounts inside the package tree, so `showConfirmDialog` resolves and every confirmation works again. - Deleting a Creator profile touches only the Creator profile. - Creator rows, the composer button row, the NoodleR phone header, scroll-following sticky bars, a collapsible Discover section, and a bottom bar that stays populated in NoodleR settings. - The post Markdown parse is memoized, which is what made returning to Noodle slow. **Deliberately not done:** the shared guidance constant (still not importable by both bundles) and the POSIX-only test loop. Reasons are in the commits. ## Package and security impact - Affected package IDs: `noodle` - Engine compatibility impact: none. No new Engine APIs; `AppDialogRenderer` is vendored into `sources/engine` alongside the `Modal` and `dialog.store` already there. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: version 1.0.6, so existing 1.0.5 installs see the update. **Legacy revision-token migration.** Existing unsalted `revision:<digest>` tokens fail `isMinimizedNoodlerSourceSnapshot` on purpose. `listNoodlerStageProfiles` already re-minimizes any hinted or secret baseline that fails that test and persists the result, so an existing database heals itself on the first Creator listing after the update — including when the linked source account is gone, which is handled by the in-place branch added in #305. No migration step, no data loss, and no window in which a private field is exposed. The first listing after the update reports every hinted/secret profile's source as current, since the new baseline is written from the current source. ## Validation - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry - [x] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes Built with `MARINARA_ENGINE_ROOT` pointing at an `origin/staging` Engine worktree, then deployed to the `dev-marinara` test Engine by copying the artifact payload into the container and restarting it. The committed bundles are byte-identical to the ones that ran there. Exercised by hand on that Engine, on a phone: Creator profile delete and its confirmation, the creator row layout, the NoodleR and Noodle headers, scroll behaviour on both feeds, the composer row, the bottom bar in every view including NoodleR settings, and the mode switch in both directions. Also run locally: `npm run test:noodle:regressions`, `validate-package-locales`, `test-catalog-lanes`, and the package boundary regression. **Not verified locally:** `npm run test:browser:noodle` cannot run in this sandbox — headless Chromium needs `libnspr4` and installing it needs root. The CI browser job is the only automated browser coverage for this work. Uninstall cleanup was not re-checked; nothing here changes the uninstall path. ## Documentation impact - [x] No documentation changes needed ## UI evidence (if applicable) No screenshots. The sandbox cannot drive a browser, and the manual testing was done on a phone against the dev Engine. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added scroll-aware sticky headers that hide and reappear while browsing. - Added animated mobile switching between Noodle and NoodleR modes. - Improved mobile navigation, search, notifications, profile access, and creator discovery. - Added Korean translations and expanded guidance and settings text. - Added responsive creator controls, image automation settings, and touch-friendly deletion. - **Bug Fixes** - Improved dialog display, post rendering performance, and responsive composer layouts. - Creator deletion no longer removes linked characters. - Improved generation reliability, privacy disclosures, and prepared-post handling. - **Version** - Updated Noodle to version 1.0.6. <!-- 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-20 17:32:12 +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#908
No description provided.