Skip to content

Add unified literary works for ebooks and audiobooks - #107

Merged
Quick104 merged 13 commits into
mainfrom
feat/literary-works
Jun 16, 2026
Merged

Quick104 merged 13 commits into
mainfrom
feat/literary-works

Conversation

@RXWatcher

Copy link
Copy Markdown
Contributor

Summary

  • Adds literary work schema/domain/repository/matcher for linking ebook and audiobook content under stable work IDs.
  • Adds work-aware detail API, additive catalog item fields, admin linking primitives, and optional catalog group=work grouping.
  • Hooks automatic work linking into ebook/audiobook scan and enrichment paths, plus narrows candidate lookup for title/author/external/series matches.

Tests

  • go test ./migrations -count=1
  • go test ./internal/literaryworks ./internal/api/handlers ./internal/catalog ./internal/scanner ./internal/ebooks ./internal/audiobooks -count=1

Notes

  • Stacked on work/ebook-reader-ruler-profiles.
  • Deployed to silo-new/CT135 for smoke testing; live linker verified by creating an ebook+audiobook work for Death on the Nile.

@coderabbitai

coderabbitai Bot commented Jun 9, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@Quick104, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 50 minutes and 1 second. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: db9cee3b-29dc-4a63-bc16-90c0305eb43d

📥 Commits

Reviewing files that changed from the base of the PR and between 75962e0 and ad3a835.

📒 Files selected for processing (26)
  • cmd/silo/main.go
  • docs/superpowers/plans/2026-06-09-literary-works.md
  • docs/superpowers/specs/2026-06-09-literary-works-design.md
  • internal/api/handlers/catalog.go
  • internal/api/handlers/catalog_literary_work_test.go
  • internal/api/handlers/items.go
  • internal/api/handlers/literary_works.go
  • internal/api/handlers/literary_works_test.go
  • internal/api/router.go
  • internal/audiobooks/enrichment.go
  • internal/catalog/detail.go
  • internal/catalog/detail_literary_work_test.go
  • internal/ebooks/enrichment.go
  • internal/literaryworks/matcher.go
  • internal/literaryworks/matcher_test.go
  • internal/literaryworks/normalize.go
  • internal/literaryworks/normalize_test.go
  • internal/literaryworks/repository.go
  • internal/literaryworks/repository_test.go
  • internal/literaryworks/service.go
  • internal/literaryworks/service_test.go
  • internal/literaryworks/types.go
  • internal/scanner/audiobook_scan.go
  • internal/scanner/ebook_scan.go
  • internal/scanner/scanner.go
  • migrations/sql/20260609150000_literary_works.sql
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/literary-works

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

Base automatically changed from work/ebook-reader-ruler-profiles to work/ebooks-reader-base June 10, 2026 01:16
Base automatically changed from work/ebooks-reader-base to main June 10, 2026 12:18
@Quick104
Quick104 force-pushed the feat/literary-works branch from 1efaf1e to 33b796a Compare June 11, 2026 00:41
@fluxis fluxis added the v1.0 Silo v1 scope - auto-adds to the Silo v1 project label Jun 12, 2026
@fluxis fluxis added this to the v1 milestone Jun 12, 2026
@fluxis fluxis added v1.0-proposed Proposed for the v1 scope lock; awaiting triage v1.0 Silo v1 scope - auto-adds to the Silo v1 project and removed v1.0 Silo v1 scope - auto-adds to the Silo v1 project v1.0-proposed Proposed for the v1 scope lock; awaiting triage labels Jun 13, 2026
@Quick104
Quick104 force-pushed the feat/literary-works branch from 33b796a to ad3a835 Compare June 16, 2026 22:06
@Quick104
Quick104 merged commit 90014c1 into main Jun 16, 2026
1 check passed
@Quick104
Quick104 deleted the feat/literary-works branch June 16, 2026 22:17
Quick104 added a commit that referenced this pull request Jun 17, 2026
* docs: add literary works design and plan

* feat(literary): add work link schema

* feat(literary): add work domain primitives

* feat(literary): persist work links

* feat(literary): score work matches

* feat(catalog): include literary work summary on item detail

* feat(literary): expose work detail API

* feat(literary): assemble work detail

* feat(literary): add admin work linking primitives

* feat(catalog): group literary items by work

* feat(literary): auto-link works during book scans

* fix(literary): narrow work match candidates

* fix(literary): address work merge blockers

---------

Co-authored-by: rxwatcher <[email protected]>
Co-authored-by: Quick <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v1.0 Silo v1 scope - auto-adds to the Silo v1 project

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants