Skip to content

refactor: centralize acquisition format helpers - #99

Merged
jdluu merged 1 commit into
mainfrom
refactor/acquisition-format-helper
Aug 29, 2026
Merged

refactor: centralize acquisition format helpers#99
jdluu merged 1 commit into
mainfrom
refactor/acquisition-format-helper

Conversation

@jdluu

@jdluu jdluu commented Aug 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • Centralizes media-type normalization and display labels in src/types/opds.ts
  • Migrates the OPDS card, detail modal, and format menu to shared helpers
  • Preserves catalog order, EPUB/PDF fallback semantics, unknown formats, labels, and download callbacks
  • Adds focused helper coverage

Scope

Closes #98. Refactor-only and within the active feature freeze.

Validation

  • Focused type helper tests: 16 passed
  • Related OPDS tests: 63 passed
  • OPDS feature suite: 171 passed
  • Full frontend suite: 297 passed
  • npx tsc -b: passed
  • Direct Biome check: passed
  • pnpm build: passed
  • git diff --check: passed

No adb or Android device commands were run for this PR. Pre-existing generated Android changes were not staged.

Share media-type normalization and display labels across OPDS cards, modals, and format menus while preserving download behavior.\n\nCloses #98
@jdluu
jdluu merged commit f73565e into main Aug 29, 2026
3 checks passed
@jdluu
jdluu deleted the refactor/acquisition-format-helper branch August 29, 2026 20:46
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.

refactor: centralize acquisition format presentation and selection

1 participant