Skip to content

feat: add operation history - #135

Merged
nextestudios merged 2 commits into
mainfrom
feature/20-operation-history
Sep 27, 2026
Merged

nextestudios merged 2 commits into
mainfrom
feature/20-operation-history

Conversation

@nextestudios

Copy link
Copy Markdown
Owner

Summary

  • New OperationHistoryEntry (Core) records kind, start/end time, source, destination, final state/error, per-outcome counts and up to 100 items per operation (problems first). No file contents, no passwords (extraction passwords never reach the result).
  • IOperationHistoryStore + JsonOperationHistoryStore: history.json in the data folder (portable-aware), versioned schema, atomic write (temp + flush + replace), 8 MB read cap, corrupt file preserved with a suffix, newer-schema file left untouched.
  • OperationHistory keeps the 200 most recent entries; saves happen off the UI thread, one at a time, in order.
  • Every queued operation (copy/move/delete/extract/compress) is recorded on completion; renames are recorded too (needed for undo in feat: undo and redo reversible file operations #22). History only records what happened; it doesn't promise undo.
  • Menu → Operations lists this session's operations (details now show times, source, destination and outcomes; retry options unchanged) and then earlier launches' entries; Clear history… erases the record after confirmation.

Tests

CI (Windows): HistoryJourneyTests

  • password-protected extraction (wrong then right password) → history file contains neither password; after a relaunch both attempts appear with accurate outcomes and the details dialog shows them;
  • bounded to the 200 newest entries; a corrupt file is preserved and history restarts empty with a notice.

Manual: none beyond reading the Operations list on a TV (docs unchanged there).

Closes #20

🤖 Generated with Claude Code

@nextestudios
nextestudios force-pushed the feature/20-operation-history branch 3 times, most recently from eb7e25c to d90070b Compare September 27, 2026 04:51
nextestudios and others added 2 commits September 27, 2026 01:54
Record every finished operation (and renames) with kind, times, source,
destination and per-item outcomes. The history is bounded (200 entries,
100 items each), stored as versioned JSON with atomic writes in the data
folder, never holds passwords or file contents, and Menu > Operations
lists earlier launches too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nextestudios
nextestudios force-pushed the feature/20-operation-history branch from d90070b to 1d8dc07 Compare September 27, 2026 04:55
@nextestudios
nextestudios merged commit b8052e0 into main Sep 27, 2026
1 check passed
@nextestudios
nextestudios deleted the feature/20-operation-history branch September 27, 2026 04:58
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.

feat: add operation history

1 participant