Repository navigation
feat(sidebar): group devices by drive - #2075
Merged
Merged
Conversation
The Devices section listed volumes in whatever order the volume monitor reported them, which scatters a multi-partition disk's rows among those of other disks. Order rows by their drive's system sort key, which ranks fixed disks ahead of removable and hot-plugged ones, and by name within a drive. Rows with no drive follow, then network shares. A thin divider marks each boundary, since every drive shares one icon.
Closed
5 tasks
wmfeht
pushed a commit
to wmfeht/strata-feature-map
that referenced
this pull request
Nov 7, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RQ23ABwwxenbjuWJF4fBP5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The Devices section listed volumes in the order the volume monitor reported them, so partitions from different disks were mixed together. On a machine with several multi-partition disks, you couldn't tell which volume belonged to which disk.
Rows are now grouped by physical drive:
g_drive_get_sort_key). udisks ranks fixed disks ahead of removable and hot-plugged ones, for example00coldplug/00fixed/nvme0before00coldplug/12removable/sd____b.Sorting uses the system device name, not a label set in Strata. Labels update rows in place without a rebuild, so sorting by them would make rows jump at some later, unrelated refresh.
Visual evidence
N/A. Devices now appear in drive order with a thin divider between drives, in both the full sidebar and the rail.
How to test
Expected result: each drive's volumes sit together, sorted by name, with a divider between drives. Fixed disks come before removable ones, and network shares come last. The badge counts devices only, not dividers.
Checked against real drives on one machine with one volume per drive, which confirmed drive order, dividers and the rail. Gathering several partitions under one drive is covered by unit tests only, so it's worth trying on a multi-partition disk.
Related issue
Closes #2071