[PR #4565] [MERGED] feat(noodle): add ambient profile reroll controls #6427

Closed
opened 2026-10-23 04:10:19 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4565
Author: @Gunterlie
Created: 8/4/2026
Status: ✅ Merged
Merged: 8/4/2026
Merged by: @Gunterlie

Base: staging ← Head: feat/noodle-noodler-reroll-editor


📝 Commits (6)

  • 8feaeda feat(noodle): add ambient profile reroll controls
  • f9b1752 Merge branch 'staging' into feat/noodle-noodler-reroll-editor
  • 3090869 fix(noodle): address review feedback on ambient profile reroll
  • cb3acbd fix(noodle): keep settings return path and survive bad reroll responses
  • 1c69cfa fix(noodle): hold the identity lock while rescheduling refresh
  • 513c62e Merge branch 'staging' into feat/noodle-noodler-reroll-editor

📊 Changes

12 files changed (+864 additions, -118 deletions)

View changed files

📝 packages/client/src/components/noodle/NoodleHome.tsx (+215 -14)
📝 packages/client/src/components/noodle/noodle-navigation.types.ts (+2 -0)
📝 packages/client/src/hooks/use-noodle.ts (+33 -1)
📝 packages/client/src/localization/locales/en.json (+20 -0)
📝 packages/server/src/routes/noodle.routes.ts (+107 -60)
➕ packages/server/src/services/noodle/noodle-ambient-profile-generation.service.ts (+212 -0)
➕ packages/server/src/services/noodle/noodle-ambient-profiles.ts (+66 -0)
➕ packages/server/src/services/noodle/noodle-operation-lock.ts (+20 -0)
📝 packages/server/src/services/noodle/noodle-public-generation.service.ts (+2 -40)
📝 packages/server/src/services/noodle/noodle-public-support.ts (+2 -0)
📝 packages/shared/src/schemas/noodle.schema.ts (+24 -0)
📝 scripts/regressions/noodle-settings.regression.ts (+161 -3)

📄 Description

Linked issue

Closes #4530

Why this change

  • Noodle Ambient Fake profiles persist across timeline clears and uninvites, but users cannot replace identities they do not like.
  • NoodleR is intentionally unchanged because it does not currently have Ambient profiles; its Character/Persona-backed Creator profiles already have an editor and AI rewrite flow.

What changed

  • Added an Ambient Profiles manager under Noodle Settings > Participants with per-profile Edit and Reroll actions plus Reroll all.
  • Reused the existing Noodle profile editor for manual identity changes and added settings return navigation for desktop and mobile.
  • Added server-side Ambient profile generation with bounded validation, partial outcomes, conflict-safe handles, stable account IDs, and debug prompt logging.
  • Rerolls replace generated identity text and clear avatar/banner media while preserving posts, follows, relationships, and participation state.
  • Seeded the six managed Ambient rows before first refresh and serialized seeding to prevent duplicate rows across concurrent bootstraps.
  • Added a shared identity-operation lock so rerolls, timeline refreshes, and public profile edits cannot overwrite each other.
  • Added localization and Noodle regression coverage for seeding, request bounds, persistence, media clearing, stable IDs, handle allocation, and lock behavior.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Automated: NODE_OPTIONS=--max-old-space-size=4096 pnpm check passed.
  • Automated: pnpm regression:noodle passed.
  • Automated: pnpm localization:check, pnpm version:check, pnpm guard:installer-artifacts, and git diff --check passed.
  • Browser verification remains required. pnpm smoke:ui could not launch Chromium on this host because libnspr4.so is missing, and no browser automation host was connected.
  • Manually verify the Ambient list, one-click editor entry and settings return, per-profile and global confirmations, image clearing, partial/error states, light/dark themes, keyboard focus, and approximately 400px mobile width.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

No user-facing docs or release metadata changed. Canonical English UI localization was updated; community locales fall back to English.

UI evidence (if applicable)

Screenshots or a short recording should be added after manual desktop and mobile verification.

Summary by CodeRabbit

  • New Features

    • Added ambient Noodle profiles with discoverable participant identities.
    • View and edit ambient profiles from participant settings.
    • Reroll individual or multiple profiles with confirmation and success/error feedback.
    • Automatically assigns unique handles and refreshed avatars.
  • Navigation

    • Return to the originating settings screen after viewing or editing a profile.
    • Added clearer back navigation across desktop and mobile layouts.
  • Bug Fixes

    • Improved reliability when profile and timeline operations occur simultaneously.
    • Preserved manually edited profile details during profile updates.

🔄 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-Engine/pull/4565 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/4/2026 **Status:** ✅ Merged **Merged:** 8/4/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `feat/noodle-noodler-reroll-editor` --- ### 📝 Commits (6) - [`8feaeda`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8feaeda651a3a8770f20a9a14ef847b4bcdd8df3) feat(noodle): add ambient profile reroll controls - [`f9b1752`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f9b1752e1ea4d0620bc83bf73e4759f00067ccfe) Merge branch 'staging' into feat/noodle-noodler-reroll-editor - [`3090869`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3090869d089630f3910c9b745583c1c6768c6144) fix(noodle): address review feedback on ambient profile reroll - [`cb3acbd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cb3acbdb8edfef6817050dfbe95a183409d44c37) fix(noodle): keep settings return path and survive bad reroll responses - [`1c69cfa`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1c69cfa0ee5a9ae01620443e5163a3b2fd71dbd2) fix(noodle): hold the identity lock while rescheduling refresh - [`513c62e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/513c62e244b94135a682c7a05234c9ed53b375fb) Merge branch 'staging' into feat/noodle-noodler-reroll-editor ### 📊 Changes **12 files changed** (+864 additions, -118 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/noodle/NoodleHome.tsx` (+215 -14) 📝 `packages/client/src/components/noodle/noodle-navigation.types.ts` (+2 -0) 📝 `packages/client/src/hooks/use-noodle.ts` (+33 -1) 📝 `packages/client/src/localization/locales/en.json` (+20 -0) 📝 `packages/server/src/routes/noodle.routes.ts` (+107 -60) ➕ `packages/server/src/services/noodle/noodle-ambient-profile-generation.service.ts` (+212 -0) ➕ `packages/server/src/services/noodle/noodle-ambient-profiles.ts` (+66 -0) ➕ `packages/server/src/services/noodle/noodle-operation-lock.ts` (+20 -0) 📝 `packages/server/src/services/noodle/noodle-public-generation.service.ts` (+2 -40) 📝 `packages/server/src/services/noodle/noodle-public-support.ts` (+2 -0) 📝 `packages/shared/src/schemas/noodle.schema.ts` (+24 -0) 📝 `scripts/regressions/noodle-settings.regression.ts` (+161 -3) </details> ### 📄 Description ## Linked issue Closes #4530 ## Why this change - Noodle Ambient Fake profiles persist across timeline clears and uninvites, but users cannot replace identities they do not like. - NoodleR is intentionally unchanged because it does not currently have Ambient profiles; its Character/Persona-backed Creator profiles already have an editor and AI rewrite flow. ## What changed - Added an Ambient Profiles manager under Noodle Settings > Participants with per-profile Edit and Reroll actions plus Reroll all. - Reused the existing Noodle profile editor for manual identity changes and added settings return navigation for desktop and mobile. - Added server-side Ambient profile generation with bounded validation, partial outcomes, conflict-safe handles, stable account IDs, and debug prompt logging. - Rerolls replace generated identity text and clear avatar/banner media while preserving posts, follows, relationships, and participation state. - Seeded the six managed Ambient rows before first refresh and serialized seeding to prevent duplicate rows across concurrent bootstraps. - Added a shared identity-operation lock so rerolls, timeline refreshes, and public profile edits cannot overwrite each other. - Added localization and Noodle regression coverage for seeding, request bounds, persistence, media clearing, stable IDs, handle allocation, and lock behavior. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Automated: `NODE_OPTIONS=--max-old-space-size=4096 pnpm check` passed. - Automated: `pnpm regression:noodle` passed. - Automated: `pnpm localization:check`, `pnpm version:check`, `pnpm guard:installer-artifacts`, and `git diff --check` passed. - Browser verification remains required. `pnpm smoke:ui` could not launch Chromium on this host because `libnspr4.so` is missing, and no browser automation host was connected. - Manually verify the Ambient list, one-click editor entry and settings return, per-profile and global confirmations, image clearing, partial/error states, light/dark themes, keyboard focus, and approximately 400px mobile width. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) No user-facing docs or release metadata changed. Canonical English UI localization was updated; community locales fall back to English. ## UI evidence (if applicable) Screenshots or a short recording should be added after manual desktop and mobile verification. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added ambient Noodle profiles with discoverable participant identities. * View and edit ambient profiles from participant settings. * Reroll individual or multiple profiles with confirmation and success/error feedback. * Automatically assigns unique handles and refreshed avatars. * **Navigation** * Return to the originating settings screen after viewing or editing a profile. * Added clearer back navigation across desktop and mobile layouts. * **Bug Fixes** * Improved reliability when profile and timeline operations occur simultaneously. * Preserved manually edited profile details during profile updates. <!-- 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-23 04:10:19 +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-Engine#6427
No description provided.