refactor(annotations): unify matching and resumable sync - #150
Merged
Conversation
Owner
Author
|
Ref #147 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明
统一微信读书下载书籍与本地导入书籍的划线和想法流程,解决两套匹配逻辑并存、整书同步中断后重复处理的问题。
Fixes #124
承接并替代 #138 的单章同步与定位优化方案。
类型
Bugfix 要求
不适用;本 PR 为 #124 的流程重构。
Feature 要求
测试
bash scripts/run_lua_specs.shbash scripts/check_lua_namespace.shluacheck main.lua _meta.lua weread specKOReader integration测试说明:
非公开 WeRead API
脚本路径:
复现命令与脱敏结果:
模块结构
新增模块均位于项目命名空间:
weread/lib/annotation_chapters.luaweread/lib/annotation_source.luaweread/lib/annotation_store.luaweread/lib/annotation_sync.luaweread/ui/annotation_sync_controller.lua截图
已完成 Kindle 实机交互验证,暂未附截图;菜单结构和实机测试步骤见
README.md与docs/annotation-refactor-device-test.md。Checklist
settings/weread.lua、API key、cookie、token、x-wrpa-*或私人书籍内容。weread/lib/、weread/ui/命名空间规范。weread/lib/i18n.lua。scripts/中提交可独立运行、可复现的 Python 验证脚本,并填写了复现命令和脱敏结果。(N/A)