From e3e824185faa1d6209f3cc689ae9286df903f999 Mon Sep 17 00:00:00 2001 From: Gilles Soulier Date: Sat, 6 Jun 2026 18:36:49 +0200 Subject: [PATCH] =?UTF-8?q?feat(probe):=20sonde=20enrichie=20CPU/RAM/disqu?= =?UTF-8?q?es=20+=20recommandations=20de=20profils=20(t=C3=A2che=204)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - template machine-probe : lscpu Model name + nproc, MemTotal, lsblk disques - parseProbe étendu (cpuModel/cpuCores/memoryBytes/disks) + buildRecommendations (KVM/QEMU → vm_guest_tools) ; tests TDD - runProbe persiste cpu/mem/disks dans machine_hardware ; /probe renvoie recommendations - popup Sonde affiche cpu/ram/disks + profils conseillés tsc 0 · 110 tests · build OK. Co-Authored-By: Claude Opus 4.8 --- client/src/features/machines/MachineTile.tsx | 14 +++++ client/src/lib/api.ts | 5 ++ server/routes/machines.ts | 2 +- server/services/machineProbe.test.ts | 45 +++++++++++++- server/services/machineProbe.ts | 64 ++++++++++++++++---- templates/apt/machine-probe.sh.tpl | 7 +++ 6 files changed, 123 insertions(+), 14 deletions(-) diff --git a/client/src/features/machines/MachineTile.tsx b/client/src/features/machines/MachineTile.tsx index 031446c..9488c02 100644 --- a/client/src/features/machines/MachineTile.tsx +++ b/client/src/features/machines/MachineTile.tsx @@ -296,10 +296,24 @@ function MachineConfigPopup({ {probe.probe.isProxmox ? " · proxmox" : ""} {probe.probe.isRpi ? " · rpi" : ""} + {(probe.probe.cpuModel || probe.probe.memoryBytes) && ( +
+ cpu={probe.probe.cpuModel ?? "?"} ({probe.probe.cpuCores ?? "?"}c) · ram= + {probe.probe.memoryBytes ? `${(probe.probe.memoryBytes / 1e9).toFixed(1)} Go` : "?"} · disks= + {probe.probe.disks.length} +
+ )}
proposition : os_family={probe.proposal.osFamily} · machine_kind={probe.proposal.machineKind} · virt= {probe.proposal.virtualization}
+ {probe.recommendations.length > 0 && ( + + )} {probe.changes.length ? ( <>