fix(wcc-sidebar): sort sidebar items alphabetically and unify grouped and ungrouped items for consistent ordering

This commit is contained in:
2026-01-04 16:51:52 +00:00
parent fe62278d74
commit e625fe9ba6
3 changed files with 37 additions and 13 deletions

View File

@@ -1,5 +1,13 @@
# Changelog
## 2026-01-04 - 3.6.1 - fix(wcc-sidebar)
sort sidebar items alphabetically and unify grouped and ungrouped items for consistent ordering
- Unifies ungrouped elements and groups into a single render list using a RenderItem type with a sortKey.
- Sorts all top-level items alphabetically by element name (case-insensitive via toLowerCase) so sidebar order is deterministic.
- Groups are ordered by the first element's name; individual items inside a group preserve their original order.
- Replaces previous separate rendering paths with a single sorted render pass that returns TemplateResult array.
## 2026-01-04 - 3.6.0 - feat(sidebar)
restructure sidebar layout, add search clear button, and improve scrolling behavior