From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id A5AF01FF0A5 for ; Fri, 04 Sep 2026 12:26:53 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 79AF4215C7; Fri, 04 Sep 2026 12:26:52 +0200 (CEST) From: Dominik Csapak To: pdm-devel@lists.proxmox.com Subject: [PATCH datacenter-manager/yew-widget-toolkit v2 0/3] ui: persist the main menus expanded state Date: Fri, 4 Sep 2026 12:26:33 +0200 Message-ID: <20260904102643.3563579-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.554 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: H54QRPGEOTNBCWMIZFYBXUFWQYAHDYHK X-Message-ID-Hash: H54QRPGEOTNBCWMIZFYBXUFWQYAHDYHK 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 saving the state in the browsers local storage. It also fixes an issue where menus that were collapsed by default wouldn't open on the first click. Note that for the pdm patches, pwt must be bumped and the new version must be recorded in Cargo.toml. the mechanism did change a bit, so i left out the r-b and t-b from lukas (Thanks though!) changes from v1: * nested the persistent structure into an object with a new struct * moved the logic into the main struct, so the persistent state can live in a seperate property/struct * when defaults change, keeps now the current state instead of expanding collapsing. proxmox-yew-widget-toolki: Dominik Csapak (2): widget: navigation drawer: fix first open for default collapsed menus widget: navigation drawer: allow persisting the expanded state src/widget/nav/navigation_drawer.rs | 149 +++++++++++++++++++++++----- 1 file changed, 126 insertions(+), 23 deletions(-) proxmox-datacenter-manager: Dominik Csapak (1): ui: main menu: make expanded/collapsed state persistent ui/src/main_menu.rs | 1 + 1 file changed, 1 insertion(+) Summary over all repositories: 2 files changed, 127 insertions(+), 23 deletions(-) -- Generated by murpp 0.11.0