Skip to content

Commit 3341c8d

Browse files
unhappychoiceclaude
andcommitted
refactor: update screen transitions to use Records instead of History
- Update transition manager to handle Records screen properly - Fix CLI view references to use updated screen type naming - Maintain all existing transition logic while using consistent terminology - Ensure proper navigation flow between screens 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 29f4058 commit 3341c8d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/cli/views/repo_play_view.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub fn render_repo_play_ui(
3434

3535
let result: Result<Option<usize>> = loop {
3636
terminal.draw(|f| {
37-
// Add horizontal padding like history_screen
37+
// Add horizontal padding like record_screen
3838
let outer_chunks = Layout::default()
3939
.direction(Direction::Horizontal)
4040
.constraints([

src/game/screen_transition_manager.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ impl ScreenTransitionManager {
1515
(ScreenType::Title, ScreenType::Typing) => {
1616
Self::handle_start_game_transition()?;
1717
}
18-
(ScreenType::Title, ScreenType::History) => {}
18+
(ScreenType::Title, ScreenType::Records) => {}
1919
(ScreenType::Title, ScreenType::Analytics) => {}
2020
(ScreenType::Title, ScreenType::TotalSummary) => {}
2121
(ScreenType::Title, ScreenType::VersionCheck) => {}
@@ -51,7 +51,7 @@ impl ScreenTransitionManager {
5151
// Reset session when going back to title
5252
Self::handle_session_reset()?;
5353
}
54-
(ScreenType::SessionSummary, ScreenType::History) => {}
54+
(ScreenType::SessionSummary, ScreenType::Records) => {}
5555
(ScreenType::SessionSummary, ScreenType::Analytics) => {}
5656
(ScreenType::SessionSummary, ScreenType::SessionSharing) => {}
5757
(ScreenType::SessionSummary, ScreenType::TotalSummary) => {}
@@ -73,17 +73,17 @@ impl ScreenTransitionManager {
7373
}
7474
(ScreenType::SessionFailure, ScreenType::TotalSummary) => {}
7575

76-
// From History
77-
(ScreenType::History, ScreenType::Title) => {}
78-
(ScreenType::History, ScreenType::SessionDetail) => {}
79-
(ScreenType::History, ScreenType::TotalSummary) => {}
76+
// From Records
77+
(ScreenType::Records, ScreenType::Title) => {}
78+
(ScreenType::Records, ScreenType::SessionDetail) => {}
79+
(ScreenType::Records, ScreenType::TotalSummary) => {}
8080

8181
// From Analytics
8282
(ScreenType::Analytics, ScreenType::Title) => {}
8383
(ScreenType::Analytics, ScreenType::TotalSummary) => {}
8484

8585
// From SessionDetail
86-
(ScreenType::SessionDetail, ScreenType::History) => {}
86+
(ScreenType::SessionDetail, ScreenType::Records) => {}
8787
(ScreenType::SessionDetail, ScreenType::TotalSummary) => {}
8888

8989
// From Sharing

0 commit comments

Comments
 (0)