Skip to content

Ask for the Save to folder on opening a dataset, reload on Start from, keep the place after F5 - #46

Merged
EgeSeker merged 2 commits into
mainfrom
feat/dataset-resume
Nov 24, 2026
Merged

EgeSeker merged 2 commits into
mainfrom
feat/dataset-resume

Conversation

@EgeSeker

Copy link
Copy Markdown
Collaborator

Three fixes from annotating the PANTHER dataset.

What changed

  • Save to folder first. After a dataset folder is picked, the app asks where the masks go before any case opens. The desktop dialog opens in the folder used last time for that dataset (kept on this computer for up to 20 datasets). A browser shows a small "Where should the masks go?" dialog first, since it opens a folder picker only after a click. Cases done earlier show ✓ at once and open with their saved masks, and the first case still to do opens. Cancel, Esc or "Only look" opens the dataset without a folder, as before.
  • Start from reloads the case. Changing it opens the case on screen again from the chosen label. A mask unchanged since it opened reloads without asking; an edited one gets the usual save question, and Cancel keeps both the case and the menu as they were. A case marked done keeps its saved mask.
  • F5 keeps your place. The desktop app comes back to the same dataset, Save to folder and case. The Rust side reopens only folders picked in a dialog during this run (reopen_folder, reopen_output_folder), so nothing new becomes readable or writable; after a restart the folders are picked again. A browser says "Open the dataset folder again to carry on with {dataset}."

Decisions are in docs/process/DECISIONS.md, copy in docs/design/DESIGN.md, and the changelog is under Unreleased.

How it was tested

  • e2e (Edge, Windows): 265 passed, including 3 new tests (the ask and Esc, Start from reloading with and without edits, the browser reload message). The only failures are the two clipboard tests that fail locally on Windows (operations.spec.ts:147, report.spec.ts:100).
  • Unit: 1,136 passed, 11 new in src/dataset/resume.test.ts.
  • Rust: 39 passed, 2 new (a folder picked this run can be listed again; an output folder picked this run can be reopened; others are refused).
  • Lint, typecheck, rustfmt and clippy clean.

Not verified

  • F5 restore and the dialog opening in last time's folder inside the real desktop app (the e2e suite runs against the web build). macOS and Linux not verified.

🤖 Generated with Claude Code

EgeSeker and others added 2 commits November 24, 2026 15:26
… Start from changes, and come back after F5.

- Opening a dataset folder asks where the masks go before the first case
  opens; the desktop dialog starts in the folder used last time for that
  dataset. Done cases show at once with their saved masks.
- Changing Start from opens the case on screen again from that label,
  asking first if it was edited.
- After a reload the desktop app reopens the same dataset, Save to folder
  and case (only folders picked during this run); a browser says to open
  the folder again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@EgeSeker EgeSeker mentioned this pull request Nov 24, 2026
@EgeSeker
EgeSeker merged commit a55209e into main Nov 24, 2026
18 checks passed
@EgeSeker
EgeSeker deleted the feat/dataset-resume branch November 24, 2026 23:20
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