Electron machine api tests (#3534)

* start

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* Look at this (photo)Graph *in the voice of Nickelback*

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* hide on webapp

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix machine-api

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Jess Frazelle
2024-08-19 15:57:31 -07:00
committed by GitHub
parent 1ccb810e23
commit 27883e7800
10 changed files with 237 additions and 12 deletions

View File

@ -9,7 +9,9 @@ export const NetworkMachineIndicator = ({
}: {
className?: string
}) => {
const machineCount = Object.keys(machineManager.machines).length
const machineCount = machineManager.machineCount()
const reason = machineManager.noMachinesReason()
return isDesktop() ? (
<Popover className="relative">
<Popover.Button
@ -26,7 +28,7 @@ export const NetworkMachineIndicator = ({
</p>
)}
<Tooltip position="top-right" wrapperClassName="ui-open:hidden">
Network machines ({machineCount})
Network machines ({machineCount}) {reason && `: ${reason}`}
</Tooltip>
</Popover.Button>
<Popover.Panel