[PR #4601] [MERGED] feat(noodler): add creator source drift management #6438

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

📋 Pull Request Information

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

Base: staging ← Head: feat/noodler-next-phase


📝 Commits (5)

  • d622e4c feat(noodler): add creator source drift management
  • e82d246 Merge branch 'staging' into feat/noodler-next-phase
  • 8de4a4b fix(noodler): address source drift review findings
  • 4bf276f Merge remote-tracking branch 'origin/feat/noodler-next-phase' into feat/noodler-next-phase
  • 66b71b0 revert(noodler): restore profile view layout

📊 Changes

14 files changed (+844 additions, -195 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/client/src/components/noodle/NoodlerHome.tsx (+22 -4)
📝 packages/client/src/hooks/use-noodle.ts (+50 -6)
📝 packages/client/src/localization/locales/en.json (+20 -0)
📝 packages/server/src/routes/noodle.routes.ts (+77 -7)
📝 packages/server/src/services/noodle/noodle-noodler-generation.service.ts (+10 -1)
📝 packages/server/src/services/noodle/noodle-noodler-post.operation.ts (+13 -1)
➕ packages/server/src/services/noodle/noodle-noodler-source.ts (+66 -0)
📝 packages/server/src/services/noodle/noodle-stage-profile-draft.service.ts (+78 -59)
📝 packages/server/src/services/storage/noodle.storage.ts (+268 -93)
📝 packages/shared/src/schemas/noodle.schema.ts (+24 -2)
📝 packages/shared/src/types/noodle.ts (+24 -0)
📝 scripts/regressions/noodle-autopost.regression.ts (+135 -19)
📝 scripts/regressions/noodle-prompt.regression.ts (+56 -3)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.

Linked issue

Closes #4599

Why this change

NoodleR Creator profiles are curated snapshots, but edits to their linked character or persona were invisible after creation. The profile page also split operator controls across unrelated areas, and initial hinted profile generation anchored every new profile to the same placeholder draft and copied source bio.

What changed

  • Persist and compare server-owned snapshots of the source fields used by Creator profile generation.
  • Show current, changed, and missing source states in an inline Creator management area with collapsed old/new values.
  • Support open-profile name and handle adoption, review-before-save re-drafting, and confirmed source-change dismissal.
  • Disable foreground and scheduled generation when an imported Creator's underlying source is missing, and discard invalid prepared posts.
  • Keep source snapshots and field diffs out of audience-facing viewer responses.
  • Give persona-backed profile generation real persona context and the same exact-name privacy protection as character-backed profiles.
  • Stop seeding first-time hinted drafts with the shared After Hours placeholder and linked public bio; preserve actual drafts during rewrites.
  • Update the Unreleased changelog and canonical English UI catalog.

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

Automated commands completed:

  • pnpm version:check
  • pnpm guard:installer-artifacts
  • pnpm localization:check
  • pnpm build:shared && pnpm --filter @marinara-engine/server lint
  • NODE_OPTIONS=--max-old-space-size=4096 pnpm --filter @marinara-engine/client lint
  • NODE_OPTIONS=--max-old-space-size=4096 pnpm build
  • pnpm build:shared && pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/noodle-prompt.regression.ts
  • git diff --check

The monolithic pnpm check was terminated by the local tool runner during whole-client ESLint after ten minutes; its constituent localization, shared/server lint, client lint, and production build steps were rerun separately and passed.

Manual verification notes

  • Manually verify a character or persona source edit produces the expected collapsed old/new field comparison.
  • Manually verify Adopt name and handle remains available only for open profiles and leaves unrelated changes visible.
  • Manually verify Re-draft previews changes, Undo does not accept the baseline, and saving the generated draft clears current changes.
  • Manually verify Dismiss requires confirmation and clears the current notice.
  • Manually verify the management section in light/dark themes and desktop/mobile widths.
  • Capture before/after screenshots for the final PR description.

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 section on translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

CHANGELOG.md was updated. No user guide under docs/ changed, so no docs-i18n follow-up is required.

UI evidence

Before/after screenshots are still required after manual browser verification.

Summary by CodeRabbit

  • New Features
    • Added Creator source tracking for Noodler profiles, including detection of missing or changed profile information.
    • Profile views now show changed fields and offer options to adopt updates, redraft, or dismiss changes.
    • Added review-before-save support when refreshing profile content.
    • Added support for persona-based Creator profiles.
  • Bug Fixes
    • Automatic posting and post composition are disabled when the linked Creator source is unavailable.
    • Invalid prepared posts are prevented when source information is missing.

🔄 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/4601 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/4/2026 **Status:** ✅ Merged **Merged:** 8/5/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `feat/noodler-next-phase` --- ### 📝 Commits (5) - [`d622e4c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d622e4cb7d0ea81668810133539ee1c68b2ce658) feat(noodler): add creator source drift management - [`e82d246`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e82d246d82ae38f3988ecda41ce1439c52e4b84f) Merge branch 'staging' into feat/noodler-next-phase - [`8de4a4b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8de4a4bbf371b56b7fa6a41701cefe61e184913d) fix(noodler): address source drift review findings - [`4bf276f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4bf276f064257be35d7a60c3f94b66e2b241b530) Merge remote-tracking branch 'origin/feat/noodler-next-phase' into feat/noodler-next-phase - [`66b71b0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/66b71b0edc24118b9a9650be4d6767cd84b89dc5) revert(noodler): restore profile view layout ### 📊 Changes **14 files changed** (+844 additions, -195 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/client/src/components/noodle/NoodlerHome.tsx` (+22 -4) 📝 `packages/client/src/hooks/use-noodle.ts` (+50 -6) 📝 `packages/client/src/localization/locales/en.json` (+20 -0) 📝 `packages/server/src/routes/noodle.routes.ts` (+77 -7) 📝 `packages/server/src/services/noodle/noodle-noodler-generation.service.ts` (+10 -1) 📝 `packages/server/src/services/noodle/noodle-noodler-post.operation.ts` (+13 -1) ➕ `packages/server/src/services/noodle/noodle-noodler-source.ts` (+66 -0) 📝 `packages/server/src/services/noodle/noodle-stage-profile-draft.service.ts` (+78 -59) 📝 `packages/server/src/services/storage/noodle.storage.ts` (+268 -93) 📝 `packages/shared/src/schemas/noodle.schema.ts` (+24 -2) 📝 `packages/shared/src/types/noodle.ts` (+24 -0) 📝 `scripts/regressions/noodle-autopost.regression.ts` (+135 -19) 📝 `scripts/regressions/noodle-prompt.regression.ts` (+56 -3) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. ## Linked issue Closes #4599 ## Why this change NoodleR Creator profiles are curated snapshots, but edits to their linked character or persona were invisible after creation. The profile page also split operator controls across unrelated areas, and initial hinted profile generation anchored every new profile to the same placeholder draft and copied source bio. ## What changed - Persist and compare server-owned snapshots of the source fields used by Creator profile generation. - Show current, changed, and missing source states in an inline Creator management area with collapsed old/new values. - Support open-profile name and handle adoption, review-before-save re-drafting, and confirmed source-change dismissal. - Disable foreground and scheduled generation when an imported Creator's underlying source is missing, and discard invalid prepared posts. - Keep source snapshots and field diffs out of audience-facing viewer responses. - Give persona-backed profile generation real persona context and the same exact-name privacy protection as character-backed profiles. - Stop seeding first-time hinted drafts with the shared `After Hours` placeholder and linked public bio; preserve actual drafts during rewrites. - Update the Unreleased changelog and canonical English UI catalog. ## 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` Automated commands completed: - `pnpm version:check` - `pnpm guard:installer-artifacts` - `pnpm localization:check` - `pnpm build:shared && pnpm --filter @marinara-engine/server lint` - `NODE_OPTIONS=--max-old-space-size=4096 pnpm --filter @marinara-engine/client lint` - `NODE_OPTIONS=--max-old-space-size=4096 pnpm build` - `pnpm build:shared && pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/noodle-prompt.regression.ts` - `git diff --check` The monolithic `pnpm check` was terminated by the local tool runner during whole-client ESLint after ten minutes; its constituent localization, shared/server lint, client lint, and production build steps were rerun separately and passed. ### Manual verification notes - Manually verify a character or persona source edit produces the expected collapsed old/new field comparison. - Manually verify Adopt name and handle remains available only for open profiles and leaves unrelated changes visible. - Manually verify Re-draft previews changes, Undo does not accept the baseline, and saving the generated draft clears current changes. - Manually verify Dismiss requires confirmation and clears the current notice. - Manually verify the management section in light/dark themes and desktop/mobile widths. - Capture before/after screenshots for the final PR description. ## 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 section on translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) `CHANGELOG.md` was updated. No user guide under `docs/` changed, so no `docs-i18n` follow-up is required. ## UI evidence Before/after screenshots are still required after manual browser verification. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added Creator source tracking for Noodler profiles, including detection of missing or changed profile information. - Profile views now show changed fields and offer options to adopt updates, redraft, or dismiss changes. - Added review-before-save support when refreshing profile content. - Added support for persona-based Creator profiles. - **Bug Fixes** - Automatic posting and post composition are disabled when the linked Creator source is unavailable. - Invalid prepared posts are prevented when source information is missing. <!-- 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:26 +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#6438
No description provided.