{/* Debug info and manual QP processing for completed major tournaments */}
{event.isComplete && event.eventType === "major_tournament" && (
Event Processing Status
Event Type: {event.eventType}
Is Qualifying Event: {event.isQualifyingEvent ? 'Yes' : 'No'}
Sports Season Pattern: {sportsSeason.scoringPattern || 'not set'}
Results Count: {results.length}
{!event.isQualifyingEvent && (
This event needs to be marked as a qualifying event to award qualifying points.
)}
{event.isQualifyingEvent && (
)}
)}
{actionData?.error && (
{actionData.error}
)}
{actionData?.success && (
{actionData.success}
)}
{/* Season Standings Table for final_standings events */}
{event.eventType === "final_standings" && !event.isComplete && (
<>
Season Standings Tracker
Enter championship points for each participant. Positions are automatically calculated based on points (highest = 1st).
When the season ends, mark this event as complete to assign fantasy points to the top 8.
{/* Complete Season Button */}
Finalize Season
When the season is complete, mark this event as complete to:
Convert the top 8 participants (by position) to fantasy placements 1-8
Award fantasy points based on league scoring rules
Update all league standings
⚠️ Make sure all standings are saved before completing
>
)}
{/* Regular Result Entry for other event types */}
{event.eventType !== "final_standings" && !event.isComplete && (
Add Result
Enter the placement for a participant in this event
)}
{/* Manual QP Processing Button (for existing events) */}
{event.isComplete &&
event.eventType === "major_tournament" &&
sportsSeason.scoringPattern === "qualifying_points" &&
results.length > 0 && (
Process Qualifying Points
This event is complete but qualifying points haven't been awarded yet.
Click below to award QP based on the results entered.
)}
{/* Current Results */}
Results
{results.length} of {participants.length} participants have
results