public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Proxmox Backup Server development discussion
	<pbs-devel@lists.proxmox.com>,
	Hannes Laimer <h.laimer@proxmox.com>
Subject: [pbs-devel] applied-series: [PATCH proxmox-backup v2 0/6] improve UI for maintenance mode
Date: Wed, 27 Apr 2022 19:40:23 +0200	[thread overview]
Message-ID: <80ddb212-deb1-8492-d9ab-d94461e39b8c@proxmox.com> (raw)
In-Reply-To: <20220426062335.6215-1-h.laimer@proxmox.com>

On 26.04.22 08:23, Hannes Laimer wrote:
> Adds mask for datastore summary when in maintenance mode and dynamically
> updates icon and tooltip in datastore list. The 4th patch is optional,
> and could be squashed with the 3rd path if applied, it would make the
> icon update more responsive and not that delayed, but not sure if that is
> even a problem.
> 
> v2, thanks @Fabian + @Thomas:
>  - fix backwards compat. for DataStoreListItem
>  - add parse function for maintenance mode to utils
>  - show tooltip (<type>[: <message>]) in datastore list
>  - use icon itself instead of .svg for wrench
> 
> Hannes Laimer (6):
>   ui: add summary mask when in maintenance mode
>   api2: DataStoreListItem add maintenance info
>   ui: update icon in datastore list when in maintenance mode
>   ui: update datastore list more often
>   ui: utils: add function for parsing maintenance mode
>   ui: add tooltip to datastore in maintenance mode
> 
>  pbs-api-types/src/datastore.rs   |  8 ++++++
>  src/api2/admin/datastore.rs      |  1 +
>  www/NavigationTree.js            | 45 ++++++++++++++++++++++++++------
>  www/Utils.js                     | 17 +++++++++---
>  www/css/ext6-pbs.css             | 32 +++++++++++++++++++++++
>  www/datastore/Summary.js         | 21 ++++++++++++++-
>  www/window/MaintenanceOptions.js |  8 ++----
>  7 files changed, 113 insertions(+), 19 deletions(-)
> 



applied, looks quite nice now, thanks!

two nits/possible improvements:

* if I put the datastore in offline mode, then go to the content tab I get the view masked
  with the "datastore in maintenance mode" error, so far so good. Now, if I disable maintenance
  mode again and switch back to the content tab (wihtout navigating anywhere else) I still see
  that view masked with the same error, even if I waited for 10s or so. It helps to either navigate
  to some other navigation element (e.g., another datastore or "Administration") and then back again
  so no "biggie" but maybe we could see if the mask can be cleared more actively. 

* w.r.t. the increased frequency we poll now the datastore list for the navigation status/icon:
  maybe we could keep the previous 15s period and just do one extra reload on setting the
  maintenance mode, after all it's quite likely that not many admins are online at the same time
  and the most important one to get immediate feedback is for the one who set the maintenance mode
  in the first place.

as said, just nits but they stuck somewhat out to me.




      parent reply	other threads:[~2022-04-27 17:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-26  6:23 [pbs-devel] " Hannes Laimer
2022-04-26  6:23 ` [pbs-devel] [PATCH proxmox-backup v2 1/6] ui: add summary mask when in " Hannes Laimer
2022-04-26  6:23 ` [pbs-devel] [PATCH proxmox-backup v2 2/6] api2: DataStoreListItem add maintenance info Hannes Laimer
2022-04-26  6:23 ` [pbs-devel] [PATCH proxmox-backup v2 3/6] ui: update icon in datastore list when in maintenance mode Hannes Laimer
2022-04-26  6:23 ` [pbs-devel] [PATCH proxmox-backup v2 4/6][optional] ui: update datastore list more often Hannes Laimer
2022-04-26  6:23 ` [pbs-devel] [PATCH proxmox-backup v2 5/6] ui: utils: add function for parsing maintenance mode Hannes Laimer
2022-04-26  6:23 ` [pbs-devel] [PATCH proxmox-backup v2 6/6] ui: add tooltip to datastore in " Hannes Laimer
2022-04-27 17:40 ` Thomas Lamprecht [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=80ddb212-deb1-8492-d9ab-d94461e39b8c@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=h.laimer@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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