Skip to content

refactor: reader page id groundwork for seamless chapter transitions#553

Merged
everpcpc merged 2 commits intomainfrom
codex/webtoon
Feb 23, 2026
Merged

refactor: reader page id groundwork for seamless chapter transitions#553
everpcpc merged 2 commits intomainfrom
codex/webtoon

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

Summary

  • Introduce ReaderPageID and ReaderPage as stable reader-level page identity.
  • Refactor ReaderViewModel caches/state (preloaded images, animated states, download/upscale tasks) to key by ReaderPageID.
  • Refactor ReaderViewItem from index-based payloads to ReaderPageID payloads, and resolve indices via view model mapping.
  • Remove EndPage action buttons so EndPage is display-only and can be treated as a normal page in the reading flow.
  • Add agent rule: allow SwiftUI -> UIKit/AppKit, disallow UIKit/AppKit -> SwiftUI hosting for feature UI (UIHostingController/NSHostingController).

Related Issue

Testing

  • make build

everpcpc and others added 2 commits February 23, 2026 21:48
Introduce ReaderPage/ReaderPageID and migrate reader caches and view items to stable page identifiers.
Remove EndPage action buttons so end screens act as display-only pages in the paging flow.
Update reader views to resolve page indices from ReaderPageID and use the new preloaded image accessors.
Add AGENTS.md guidance to allow SwiftUI->UIKit/AppKit but disallow UIKit/AppKit->SwiftUI hosting for feature UI because hosting controllers do not inherit required SwiftUI environment values.

This is part of issue #539 and lays groundwork for seamless chapter transitions across DIVINA modes.
@everpcpc everpcpc merged commit 83cff7d into main Feb 23, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/webtoon branch February 23, 2026 13:54
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.

1 participant