public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH manager 0/2] fix #7136: ui: tree: harmonize folder view resource ordering
@ 2026-08-18  8:31 Elias Huhsovitz
  2026-08-18  8:31 ` [PATCH manager 1/2] " Elias Huhsovitz
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Elias Huhsovitz @ 2026-08-18  8:31 UTC (permalink / raw)
  To: pve-devel; +Cc: Elias Huhsovitz

This patch series fixes bug #7136, where resources in the Folder View
were ordered lexicographically instead of following the order
defined by the `getTypeOrder` function. It also includes a follow-up
cleanup to align variable declarations with modern javascript
standards.

Previously, grouping nodes in the Folder View were assigned the literal
type 'type' instead of their actual resource type, such as 'node' or
'network'. This caused `getTypeOrder` to return a default value for all
groups, resulting in a lexicographical sorting fallback.

Other views, such as Server View, pass the correct types to
`getTypeOrder`.

Patch 1/2 fixes the root cause by setting the grouping node's type to
the actual resource type when grouping by 'type'. This restores the
correct sort order (LXC, QEMU, Node, SDN, Network, Storage) and allows
icon and text resolution via typeDefaults.

Patch 2/2 replaces let with const for variables that are never
reassigned. This aligns the with modern JavaScript best practices.

Elias Huhsovitz (2):
  fix #7136: ui: tree: harmonize folder view resource ordering
  ui: tree: reduce reduce usage of `let` keyword

 www/manager6/tree/ResourceTree.js | 148 ++++++++++++++++--------------
 1 file changed, 77 insertions(+), 71 deletions(-)

-- 
2.47.3





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-08-18 12:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-18  8:31 [PATCH manager 0/2] fix #7136: ui: tree: harmonize folder view resource ordering Elias Huhsovitz
2026-08-18  8:31 ` [PATCH manager 1/2] " Elias Huhsovitz
2026-08-18  9:15   ` Dominik Csapak
2026-08-18  9:36     ` Elias Huhsovitz
2026-08-18  8:31 ` [PATCH manager 2/2] ui: tree: reduce reduce usage of `let` keyword Elias Huhsovitz
2026-08-18  9:15   ` Dominik Csapak
2026-08-18 12:09 ` superseded: [PATCH manager 0/2] fix #7136: ui: tree: harmonize folder view resource ordering Elias Huhsovitz

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