mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3759] [MERGED] refactor(noodle): add typed navigation and real containers #6093
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#6093
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/3759
Author: @Gunterlie
Created: 7/17/2026
Status: ✅ Merged
Merged: 7/18/2026
Merged by: @SpicyMarinara
Base:
staging← Head:noodl-split-2-nav-shell📝 Commits (10+)
28b265crefactor(noodle): make navigation states explicit28fcc2crefactor(noodle): move data ownership into containersd3b98a0docs(noodle): clarify NoodleR preview status782c5f3fix(noodle): keep NoodleR launch in settings9237bb2fix(noodle): verify before enabling NoodleRb2d47b6Merge branch 'staging' into noodl-split-2-nav-shellf5de7f2fix(noodle): address nav shell review60b3c89Merge remote-tracking branch 'origin/noodl-split-2-nav-shell' into noodl-split-2-nav-shell0f949cdfix(noodle): scope compose modal focus portals10ee301fix(noodle): clarify noodler development warning📊 Changes
7 files changed (+6107 additions, -5753 deletions)
View changed files
📝
docs/noodle/settings.md(+2 -2)➕
packages/client/src/components/noodle/NoodleHome.tsx(+5827 -0)📝
packages/client/src/components/noodle/NoodleView.tsx(+9 -5750)➕
packages/client/src/components/noodle/NoodlerHome.tsx(+151 -0)➕
packages/client/src/components/noodle/noodle-navigation.types.ts(+15 -0)📝
packages/client/src/components/ui/Modal.tsx(+20 -1)➕
packages/client/src/hooks/use-dialog-focus-scope.ts(+83 -0)📄 Description
Linked issue
Closes #3756
Source review thread: #3618
Why this change
The Noodle client represented its destination with independent view, profile-account, and profile-connection state. Those values could describe stale or invalid combinations, so every transition had to clear unrelated state manually.
The earlier NoodleR extraction also left public and private home components as presentation puppets controlled by one oversized parent. Slice 2 establishes a typed navigation shell and gives each mode a real container before later NoodleR features build on top of it.
Summary
NoodleNavigationStatefor public Home, Search, Notifications, Profile, Settings, NoodleR verification, and the private hub.NoodleViewparent from 59 local state hooks to 1.NoodleViewinto the navigation shell.NoodleHomecontainer.NoodlerHomecontainer that owns the feature-gate query, enable mutation, private-account query, and loading/error/empty/populated states.Architecture
NoodleViewowns the discriminated navigation destination and dispatches to one of two containers:NoodleHomeowns public Noodle queries, mutations, derived state, and local UI state.NoodlerHomeowns private-account access, enablement, querying, and hub states.Invalid combinations such as a settings screen retaining a viewed profile ID, or a home screen retaining a followers subview, are not members of the navigation union.
The extraction is intentionally limited to capabilities present after Slices 1A and 1B. It does not import later NoodleR profile, subscription, generation, stage identity, scheduling, or project behavior from the closed oversized branch.
Behavior
Existing public Noodle destinations retain their previous screens: Home, Search, Notifications, own profile, other account profiles, Followers, Following, and Settings.
NoodleR is launched only from the NoodleR Access section in Noodle Settings. It is not shown in the desktop sidebar, mobile drawer, or mobile bottom navigation.
When NoodleR is disabled, attempting to turn on the setting opens verification without persisting enablement. The verification screen states that NoodleR is intended for adults, is not finalized, and should not receive feature requests while it remains in development. Confirming the 18+ action persists enablement and opens the private-account hub. Leaving verification through Back keeps NoodleR disabled.
Once enabled, Settings displays an Open NoodleR button. The hub displays loading, retryable error, empty, and populated account states. Turning the setting off disables access directly and removes the launch button.
Known limitations
libnspr4.so.Validation
Automated evidence gathered while preparing this PR:
pnpm checkpassed.pnpm guard:installer-artifactspassed.pnpm regressionpassed, including all Noodle regressions.pnpm smoke:uicould not execute test code because Chromium failed at launch with missing host librarylibnspr4.so.pnpm version:checkwas not required because no version-bearing files changed.Manual verification required
Manual browser verification was completed by the contributor. The following flows were verified:
The verified results are recorded by checking each item below. Screenshots were also captured during verification.
Test plan
Docs touched
docs/noodle/settings.md: documents the NoodleR opt-in route, private account hub, and the later-slice boundary.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.