Skip to content

feat(reader): 读完整本后展示完结页 - #50

Merged
zilorn merged 1 commit into
mainfrom
cursor/unspecified-issue-fc3b
Nov 7, 2026
Merged

zilorn merged 1 commit into
mainfrom
cursor/unspecified-issue-fc3b

Conversation

@cursor

@cursor cursor Bot commented Nov 7, 2026

Copy link
Copy Markdown

解决的问题 / Problem

Fixes #49

用户读到最后一页再点下一页没有反应,不容易判断全书已经读完。

改动后的行为 / Resulting behavior

分页模式下,最后一章的最后一屏再向前翻一次,会进入一页虚拟空白页,居中显示「本书已读完」。再向前翻页停住,回翻回到刚才那一屏正文。双页模式这一次翻整屏。这一页不进入章节分页,也不改已保存的阅读进度。

滚动模式在最后一章正文后面显示同一句说明。自动翻页会先翻到这一页,下一次到达书末再停止。

手机与桌面共用阅读页。本次环境没有 Tauri 书库,浏览器里书架为空,无法打开真实阅读页截图。

验证 / Validation

  • 类型检查 / Type check: pnpm exec tsc --noEmit 通过
  • 文案检查 / i18n check: pnpm run i18n:check 通过
  • 前端构建 / Frontend build: pnpm build 通过
  • Rust 测试(如适用)/ Rust tests (if applicable): 不涉及
  • 手动验证 / Manual verification: 未在真机或浏览器阅读页里点按翻页。已执行阅读器实际翻页函数的回归:
    • node scripts/reader-book-end-test.mjs
    • node scripts/reader-chapter-boundary-test.mjs
    • node scripts/tts-follow-recovery-test.mjs
    • node scripts/reader-position-transition-test.mjs
    • node scripts/reader-page-turn-test.mjs
    • node scripts/translation-position-test.mjs

数据与兼容性 / Data and compatibility

不涉及。完结页不写入阅读进度,旧进度仍按章节字符偏移恢复到正文页。

提交前检查 / Checklist

  • 已阅读 CONTRIBUTING.md 与 AGENTS.md / I read CONTRIBUTING.md and AGENTS.md.
  • 仅包含本次任务相关文件 / Changes are limited to this task.
  • 已更新相关文档与中英文文案(如适用)/ Relevant docs and both locales are updated where applicable.
  • 已完成适用检查,并说明未验证的部分 / Applicable checks are complete and unverified parts are explained.
Open in Web View Automation 

最后一章末屏再翻一次进入虚拟空白页,提示本书已读完;该页不计入分页,也不改阅读进度。

Co-authored-by: zilorn <[email protected]>

@zilorn zilorn left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

完美

@zilorn
zilorn marked this pull request as ready for review November 7, 2026 23:01
@zilorn
zilorn merged commit 24133ef into main Nov 7, 2026
7 checks passed
@zilorn
zilorn deleted the cursor/unspecified-issue-fc3b branch November 8, 2026 00:11
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.

读完整本书后,下一页为空页,展示已读完本书的文本

2 participants