[PR #3981] [MERGED] NoodleR Slice 10: add composer image uploads and polls #6182

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3981
Author: @Xelvanis
Created: 7/23/2026
Status: ✅ Merged
Merged: 7/24/2026
Merged by: @SpicyMarinara

Base: staging ← Head: noodl-split-10-composer-media-parity


📝 Commits (10+)

  • a104ced docs(noodler): start slice 10 media parity
  • 72761ac feat(noodler): add private post media and polls
  • 2b9a0fc feat(noodler): enable image and poll composer tools
  • daf700b docs(noodler): document Slice 10 media parity
  • a3e25a5 fix(noodler): harden media and poll persistence
  • 40bf859 feat(noodle): unify composer media editing
  • 636afe4 fix(noodle): harden polls and private media
  • 0c73377 fix(noodler): harden media recovery and guidance
  • 1a0dea2 feat(noodle): support editing poll posts
  • 42ab892 refactor(noodle): centralize accent theming

📊 Changes

22 files changed (+3017 additions, -848 deletions)

View changed files

📝 .github/plans/noodl-split/noodler-pr-split-living-plan.md (+32 -9)
📝 docs/noodle/settings.md (+5 -1)
📝 packages/client/src/components/noodle/NoodleBrowserChrome.tsx (+7 -7)
📝 packages/client/src/components/noodle/NoodleHome.tsx (+234 -245)
➕ packages/client/src/components/noodle/NoodleImageComposer.tsx (+87 -0)
➕ packages/client/src/components/noodle/NoodlePollComposer.tsx (+212 -0)
📝 packages/client/src/components/noodle/NoodlePostCard.tsx (+482 -182)
📝 packages/client/src/components/noodle/NoodleProfileSurface.tsx (+2 -12)
📝 packages/client/src/components/noodle/NoodleShell.tsx (+10 -9)
📝 packages/client/src/components/noodle/NoodlerHome.tsx (+568 -225)
➕ packages/client/src/components/noodle/PostImageCropEditor.tsx (+370 -0)
📝 packages/client/src/hooks/use-noodle.ts (+101 -9)
📝 packages/client/src/localization/locales/en.json (+72 -0)
📝 packages/server/src/routes/noodle.routes.ts (+296 -42)
📝 packages/server/src/services/noodle/noodle-private-generation.service.ts (+30 -3)
📝 packages/server/src/services/noodle/noodle-private-media.ts (+35 -0)
📝 packages/server/src/services/noodle/noodle-private-post.operation.ts (+78 -19)
📝 packages/server/src/services/storage/noodle.storage.ts (+309 -70)
📝 packages/shared/src/index.ts (+1 -0)
📝 packages/shared/src/schemas/noodle.schema.ts (+68 -15)

...and 2 more files

📄 Description

Slice 10 of the NoodleR rollout: composer media parity

Prior merged foundation: Slices 1A, 1B, 2, 3, 4, 5, 6, 6b, and 7. This PR intentionally excludes LLM-generated creator images and polls, automatic posting, fan activity, multi-image posts, reply uploads, gallery/GIF attachment, poll duration or multiple-answer settings, and other later-slice product work.

This slice is intentionally independent from the planned automatic-posting slices, so it can progress in parallel without changing their generation or scheduling contracts.

Linked issue

Closes #3980

Why this change

NoodleR creators could publish title/body posts, but its image and poll controls had no complete upload, ownership, access, cleanup, editing, or voting paths. Noodle also had separate, less capable media editors. This slice adds the missing private-media contracts and shares the improved composer UI across both products without weakening NoodleR visibility rules.

What changed

  • Adds one optional image to NoodleR posts from a device upload or image URL, with crop and positioning controls before publication.
  • Supports cropping, removing, or attaching an image while editing a published post; image-only posts use the existing Shared an image. fallback.
  • Adds standalone or text-supported polls with two to four options, per-option emoji selection, and access-gated voting scoped to the selected viewer persona.
  • Shares the image and poll composer UI with public Noodle instead of maintaining parallel implementations.
  • Supports editing published polls while preserving existing votes; retained options keep stable identities when their labels or the question are corrected.
  • Keeps NoodleR titles optional. Body text is required only when the post has neither an image nor a poll.
  • Keeps Guide limited to title/body generation while preserving user-selected image, poll, access, and PPV values.
  • Keeps draft media client-held until submission, then validates signature/type/size and writes NoodleR images into post-owned private storage during that request. Failed persistence compensates the promoted file, while successful replacement or deletion removes superseded media.
  • Keeps locked projections from exposing image URLs or poll metadata and rechecks viewer access when delivering media or recording votes.
  • Replaces native confirmation prompts in the affected Noodle surfaces with Marinara-styled dialogs.
  • Centralizes Noodle/NoodleR accent scoping under the semantic --noodle-accent token so shared and portaled media UI inherits the correct Noodle or chroma accent.
  • Updates the settings documentation and authoritative living-plan status.

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 validation run during implementation:

  • pnpm check on the initial complete Slice 10 implementation
  • pnpm regression:noodle, including upload, authorization, voting, vote-preserving poll editing, deletion, and failed-persistence compensation coverage
  • pnpm guard:installer-artifacts
  • focused shared/server/client lint and type checks
  • client production build after the shared-media and accent-token refactors
  • git diff --check and temporary-artifact audit

The latest poll-editing, private-media orchestration, and accent-token follow-ups passed focused client/server checks, server and client builds where applicable, the complete Noodle regression suite, and git diff --check.

A seeded Chrome QA pass exercised Noodle and NoodleR standalone polls, emoji options, vote replacement, URL image attachment, crop editing, image-only fallback text, NoodleR subscriber/PPV media gates, creator self-interaction blocking, reload persistence, the 390×844 mobile feed, and console errors. Device-file upload was blocked by the Chrome extension's file-chooser permission. The mobile composer popover, alternate-theme sweep, and Guide with image-only/poll-only drafts were not run, so the contributor checkboxes remain unticked and those rows still need manual verification.

Manual verification notes

  • Create text-only, image-only, poll-only, and combined media posts from the NoodleR hub and a creator profile.
  • Upload an image from both a device and URL; adjust its crop before posting.
  • Edit a published image to crop, remove, or attach media, then reload and confirm persistence.
  • Edit a published poll and confirm existing votes remain attached to retained options after question or label corrections.
  • Vote from different viewer personas and verify each persona has one current vote.
  • Verify Post publishes the literal draft and Guide changes title/body only while preserving media, access, and PPV choices.
  • Verify public, subscriber, PPV, hidden, unlocked, and creator-linked viewer behavior on desktop and mobile in light and dark themes.
  • Verify upload, Post, Guide, edit, and vote failures remain actionable and preserve retryable draft state.
  • Confirm shared Noodle controls remain blue while NoodleR controls inherit the configured Marinara chroma accent, including popovers and modals.

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 a short recording should be added after the final manual browser pass.

Summary by CodeRabbit

  • New Features
    • Create posts with uploaded images, image URLs, cropping, or polls—including image-only and poll-only posts.
    • Edit post images, crops, polls, and content; replies can now include images.
    • Vote in polls with validated options and change votes later.
    • Private posts preserve selected media when guided and retain drafts after failures.
  • Bug Fixes
    • Improved media privacy and access controls for locked posts.
    • Added safer upload handling and cleanup when updates fail.
  • Style
    • Updated Noodle screens and controls with consistent accent colors.
  • Documentation
    • Clarified composer, draft, privacy, and poll behavior.

🔄 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/3981 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 7/23/2026 **Status:** ✅ Merged **Merged:** 7/24/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `noodl-split-10-composer-media-parity` --- ### 📝 Commits (10+) - [`a104ced`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a104ced0119b8836269786c40c18407976adc01f) docs(noodler): start slice 10 media parity - [`72761ac`](https://github.com/Pasta-Devs/Marinara-Engine/commit/72761acc754c08f3cf5269224d9f93cdec0bcb72) feat(noodler): add private post media and polls - [`2b9a0fc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2b9a0fcb5b3641f73bd69ac0e7cc39d5db3e2491) feat(noodler): enable image and poll composer tools - [`daf700b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/daf700beef99c5c9d7379427b49b2f7967d7aaa9) docs(noodler): document Slice 10 media parity - [`a3e25a5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a3e25a5f373f448d19e7494defa0a0de2b57b5b0) fix(noodler): harden media and poll persistence - [`40bf859`](https://github.com/Pasta-Devs/Marinara-Engine/commit/40bf859643a56b49b3cab6150f9479aed2437834) feat(noodle): unify composer media editing - [`636afe4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/636afe449545a7cc2c5cf78c2d0f1a495eb632cd) fix(noodle): harden polls and private media - [`0c73377`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0c73377476c1d1b673eb9e6123c7b065e39081a2) fix(noodler): harden media recovery and guidance - [`1a0dea2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1a0dea2bb7dafaac0dccd1ae4493d9f0ef0d2f87) feat(noodle): support editing poll posts - [`42ab892`](https://github.com/Pasta-Devs/Marinara-Engine/commit/42ab892de67cc1c069d0cdf4bfdd88b985e6d37b) refactor(noodle): centralize accent theming ### 📊 Changes **22 files changed** (+3017 additions, -848 deletions) <details> <summary>View changed files</summary> 📝 `.github/plans/noodl-split/noodler-pr-split-living-plan.md` (+32 -9) 📝 `docs/noodle/settings.md` (+5 -1) 📝 `packages/client/src/components/noodle/NoodleBrowserChrome.tsx` (+7 -7) 📝 `packages/client/src/components/noodle/NoodleHome.tsx` (+234 -245) ➕ `packages/client/src/components/noodle/NoodleImageComposer.tsx` (+87 -0) ➕ `packages/client/src/components/noodle/NoodlePollComposer.tsx` (+212 -0) 📝 `packages/client/src/components/noodle/NoodlePostCard.tsx` (+482 -182) 📝 `packages/client/src/components/noodle/NoodleProfileSurface.tsx` (+2 -12) 📝 `packages/client/src/components/noodle/NoodleShell.tsx` (+10 -9) 📝 `packages/client/src/components/noodle/NoodlerHome.tsx` (+568 -225) ➕ `packages/client/src/components/noodle/PostImageCropEditor.tsx` (+370 -0) 📝 `packages/client/src/hooks/use-noodle.ts` (+101 -9) 📝 `packages/client/src/localization/locales/en.json` (+72 -0) 📝 `packages/server/src/routes/noodle.routes.ts` (+296 -42) 📝 `packages/server/src/services/noodle/noodle-private-generation.service.ts` (+30 -3) 📝 `packages/server/src/services/noodle/noodle-private-media.ts` (+35 -0) 📝 `packages/server/src/services/noodle/noodle-private-post.operation.ts` (+78 -19) 📝 `packages/server/src/services/storage/noodle.storage.ts` (+309 -70) 📝 `packages/shared/src/index.ts` (+1 -0) 📝 `packages/shared/src/schemas/noodle.schema.ts` (+68 -15) _...and 2 more files_ </details> ### 📄 Description > **Slice 10 of the NoodleR rollout: composer media parity** > > Prior merged foundation: Slices 1A, 1B, 2, 3, 4, 5, 6, 6b, and 7. This PR intentionally excludes LLM-generated creator images and polls, automatic posting, fan activity, multi-image posts, reply uploads, gallery/GIF attachment, poll duration or multiple-answer settings, and other later-slice product work. This slice is intentionally independent from the planned automatic-posting slices, so it can progress in parallel without changing their generation or scheduling contracts. ## Linked issue Closes #3980 ## Why this change NoodleR creators could publish title/body posts, but its image and poll controls had no complete upload, ownership, access, cleanup, editing, or voting paths. Noodle also had separate, less capable media editors. This slice adds the missing private-media contracts and shares the improved composer UI across both products without weakening NoodleR visibility rules. ## What changed - Adds one optional image to NoodleR posts from a device upload or image URL, with crop and positioning controls before publication. - Supports cropping, removing, or attaching an image while editing a published post; image-only posts use the existing `Shared an image.` fallback. - Adds standalone or text-supported polls with two to four options, per-option emoji selection, and access-gated voting scoped to the selected viewer persona. - Shares the image and poll composer UI with public Noodle instead of maintaining parallel implementations. - Supports editing published polls while preserving existing votes; retained options keep stable identities when their labels or the question are corrected. - Keeps NoodleR titles optional. Body text is required only when the post has neither an image nor a poll. - Keeps Guide limited to title/body generation while preserving user-selected image, poll, access, and PPV values. - Keeps draft media client-held until submission, then validates signature/type/size and writes NoodleR images into post-owned private storage during that request. Failed persistence compensates the promoted file, while successful replacement or deletion removes superseded media. - Keeps locked projections from exposing image URLs or poll metadata and rechecks viewer access when delivering media or recording votes. - Replaces native confirmation prompts in the affected Noodle surfaces with Marinara-styled dialogs. - Centralizes Noodle/NoodleR accent scoping under the semantic `--noodle-accent` token so shared and portaled media UI inherits the correct Noodle or chroma accent. - Updates the settings documentation and authoritative living-plan status. ## Validation - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` Automated validation run during implementation: - `pnpm check` on the initial complete Slice 10 implementation - `pnpm regression:noodle`, including upload, authorization, voting, vote-preserving poll editing, deletion, and failed-persistence compensation coverage - `pnpm guard:installer-artifacts` - focused shared/server/client lint and type checks - client production build after the shared-media and accent-token refactors - `git diff --check` and temporary-artifact audit The latest poll-editing, private-media orchestration, and accent-token follow-ups passed focused client/server checks, server and client builds where applicable, the complete Noodle regression suite, and `git diff --check`. A seeded Chrome QA pass exercised Noodle and NoodleR standalone polls, emoji options, vote replacement, URL image attachment, crop editing, image-only fallback text, NoodleR subscriber/PPV media gates, creator self-interaction blocking, reload persistence, the 390×844 mobile feed, and console errors. Device-file upload was blocked by the Chrome extension's file-chooser permission. The mobile composer popover, alternate-theme sweep, and Guide with image-only/poll-only drafts were not run, so the contributor checkboxes remain unticked and those rows still need manual verification. ### Manual verification notes - Create text-only, image-only, poll-only, and combined media posts from the NoodleR hub and a creator profile. - Upload an image from both a device and URL; adjust its crop before posting. - Edit a published image to crop, remove, or attach media, then reload and confirm persistence. - Edit a published poll and confirm existing votes remain attached to retained options after question or label corrections. - Vote from different viewer personas and verify each persona has one current vote. - Verify Post publishes the literal draft and Guide changes title/body only while preserving media, access, and PPV choices. - Verify public, subscriber, PPV, hidden, unlocked, and creator-linked viewer behavior on desktop and mobile in light and dark themes. - Verify upload, Post, Guide, edit, and vote failures remain actionable and preserve retryable draft state. - Confirm shared Noodle controls remain blue while NoodleR controls inherit the configured Marinara chroma accent, including popovers and modals. ## Docs and release impact - [x] 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 a short recording should be added after the final manual browser pass. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Create posts with uploaded images, image URLs, cropping, or polls—including image-only and poll-only posts. * Edit post images, crops, polls, and content; replies can now include images. * Vote in polls with validated options and change votes later. * Private posts preserve selected media when guided and retain drafts after failures. * **Bug Fixes** * Improved media privacy and access controls for locked posts. * Added safer upload handling and cleanup when updates fail. * **Style** * Updated Noodle screens and controls with consistent accent colors. * **Documentation** * Clarified composer, draft, privacy, and poll behavior. <!-- 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:53 +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#6182
No description provided.