Skip to content

Test coverage: ReaderScreenKt design pass (Phase 7 split from #521) #607

Closed

Description

@libravault-xyz

Summary

Split out of #521 (see comment) — one of the three remaining docs/TEST_COVERAGE_PRD.md Phase 7 targets, given its own issue so it isn't force-fit into a shared PR with unrelated screens.

Scope

ReaderScreenKt's top-level composable needs a deliberate design pass, not the mechanical wrapper/pure-content split already applied to SettingsScreenKt/PlayerScreenKt/CreateVaultScreenKt.

Its epubViewModel/markdownViewModel are obtained via sibling hiltViewModel() calls specifically so their instances are shared with the ViewModelStoreOwner that EpubReaderScreen/MarkdownReaderScreen use downstream — Read Aloud's chapter-walk coordination depends on that sharing. A mechanical extraction of a pure content composable risks silently breaking it (the "a real behaviour change slipping in unnoticed" risk docs/TEST_COVERAGE_PRD.md's Risks section calls out generally).

Already done (docs/TEST_COVERAGE_PRD.md §1b, feature:reader 40.3% → 45.1%):

  • selectReaderBottomBar/readAloudSupported (the file's other pure functions) already had dedicated tests before this pass.
  • ReaderMiniPlayerBar/ReaderReadAloudMiniBar (the two remaining pure, untested pieces) were widened from private to internal and covered for display state.
  • Click-wiring assertions on those two bars were attempted and dropped: performClick() was found to silently invoke nothing on either bar specifically when rendered together with its real, distinct icon set — every icon click-tests fine individually. Not believed to be a production bug (unchanged, shipped code), but an unexplained Robolectric/Compose test-harness interaction. Investigate this if picking the click-wiring assertions back up.

Remaining scope for this issue: the actual design pass on the top-level ReaderScreenKt composable — deciding how (or whether) to split it into wrapper + pure-content pieces without breaking the sibling-ViewModel sharing, then implementing that split with coverage.

See docs/TEST_COVERAGE_PRD.md §1b and §6 for the full history.

Activity

  1. added
    enhancement
    status:triage
    on Aug 25, 2026
  2. added
    status:ready-for-dev
    status:in-progress
    and removed
    status:triage
    on Aug 25, 2026
  3. removed
    status:ready-for-dev
    status:in-progress
    on Aug 25, 2026
  4. github-actions commented on Aug 25, 2026

    @github-actions
    Contributor

    Closed automatically: PR #608, which resolves this issue, was merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions