Repository navigation
Library: show Saving profile and disk work on the VM's row - #133
Conversation
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
left a comment
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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.
|
Fixed in 85c0999: |
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.
Sidebargets App'svmWorkmap and showsworkLabelinrow-state, in the running colour, instead of the status or the CPU %..row-stategetswhite-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