Hide deprecated packages behind a Type filter option#11445
Hide deprecated packages behind a Type filter option#11445borisschlosser wants to merge 2 commits into
Conversation
Deprecated provider packages (those with `publisher: DEPRECATED`) were shown intermixed with active packages in the registry list. This hides them by default and adds a "Deprecated" option to the existing multi-select Type filter so users can opt in to seeing them. - package.html: tag each card with `data-deprecated` derived from the publisher field. - package-list.html: add a "Deprecated" option to the Type filter group. - packages.ts: deprecated cards stay hidden unless "Deprecated" is selected; when selected they count as a type match (union semantics, consistent with the other Type options). Default filtering is applied on initial load so deprecated packages start hidden. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Registry Review — Hide deprecated packages behind a Type filterReviewed the three changed files. This is a clean, self-contained client-side filtering change. The core filter logic is correct — I traced every cell of the behavior matrix in the PR description (default, Provider-only, Deprecated-only, Provider+Deprecated union, and category/text AND-ing) and they all hold up. Nice work including the explanatory comments and handling the initial-load count correction. A few minor / non-blocking observations below. 🟡 Minor: over-indented
|
|
Your site preview for commit 4494ffd is ready! 🎉 http://registry--origin-pr-11445-4494ffde.s3-website.us-west-2.amazonaws.com/registry. |
Replace the three inline count-badge update blocks in the filterSelect, reset, and packageSearch handlers with the existing updateAllCount() helper, removing the duplicated logic. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Your site preview for commit a3de4c8 is ready! 🎉 http://registry--origin-pr-11445-a3de4c80.s3-website.us-west-2.amazonaws.com/registry. |



What
Deprecated provider packages (those with
publisher: DEPRECATEDin their YAML) were listed intermixed with active packages in the registry A–Z list. This hides them by default and adds a Deprecated option to the existing multi-select Type filter so users can opt in to seeing them.Behavior
Use-case (category) filters and the name search still AND with the above, unchanged.
Changes
package.html— tag each card withdata-deprecated, derived from the publisher field (eq .package.publisher "DEPRECATED"). 29 packages currently tagged.package-list.html— add aDeprecatedoption to the Type filter group.packages.ts— deprecated cards stay hidden unlessDeprecatedis among the selected Type filters; when selected they count as a type match (union, consistent with the other Type options). Default filtering runs on initial load so deprecated packages start hidden.Notes
hiddenclass), the same mechanism the existing Type/Use-Case/search filters already use — so deprecated cards remain in the HTML and crawlable.🤖 Generated with Claude Code