feat: add retry option on cancellation/failure screen#135
Merged
unhappychoice merged 6 commits intomainfrom Sep 3, 2025
Merged
feat: add retry option on cancellation/failure screen#135unhappychoice merged 6 commits intomainfrom
unhappychoice merged 6 commits intomainfrom
Conversation
close: #128 - Add FailureScreen with retry functionality for failed challenges - Add CancelScreen with retry functionality for cancelled challenges - Both screens provide [R] Retry, [T] Back to Title, [ESC] Session Summary options - Users can now retry challenges without restarting the application 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Extract SessionSummaryScreen for session completion and stage results - Extract SharingScreen for social media sharing functionality - Move ResultAction enum to session_summary_screen.rs for better organization - Improve code maintainability and separation of concerns 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add exports for new screen modules: CancelScreen, FailureScreen, SessionSummaryScreen, SharingScreen - Remove old result_screen module reference - Export ResultAction from session_summary_screen for centralized access 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Update imports to use new screen modules instead of old ResultScreen - Implement retry handling in GameState::Failed and GameState::Exit - Add handle_cancel_result_navigation for cancellation retry logic - Apply clippy suggestions for cleaner return statements 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Delete monolithic result_screen.rs file - All functionality has been moved to focused screen modules - Maintains clean codebase structure 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Codecov Report❌ Patch coverage is ❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #135 +/- ##
==========================================
- Coverage 29.86% 29.45% -0.41%
==========================================
Files 59 62 +3
Lines 8350 8466 +116
==========================================
Hits 2494 2494
- Misses 5856 5972 +116
🚀 New features to boost your workflow:
|
- Fix spacing issues introduced by clippy fixes - Ensure all code follows Rust formatting standards 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
close: #128
Summary
result_screen.rsinto focused screen modules for better code organizationChanges Made
New Features
[R]to retry failed challenges[R]to retry cancelled challenges (Ctrl+C or ESC -> Q)Code Refactoring
result_screen.rsinto focused modules:failure_screen.rs- Handles failed challenge display and retrycancel_screen.rs- Handles cancelled challenge display and retrysession_summary_screen.rs- Session completion and stage resultssharing_screen.rs- Social media sharing functionalityResultActionenum to centralized locationImplementation Details
GameState::FailedandGameState::Exit[R]- Retry the same challenge[T]- Back to title screen[ESC]- Session summary and exitTest Plan
🤖 Generated with Claude Code