mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4129] [MERGED] Rename Noodle "private" to "noodler" across code, data, and UI #6242
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6242
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4129
Author: @Gunterlie
Created: 7/26/2026
Status: ✅ Merged
Merged: 7/27/2026
Merged by: @SpicyMarinara
Base:
staging← Head:noodle-private-naming📝 Commits (10+)
273d70fRename Noodle "private" to "noodler" across code, data, and UIad3ecadMerge branch 'staging' into noodle-private-namingb534fbbMerge remote-tracking branch 'origin/staging' into noodle-private-naming93c03dcFix rename leftovers found by semantic diff3534788Take the clean break on NoodleR media namingc085a26Keep NoodleR data readable by pre-rename buildsace0fe4Fix two ways the rename broke regular Noodlef783384Add a regression for dangling localization key references4bf42cbAddress review findings on the NoodleR renamebd63d9aMerge branch 'staging' into noodle-private-naming📊 Changes
39 files changed (+1284 additions, -948 deletions)
View changed files
📝
.github/plans/noodl-split/noodler-pr-split-living-plan.md(+22 -0)📝
docs/noodle/settings.md(+10 -8)📝
package.json(+3 -2)📝
packages/client/src/components/chat/CharacterScheduleEditorModal.tsx(+1 -1)📝
packages/client/src/components/chat/RoleplayHUDPanels.tsx(+1 -1)📝
packages/client/src/components/noodle/NoodleHome.tsx(+18 -18)📝
packages/client/src/components/noodle/NoodlePostCard.tsx(+3 -3)📝
packages/client/src/components/noodle/NoodleShell.tsx(+5 -5)📝
packages/client/src/components/noodle/NoodleView.tsx(+1 -1)📝
packages/client/src/components/noodle/NoodlerBulkCreatePanel.tsx(+1 -1)📝
packages/client/src/components/noodle/NoodlerHome.tsx(+183 -183)📝
packages/client/src/components/noodle/noodle-navigation.types.ts(+4 -4)📝
packages/client/src/features/tracker-panel/components/controls/InlineControls.tsx(+2 -2)📝
packages/client/src/features/tracker-panel/components/sections/WorldEditableTile.tsx(+1 -1)📝
packages/client/src/hooks/use-noodle.ts(+63 -63)📝
packages/client/src/localization/locales/en.json(+41 -43)📝
packages/client/src/localization/locales/ko.json(+40 -42)📝
packages/client/src/stores/ui.store.ts(+22 -2)📝
packages/server/src/db/file-backed-store.ts(+11 -2)➕
packages/server/src/db/noodle-platform-migration.ts(+34 -0)...and 19 more files
📄 Description
Linked issue
No issue exists for this yet — one should be opened before this PR is submitted, per
CONTRIBUTING.md § Before You Open a Pull Request. The rename came out of hands-on Noodle/NoodleR work rather than a filed report.Closes #
Why this change
"Private" was the word for the NoodleR side of the Noodle/NoodleR split. It was the wrong word in two directions:
access: "public" | "subscriber" | "ppv"is the actual paywall/visibility control. Having two unrelated meanings share one word made both humans and coding/review agents reason about the wrong thing.The flag was
noodleAccounts.visibility— semantically "which simulated platform does this account belong to", not a visibility control. The field name was as misleading as its values, so both were renamed.Why now: the vocabulary had to be settled before anything is built on top of it — every later slice would otherwise inherit and spread the wrong word. With that done, the next slice can move to onboarding, accessibility, and usability.
What changed
Behaviour-preserving rename.
visibility: "public" | "private"→platform: "noodle" | "noodler".noodleAccounts.visibility(columnvisibility)noodleAccounts.platform(columnplatform)NoodleAccountVisibilityNoodlePlatformpublicAccountId/public_account_idnoodleAccountId/noodle_account_idnoodle-private-*.ts(5 files)noodle-noodler-*.ts(git mv, history preserved)generatePrivatePost+generateNoodlePrivatePostgenerateNoodlerPost+generateAndApplyNoodlerPostprivateGenerationGuidancenoodlerGenerationGuidancePOST /accounts/:id/privatePOST /accounts/:id/noodlermode: "private",NOODLE_PRIVATE_POST_*mode: "noodler",NOODLER_POST_*NoodleR media naming takes a clean break rather than a migration, since NoodleR is in alpha and orphaning NoodleR-only data is acceptable:
"noodler-private/""noodler-media/"metadata.privateMediaPathmetadata.noodlerMediaPath⚠️ Existing NoodleR post images will 404 after this change. NoodleR accounts still migrate properly — getting that wrong leaks them into the Noodle timeline, which is Noodle breaking rather than NoodleR breaking.
This also exposed a latent duplication, now fixed: the prefix was hardcoded a second time in
noodle-noodler-images.service.ts, so the two copies had to agree by hand. The constant is exported and reused.Deliberately NOT renamed — neither is a migration-cost decision, so alpha status doesn't change them:
access: "public" | "subscriber" | "ppv"— this is the real privacy concept and should keep owning the word. Renaming it would leave no honest name for the one genuine privacy control.Cache-Control: private, no-store— that's the HTTP spec's keyword, not our vocabulary.Two defects the rename surfaced
CASCADESinfile-backed-store.tsreferences the account link column by string, so deleting a Noodle account had silently stopped cascading to its NoodleR profile. TypeScript cannot see this; the regression lane caught it.normalizeNoodleSettings, following the existingmaxImagePromptsPerDayprecedent — and folded it into #4109's new partial-fallback recovery so a customized string survives both the rename and a field-level validation failure.Rollback safety
Caught by booting this branch against a legacy data dir, then booting a staging build against the same dir: the NoodleR account and its subscriber-only post both showed up on the public Noodle timeline. Staging doesn't know
platformexists, so it fell back to the column default and treated the stage profile as an ordinary Noodle account.Fixed by keeping
visibilityandpublicAccountIdas write-only rollback mirrors. Nothing reads them; the migration no longer strips them, and both account insert sites write them alongside the new fields. Re-tested both paths — migrated legacy rows and profiles created fresh on this branch — and staging now sees neither on the public timeline. They can be dropped once no supported version readsvisibility.Data migration
packages/server/src/db/noodle-platform-migration.ts, applied at load infile-backed-store.tsbefore row normalization. It has to run there: the loader falls back to a column's default when neither its key nor db name is present, so an unmigrated NoodleR profile would have loaded asplatform: "noodle"and leaked into the public Noodle timeline. Idempotent; rewrites the legacy shape on next flush.Validation
Commands run locally:
pnpm check— passes. The one eslint warning is pre-existing (confirmed by running eslint against a stashed tree).pnpm regression:noodle— 14/14 pass, including the newnoodle-platform-migration.regression.tsand staging'snoodle-contextlane.pnpm regression:docs— passes.New regression
scripts/regressions/noodle-platform-migration.regression.tscovers the pure migration (legacy → new, already-migrated → untouched, missing field →"noodle") and drives a legacyvisibility: "private"row end-to-end through the real file store, asserting it does not appear inlistAccounts()and still resolves as the linked NoodleR profile.Rename correctness was verified mechanically, not by eyeball: for each renamed file, old→new tokens were normalized in the pre-rename version and diffed against the current tree, so every surviving difference had to be justified.
noodle-response-format.tsandnoodle.schema.tsdiff to zero (pure rename); everything else reduced to the intended name-collision split, route path, DB column, and copy rewrites. This is how the leftoversetDraftPublicAccountIdsetter and three doubled-up comments were found.pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
None of the below has been done — no UI was driven for this change. These are the checks a human still needs to perform:
enableNoodleroff, NoodleR surfaces still 404 / show the opt-in screen.noodler-media/namespace (pre-existing NoodleR images are expected to 404 — that is the accepted alpha breakage, not a bug to fix).Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Notes for whoever ticks these:
docs/noodle/settings.mdchanged, and now states plainly that Noodle/NoodleR separation is content separation between two simulated apps, not a privacy or security feature. Adocs-i18nupdate or a[docs-i18n] docs/noodle/settings.mdfollow-up issue is still needed.en.jsonandko.jsoncopy updated. Other locales carry only ~1–6% of keys and were untouched..github/plans/noodl-split/noodler-pr-split-living-plan.mdgained a terminology section so remaining slices are written in the new vocabulary; historical slice descriptions were left as-is.docs/noodle/overview.mdanddocs/development/noodle-internals.mdcontain no NoodleR content at all and are stale — out of scope here, worth a follow-up issue.UI evidence (if applicable)
None — no visual changes beyond label/copy text. Copy changes are listed above.
Summary by CodeRabbit
New Features
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.