public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH pve-manager v2 0/3] ui: prompt users for reload when web ui version changes
@ 2026-11-19 15:38 Dominik Csapak
  2026-11-19 15:38 ` [PATCH pve-manager v2 1/3] api: factor out read_pwt_version and pwt_base_dir Dominik Csapak
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Dominik Csapak @ 2026-11-19 15:38 UTC (permalink / raw)
  To: pve-devel

On some updates (like recently with ceph), the UI has new or better
information about backend states, but the user must reload the page to
get the new version, which might not be obvious.

To help users detect such outdated running UI versions, send the current
one in the index and /cluster/resources api call for the node that
the browser is connected to. The ui can then compare these and prompt
the user to reload.

changes from v1:
* move the caching of the pwt version from the /cluster/resources API
  call into read_pwt_version, so all callers share it
* add a 'force' parameter to read_pwt_version and use it for the index,
  so that the index always gets the current version, like before
* don't focus any button by default in the reload message box, so an
  accidental key press neither reloads nor dismisses it
* mention in the commit message that the prompt can lag behind one poll
  cycle
* sort the 'use PVE::File' statement correctly


Dominik Csapak (3):
  api: factor out read_pwt_version and pwt_base_dir
  api: provide GUI versions via index and /cluster/resources
  ui: workspace: prompt user for reload when UI packages were updated

 PVE/API2/Cluster.pm       | 31 ++++++++++++++++++
 PVE/API2Tools.pm          | 26 +++++++++++++++
 PVE/Service/pveproxy.pm   |  6 ++--
 www/index.html.tpl        |  6 +++-
 www/manager6/Workspace.js | 67 +++++++++++++++++++++++++++++++++++++++
 5 files changed, 132 insertions(+), 4 deletions(-)

-- 
2.47.3





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-19 17:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19 15:38 [PATCH pve-manager v2 0/3] ui: prompt users for reload when web ui version changes Dominik Csapak
2026-11-19 15:38 ` [PATCH pve-manager v2 1/3] api: factor out read_pwt_version and pwt_base_dir Dominik Csapak
2026-11-19 15:38 ` [PATCH pve-manager v2 2/3] api: provide GUI versions via index and /cluster/resources Dominik Csapak
2026-11-19 15:38 ` [PATCH pve-manager v2 3/3] ui: workspace: prompt user for reload when UI packages were updated Dominik Csapak
2026-11-19 17:13 ` superseded: [PATCH pve-manager v2 0/3] ui: prompt users for reload when web ui version changes Dominik Csapak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal