Skip to content

feat(client): 实现 JmHtmlClient#getWatchHistory 方法 - #12

Merged
JUKOMU merged 1 commit into
masterfrom
dev
Jul 17, 2026
Merged

feat(client): 实现 JmHtmlClient#getWatchHistory 方法#12
JUKOMU merged 1 commit into
masterfrom
dev

Conversation

@JUKOMU

@JUKOMU JUKOMU commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • 新功能
    • 支持获取已登录用户的浏览历史记录。
    • 浏览历史页面现在会解析并返回作品编号及标题信息。

@JUKOMU JUKOMU added the enhancement New feature or request label Jul 17, 2026
@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 05381584-7d27-4423-838f-82435747ad58

📥 Commits

Reviewing files that changed from the base of the PR and between 6423b16 and 9abcac1.

📒 Files selected for processing (2)
  • jmcomic-core/src/main/java/io/github/jukomu/jmcomic/core/client/impl/JmHtmlClient.java
  • jmcomic-core/src/main/java/io/github/jukomu/jmcomic/core/parser/HtmlParser.java

📝 Walkthrough

Walkthrough

HTML 客户端现在请求已登录用户的观看历史页面,并新增解析逻辑,从页面条目中提取专辑 ID 与标题,返回 JmAlbumMeta 列表。

Changes

观看历史支持

Layer / File(s) Summary
观看历史请求与解析
jmcomic-core/src/main/java/io/github/jukomu/jmcomic/core/client/impl/JmHtmlClient.java, jmcomic-core/src/main/java/io/github/jukomu/jmcomic/core/parser/HtmlParser.java
JmHtmlClient#getWatchHistory 请求用户观看历史页面,并调用 HtmlParser#parseWatchHistory;解析器提取专辑 ID 和标题,构造 JmAlbumMeta 列表。

Estimated code review effort: 2 (Simple) | ~10 minutes

Sequence Diagram(s)

sequenceDiagram
  participant JmHtmlClient
  participant WatchlistPage
  participant HtmlParser
  JmHtmlClient->>WatchlistPage: GET user/{username}/favorite/watchlist
  WatchlistPage-->>JmHtmlClient: 返回 HTML
  JmHtmlClient->>HtmlParser: parseWatchHistory(html)
  HtmlParser-->>JmHtmlClient: 返回 List<JmAlbumMeta>
Loading
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题准确概括了本次变更的核心:为 JmHtmlClient 实现 getWatchHistory 方法。
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev

Comment @coderabbitai help to get the list of available commands.

@JUKOMU
JUKOMU merged commit ca5d0c6 into master Jul 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant