Skip to content

Add multi-select additional preferences to allocations#76

Merged
kcdragon merged 1 commit into
mainfrom
allocation-additional-preferences
Jun 28, 2026
Merged

Add multi-select additional preferences to allocations#76
kcdragon merged 1 commit into
mainfrom
allocation-additional-preferences

Conversation

@kcdragon

Copy link
Copy Markdown
Collaborator

Allocations can now carry multiple "additional preference" categories (grouped by Program/Population/Organization), stored via a new allocation_preferences join table and selectable as toggle chips in the Edit Allocation modal. Selected preferences are displayed as a comma-separated line beneath the category on the scenario allocation cards, with the scenario page preloading them to avoid N+1 queries. The allocation modal now also closes when clicking outside it (backdrop click). Includes a migration, the AllocationPreference model and associations (dependent: :destroy cleanup), updated strong params, demo seed data, and model + controller test coverage.

🤖 Generated with Claude Code

Allocations can now carry multiple "additional preference" categories
(grouped by Program/Population/Organization) via a new
allocation_preferences join table, selectable as chips in the Edit
Allocation modal and surfaced beneath the category on the scenario
cards. Also closes the allocation modal on backdrop click.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@kcdragon kcdragon merged commit 5605c5a into main Jun 28, 2026
5 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.

1 participant