all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: "Lukas Wagner" <l.wagner@proxmox.com>
To: "Thomas Lamprecht" <t.lamprecht@proxmox.com>,
	<pdm-devel@lists.proxmox.com>
Subject: Re: [RFC PATCH datacenter-manager v3 12/12] ui: registry: add Add-and-Assign wizard from Assign Key dialog
Date: Mon, 18 May 2026 15:41:07 +0200	[thread overview]
Message-ID: <DILUG8PMJFL0.2YTTUD5II4UY8@proxmox.com> (raw)
In-Reply-To: <20260515074623.766766-13-t.lamprecht@proxmox.com>

On Fri May 15, 2026 at 9:43 AM CEST, Thomas Lamprecht wrote:
> Wire a small two-step wizard reachable from the per-node Assign Key
> dialog's "Add new key..." button: paste a key, click Next, and land
> back on the Assign selector with the just-added key pre-selected
> and the original (remote, node) target preserved.
>
> Optional UX shortcut for the empty-pool case; see the post-`---`
> RFC note for the keep-vs-drop trade-off.
>
> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
> ---
>
> New in v3, sent as RFC and probably should be skipped on apply: it
> crowds the Assign Key dialog with an extra "Add new key..." button and a
> separate two-step wizard that competes with the natural left-panel Add
> path (i.e., just add a key on the left, the selection on the right stays
> intact and thus one can trivially continue there afterwards). Two
> discoverability paths for the same outcome is worse than one slightly
> longer path.
>


Instead of spawning the new wizard from the "Assign Dialog", you could
also try to attempt to combine everything into a single dialog:


	(x) Use existing key from pool

	 pbsc-fffffffffffffffffffffffff            < Regular table, same as already exists
	 pbsc-aaaaaaaaaaaaaaaaaaaaaaaaa


	( ) Add new key to pool
	  [                          ]             < Text field for adding a single key


		       [Cancel] [Assign]


I guess the 'tricky' part is that the "Assign" now has to do 2 POSTS,
one for the key import, one for the assignment, which could be a bit
awkward if there are failures (e.g., what do you do if adding the key to
the pool works, but the assignment fails?). We could have a single "Add
and assign" action in the API to simplify UI implementation, but not
sure how well that fits in the existing API design.

That being said, the UX without this patch is already quite acceptable
and we probably can well live without this shortcut. In general, these
shortcuts are very useful if the user has to otherwise 'backtrack' and
discard previously entered information (Example: A wizard with many
steps, but on the last step the user notices that they need to add some
kind of prerequisite first -- same situation as we recently with the
tokens for automated installations).

Here, closing the "Assign Key" dialog in order to first import the key
to the pool is a rather cheap action, that would (hopefully) not
frustrate users too much.




  reply	other threads:[~2026-05-18 13:41 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-15  7:43 [PATCH datacenter-manager v3 00/12] subscription key pool registry Thomas Lamprecht
2026-05-15  7:43 ` [PATCH datacenter-manager v3 01/12] api types: subscription level: render full names Thomas Lamprecht
2026-05-15  7:43 ` [PATCH datacenter-manager v3 02/12] pdm-client: add wait_for_local_task helper Thomas Lamprecht
2026-05-15 15:21   ` Wolfgang Bumiller
2026-05-15  7:43 ` [PATCH datacenter-manager v3 03/12] subscription: pool: add data model and config layer Thomas Lamprecht
2026-05-15 15:21   ` Wolfgang Bumiller
2026-05-15  7:43 ` [PATCH datacenter-manager v3 04/12] subscription: api: add key pool and node status endpoints Thomas Lamprecht
2026-05-15 15:21   ` Wolfgang Bumiller
2026-05-18 14:27   ` Lukas Wagner
2026-05-15  7:43 ` [PATCH datacenter-manager v3 05/12] ui: registry: add view with key pool and node status Thomas Lamprecht
2026-05-19 15:08   ` Wolfgang Bumiller
2026-05-15  7:43 ` [PATCH datacenter-manager v3 06/12] cli: client: add subscription key pool management subcommands Thomas Lamprecht
2026-05-15  7:43 ` [PATCH datacenter-manager v3 07/12] docs: add subscription registry chapter Thomas Lamprecht
2026-05-15  7:43 ` [PATCH datacenter-manager v3 08/12] subscription: add Clear Key action and per-node revert Thomas Lamprecht
2026-05-15  7:43 ` [PATCH datacenter-manager v3 09/12] subscription: add Adopt Key action for foreign live subscriptions Thomas Lamprecht
2026-05-15  7:43 ` [PATCH datacenter-manager v3 10/12] subscription: add Adopt All bulk action Thomas Lamprecht
2026-05-15  7:43 ` [PATCH datacenter-manager v3 11/12] subscription: add Check Subscription action Thomas Lamprecht
2026-05-15  7:43 ` [RFC PATCH datacenter-manager v3 12/12] ui: registry: add Add-and-Assign wizard from Assign Key dialog Thomas Lamprecht
2026-05-18 13:41   ` Lukas Wagner [this message]
2026-05-18 13:23 ` [PATCH datacenter-manager v3 00/12] subscription key pool registry Lukas Wagner

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=DILUG8PMJFL0.2YTTUD5II4UY8@proxmox.com \
    --to=l.wagner@proxmox.com \
    --cc=pdm-devel@lists.proxmox.com \
    --cc=t.lamprecht@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal