Skip to content

Phase 7 remaining: CreateVaultScreenKt, EpubReaderScreenKt, PdfReaderScreenKt + a ReaderScreenKt design pass #521

Closed as not planned

Description

@libravault-xyz

Summary

Follow-up to #(see linked PR) — the rest of docs/TEST_COVERAGE_PRD.md Phase 7's original six targets.

Remaining scope

  • CreateVaultScreenKt (167 missed, 0%) — not started. Security-adjacent per the original PRD note ("do after the pattern is settled").
  • EpubReaderScreenKt (149 missed, 0%) — not started. Already flagged in the original scoping as "heaviest state machine; may warrant logic extraction first".
  • PdfReaderScreenKt (146 missed, 0%) — not started.
  • ReaderScreenKt's top-level composable — its epubViewModel/markdownViewModel are obtained via sibling hiltViewModel() calls specifically so their instances are shared with the ViewModelStoreOwner EpubReaderScreen/MarkdownReaderScreen use downstream. A mechanical wrapper/pure-content split risks silently breaking that sharing (Read Aloud's chapter-walk coordination depends on it). Needs a deliberate design pass, not the same mechanical treatment as SettingsScreenKt/PlayerScreenKt.

Before starting EpubReaderScreenKt/PdfReaderScreenKt, check whether they have the same sibling-hiltViewModel()-sharing shape ReaderScreenKt turned out to have — do not assume the PlayerScreen template applies without checking.

See docs/TEST_COVERAGE_PRD.md §1b for the full writeup of what was tried and why ReaderScreenKt was re-scoped rather than forced through.

Activity

  1. added
    enhancement
    on Aug 24, 2026
  2. github-actions commented on Aug 24, 2026

    @github-actions
    Contributor

    Pipeline is at capacity (3/3 active runs) — skipping this run. Re-apply status:ready-for-dev once activity settles, or re-trigger manually via workflow_dispatch.

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

    @github-actions
    Contributor

    Triaged and partially implemented. This issue bundles four separate targets (CreateVaultScreenKt, EpubReaderScreenKt, PdfReaderScreenKt, and a ReaderScreenKt design pass), each of which the issue itself says needs its own investigation before assuming the wrapper/pure-content template applies — Epub/Pdf need the sibling-hiltViewModel()-sharing check, and ReaderScreenKt explicitly needs a deliberate design pass rather than mechanical treatment.

    Doing all four in one PR would mean either rushing that investigation or shipping one very large diff spanning unrelated screens/modules, including one flagged security-adjacent (CreateVaultScreenKt). Scoping this down instead:

    • CreateVaultScreenKt — done. refactor(vault): split CreateVaultScreenKt into thin wrapper + pure content #599 (draft → ready). Checked first for the ReaderScreenKt sibling-hiltViewModel()-sharing shape — CreateVaultScreen only takes a single viewModel: CreateVaultViewModel = hiltViewModel(), no sharing, so the mechanical split applies cleanly. Thin wrapper + pure CreateVaultContent(state, actions), 17 new Robolectric tests, 3 new Roborazzi baselines (first for feature:vault).
    • PdfReaderScreenKt — checked, no sibling-sharing issue either (single viewModel: PdfReaderViewModel = hiltViewModel()), but it's a heavy native-PdfRenderer/bitmap/coroutine state machine that's a materially different, harder investigation (Robolectric's PdfRenderer support, if any, needs checking before assuming Roborazzi baselines are even feasible there) — not done here.
    • EpubReaderScreenKt and the ReaderScreenKt design pass — not investigated in this pass. Both were already flagged as the hardest of the four in the issue itself.

    Recommend splitting the remaining three (EpubReaderScreenKt, PdfReaderScreenKt, ReaderScreenKt design pass) into their own follow-up issues, one per target, so each gets its own confidently-scoped PR rather than being force-fit into this one — matching how the original Phase 7 scoping in docs/TEST_COVERAGE_PRD.md treated it as 6 separate PRs for 6 targets. Leaving this issue open and re-labeling status:ready-for-dev isn't appropriate since a human should decide the split; leaving as-is with this comment for now.

  6. added
    status:needs-info
    and removed
    status:in-progress
    on Aug 25, 2026
  7. libravault-xyz commented on Aug 25, 2026

    @libravault-xyz
    CollaboratorAuthor

    Splitting the remaining three targets into their own follow-up issues per the recommendation above, one per target:

    CreateVaultScreenKt is already covered by #599 (pending human merge). Closing this issue as split — all four original targets now have dedicated tracking.

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

    enhancementstatus:needs-info

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions