Skip to content

Seating: Vegetarian and Vegan together show both, not nobody - #93

Merged
JFrusher merged 1 commit into
mainfrom
fix/seating-filter-chips
Oct 5, 2026
Merged

JFrusher merged 1 commit into
mainfrom
fix/seating-filter-chips

Conversation

@JFrusher

@JFrusher JFrusher commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Closes #65

What a user would notice

  • Ticking Vegetarian and Vegan together now lists everyone on either diet. Before, it always showed nobody.
  • Ticking both partners' side chips now lists everyone from either side. Before, it showed only guests on both sides.
  • Chips in different categories still narrow the list: Vegan + Alex's gives Alex's vegans.

Cause

matchesFilters in utils/guestFilters.ts ANDed every active chip. A guest has one diet and one side, so two chips from the same category could never both match.

Fix

Each chip has a category (seat, side, diet, notes). The list shows guests who match any chip in each category, and every category that has a chip ticked. Unknown chip keys are still ignored, as before.

Checks

  • New tests in utils/guestFilters.test.js for both combinations, and for narrowing across categories. All three failed on main and pass now. The existing Unassigned test is unchanged and passes.
  • Seating unit tests, typecheck: green. The only e2e that uses a chip (guests.spec.ts, a single chip) passes.

Touches the same file as the family-search PR; they merge cleanly in either order (checked locally).

🤖 Generated with Claude Code

https://claude.ai/code/session_01VhFp1PtVBwgmxST9ZrRTEs


Generated by Claude Code

Seating's guest filter chips were all ANDed. A guest has one diet and one
side, so ticking Vegetarian and Vegan always showed an empty list, and
ticking both partners' chips showed only the guests on both sides.

Chips in one category (diet, side) now widen the list, and chips in
different categories still narrow it: Vegan + Alex's is Alex's vegans.

Closes #65

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VhFp1PtVBwgmxST9ZrRTEs
@vercel

vercel Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
knotwork-suite Ready Ready Preview Oct 4, 2026 7:47pm UTC

@JFrusher
JFrusher merged commit 9d83b6c into main Oct 5, 2026
10 checks passed
@JFrusher
JFrusher deleted the fix/seating-filter-chips branch October 5, 2026 06:40

This branch was successfully deployed

1 active deployment
Preview — 185a9914 Deployed Oct 4, 2026 by vercel[bot]
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.

Guest filter chips combine with AND: "Vegetarian" + "Vegan" always shows nobody

2 participants