Repository navigation
B4 — event roster fill view - #207
Merged
Merged
Conversation
Adds a per-role coverage breakdown to the per-event roster: for each role in extra_data.role_counts, show filled/needed and the gap, with an inline person picker (reusing the existing assign endpoint, role pre-bound) so an admin can close coverage gaps without the solver. The coverage block lives in the HTMX-swapped partial so it updates on every add/remove. Tests: tests/web/test_event_roster_fill.py (3) and committed e2e tests/e2e/test_event_roster_fill.py (admin fills a gap inline, the volunteer then sees the shift). Closes #206 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
16 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
extra_data.role_counts: filled/needed and the remaining gap./a/events/{id}/assignments/addendpoint; the coverage block is in the HTMX-swapped partial so it updates live on add/remove.#role-coverage[data-staffed]+.cov-row[data-role][data-gap]hooks for deterministic assertions.Test plan
tests/web/test_event_roster_fill.py— gap shown, fill closes coverage (+assignment row created), no role_counts → no coverage blocktests/e2e/test_event_roster_fill.py— admin inline-fills the usher gap, volunteer then sees the shifttests/e2e/4 passed; web+contract+openapi 209 passed;black --check api tests+ruff check api testscleanCloses #206 · part of #196 (Phase B).
🤖 Generated with Claude Code