8000 Updated Insufficient Medics Nag To Use Immersive Dialog by IllianiBird · Pull Request #6389 · MegaMek/mekhq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Updated Insufficient Medics Nag To Use Immersive Dialog #6389

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

IllianiBird
Copy link
Collaborator
  • Refactored InsufficientMedicsNagDialog 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 `InsufficientMedicsNagDialog` 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
Copy link
codecov bot commented Mar 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.30%. Comparing base (a10ed19) to head (4bbdffa).
Report is 11 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6389      +/-   ##
============================================
- Coverage     11.31%   11.30%   -0.02%     
+ Complexity     6285     6280       -5     
============================================
  Files          1070     1070              
  Lines        136146   136184      +38     
  Branches      21029    21034       +5     
============================================
- Hits          15407    15390      -17     
- Misses       119192   119253      +61     
+ Partials       1547     1541       -6     

☔ 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.

Copy link
Collaborator
@Sleet01 Sleet01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.
I this feels like an opportunity to extract a middle-level class, say something like an ImmersiveNagDialog, with a similar layout but more parameterization.
Nothing that needs doing now, just something to think about if more immersive nag dialogs are needed.

@IllianiBird
Copy link
Collaborator Author

Yeah, I concur. It's something that will almost certainly be added once I spot a good use-case. I need that so I can tell what functionality is required.

As things stand ImmersiveDialogSimple exists for cases where we just want to present information to the user, and maybe track their responses - like nags. Then there is ImmersiveDialogCore for when we want access to all the bells and whistles.

@IllianiBird IllianiBird merged commit bdbaa5f into MegaMek:master Mar 24, 2025
6 checks passed
@IllianiBird IllianiBird deleted the InsufficientMedicsNagDialogNew branch March 25, 2025 04:50
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
0