From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id AF1811FF09F for ; Tue, 01 Dec 2026 16:47:00 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 4BC7420A63; Tue, 01 Dec 2026 16:47:00 +0100 (CET) From: Dominik Csapak 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 Message-ID: <20261201154656.3607636-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.242 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: 6NCNBUPBPTX2SPZMWUGO4PJJICEWI7AK X-Message-ID-Hash: 6NCNBUPBPTX2SPZMWUGO4PJJICEWI7AK X-MailFrom: d.csapak@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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