fix: checkbox selection bug and add event log improvements

- Fix checkbox selection not working: remove duplicate subset_mode hidden
  fields from 5 form templates and add resolved_ids to checkbox component
- Add all-events view to event log (shows events without location like
  AnimalOutcome, FeedPurchased, ProductSold)
- Add event type filter dropdown alongside location filter
- Make event log items clickable to open event detail slide-over
- Add event delete UI with confirmation dialog (admin only)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-01 20:03:34 +00:00
parent 1c836c6f7d
commit 9cd890b936
8 changed files with 435 additions and 48 deletions

View File

@@ -108,11 +108,11 @@ class TestEventLogRoute:
"""Tests for GET /event-log route."""
def test_event_log_without_location_shows_selector(self, client):
"""Event log without location_id shows location selector."""
"""Event log without location_id shows location selector with 'All locations' default."""
response = client.get("/event-log")
assert response.status_code == 200
# Should show location selector prompt
assert "Select a location" in response.text
# Should show location selector with "All locations" option
assert "All locations" in response.text
def test_event_log_returns_empty_for_new_location(self, client, valid_location_id):
"""Event log returns empty state for location with no events."""