Skip to content

Add evidence to an already-open case - #112

Merged
charpy4n6 merged 1 commit into
mainfrom
feat/add-evidence-to-open-case
Sep 14, 2026
Merged

charpy4n6 merged 1 commit into
mainfrom
feat/add-evidence-to-open-case

Conversation

@charpy4n6

Copy link
Copy Markdown
Collaborator

What

Adds a "+ Add evidence…" button to the case header, between Menu and Close case. It opens a dialog to ingest another folder, extraction archive (.zip/.tar), E01 acquisition, or Project VIC/job .json into the case that's currently open — including one that's already been fully processed.

Why

POST /api/case/ingest already worked on a case with files in it (it only checks that a case is open and no job is running) — the launcher's "New case" screen was simply the only place in the UI that called it. There was no way to add a second dataset to a case after the fact without going around the GUI.

How it behaves

  • Same source-adding UX as the launcher: paste a path or native-browse to a folder/archive/E01/JSON, add as many sources as needed, same processing options (screening, keyframes, stage, carve).
  • Submits to the existing /api/case/ingest endpoint and tracks the job with the standard trackJob()/#taskProg bar, then reloads the gallery.
  • No backend or pipeline changes needed: process()'s skip-if-already-done logic already leaves previously-processed files alone (only new rows get hashed/thumbnailed), and the hashset-match/dedup/cluster passes already re-scan the whole case each run, so newly added files are correctly checked against everything already there.

Verified manually end to end: an 11-file case was fully processed, then a second folder (7 files, some exact/near duplicates of the first) was added through the new button. Processing history confirmed 11 files were skipped, only the 7 new ones were processed, and duplicate detection correctly found matches spanning both batches.

Testing

  • python -m pytest tests -q — 408 passed, 3 skipped
  • bash tools/check_line_endings.sh — all LF

🤖 Generated with Claude Code

POST /api/case/ingest already accepted an ingest on a case with files in it
already - the only thing missing was a way to reach it once a case is open.
The launcher's "New case" screen was the only caller.

Adds a "+ Add evidence..." button in the header, between Menu and Close case,
opening a dialog with the same source-adding UX as the launcher (paste a path
or native-browse to a folder, extraction archive, E01 acquisition, or Project
VIC/job JSON; add as many sources as needed) and the same processing options
(screening, keyframes, stage, carve). Submits to the existing endpoint and
tracks the background job with the standard trackJob()/#taskProg bar, then
reloads the gallery.

No backend or pipeline changes: process()'s skip-if-already-done logic already
leaves previously-processed files alone, and the hashset/dedup/cluster passes
already re-scan the whole case, so newly added files are correctly checked
against everything already there.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@charpy4n6
charpy4n6 merged commit 53a5f07 into main Sep 14, 2026
7 checks passed
@charpy4n6
charpy4n6 deleted the feat/add-evidence-to-open-case branch September 14, 2026 01:56
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.

1 participant