You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test coverage: ReaderScreenKt design pass (Phase 7 split from #521) #607
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).
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
docs(reader): record ReaderScreenKt design-pass resolution (#607)
test(reader): extract bookmark ref logic from ReaderScreenKt with cov…
docs(reader): record ReaderScreenKt design-pass resolution (#607)
test(reader): ReaderScreenKt design pass — extract bookmark ref logic (…
github-actions commentedon Aug 25, 2026
Closed automatically: PR #608, which resolves this issue, was merged.