Skip to content

Rejig item-filter as horizontal flex row, drop products-layout sidebar#1399

Merged
stefan-burke merged 1 commit intomainfrom
claude/refactor-item-filter-4Bowi
May 5, 2026
Merged

Rejig item-filter as horizontal flex row, drop products-layout sidebar#1399
stefan-burke merged 1 commit intomainfrom
claude/refactor-item-filter-4Bowi

Conversation

@stefan-burke
Copy link
Copy Markdown
Member

Summary

  • Rewrites item-filter as a single flex-wrap row of filter groups (with a sort dropdown), built on the design-system tokens ($space-*, $radius-*, $transition-*, $border-light). Active filter pills render above the row when present.
  • Drops the .products-layout/.products-content sidebar wrapper now that the filter sits inline above the items list. products-layout-start.html, products-layout-end.html, and the unused filtered-items-section.html are deleted; products-filter.scss is replaced by item-filter.scss, wired into both the legacy bundle.scss and design-system-bundle.scss.
  • category-filter.js now locates the items list via container.parentElement?.querySelector(".items") since the old .products-layout ancestor is gone.

Test plan

  • bun test — 2965 pass, 0 fail
  • bun run build — both bundles compile, both contain .item-filter styles
  • bun run lint — clean
  • Visual check on a category page (e.g. /categories/doodahs/) and /products/: filter renders as a tidy horizontal row, chips toggle, sort dropdown works, active pills + clear-all show after a selection

https://claude.ai/code/session_015esHZx6y73YG4ZcyPs8EDK


Generated by Claude Code

Drop the products-layout sidebar wrapper; the filter now sits as a single
flex row above the items list. Styles are rewritten on the design-system
8px spacing/radius/transition tokens so the filter blends in regardless of
which CSS bundle a layout uses. category-filter.js now finds the items
list via parentElement instead of the removed products-layout container.
Also delete the unused filtered-items-section.html template.

https://claude.ai/code/session_015esHZx6y73YG4ZcyPs8EDK
@stefan-burke stefan-burke added this pull request to the merge queue May 5, 2026
Merged via the queue into main with commit 5e1af24 May 5, 2026
3 checks passed
@stefan-burke stefan-burke deleted the claude/refactor-item-filter-4Bowi branch May 5, 2026 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants