[PR #4563] [CLOSED] feat(noodle): add ambient profile reroll controls #6424

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4563
Author: @Gunterlie
Created: 8/4/2026
Status: ❌ Closed

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


📝 Commits (1)

  • 8feaeda feat(noodle): add ambient profile reroll controls

📊 Changes

12 files changed (+811 additions, -114 deletions)

View changed files

📝 packages/client/src/components/noodle/NoodleHome.tsx (+201 -11)
📝 packages/client/src/components/noodle/noodle-navigation.types.ts (+2 -0)
📝 packages/client/src/hooks/use-noodle.ts (+32 -1)
📝 packages/client/src/localization/locales/en.json (+19 -0)
📝 packages/server/src/routes/noodle.routes.ts (+101 -59)
➕ packages/server/src/services/noodle/noodle-ambient-profile-generation.service.ts (+199 -0)
➕ packages/server/src/services/noodle/noodle-ambient-profiles.ts (+63 -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 (+20 -0)
📝 scripts/regressions/noodle-settings.regression.ts (+150 -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.


🔄 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/4563 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/4/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `feat/noodle-noodler-reroll-editor` --- ### 📝 Commits (1) - [`8feaeda`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8feaeda651a3a8770f20a9a14ef847b4bcdd8df3) feat(noodle): add ambient profile reroll controls ### 📊 Changes **12 files changed** (+811 additions, -114 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/noodle/NoodleHome.tsx` (+201 -11) 📝 `packages/client/src/components/noodle/noodle-navigation.types.ts` (+2 -0) 📝 `packages/client/src/hooks/use-noodle.ts` (+32 -1) 📝 `packages/client/src/localization/locales/en.json` (+19 -0) 📝 `packages/server/src/routes/noodle.routes.ts` (+101 -59) ➕ `packages/server/src/services/noodle/noodle-ambient-profile-generation.service.ts` (+199 -0) ➕ `packages/server/src/services/noodle/noodle-ambient-profiles.ts` (+63 -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` (+20 -0) 📝 `scripts/regressions/noodle-settings.regression.ts` (+150 -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. --- <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:17 +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#6424
No description provided.