feat(queries): add game results query keys for scoreboard

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Thomas Hallock
2026-01-13 10:48:57 -06:00
parent c182756b80
commit 7e3932ae5f

View File

@@ -59,6 +59,14 @@ export const entryPromptKeys = {
pending: () => [...entryPromptKeys.all, 'pending'] as const,
}
// Game results query keys (for scoreboard and history)
export const gameResultsKeys = {
all: ['game-results'] as const,
playerHistory: (playerId: string) => [...gameResultsKeys.all, 'player', playerId] as const,
classroomLeaderboard: (classroomId: string, gameName?: string) =>
[...gameResultsKeys.all, 'leaderboard', 'classroom', classroomId, gameName] as const,
}
// Attachment query keys (for practice photos and worksheet parsing)
export const attachmentKeys = {
// All attachments for a player