Skip to content

Library: show Saving profile and disk work on the VM's row - #133

Merged
A21-devs merged 2 commits into
mainfrom
feat/library-row-work
Dec 2, 2026
Merged

A21-devs merged 2 commits into
mainfrom
feat/library-row-work

Conversation

@A21-devs

@A21-devs A21-devs commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Closes #126

The status next to the VM name says Saving profile (and since #130 Compacting disk and so on), but the library row only showed the runtime status. During a session save that goes Running → blank (off) → Starting → Running while the guest hibernates and boots again. With another VM selected, the row is the only place you see it, and it looks like the VM crashed and restarted.

  • Sidebar gets App's vmWork map and shows workLabel in row-state, in the running colour, instead of the status or the CPU %.
  • .row-state gets white-space: nowrap. "Compacting disk" is the longest label and wrapped under the name in a 232 px sidebar, now the name is cut with an ellipsis instead.

Testing

  • npm run typecheck, npm test (143 passed), npm run build
  • dev:web: started a profile save on Kali and a compact on Windows 11, then selected Parrot Home. The rows read "Kali · Saving profile" and "Windows 11 · Compacting disk" on one line each, and went back to the plain status when the work ended.

@A21-devs A21-devs added the ui label Dec 2, 2026
During a session save the row went Running, blank, Starting, Running
while the guest hibernated and booted again, which looks like a crash
when another VM is selected. The row now shows the same label as the
status line (Saving profile, Compacting disk, ...) while work runs.
row-state no longer wraps, so a long label squeezes the name instead.

@A21-devs A21-devs left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Read the diff and looked at it in dev:web with two VMs busy at once. The work label wins over both the CPU % and the status, which is right, since during a session save the status is exactly what's misleading.

One thing inline, about long names.

{u ? (
{w ? (
// a session save turns the VM off and on again, without this it looks like a crash
<span className="row-state running">{workLabel[w]}</span>

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

With nowrap the label keeps its full width and the name gives way. "Compacting disk" is about 85 px of a 232 px sidebar, so a name like "Windows 11 Enterprise LTSC" is cut to "Windows 11 Ent…" while work runs, and the row has no title, so there's no way to read the full name without selecting it. The CPU % was short enough that this rarely came up. A title={v.name} on .row-name would cover it.

A work label is wider than the CPU %, so long names get cut with an
ellipsis while work runs. Hovering the name now shows all of it.
@A21-devs

A21-devs commented Dec 2, 2026

Copy link
Copy Markdown
Owner Author

Fixed in 85c0999: .row-name has title={v.name}, so the full name shows on hover whatever is next to it. Typecheck and build pass. One npm test run right after this commit had a single failure that scrolled past before I caught the name, and 19 reruns after that (some with a build running alongside) all passed 143/143, so I can't say which test it was. Keeping an eye on it.

@A21-devs A21-devs left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Checked 85c0999: the name span has the title, the row's accessible name is unchanged (the title is on a child, the option still reads as the name plus the state). The earlier finding is covered.

@A21-devs
A21-devs merged commit d659153 into main Dec 2, 2026
1 check passed
@A21-devs
A21-devs deleted the feat/library-row-work branch December 2, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Library: show Saving profile on the VM's row too

1 participant