Skip to content

Add cartoon reader rendering with webtoon layout#1219

Merged
realproject7 merged 2 commits into
mainfrom
task/1214-cartoon-reader-rendering
May 16, 2026
Merged

Add cartoon reader rendering with webtoon layout#1219
realproject7 merged 2 commits into
mainfrom
task/1214-cartoon-reader-rendering

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • StoryContent now accepts optional contentType prop
  • When contentType === "cartoon": renders as vertical webtoon layout with full-width responsive images, minimal gaps, and centered scene labels
  • When fiction/undefined: existing prose styling unchanged
  • Both story detail page (genesis) and individual plot pages pass content_type through
  • Markdown sanitization and IPFS expectations unchanged
  • Cartoon badge already in place from Add content_type support for fiction vs cartoon stories #1212

Closes #1214

Test plan

  • TypeScript typecheck passes
  • ESLint passes (no new errors)
  • Full test suite passes (62 tests)
  • RE1/RE2 review
  • Manual: Fiction stories render with prose styling (unchanged)
  • Manual: Cartoon stories render images full-width in vertical sequence
  • Manual: Scene labels appear centered above panels
  • Manual: Mobile responsive — images scale down properly

🤖 Generated with Claude Code

StoryContent now accepts a contentType prop. When "cartoon", renders
markdown images as a vertical webtoon layout: full-width responsive
images with minimal gaps, centered in a max-w-2xl container. Scene
labels render as centered bold text above panels.

Fiction/undefined content type uses the existing prose styling path.
Both story detail and individual plot pages pass content_type through.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored May 16, 2026 11:50pm

Request Review

Copy link
Copy Markdown
Owner Author

@realproject7 realproject7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RE2 Review: ✅ Approve

Minimal, focused change. Well done keeping this scoped.

Highlights:

  • Clean branching in StoryContent — cartoon path returns early, fiction path untouched
  • Custom ReactMarkdown components map cartoon markdown structure (images, separators, bold labels) to proper webtoon layout
  • loading="lazy" on images — good for long scrolling comics
  • max-w-2xl + mx-auto centers the reader nicely on desktop while staying responsive
  • Both story detail and plot detail pages correctly pass content_type through

No concerns. CI pending at review time.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: REQUEST CHANGES

Summary

The normal story detail and plot pages now pass content_type into StoryContent, but the reading-mode overlay still renders every chapter through the default fiction path. That leaves a user-facing reader path for cartoon stories without the required webtoon layout.

Findings

  • [medium] Reading mode does not receive or pass contentType, so cartoon plots opened in the reader overlay render with prose styling instead of the vertical webtoon layout.
    • File: src/components/ReadingMode.tsx:262
    • Suggestion: Thread contentType from StoryPage / plot detail into ReadingModeWrapper, then into ReadingMode, and pass it to both incoming and outgoing StoryContent calls. Keep undefined/fiction using the current prose path.

Decision

Requesting changes because #1214 requires branching reader rendering via storyline.content_type, and reading mode is part of the reader surface. CI was still pending at review time.

Passes content_type from storyline through ReadingModeWrapper and
ReadingMode to StoryContent, so cartoon stories use the webtoon layout
in the reading overlay as well as the main view.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The requested reading-mode fix is in place. contentType is now threaded from story/plot pages through ReadingModeWrapper and ReadingMode into both StoryContent render sites, so cartoon content uses the webtoon layout in the overlay as well as the standard reader pages.

Findings

  • None blocking.

Decision

Approved. The prior RE1 finding is resolved, and both lint-and-typecheck and e2e are green on the updated commit.

@realproject7 realproject7 merged commit 4c04c35 into main May 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add cartoon reader rendering for image-led PlotToon content

2 participants