Skip to content

Conversation

@bokelley
Copy link
Contributor

Summary

Refactor working group leadership from fixed Chair/Vice-Chair roles to a flexible multi-leader system. Fixes N+1 query issues, improves Safari autocomplete handling, and adds missing form fields.

Key Changes:

  • Replaced chair_user_id/vice_chair_user_id with flexible working_group_leaders table
  • Fixed N+1 queries by implementing batch fetching with getLeadersBatch() method
  • Optimized bulk operations - replaced sequential inserts with single bulk INSERT
  • Fixed Safari autocomplete showing name suggestions on leader/member search fields
  • Added missing Display Order field to working group form

Tests

All existing tests pass, including schema validation, JSON schema compliance, and TypeScript type checking.

🤖 Generated with Claude Code

…field

- Changed leader and member search inputs to type="search" with autocomplete="off" to prevent Safari from showing name autocomplete suggestions
- Added missing Display Order input field that saveGroup() was referencing
- Fixed leader query to join with working_group_memberships instead of non-existent organization_memberships table
- Reorganized form layout to group display order and privacy checkbox together

🤖 Generated with Claude Code

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@bokelley bokelley merged commit 66793bb into main Dec 28, 2025
6 checks passed
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