@@ -39,7 +39,7 @@ interface Props {
3939 performanceData : DrillPerformanceData
4040 onContinueAnalyzing : ( ) => void
4141 onNextDrill : ( ) => void
42- isLastDrill : boolean
42+ onReconfigureDrills : ( ) => void
4343}
4444
4545// Helper function to extract move number from FEN string
@@ -769,7 +769,7 @@ const DesktopLayout: React.FC<{
769769 performanceData : DrillPerformanceData
770770 onContinueAnalyzing : ( ) => void
771771 onNextDrill : ( ) => void
772- isLastDrill : boolean
772+ onReconfigureDrills : ( ) => void
773773 gameTree : GameTree
774774 openingEndNode : GameNode
775775 playerMoveCount : number
@@ -788,7 +788,7 @@ const DesktopLayout: React.FC<{
788788 performanceData,
789789 onContinueAnalyzing,
790790 onNextDrill,
791- isLastDrill ,
791+ onReconfigureDrills ,
792792 gameTree,
793793 openingEndNode,
794794 playerMoveCount,
@@ -812,9 +812,7 @@ const DesktopLayout: React.FC<{
812812 { /* Header */ }
813813 < div className = "flex items-center justify-between border-b border-glass-border p-4" >
814814 < div >
815- < h2 className = "text-xl font-bold text-primary" >
816- Opening Analysis Complete
817- </ h2 >
815+ < h2 className = "text-xl font-bold text-primary" > Drill Review</ h2 >
818816 < div className = "mt-1" >
819817 < p className = "text-base font-medium text-secondary" >
820818 { drill . selection . opening . name }
@@ -1064,23 +1062,29 @@ const DesktopLayout: React.FC<{
10641062 </ div >
10651063
10661064 { /* Action Buttons */ }
1067- < div className = "flex gap-3 border-t border-glass-border p-4" >
1068- < button
1069- onClick = { onContinueAnalyzing }
1070- className = { `${
1071- isLastDrill ? 'w-full' : 'flex-1'
1072- } rounded border border-glass-border bg-white/5 py-2 font-medium backdrop-blur-sm transition-colors hover:bg-white/10`}
1073- >
1074- Analyze
1075- </ button >
1076- { ! isLastDrill && (
1065+ < div className = "border-t border-glass-border p-4" >
1066+ < div className = "flex gap-3" >
1067+ < button
1068+ onClick = { onContinueAnalyzing }
1069+ className = "flex-1 rounded bg-human-4 py-2 font-medium text-white transition-colors hover:bg-human-4/80"
1070+ >
1071+ Analyze
1072+ </ button >
10771073 < button
10781074 onClick = { onNextDrill }
1079- className = "flex-1 rounded bg-human-4 py-2 font-medium transition-colors hover:bg-human-4/80"
1075+ className = "flex-1 rounded bg-human-4 py-2 font-medium text-white transition-colors hover:bg-human-4/80"
10801076 >
10811077 Next Drill
10821078 </ button >
1083- ) }
1079+ </ div >
1080+ < div className = "mt-3 flex justify-center" >
1081+ < button
1082+ onClick = { onReconfigureDrills }
1083+ className = "text-sm font-medium text-white/55 transition-colors hover:text-white/80"
1084+ >
1085+ Reconfigure Drills
1086+ </ button >
1087+ </ div >
10841088 </ div >
10851089 </ div >
10861090)
@@ -1093,7 +1097,7 @@ const MobileLayout: React.FC<{
10931097 performanceData : DrillPerformanceData
10941098 onContinueAnalyzing : ( ) => void
10951099 onNextDrill : ( ) => void
1096- isLastDrill : boolean
1100+ onReconfigureDrills : ( ) => void
10971101 activeTab : 'replay' | 'analysis' | 'insights'
10981102 setActiveTab : ( tab : 'replay' | 'analysis' | 'insights' ) => void
10991103 gameTree : GameTree
@@ -1114,7 +1118,7 @@ const MobileLayout: React.FC<{
11141118 performanceData,
11151119 onContinueAnalyzing,
11161120 onNextDrill,
1117- isLastDrill ,
1121+ onReconfigureDrills ,
11181122 activeTab,
11191123 setActiveTab,
11201124 gameTree,
@@ -1140,7 +1144,7 @@ const MobileLayout: React.FC<{
11401144 { /* Header */ }
11411145 < div className = "flex items-center justify-between border-b border-glass-border p-4" >
11421146 < div className = "min-w-0 flex-1" >
1143- < h2 className = "text-lg font-bold text-primary" > Analysis Complete </ h2 >
1147+ < h2 className = "text-lg font-bold text-primary" > Drill Review </ h2 >
11441148 < div className = "mt-1" >
11451149 < p className = "text-sm font-medium text-secondary" >
11461150 { drill . selection . opening . name }
@@ -1280,19 +1284,29 @@ const MobileLayout: React.FC<{
12801284 </ div >
12811285
12821286 { /* Action Buttons */ }
1283- < div className = "flex gap-3 border-t border-glass-border p-4" >
1284- < button
1285- onClick = { onContinueAnalyzing }
1286- className = "flex-1 rounded border border-glass-border bg-white/5 py-2 font-medium backdrop-blur-sm transition-colors hover:bg-white/10"
1287- >
1288- Analyze
1289- </ button >
1290- < button
1291- onClick = { onNextDrill }
1292- className = "flex-1 rounded bg-human-4 py-2 font-medium transition-colors hover:bg-human-4/80"
1293- >
1294- { isLastDrill ? 'Summary' : 'Next' }
1295- </ button >
1287+ < div className = "border-t border-glass-border p-4" >
1288+ < div className = "flex gap-3" >
1289+ < button
1290+ onClick = { onContinueAnalyzing }
1291+ className = "flex-1 rounded bg-human-4 py-2 font-medium text-white transition-colors hover:bg-human-4/80"
1292+ >
1293+ Analyze
1294+ </ button >
1295+ < button
1296+ onClick = { onNextDrill }
1297+ className = "flex-1 rounded bg-human-4 py-2 font-medium text-white transition-colors hover:bg-human-4/80"
1298+ >
1299+ Next Drill
1300+ </ button >
1301+ </ div >
1302+ < div className = "mt-3 flex justify-center" >
1303+ < button
1304+ onClick = { onReconfigureDrills }
1305+ className = "text-sm font-medium text-white/55 transition-colors hover:text-white/80"
1306+ >
1307+ Reconfigure Drills
1308+ </ button >
1309+ </ div >
12961310 </ div >
12971311 </ div >
12981312)
@@ -1301,7 +1315,7 @@ export const DrillPerformanceModal: React.FC<Props> = ({
13011315 performanceData,
13021316 onContinueAnalyzing,
13031317 onNextDrill,
1304- isLastDrill ,
1318+ onReconfigureDrills ,
13051319} ) => {
13061320 const { isMobile } = useContext ( WindowSizeContext )
13071321 const [ activeTab , setActiveTab ] = useState <
@@ -1490,7 +1504,7 @@ export const DrillPerformanceModal: React.FC<Props> = ({
14901504 performanceData = { performanceData }
14911505 onContinueAnalyzing = { onContinueAnalyzing }
14921506 onNextDrill = { onNextDrill }
1493- isLastDrill = { isLastDrill }
1507+ onReconfigureDrills = { onReconfigureDrills }
14941508 activeTab = { activeTab }
14951509 setActiveTab = { setActiveTab }
14961510 gameTree = { gameTree }
@@ -1510,7 +1524,7 @@ export const DrillPerformanceModal: React.FC<Props> = ({
15101524 performanceData = { performanceData }
15111525 onContinueAnalyzing = { onContinueAnalyzing }
15121526 onNextDrill = { onNextDrill }
1513- isLastDrill = { isLastDrill }
1527+ onReconfigureDrills = { onReconfigureDrills }
15141528 gameTree = { gameTree }
15151529 openingEndNode = { openingEndNode }
15161530 playerMoveCount = { playerMoveCount }
0 commit comments