all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [PATCH datacenter-manager v2 0/3] ui: search: improve filter UX
Date: Tue,  1 Dec 2026 16:45:46 +0100	[thread overview]
Message-ID: <20261201154656.3607636-1-d.csapak@proxmox.com> (raw)

By doing two things:
* show the applied category filters as 'chips' that can be removed
  easily
* show a 'filter add' panel above the search bar, so users
  can easily discover which filter there are. also use the panel
  to explain the search syntax and implications of required and optional
  searches.

changes from v1:
* add the 'folder' category: its values are picked from the folders the
  user can open, and like views, folder filters are always required,
  since the server limits the results to the selected folder
* take the views for the filter panel from the view list context
  instead of loading them separately
* create the submit callback for the filter panel only once, so the
  panel isn't rendered again on every input in the search box
* match the category titles and value inputs on the parsed
  SearchCategory, so a new category fails to compile instead of being
  shown as an unknown one
* use Row/Column and the typed css helpers instead of class strings

Dominik Csapak (3):
  pdm-search: keep the order of the search terms
  ui: search box: show categorized search terms as chips
  ui: search box: add a panel to add and edit search filters

 lib/pdm-search/src/lib.rs            |  62 ++--
 ui/css/pdm.scss                      |  13 +
 ui/src/widget/mod.rs                 |   1 +
 ui/src/widget/search_box.rs          | 420 ++++++++++++++++++++++----
 ui/src/widget/search_filter_panel.rs | 427 +++++++++++++++++++++++++++
 5 files changed, 835 insertions(+), 88 deletions(-)
 create mode 100644 ui/src/widget/search_filter_panel.rs

-- 
2.47.3





             reply	other threads:[~2026-12-01 15:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 15:45 Dominik Csapak [this message]
2026-12-01 15:45 ` [PATCH datacenter-manager v2 1/3] pdm-search: keep the order of the search terms Dominik Csapak
2026-12-01 15:45 ` [PATCH datacenter-manager v2 2/3] ui: search box: show categorized search terms as chips Dominik Csapak
2026-12-01 15:45 ` [PATCH datacenter-manager v2 3/3] ui: search box: add a panel to add and edit search filters Dominik Csapak

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=20261201154656.3607636-1-d.csapak@proxmox.com \
    --to=d.csapak@proxmox.com \
    --cc=pdm-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 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