Skip to content

Fix author progress for future releases - #52

Open
digitalgp wants to merge 1 commit into
Chaptarr:developfrom
digitalgp:agent/fix-author-progress-future-releases
Open

Fix author progress for future releases#52
digitalgp wants to merge 1 commit into
Chaptarr:developfrom
digitalgp:agent/fix-author-progress-future-releases

Conversation

@digitalgp

Copy link
Copy Markdown

Description

Author progress currently counts monitored future releases as missing. This keeps an author poster red even when every released monitored title has a file.

This change:

  • excludes books with a future ReleaseDate from both the available and required progress counts, while retaining NULL dates for the existing fallback behavior;
  • applies the same logic to audiobook and ebook statistics;
  • aligns the author table progress calculation with the poster and overview calculation; and
  • adds repository and SQL parity coverage for both media types.

The issue was reported from an Unraid Docker installation. The fix is intentionally limited to progress statistics and does not change monitoring or future-release visibility.

Fixes #51

Database Migration

NO.

Breaking Changes

None.

How was this tested?

Local Windows test environment, based on the latest develop commit (2587323):

  • Targeted author statistics tests: 7 passed, including released/future audiobook and ebook cases.
  • dotnet test src/Chaptarr.Core.Test/Chaptarr.Core.Test.csproj: 2,770 passed, 2 skipped, and 2 unrelated existing failures remained (should_stage_matched_provider_chapters_when_source_duration_matches and the locale-sensitive decimal assertion in should_use_scaled_duration_tolerance_for_output_validation).
  • TypeScript typecheck: passed.
  • Translation key check: passed (1,576 files scanned).
  • Production Webpack build: passed.
  • Full frontend lint reports 1,478 existing repository-wide findings on unchanged code. Linting the two touched UI files reports only the pre-existing unused titleSlug variable in AuthorIndexRow.js; this patch adds no new lint finding.

The repository test explicitly verifies the expected 2 / 2 released-title progress while the two monitored future titles remain included in the total catalog count (4).

Screenshots (UI changes only)

No visual styling is changed. For the Unraid reproduction shown in #51, the red 2 / 3 author progress becomes green 2 / 2; the future release remains visible and marked as a future release.

@digitalgp
digitalgp marked this pull request as ready for review August 16, 2026 13:45
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.

[BUG] Author progress bar counts monitored future releases as missing

1 participant