refactor(nav): rename emphasizeGameContext to emphasizePlayerSelection

Improves clarity by renaming the prop to better describe its purpose:
highlighting the player selection/roster UI in the navigation bar.

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Thomas Hallock
2025-10-14 12:30:38 -05:00
parent 4124f1cc08
commit 6bb7016eea
4 changed files with 6 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ export function MemoryPairsGame() {
<PageWithNav
navTitle={navTitle}
navEmoji={navEmoji}
emphasizeGameContext={state.gamePhase === 'setup'}
emphasizePlayerSelection={state.gamePhase === 'setup'}
onExitSession={() => {
exitSession()
router.push('/arcade')

View File

@@ -78,7 +78,7 @@ function ArcadeContent() {
function ArcadePageWithRedirect() {
return (
<PageWithNav navTitle="Champion Arena" navEmoji="🏟️" emphasizeGameContext={true}>
<PageWithNav navTitle="Champion Arena" navEmoji="🏟️" emphasizePlayerSelection={true}>
<ArcadeContent />
</PageWithNav>
)

View File

@@ -32,7 +32,7 @@ export function MemoryPairsGame() {
navTitle={navTitle}
navEmoji={navEmoji}
gameName="matching"
emphasizeGameContext={state.gamePhase === 'setup'}
emphasizePlayerSelection={state.gamePhase === 'setup'}
currentPlayerId={state.currentPlayer}
playerScores={state.scores}
playerStreaks={state.consecutiveMatches}

View File

@@ -13,7 +13,7 @@ interface PageWithNavProps {
navTitle?: string
navEmoji?: string
gameName?: 'matching' | 'memory-quiz' | 'complement-race' // Internal game name for API
emphasizeGameContext?: boolean
emphasizePlayerSelection?: boolean
onExitSession?: () => void
onSetup?: () => void
onNewGame?: () => void
@@ -28,7 +28,7 @@ export function PageWithNav({
navTitle,
navEmoji,
gameName,
emphasizeGameContext = false,
emphasizePlayerSelection = false,
onExitSession,
onSetup,
onNewGame,
@@ -103,7 +103,7 @@ export function PageWithNav({
? 'tournament'
: 'none'
const shouldEmphasize = emphasizeGameContext && mounted
const shouldEmphasize = emphasizePlayerSelection && mounted
const showFullscreenSelection = shouldEmphasize && activePlayerCount === 0
// Compute arcade session info for display