Repository navigation
sysmon: expand merged process rows - #4219
Conversation
A merged row only showed its totals and a child count. A chevron in front of it now opens the processes behind it, each as its own indented row with its own values, the root's own row first. Right and Left open and close a group from the keyboard. Opening or closing a group changes the list in place, and an open group holds the order like an open detail strip, so the row stays under the pointer. Members that exit leave and new ones are added at the end of the group. Search, filter and sort changes close groups, as they close the detail strip. The root's own row has the merged row's pid, so rows are identified by a key instead (members use root/pid). The members come from dgop's process-members module; with a dgop that doesn't list it, no chevron shows.
Claude reviewOne bug to fix: the keyboard selection can move to another process while a group is open.
Checked: grouping and key handling in ProcessesView, ProcessRow expander and a11y, detail strip lookups via |
Paused refreshes add and remove member rows of open groups, but only toggling a group remapped the selected index, so the selection could slide onto another process and Delete would quit that one. The rebuild now looks the selected row up by key, falling back to its group row when the member is gone. Details opened on a member row also stayed open after the row left the list (member exited, group emptied or closed on a tab switch), which held the list order and kept network sampling on with nothing to close. They now close once their row is gone.
Claude reviewNo issues found. The earlier selection finding is fixed: Checked: group open/close and member ordering in ProcessesView, key handling for Left/Right with RTL, the |
Claude reviewNo issues found. The only change since the last review is the dux-gop bump in Checked: the dux-gop bump, and again the group open and close logic and selection remapping in ProcessesView, the |
Description
Merged rows in the process list (like "Zen Browser (14)") can now be expanded with the arrow in front of them, which shows the processes behind the row, each with its own values. The main process comes first. The Right and Left arrow keys open and close a group.
While a group is open, the whole list keeps its order, the same way it does while a detail row is open, so the group doesn't jump away right after opening it.
This needs duxlabs-dev/dux-gop#57 merged first, which adds the processes behind each merged row to dgop's output. After that, the dux-gop version in the shell needs a bump. Until that, the arrow just doesn't show.
Type of change
Related issues
Screenshots / video
Before:
After:
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings