From 6506e5cf9fe1d5ce8a2d58e9bb5fc447bfaf2707 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Thu, 30 Jul 2026 03:44:38 -0400 Subject: [PATCH] =?UTF-8?q?[IMP]=20script=20todo:=20suivi=20install=20?= =?UTF-8?q?=E2=80=94=20colonnes=20=C3=89tat=20(8)=20et=20VM=20(22)=20plus?= =?UTF-8?q?=20=C3=A9troites?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - État : 10 -> 8. Le libellé « ❌ effacée » (10 cellules) forçait la largeur ; l'état « effacée » devient l'icône seule 🗑. Reste le plus long « ⏸ pause » (7), donc 8 suffit. - VM : 26 -> 22 (tient les noms standards « erplibre-ubuntu-2604 » = 20 ; les rares noms suffixés d'arch défilent via overflow-x). Co-Authored-By: Claude Opus 4.8 (1M context) --- script/todo/qemu_install_monitor.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/script/todo/qemu_install_monitor.py b/script/todo/qemu_install_monitor.py index e223f2c..5fe2e4c 100644 --- a/script/todo/qemu_install_monitor.py +++ b/script/todo/qemu_install_monitor.py @@ -687,11 +687,11 @@ def run_monitor(manifest_path: str, run_app: bool = True): # défile horizontalement (overflow-x) pour les noms de VM longs. # « # » : numéro de séquence de la VM (première colonne). table.add_column("#", key="seq", width=3) - table.add_column("VM", key="vm", width=26) + table.add_column("VM", key="vm", width=22) table.add_column("⚠", key="err", width=4) - # width=10 : juste assez pour le plus long libellé (« ❌ effacée »), - # sans la marge inutile de 12 qui faisait paraître la colonne large. - table.add_column("État", key="state", width=10) + # width=8 : le plus long libellé restant est « ⏸ pause » (7) — + # « effacée » (10) est remplacé par l'icône 🗑 (voir plus bas). + table.add_column("État", key="state", width=8) # « Odoo » : l'UI web répond-elle sur :8069 ? (🟢 up / — down) table.add_column("Odoo", key="odoo", width=6) table.add_column("Durée", key="elapsed", width=7) @@ -844,9 +844,9 @@ def run_monitor(manifest_path: str, run_app: bool = True): ds = self._domstate.get(name) if ds == "gone": self._final[name] = ("deleted", None, now - started) - self._set_cell( - table, name, "state", f"❌ {t('deleted')}" - ) + # Icône seule (VM effacée) : évite « ❌ effacée » (10 + # cellules) qui forçait une colonne État large. + self._set_cell(table, name, "state", "🗑") continue st = status.get(name) if st is None: