Skip to content

Updated Contract End Nag To Use Immersive Dialog#6383

Merged
IllianiBird merged 2 commits intoMegaMek:masterfrom
IllianiBird:EndContractNagDialogNew
Mar 24, 2025
Merged

Updated Contract End Nag To Use Immersive Dialog#6383
IllianiBird merged 2 commits intoMegaMek:masterfrom
IllianiBird:EndContractNagDialogNew

Conversation

@IllianiBird
Copy link
Collaborator

  • Refactored EndContractNagDialog to utilize ImmersiveDialogSimple for improved modularity and customization.
  • Replaced inheritance from AbstractMHQNagDialog with a standalone class to simplify and streamline the implementation.
  • Updated NagController logic to replace wasAdvanceDayCanceled() with shouldCancelAdvanceDay() to reflect the updated behavior.
image

- Refactored `EndContractNagDialog` to utilize `ImmersiveDialogSimple` for improved modularity and customization.
- Replaced inheritance from `AbstractMHQNagDialog` with a standalone class to simplify and streamline the implementation.
- Updated NagController logic to replace `wasAdvanceDayCanceled()` with `shouldCancelAdvanceDay()` to reflect the updated behavior.
@IllianiBird IllianiBird self-assigned this Mar 24, 2025
# Conflicts:
#	MekHQ/resources/mekhq/resources/NagDialogs.properties
@codecov
Copy link

codecov bot commented Mar 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.31%. Comparing base (4b18ab6) to head (0532733).
Report is 5 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6383      +/-   ##
============================================
- Coverage     11.31%   11.31%   -0.01%     
  Complexity     6280     6280              
============================================
  Files          1070     1070              
  Lines        136052   136072      +20     
  Branches      21018    21018              
============================================
- Hits          15397    15393       -4     
- Misses       119111   119134      +23     
- Partials       1544     1545       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@IllianiBird IllianiBird merged commit f1af94e into MegaMek:master Mar 24, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants