{/* 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 - Hide for playoff events since they use the bracket */}
{event.eventType !== "playoff_game" && (
Results
{results.length} of {participants.length} participants have
results
)}
)}
{/* Bracket Explanation Card for Playoff Events */}
{event.eventType === "playoff_game" && !participantResults?.length && (
Bracket Event
This is a bracket/playoff event. Results are managed through the bracket interface.
To complete this event:
Click "Manage Bracket" above to set match winners
Once all matches are complete, click "Finalize Bracket"
Fantasy placements and points will appear below automatically
)}
{/* Participant Results with Fantasy Points */}
{participantResults && participantResults.length > 0 && (
{event.eventType === "playoff_game" ? (
<>
Fantasy Points Awarded (from Bracket)
>
) : (
"Fantasy Points Awarded"
)}
{event.eventType === "playoff_game"
? `${participantResults.length} participants assigned placements from bracket results`
: "Points calculated from bracket placements (sorted by position)"
}