Repository navigation
feat(app): show the inspector's files as a folder tree - #591
Conversation
The Files tab groups a task's files into folders from their paths, reusing the add sheet's TorrentTree: folders open and close, a folder's tri-state check selects every file in it, and folder rows show their total size and the progress of their selected files. Every order applies within each folder, folders first, and the filter keeps matches inside their folders. A root folder every file shares, a torrent's usual one, is left out, as the task's name already says it; lists without folders look as before.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 788f766c9e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
A folder row of a single choice has no variant of its own, so clicking it chose an empty ID; it now has no radio button and only expands.
Test Results 2 116 files 2 144 suites 43m 36s ⏱️ Results for commit 26939ba. ♻️ This comment has been updated with latest results. |
The inspector's Files tab listed a torrent's files flat, by file name only, so files of the same name in different folders looked alike and a folder could not be chosen as a whole. It now groups them into folders from their paths, reusing the add sheet's
TorrentTree.FileSelectionModel.togglealready takes several IDs)folded())TorrentTreetakes an optionalprogressso the Progress order ranks folders too (the add sheet passes none)taskFileTreereplaces the flatsortedForandmatching; their tests now cover the tree: orders, the shared root, unnamed files, folder progress and the filter.Snapshots
InspectorTabsSnapshots'files-selectablescenario: the season's sharedThe.Show.S01/root is left out andSubs/becomes a folder.Testing
./gradlew :app:shared:jvmTest --tests '*FilesTab*' --tests '*TorrentFiles*': 39 tests passHardcodedTextTest,DesignTokenUsageTestandInspectorTabsSnapshotspass