[PR #3830] [MERGED] feat(noodle): add stage identity and guided generation #6120

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3830
Author: @Gunterlie
Created: 7/19/2026
Status: ✅ Merged
Merged: 7/19/2026
Merged by: @SpicyMarinara

Base: staging ← Head: noodl-split-5-stage-identity


📝 Commits (10+)

  • d8917ce feat(noodle): add stage identity and guided posts
  • 1263e85 feat(noodle): improve stage profile creation flow
  • b69dc0f feat(noodle): paginate stage profile source picker
  • ec5244e feat(noodle): add staged profile setup footer
  • 58bcd82 feat(noodle): filter stage profile sources by type
  • 41d3df0 feat(noodle): refine stage identity generation
  • 63dbb73 polish(noodle): refine creator profile UX
  • 1c010c4 polish(noodle): tighten stage profile editor
  • 604d679 Merge branch 'staging' into noodl-split-5-stage-identity
  • 3603c86 fix CodeRabbit stage profile findings

📊 Changes

13 files changed (+1903 additions, -111 deletions)

View changed files

📝 docs/noodle/settings.md (+17 -1)
➕ packages/client/src/components/noodle/GuidedPostModal.tsx (+99 -0)
📝 packages/client/src/components/noodle/NoodlerHome.tsx (+1016 -53)
📝 packages/client/src/components/ui/Modal.tsx (+8 -13)
📝 packages/client/src/hooks/use-noodle.ts (+84 -3)
📝 packages/server/src/routes/noodle.routes.ts (+113 -4)
📝 packages/server/src/services/noodle/noodle-private-generation.service.ts (+90 -11)
📝 packages/server/src/services/noodle/noodle-response-format.ts (+30 -3)
➕ packages/server/src/services/noodle/noodle-stage-profile-draft.service.ts (+189 -0)
📝 packages/server/src/services/storage/noodle.storage.ts (+102 -17)
📝 packages/shared/src/schemas/noodle.schema.ts (+35 -2)
📝 packages/shared/src/types/noodle.ts (+30 -1)
📝 scripts/regressions/noodle-prompt.regression.ts (+90 -3)

📄 Description

Important

This PR is Slice 5 of the larger NoodleR implementation. It builds on Slices 1A (#3744), 1B (#3751), 2 (#3759), 3 (#3782), and 4 (#3795), and is not representative of the complete NoodleR feature. Subscriptions, PPV, hidden-from controls, fan activity, auto-posting, projects, cross-mode integration, and private image generation/serving remain outside this slice.

Linked issue

Closes #3807

Why this change

  • NoodleR private accounts need a stage-identity contract and guided creator workflow before later private creator features can be layered on safely.

  • Linked public identity context needs disclosure-aware prompt shaping and deterministic leak protection so generated text and stored image prompts respect the selected relationship.

What changed

  • Added stage profiles with Publicly connected, Inspired alter ego, and Separate persona disclosure modes.
  • Added disclosure-aware stage-profile draft generation, deterministic exact-identifier filtering, and persistence/API contracts.
  • Added the three-step source, relationship, and editable-profile creator flow with loading, error, empty, retry, pagination, and draft-preservation states.
  • Added conventional profile editing with editable identity relationship, unsaved-change confirmation, and edit-specific save/cancel behavior.
  • Added guided private-post generation with pending/error handling and modal close protection.
  • Refined desktop/mobile layout, persistent safe-area-aware actions, focus states, and 44px touch targets.
  • Updated NoodleR settings documentation and deterministic prompt regression coverage.

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 validation completed with pnpm check (workspace lint, TypeScript checks, and production builds).

  • Manual browser verification remains required. pnpm smoke:ui could not be claimed because Playwright browser processes closed during launch in the current environment.

  • Manually verify profile creation, disclosure selection, AI draft generation/undo, editing/cancel confirmation, save-and-select behavior, guided post generation, responsive layout, themes, and loading/error/empty paths.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • Before/after screenshots or recordings still need to be attached after manual browser verification.

Summary by CodeRabbit

  • New Features
    • Added a multi-step Stage Profile flow for creating and managing private NoodleR identities.
    • Added Open, Hinted, and Secret identity disclosure modes.
    • Generate, edit, and undo AI stage-profile drafts; view existing profiles and their posts.
    • Added guided private post generation from a Stage Profile.
    • Browse eligible source accounts with search and kind filters.
  • Bug Fixes
    • Strengthened identity redaction so undisclosed public details don’t appear in generated profiles or posts.
    • Prevented accidental modal closure while generation is in progress.
  • Documentation
    • Updated Stage identity disclosure and guided private post generation documentation.

🔄 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/3830 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 7/19/2026 **Status:** ✅ Merged **Merged:** 7/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `noodl-split-5-stage-identity` --- ### 📝 Commits (10+) - [`d8917ce`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d8917ce4ce2bf377802153a3ffdaa20847be6090) feat(noodle): add stage identity and guided posts - [`1263e85`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1263e858c420d89991412cc5b75fce5a66e72593) feat(noodle): improve stage profile creation flow - [`b69dc0f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b69dc0fea5aede0fdc88a820b25e884d6c8cc9f2) feat(noodle): paginate stage profile source picker - [`ec5244e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ec5244ee7c370860ab6474d426cbd50f6e48dcfd) feat(noodle): add staged profile setup footer - [`58bcd82`](https://github.com/Pasta-Devs/Marinara-Engine/commit/58bcd82a104ebeda462a9f02b616e72cada0f6ff) feat(noodle): filter stage profile sources by type - [`41d3df0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/41d3df0c5dabc4e942d8de61050fbe5ee74a609d) feat(noodle): refine stage identity generation - [`63dbb73`](https://github.com/Pasta-Devs/Marinara-Engine/commit/63dbb731478cb37f88df1e1cf25ed76c77a4817a) polish(noodle): refine creator profile UX - [`1c010c4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1c010c47af27621510eb0d7076bb1f5765bd96ae) polish(noodle): tighten stage profile editor - [`604d679`](https://github.com/Pasta-Devs/Marinara-Engine/commit/604d67983b3837023c8d23fa13e5544a892383db) Merge branch 'staging' into noodl-split-5-stage-identity - [`3603c86`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3603c865f98ea82b40ff05e29ccd6ace14c20e1b) fix CodeRabbit stage profile findings ### 📊 Changes **13 files changed** (+1903 additions, -111 deletions) <details> <summary>View changed files</summary> 📝 `docs/noodle/settings.md` (+17 -1) ➕ `packages/client/src/components/noodle/GuidedPostModal.tsx` (+99 -0) 📝 `packages/client/src/components/noodle/NoodlerHome.tsx` (+1016 -53) 📝 `packages/client/src/components/ui/Modal.tsx` (+8 -13) 📝 `packages/client/src/hooks/use-noodle.ts` (+84 -3) 📝 `packages/server/src/routes/noodle.routes.ts` (+113 -4) 📝 `packages/server/src/services/noodle/noodle-private-generation.service.ts` (+90 -11) 📝 `packages/server/src/services/noodle/noodle-response-format.ts` (+30 -3) ➕ `packages/server/src/services/noodle/noodle-stage-profile-draft.service.ts` (+189 -0) 📝 `packages/server/src/services/storage/noodle.storage.ts` (+102 -17) 📝 `packages/shared/src/schemas/noodle.schema.ts` (+35 -2) 📝 `packages/shared/src/types/noodle.ts` (+30 -1) 📝 `scripts/regressions/noodle-prompt.regression.ts` (+90 -3) </details> ### 📄 Description > [!IMPORTANT] > **This PR is Slice 5 of the larger NoodleR implementation. It builds on Slices 1A (#3744), 1B (#3751), 2 (#3759), 3 (#3782), and 4 (#3795), and is not representative of the complete NoodleR feature. Subscriptions, PPV, hidden-from controls, fan activity, auto-posting, projects, cross-mode integration, and private image generation/serving remain outside this slice.** ## Linked issue Closes #3807 ## Why this change - NoodleR private accounts need a stage-identity contract and guided creator workflow before later private creator features can be layered on safely. - Linked public identity context needs disclosure-aware prompt shaping and deterministic leak protection so generated text and stored image prompts respect the selected relationship. ## What changed - Added stage profiles with Publicly connected, Inspired alter ego, and Separate persona disclosure modes. - Added disclosure-aware stage-profile draft generation, deterministic exact-identifier filtering, and persistence/API contracts. - Added the three-step source, relationship, and editable-profile creator flow with loading, error, empty, retry, pagination, and draft-preservation states. - Added conventional profile editing with editable identity relationship, unsaved-change confirmation, and edit-specific save/cancel behavior. - Added guided private-post generation with pending/error handling and modal close protection. - Refined desktop/mobile layout, persistent safe-area-aware actions, focus states, and 44px touch targets. - Updated NoodleR settings documentation and deterministic prompt regression coverage. ## 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 validation completed with `pnpm check` (workspace lint, TypeScript checks, and production builds). - Manual browser verification remains required. `pnpm smoke:ui` could not be claimed because Playwright browser processes closed during launch in the current environment. - Manually verify profile creation, disclosure selection, AI draft generation/undo, editing/cancel confirmation, save-and-select behavior, guided post generation, responsive layout, themes, and loading/error/empty paths. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - Before/after screenshots or recordings still need to be attached after manual browser verification. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a multi-step Stage Profile flow for creating and managing private NoodleR identities. * Added Open, Hinted, and Secret identity disclosure modes. * Generate, edit, and undo AI stage-profile drafts; view existing profiles and their posts. * Added guided private post generation from a Stage Profile. * Browse eligible source accounts with search and kind filters. * **Bug Fixes** * Strengthened identity redaction so undisclosed public details don’t appear in generated profiles or posts. * Prevented accidental modal closure while generation is in progress. * **Documentation** * Updated Stage identity disclosure and guided private post generation documentation. <!-- 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:07:16 +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#6120
No description provided.