Added Button to Access Quick Tech Assignment#8988
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8988 +/- ##
============================================
+ Coverage 14.00% 14.08% +0.07%
- Complexity 8320 8341 +21
============================================
Files 1285 1285
Lines 167958 168081 +123
Branches 25418 25429 +11
============================================
+ Hits 23530 23675 +145
+ Misses 141950 141916 -34
- Partials 2478 2490 +12 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a Hangar UI affordance to trigger the existing “automatic assignment of techs to unmaintained units” feature, including a confirmation/nag dialog and an option to suppress that confirmation in MekHQ Options.
Changes:
- Add “Quick Assign Maintenance Techs” button to the Hangar tab that runs
AutomatedTechAssignmentsafter confirmation. - Introduce a new nag/confirmation key (
CONFIRMATION_ASSIGN_TECHS) and expose a “hide confirmation” toggle in the Options dialog. - Add/extend i18n strings for the new button, option checkbox, and confirmation dialog text.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| MekHQ/src/mekhq/MHQConstants.java | Adds a new nag/confirmation key constant for “Assign Techs”. |
| MekHQ/src/mekhq/gui/HangarTab.java | Adds the Hangar button and confirmation flow to trigger quick tech assignment. |
| MekHQ/src/mekhq/gui/dialog/MHQOptionsDialog.java | Adds a Nag-tab checkbox to hide the new confirmation dialog and persists it. |
| MekHQ/resources/mekhq/resources/ImmersiveDialogConfirmation.properties | Adds confirmation dialog primary text for the new action. |
| MekHQ/resources/mekhq/resources/GUI.properties | Adds option text/tooltip strings for hiding the new confirmation dialog. |
| MekHQ/resources/mekhq/resources/CampaignGUI.properties | Adds button text/tooltip strings for the Hangar tab UI. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
HammerGS
approved these changes
May 19, 2026
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.
Recently we opened a dialog with the user base to try and identify pain points and areas of friction.
One of the requested features was the ability to more easily assign techs to unassigned units. That technology was implemented earlier in the year but wasn't well advertised. Now we add a nice shiny ui button in the hangar for the user to mash which will not only assign techs, but also inform the user of the automated option in MekHQ Options.
Screen.Recording.2026-05-17.at.2.38.31.PM.mov