Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ac087b9f3f | |||
| 977d8ab5e0 |
@@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2026-04-12 - 3.8.3 - fix(sidebar)
|
||||||
|
include component tag names in sidebar search filtering
|
||||||
|
|
||||||
|
- Updates sidebar section and entry filtering to match search queries against each item's custom element tag name via the `is` field.
|
||||||
|
- Keeps existing name and demo group matching behavior while making search results easier to find by tag.
|
||||||
|
|
||||||
## 2026-04-12 - 3.8.2 - fix(sidebar)
|
## 2026-04-12 - 3.8.2 - fix(sidebar)
|
||||||
restore search input focus after clearing the sidebar search
|
restore search input focus after clearing the sidebar search
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@design.estate/dees-wcctools",
|
"name": "@design.estate/dees-wcctools",
|
||||||
"version": "3.8.2",
|
"version": "3.8.3",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "A set of web component tools for creating element catalogues, enabling the structured development and documentation of custom elements and pages.",
|
"description": "A set of web component tools for creating element catalogues, enabling the structured development and documentation of custom elements and pages.",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@design.estate/dees-wcctools',
|
name: '@design.estate/dees-wcctools',
|
||||||
version: '3.8.2',
|
version: '3.8.3',
|
||||||
description: 'A set of web component tools for creating element catalogues, enabling the structured development and documentation of custom elements and pages.'
|
description: 'A set of web component tools for creating element catalogues, enabling the structured development and documentation of custom elements and pages.'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -654,6 +654,8 @@ export class WccSidebar extends DeesElement {
|
|||||||
const entries = getSectionItems(section);
|
const entries = getSectionItems(section);
|
||||||
const filteredEntries = entries.filter(([name, item]) => {
|
const filteredEntries = entries.filter(([name, item]) => {
|
||||||
if (this.matchesSearch(name)) return true;
|
if (this.matchesSearch(name)) return true;
|
||||||
|
const tagName = (item as any).is;
|
||||||
|
if (tagName && this.matchesSearch(tagName)) return true;
|
||||||
const rawGroups = (item as any).demoGroups;
|
const rawGroups = (item as any).demoGroups;
|
||||||
if (!rawGroups) return false;
|
if (!rawGroups) return false;
|
||||||
const groups: string[] = Array.isArray(rawGroups) ? rawGroups : [rawGroups];
|
const groups: string[] = Array.isArray(rawGroups) ? rawGroups : [rawGroups];
|
||||||
@@ -692,6 +694,8 @@ export class WccSidebar extends DeesElement {
|
|||||||
// Filter entries by search query
|
// Filter entries by search query
|
||||||
const filteredEntries = entries.filter(([name, item]) => {
|
const filteredEntries = entries.filter(([name, item]) => {
|
||||||
if (this.matchesSearch(name)) return true;
|
if (this.matchesSearch(name)) return true;
|
||||||
|
const tagName = (item as any).is;
|
||||||
|
if (tagName && this.matchesSearch(tagName)) return true;
|
||||||
const rawGroups = (item as any).demoGroups;
|
const rawGroups = (item as any).demoGroups;
|
||||||
if (!rawGroups) return false;
|
if (!rawGroups) return false;
|
||||||
const groups: string[] = Array.isArray(rawGroups) ? rawGroups : [rawGroups];
|
const groups: string[] = Array.isArray(rawGroups) ? rawGroups : [rawGroups];
|
||||||
|
|||||||
Reference in New Issue
Block a user