Skip to content

feat(app): show the inspector's files as a folder tree - #591

Merged
linroid merged 2 commits into
mainfrom
feat/files-tab-folder-tree
Oct 18, 2026
Merged

linroid merged 2 commits into
mainfrom
feat/files-tab-folder-tree

Conversation

@linroid

@linroid linroid commented Oct 18, 2026

Copy link
Copy Markdown
Owner

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.

  • Folders open and close with their chevron, or by clicking the row when the selection cannot change
  • A folder's tri-state check selects or clears every file in it (FileSelectionModel.toggle already takes several IDs)
  • Folder rows show the size of every file in them and the progress of their selected files (folded())
  • Every order applies within each folder, folders first; TorrentTree takes an optional progress so the Progress order ranks folders too (the add sheet passes none)
  • The filter keeps matches inside their folders, which open
  • Screen readers get an expand or collapse action on folder rows
  • 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, single-choice variants included, look as before

taskFileTree replaces the flat sortedFor and matching; their tests now cover the tree: orders, the shared root, unnamed files, folder progress and the filter.

Snapshots

InspectorTabsSnapshots' files-selectable scenario: the season's shared The.Show.S01/ root is left out and Subs/ becomes a folder.

Before After
before light after light
before dark after dark

Testing

  • ./gradlew :app:shared:jvmTest --tests '*FilesTab*' --tests '*TorrentFiles*': 39 tests pass
  • HardcodedTextTest, DesignTokenUsageTest and InspectorTabsSnapshots pass

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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-18T00:40:10.623805Z 788f766 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@claude

claude Bot commented Oct 18, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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.
@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

 2 116 files   2 144 suites   43m 36s ⏱️
14 582 tests 14 315 ✅ 267 💤 0 ❌
17 729 runs  17 462 ✅ 267 💤 0 ❌

Results for commit 26939ba.

♻️ This comment has been updated with latest results.

@linroid
linroid merged commit 640374a into main Oct 18, 2026
24 of 27 checks passed
@linroid
linroid deleted the feat/files-tab-folder-tree branch October 18, 2026 01:29
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