Skip to content

Polish ebook download file labels - #84

Merged
RXWatcher merged 3 commits into
work/ebook-catalog-detail-supportfrom
work/ebook-download-polish
Jun 8, 2026
Merged

RXWatcher merged 3 commits into
work/ebook-catalog-detail-supportfrom
work/ebook-download-polish

Conversation

@RXWatcher

@RXWatcher RXWatcher commented Jun 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Fall back to file container labels when a media file has no video quality metadata, so ebook files show formats like EPUB or PDF.
  • Replace video-oriented download helper text with file-size-oriented copy.
  • Use file-oriented wording in the download dialog description.

Test Plan

  • pnpm --dir web test src/pages/ItemDetail/components/VersionFlyout.test.ts src/components/DownloadVersionPicker.test.tsx
  • pnpm --dir web exec tsc -p tsconfig.json --noEmit
  • git diff --check

Stack

@RXWatcher

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jun 8, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f6d84e9f-6ea5-4fe4-a23f-56af34fc6c1d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

buildQualitySummary was extended to use the file container type (uppercased) as a fallback quality label when no video, audio, or resolution attributes are present. A test verifies this fallback correctly displays "EPUB" for ebook-style files.

Changes

Container Fallback for Quality Summary

Layer / File(s) Summary
buildQualitySummary container fallback implementation and test
web/src/pages/ItemDetail/components/VersionFlyout.tsx, web/src/pages/ItemDetail/components/VersionFlyout.test.ts
buildQualitySummary now appends version.container (uppercased) as a fallback quality part when no other quality components were collected. A new test case asserts the fallback returns "EPUB" for ebook files with empty resolution, video codec, and audio codec.

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
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.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Polish ebook download file labels' directly aligns with the main change: extending buildQualitySummary to display container format (EPUB, PDF) for ebook files lacking video metadata.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch work/ebook-download-polish

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.

@coderabbitai

coderabbitai Bot commented Jun 8, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@RXWatcher RXWatcher mentioned this pull request Jun 8, 2026
4 tasks done
@RXWatcher RXWatcher changed the title Polish ebook file version labels Polish ebook download file labels Jun 8, 2026
@RXWatcher
RXWatcher merged commit b1acd93 into work/ebook-catalog-detail-support Jun 8, 2026
1 check passed
@RXWatcher
RXWatcher deleted the work/ebook-download-polish branch June 8, 2026 11:28
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.

1 participant