Beta cycle bundle over 1.2.4.1

- **VM/LXC modal** — PVE tags (dots on list cards, editable pills in modal with click-to-edit) using NVIDIA-style hash colour and SAPC contrast; Status tab redesign (single card, always-visible subsections, Edit button, autostart toggle, blue subsection icons); Backups and Firewall tabs now fill the full modal height with sticky headers/notes; stopped VMs no longer shift the metrics grid; mount-point card brightness unified across breakpoints.
- **Disks modal** — Overview / SMART / History / Schedule tabs adopt the VM/LXC modal size and the mobile icon-only tab pattern; SMART attributes table drops the 15-row cap and gains a sticky "View full SMART report" footer; Print/Save-as-PDF collapses to two icons in the report; loose i18n and layout follow-ups.
- **NVIDIA driver installer (#298)** — version picker cross-checks kernel + NVIDIA's Production/New Feature/Legacy branch classification (scraped from `nvidia.com/en-us/drivers/unix/`) + the PCI Device IDs of every host GPU, with a release-count heuristic to keep superseded production branches selectable while dropping Vulkan-beta ones; Recommended follows same-branch head when a driver is installed, Production Branch head on a fresh install; Hardware card now shows installed alongside available driver version.
- **Custom notifications (#297)** — `event_type: "custom"` accepts `title`/`message` at the root or nested under `data`; defensive strip of stray `[TITLE]`/`[BODY]` markers echoed by the AI enhancer.
- **App tab** — new "Exclude from the LXC updates counter" toggle; the CT's aggregate updates badge now sums OS packages plus registered apps (respecting the flag); Docs page updated; App suggestion no longer treats bare OS helper slugs (alpine/ubuntu/debian…) as installable apps.
- **i18n and copy** — Monitor UI available in EN / ES / DE / FR / IT / PT / SV / SK (thanks @vaso73) surfaced as the first entry in the What's New modal with a link to the contributor's profile; ES cleanup pass (`Historial`, `Velocidad de rotación`, `Consumo actual`, `Ejecutar`, `Eliminar`, `Activar`, `Ver contenido`, `Repuesto disp.`, `Registrar`, `Ocultar`, `Descartar`); redundant "Tip: search any Linux/Proxmox command" line removed from the terminal command search across all locales.
This commit is contained in:
MacRimi
2026-08-15 17:33:05 +02:00
parent 34b8c47415
commit 0beeb7a68b
26 changed files with 1554 additions and 278 deletions
+36
View File
@@ -583,10 +583,46 @@ def get_lxc_mount_points_static(vmid: str) -> dict[str, Any]:
"host_source_is_mountpoint": host_src["is_mountpoint"],
})
# Cheap hint so the client can render the Mount Points tab
# immediately for CTs that ONLY have ad-hoc NFS/CIFS mounts done
# from inside the container (nothing in .conf, so `out` is
# empty). Without this hint the tab appears only after the
# runtime endpoint returns 200-500 ms later, pushing the other
# tabs sideways. Reading /proc/<pid>/mounts is a pure file read
# (~1 ms, no subprocess), filter by remote fs family so only
# storage counts — plain bind mounts of /dev/* passthrough
# devices don't inflate the count.
#
# IMPORTANT: exclude runtime targets that match a declared mp.
# When a host mp source is itself a remote share (e.g. mp0 binds
# /mnt/pve/Piblic which is a CIFS mount on the host), the same
# mount surfaces in /proc/<pid>/mounts with an `nfs`/`cifs`
# fstype from the CT's perspective. Without the filter the hint
# double-counted it, so the badge showed mp+1 when the tab really
# only had `mp` cards to render.
ad_hoc_hint_count = 0
running, host_pid = _ct_status(vmid)
if running and host_pid:
try:
config_targets = {
entry.get("target", "")
for entry in config_entries
if entry.get("target")
}
for rt in _read_ct_proc_mounts(host_pid):
if not _REMOTE_FS_RE.match(rt.get("rt_fstype", "")):
continue
if rt.get("rt_target") in config_targets:
continue
ad_hoc_hint_count += 1
except Exception:
pass
return {
"ok": True,
"vmid": vmid,
"mount_points": out,
"ad_hoc_hint_count": ad_hoc_hint_count,
}