← Back to Pull requests

Show progress throughout large imports #1544

Closed
unknown closed this pull request without merging on Dec 04, 2026 05:43 UTC
View on GitHub
unknown unknown commented on Dec 04, 2026 05:08 UTC
Author

Closes #1541

Motivation

The Import dialog waited for the full discovery and duplicate-check scan before showing useful feedback. Starting an import ran another scan without visible progress, and completion work could leave the last counters on screen without a status.

Description

  • Show indeterminate discovery and checked/total counts for local file preflight. Reuse those counts during the fresh local or Google Drive import scan.

  • Switch to copy and thumbnail counts when the journal starts. Show finalization before the journal and staged files are removed and keep that status visible when the recheck finds zero new files.

  • Scope progress and cancellation to the current request. Cancelling a queued batch leaves the active one running and reports cancellation even if the queued scanner checked zero files.
  • Documentation

    Updated the import pipeline story, added the renderer progress test to the acceptance coverage map, and added a patch changeset.

    Testing

  • Passed lint, formatting, docs governance, acceptance coverage, and 57 focused renderer, scanner, service, and engine tests.

  • Exercised 10,000 distinct on-disk JPEGs with the real scanner, import engine, journal, encrypted SQLite library, encrypted blob store, and thumbnail worker. Both checking passes reached 10,000. The import created 10,000 library records, verified both thumbnail sizes for each original, and cleared the journal after the finalizing stage.

  • The 10,000-file renderer test exercises discovery, checked and imported totals, stale events, finalization, and success. Separate tests exercise cancellation and failed scans or imports.

  • Passed npm test on the revised commit, including unit, renderer DOM, and database performance checks.
  • Manual testing

    1. Open Overlook and drop 10,000 disposable JPEGs directly onto the window. Verify that Finding files appears immediately and then becomes a checked/total count.
    2. Start the import. Verify that checking counts reappear, followed by the copy and thumbnail counters, the finalizing message, and the result.
    3. Repeat with another selection and cancel during checking. Confirm the dialog reports cancellation and the sources are still present.

    <!-- agent-bot-write: ghw_9d5353e239e6aedd session=f601b21bf418 bot=trueline-codex-agent[bot] -->

    Diff: 288 lines (+216 / -72) across 3 files Reviewer: qwts Review duration: 34m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 288 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.339
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1544"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.8% (MEDIUM) · Higher = larger blast radius
    39.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.2% · Safe to merge
    17.2%