Skip to content

Give the side panel's lists a scrollbar, and let Worth a look show more - #98

Open
armada45-pixel wants to merge 1 commit into
tobi:mainfrom
armada45-pixel:panel-scroll-show-more
Open

armada45-pixel wants to merge 1 commit into
tobi:mainfrom
armada45-pixel:panel-scroll-show-more

Conversation

@armada45-pixel

@armada45-pixel armada45-pixel commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

One of a set of small PRs that replace #87 and #88, one feature each. Rebased onto 1.5.0 (73bdbb3); they touch neighbouring lines in state.rs, views.rs and tests.rs, so whichever merges later will need another rebase; I'll do those as they come up.

The side panel's lists ("Worth a look" and "Marked") already scroll between the selection and the disk meter, but nothing shows that they do, and "Worth a look" stops at six findings however many the scan found.

  • The lists now carry a scrollbar.
  • A "Show more" button lists up to 30 findings; "Show fewer" puts the six back.
  • The button is pinned under the scrolling lists, not at their foot, so it is on screen however long the list is. Beside it, the long list says how many findings it holds.

Verified. cargo xtask lint is green on Windows and all 98 disktree-app tests pass. 9 tests in disktree-cli, disktree-core and disktree-scanner (btrfs, hardlink and cache tests) fail on Windows on an unchanged 1.5.0 too, so the full cargo xtask test run is red there for reasons outside this PR.

Not verified. Nothing was run on Linux or macOS. On this branch the feature was exercised through the window-harness tests only; the app was not launched from it; dragging the scrollbar has not been tried by hand. The test fixture has fewer than six findings, so the button appearing unprompted on a full short list is not exercised.

🤖 Generated with Claude Code

The lists between the selection and the disk meter already scrolled, but
nothing showed that they did, and "Worth a look" stopped at six findings
however many the scan had. The lists now carry a scrollbar, and a "Show
more" button lists up to thirty; "Show fewer" puts the short list back.

The button is pinned under the scrolling lists rather than at their foot,
so the way back is on screen however far the long list runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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