-
-
Notifications
You must be signed in to change notification settings - Fork 38
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The new pill/count data is derived from GetCacheStats() (not aligned with "cached packages" semantics) and the new filter links should URL-encode query values to avoid malformed URLs.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This draft/POC updates the "Cached Packages" UI to replace the ecosystem dropdown with clickable "pill" filters and to show only ecosystems that have packages (with per-ecosystem counts), improving navigation and discoverability.
Changes:
- Replaced the ecosystem
<select>with pill-style filter links showing per-ecosystem counts (plus an "All" pill). - Added template helpers for pill styling and a builder to generate the ecosystem filter list.
- Updated the packages list handler and template rendering tests to include the new data fields.
File summaries
| File | Description |
|---|---|
| internal/server/templates/pages/packages_list.html | Replaces ecosystem dropdown with filter pills; adjusts list row layout and sort behavior. |
| internal/server/templates.go | Exposes ecosystemPillClass helper to templates. |
| internal/server/templates_test.go | Updates page render test data; adds tests for ecosystem filter building and pill classes. |
| internal/server/server.go | Populates new TotalPackages / EcosystemFilters fields for the packages list page. |
| internal/server/dashboard.go | Adds pill class helpers and buildEcosystemFilters; extends page data types. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 3
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Uh oh!
There was an error while loading. Please reload this page.
I found the dropdown for filtering by ecosystem to be lacking for two reasons:
(There was also the issue of jagged hit counts I addressed for the dashboard in an earlier PR.)
It now looks like this:
imageMarking this as a draft and a POC, because it's completely vibe coded and I haven't looked at the code to clean it up in any way just yet.