useEventDetail
The useEventDetail hook (hooks/modal/useEventDetail.ts) is the data layer for the EventDetailModal. At ~480 lines, it is one of the most complex hooks in the application.Responsibilities
- Fetches the full instance details from SQLite by selectedEventId
- Parses JSON columns (conditions, penalties, waivers, checkpoints)
- Resolves the parent task for display metadata
- Computes verification status and time remaining
- Provides action handlers (verify, skip, delete instance)