You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chagning translations should not crash wheel wizard - #527
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
📝 Walkthrough
Walkthrough
Language changes now refresh bound translations without recreating the main window. Dropdown search updates the filtered menu layout and focus behavior.
Changes
In-place language changes
Layer / File(s)
Summary
Refresh translations on language changes WheelWizard/Features/Localization/T.cs, WheelWizard/Views/Shell/Layout.axaml.cs
Translations use a shared binding source that sends a UI-thread property-change notification when the language changes. The layout also refreshes player and room counts.
Apply language changes in place WheelWizard/Features/Settings/Views/AppearanceSettings.axaml.cs, WheelWizard/Views/Shell/MainWindowService.cs, WheelWizard/Views/Shell/BaseWindow.cs, WheelWizard.UI.Test/ApplicationCompositionTests.cs, WheelWizard.UI.Test/WindowCompositionTests.cs
Appearance settings reload after a successful language update and no longer request a main-window refresh. The refresh method and its interface declaration are removed. Composition tests verify language changes and retention of the existing window and settings page. Other included test fixture and dispatcher edits are formatting-only.
Dropdown search
Layer / File(s)
Summary
Update filtered menu layout and focus WheelWizard/Views/Components/Dropdown.cs, WheelWizard.UI.Test/SharedControlTests.cs
Search key handling updates the layout before moving focus and uses tunnel routing. Search no longer applies a separate menu-height cap. Tests check filtered and empty states, restored height, and retained search focus.
sequenceDiagram
participant User
participant AppearanceSettings
participant TranslationSource
participant UIThread
User->>AppearanceSettings: Confirm a language change
AppearanceSettings->>AppearanceSettings: Update the language setting and reload settings
TranslationSource->>UIThread: Notify bound translations of the language change
Loading
Suggested reviewers:patchzyy
Merge Risk:⚪ Minimal · up to 97b84
Language changes now refresh translations in place instead of recreating the main window, which removes the crash path. The dropdown search layout and focus changes are covered by tests. No merge-blocking issue was found.
Pre-merge checks | 3 | 2
❌ Failed checks (2 warnings)
Check name
Status
Explanation
Resolution
Description check
The description contains only the template headings. It does not explain the purpose, testing steps, changes, or related issue, and the relevant-tests checklist remains unchecked despite test changes …
Complete every required section with the PR purpose, test instructions, specific changes, and related issue link or "None". Mark the relevant-tests checklist item as checked if the added or updated tests are the intended coverage.
Docstring Coverage
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 18 functions across 8 files.
Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name
Status
Explanation
Title check
The title identifies the main change: preventing crashes when translations change. It is concise, although it contains a spelling error in "chagning".
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Description check
Explanation
The description contains only the template headings. It does not explain the purpose, testing steps, changes, or related issue, and the relevant-tests checklist remains unchecked despite test changes in the pull request.
Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
Commit to this branch
Create a new PR
🧪 Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A rabbit watched the words turn bright As languages changed without a flight The window stayed, the labels flowed Search trimmed the menu as results showed One hop, one test, then home to burrow
Comment @coderabbitai help to get the list of available commands.
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
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.
Purpose of this PR:
How to Test:
What Has Been Changed:
Related Issue Link:
Checklist before merging
Summary by CodeRabbit